- 基于 grill-me Q1-Q61 决策 - Vitest 测试与 CI workflow - middleware: parseFilters 核心实现 - component: Vue3 TransForm 基础组件 + Storybook Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user