feat: enhance variableFilters schema with additional properties and update exports in index

This commit is contained in:
sheldon guo 2025-03-02 12:23:59 +08:00 committed by Sheldon Guo
parent 64cabacef4
commit ff0d49df73
2 changed files with 12 additions and 2 deletions

View File

@ -17,7 +17,8 @@ export const variableFilters = [
category: 'date', category: 'date',
paramSchema: [ paramSchema: [
{ {
label: "{{t('Format')}}", name: 'format',
title: "{{t('Format')}}",
'x-component': 'Input', 'x-component': 'Input',
type: 'string', type: 'string',
required: true, required: true,
@ -31,12 +32,15 @@ export const variableFilters = [
category: 'date', category: 'date',
paramSchema: [ paramSchema: [
{ {
name: 'number',
title: "{{t('Number')}}", title: "{{t('Number')}}",
type: 'number', type: 'number',
'x-component': 'InputNumber',
required: true, required: true,
}, },
{ {
title: 'unit', name: 'unit',
title: "{{t('Unit')}}",
type: 'string', type: 'string',
required: true, required: true,
'x-component': 'Select', 'x-component': 'Select',
@ -55,11 +59,14 @@ export const variableFilters = [
category: 'date', category: 'date',
paramSchema: [ paramSchema: [
{ {
name: 'number',
title: "{{t('Number')}}", title: "{{t('Number')}}",
type: 'number', type: 'number',
'x-component': 'InputNumber',
required: true, required: true,
}, },
{ {
name: 'unit',
title: "{{t('Unit')}}", title: "{{t('Unit')}}",
type: 'string', type: 'string',
required: true, required: true,

View File

@ -9,3 +9,6 @@
export * from './parser'; export * from './parser';
export * from './filters'; export * from './filters';
export * from './utils';
export * from './engine';
export * from './escape';