fc1d8df60f
Node.js Build / build (push) Has been skipped
- 基于 grill-me Q1-Q61 决策 - Vitest 测试与 CI workflow - middleware: parseFilters 核心实现 - component: Vue3 TransForm 基础组件 + Storybook Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
714 B
JavaScript
37 lines
714 B
JavaScript
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,
|
|
},
|
|
};
|