22 lines
541 B
Vue
22 lines
541 B
Vue
import { defineComponent } from 'vue';
|
|
import { InputNumber } from 'ant-design-vue';
|
|
import type { ComponentDemo } from '../../interface';
|
|
|
|
function onChange() {}
|
|
|
|
const Demo = defineComponent({
|
|
setup() {
|
|
return () => (
|
|
<InputNumber status={'warning'} min={1} max={10} defaultValue={3} onChange={onChange} />
|
|
);
|
|
},
|
|
});
|
|
|
|
const componentDemo: ComponentDemo = {
|
|
demo: <Demo />,
|
|
tokens: ['colorWarning', 'colorWarningBorder', 'colorWarningOutline', 'colorWarningHover'],
|
|
key: 'warning',
|
|
};
|
|
|
|
export default componentDemo;
|