Other
Development
npm install @vue-cb/select
Config
import select from "@vue-cb/select";
createApp(app).use(select);
Usage
<v-select v-model="state.val" :datas="state.ops" placeholder="เลือก" />
const state = reactive({
val: null,
ops: [
{ value: "s1", label: "s1" },
{ value: "s2", label: "s2" },
{ value: "s3", label: "s3" },
{ value: "s4", label: "s4" },
{ value: "s5", label: "s5" },
{ value: "s6", label: "s6" },
],
});
Props
name | value | default |
---|---|---|
datas | array | - |
multiple | boolean | - |
placeholder | string | - |