chore: remove object spead (#8514)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { computed, watch, defineComponent } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace, pick } from '../utils';
|
||||
import { createNamespace, extend, pick } from '../utils';
|
||||
import {
|
||||
CHECKBOX_GROUP_KEY,
|
||||
CheckboxGroupProvide,
|
||||
@@ -20,13 +20,12 @@ const [name, bem] = createNamespace('checkbox');
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
props: {
|
||||
...checkerProps,
|
||||
props: extend({}, checkerProps, {
|
||||
bindGroup: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
emits: ['change', 'update:modelValue'],
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ref, computed, PropType, defineComponent } from 'vue';
|
||||
import { addUnit, UnknownProp } from '../utils';
|
||||
import { addUnit, extend, UnknownProp } from '../utils';
|
||||
import { Icon } from '../icon';
|
||||
|
||||
export type CheckerShape = 'square' | 'round';
|
||||
@@ -29,8 +29,7 @@ export const checkerProps = {
|
||||
};
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
...checkerProps,
|
||||
props: extend({}, checkerProps, {
|
||||
role: String,
|
||||
parent: Object as PropType<CheckerParent | null>,
|
||||
checked: Boolean,
|
||||
@@ -40,9 +39,9 @@ export default defineComponent({
|
||||
},
|
||||
bem: {
|
||||
type: Function,
|
||||
required: true,
|
||||
required: true as const,
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
emits: ['click', 'toggle'],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user