mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
Merge "amis-saas-5534 [Bug] DATEMODIFY(DATE(),1,days) ,日期函数有问题" into feat-optimize-4
This commit is contained in:
commit
f2fe4c4900
@ -286,17 +286,26 @@ export class DateRangeControlPlugin extends BasePlugin {
|
||||
label: tipedLabel('最大值', tipedLabelText)
|
||||
}),
|
||||
|
||||
getSchemaTpl('formulaControl', {
|
||||
getSchemaTpl('valueFormula', {
|
||||
name: 'minDuration',
|
||||
rendererSchema: {
|
||||
...context?.schema,
|
||||
value: context?.schema.minDuration,
|
||||
type: 'input-text'
|
||||
},
|
||||
needDeleteProps: ['minDuration'], // 避免自我限制
|
||||
label: tipedLabel('最小跨度', '例如 2days'),
|
||||
placeholder: '请输入最小跨度',
|
||||
inputClassName: 'is-inline'
|
||||
}),
|
||||
getSchemaTpl('formulaControl', {
|
||||
|
||||
getSchemaTpl('valueFormula', {
|
||||
name: 'maxDuration',
|
||||
rendererSchema: {
|
||||
...context?.schema,
|
||||
value: context?.schema.maxDuration,
|
||||
type: 'input-text'
|
||||
},
|
||||
needDeleteProps: ['maxDuration'], // 避免自我限制
|
||||
label: tipedLabel('最大跨度', '例如 1year'),
|
||||
placeholder: '请输入最大跨度',
|
||||
inputClassName: 'is-inline'
|
||||
}),
|
||||
getSchemaTpl('dateShortCutControl', {
|
||||
mode: 'normal',
|
||||
|
Loading…
Reference in New Issue
Block a user