forked from vueComponent/ant-design-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarning.tsx
38 lines (32 loc) · 791 Bytes
/
warning.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { defineComponent } from 'vue';
import { Select } from 'ant-design-vue';
import type { ComponentDemo } from '../../interface';
import options from './data';
const handleChange = (value: any) => {
// eslint-disable-next-line
console.log(`selected ${value}`);
};
const Demo = defineComponent({
setup() {
return () => (
<Select
mode="multiple"
allowClear
style={{
width: '100%',
}}
status={'warning'}
options={options}
placeholder="Please select"
value={['a10', 'c12']}
onChange={handleChange}
/>
);
},
});
const componentDemo: ComponentDemo = {
demo: <Demo />,
tokens: ['colorWarningHover', 'colorWarningOutline'],
key: 'warning',
};
export default componentDemo;