import TransForm from '../src/TransForm.vue'; import '../src/styles/trans-form.css'; export default { title: 'TransForm/Basic', component: TransForm, }; const schema = [ { row: 6, logic: 'AND', 'value-component': 'input', field: 'name', 'field-name': '名称', 'query-option': [ { value: 'EQ', label: '=', 'desc-cn': '等于' }, { value: 'LIKE', label: '~', 'desc-cn': '包含' }, ], }, { row: 6, logic: 'OR', 'value-component': 'input', field: 'tags', 'field-name': '标签', 'query-option': [{ value: 'IN', label: '∈', 'desc-cn': '包含任一' }], }, ]; export const Default = { args: { schema, showReset: true, }, };