import { defineComponent, ref, reactive } from 'vue'; import { Form, FormItem, Input } from 'ant-design-vue'; import type { ComponentDemo } from '../../interface'; const Demo = defineComponent({ setup() { return () => { const onFinish = () => {}; const onFinishFailed = () => {}; const formRef = ref(); const formData = reactive({ username: '', }); return (
); }; }, }); const componentDemo: ComponentDemo = { demo: , tokens: ['colorError', 'colorErrorBorder', 'colorErrorHover'], key: 'danger', }; export default componentDemo;