chore: remove object spead (#8514)

This commit is contained in:
neverland
2021-04-12 20:57:24 +08:00
committed by GitHub
parent 0b764b6347
commit 9deca34d1d
41 changed files with 204 additions and 241 deletions
+9 -7
View File
@@ -1,5 +1,5 @@
import { nextTick, PropType, reactive, watch, defineComponent } from 'vue';
import { createNamespace } from '../utils';
import { createNamespace, extend } from '../utils';
// Components
import { Tab } from '../tab';
@@ -62,12 +62,14 @@ export default defineComponent({
activeTab: 0,
});
const { text: textKey, value: valueKey, children: childrenKey } = {
text: 'text',
value: 'value',
children: 'children',
...props.fieldNames,
};
const { text: textKey, value: valueKey, children: childrenKey } = extend(
{
text: 'text',
value: 'value',
children: 'children',
},
props.fieldNames
);
const getSelectedOptionsByValue = (
options: CascaderOption[],