Skip to content

Commit ae77657

Browse files
committed
refactor: move select props
1 parent e09ad29 commit ae77657

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

ant/src/components/select.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@ export default defineComponent({
4444
name: 'CustomSelect',
4545
props: {
4646
...selectProps<any, any>(),
47-
modelValue: {
48-
type: [String, Number, Array],
49-
},
50-
selection: {
51-
type: String,
52-
},
53-
clearable: {
54-
type: Boolean,
55-
default: false,
56-
},
5747
buttonProps: {
5848
type: Object as PropType<ButtonProps>,
5949
default: () => {},

core/src/components/select.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ export interface SelectOptions<T, V> extends SetOptions<T> {
8888

8989
export function selectProps<T, V>() {
9090
return {
91+
modelValue: {
92+
type: [String, Number, Array],
93+
},
94+
selection: {
95+
type: String,
96+
},
97+
clearable: {
98+
type: Boolean,
99+
default: false,
100+
},
91101
items: {
92102
type: Array as PropType<Array<T>>,
93103
default: () => [],

light/src/components/select.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ export default defineComponent({
3131
name: 'CustomSelect',
3232
props: {
3333
...selectProps(),
34-
modelValue: {
35-
type: [String, Number, Array],
36-
},
37-
selection: {
38-
type: String,
39-
},
40-
clearable: {
41-
type: Boolean,
42-
default: false,
43-
},
4434
},
4535
emits: ['update:model-value'],
4636
setup(props, ctx) {

0 commit comments

Comments
 (0)