node_modules/ant-design-vue/lib/vc-tree/util.js
/**
 * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
 */
Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
Parse ` checkedKeys ` to { checkedKeys halfCheckedKeys } style
function parseCheckedKeys(keys) {
  if (!keys) {
    return null;
  } 
  var keyProps;
  if (Array.isArray(keys)) {
    keyProps = {
      checkedKeys: keys,
      halfCheckedKeys: undefined
    };
  } else if ((0, _typeof2.default)(keys) === 'object') {
    keyProps = {
      checkedKeys: keys.checked || undefined,
      halfCheckedKeys: keys.halfChecked || undefined
    };
  } else {
    (0, _warning.warning)(false, '`checkedKeys` is not an array or an object');
    return null;
  }
  return keyProps;
}
function parseCheckedKeys ( keys ) { if ( ! keys ) { return null ; } var keyProps ; if ( Array . isArray ( keys ) ) { keyProps = { checkedKeys : keys , halfCheckedKeys : undefined } ; } else if ( ( 0 , _typeof2 . default ) ( keys ) === 'object' ) { keyProps = { checkedKeys : keys . checked || undefined , halfCheckedKeys : keys . halfChecked || undefined } ; } else { ( 0 , _warning . warning ) ( false , '`checkedKeys` is not an array or an object' ) ; return null ; } return keyProps ; }
Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
Parse ` checkedKeys ` to { checkedKeys halfCheckedKeys } style
// Convert keys to object format // [Legacy] Follow the api doc