You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
879 B
38 lines
879 B
4 years ago
|
import { defineComponent } from 'vue';
|
||
3 years ago
|
import VcSelect, { selectProps } from '../select';
|
||
7 years ago
|
|
||
4 years ago
|
export default defineComponent({
|
||
3 years ago
|
name: 'MiniSelect',
|
||
2 years ago
|
compatConfig: { MODE: 3 },
|
||
4 years ago
|
inheritAttrs: false,
|
||
3 years ago
|
props: selectProps(),
|
||
7 years ago
|
Option: VcSelect.Option,
|
||
3 years ago
|
setup(props, { attrs, slots }) {
|
||
|
return () => {
|
||
|
const selelctProps: any = {
|
||
|
...props,
|
||
|
size: 'small',
|
||
|
...attrs,
|
||
|
};
|
||
|
return <VcSelect {...selelctProps} v-slots={slots}></VcSelect>;
|
||
6 years ago
|
};
|
||
7 years ago
|
},
|
||
4 years ago
|
});
|
||
3 years ago
|
|
||
|
export const MiddleSelect = defineComponent({
|
||
|
name: 'MiddleSelect',
|
||
|
inheritAttrs: false,
|
||
|
props: selectProps(),
|
||
|
Option: VcSelect.Option,
|
||
|
setup(props, { attrs, slots }) {
|
||
|
return () => {
|
||
|
const selelctProps: any = {
|
||
|
...props,
|
||
|
size: 'middle',
|
||
|
...attrs,
|
||
|
};
|
||
|
return <VcSelect {...selelctProps} v-slots={slots}></VcSelect>;
|
||
|
};
|
||
|
},
|
||
|
});
|