vuecssuiant-designantdreactantantd-vueenterprisefrontendui-designvue-antdvue-antd-uivue3vuecomponent
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.
37 lines
879 B
37 lines
879 B
import { defineComponent } from 'vue'; |
|
import VcSelect, { selectProps } from '../select'; |
|
|
|
export default defineComponent({ |
|
name: 'MiniSelect', |
|
compatConfig: { MODE: 3 }, |
|
inheritAttrs: false, |
|
props: selectProps(), |
|
Option: VcSelect.Option, |
|
setup(props, { attrs, slots }) { |
|
return () => { |
|
const selelctProps: any = { |
|
...props, |
|
size: 'small', |
|
...attrs, |
|
}; |
|
return <VcSelect {...selelctProps} v-slots={slots}></VcSelect>; |
|
}; |
|
}, |
|
}); |
|
|
|
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>; |
|
}; |
|
}, |
|
});
|
|
|