feat:增加物料:TinyDatePicker和TinyNumeric (#399)

* 增加物料:TinyDatePicker和TinyNumeric

* 修改disabled使用MetaSwitch
This commit is contained in:
fox ouyang 2024-04-11 14:35:58 +08:00 committed by GitHub
parent e9d6d7e3f9
commit 852217f711
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1754 additions and 0 deletions

View File

@ -28769,6 +28769,867 @@
"disable": ["copy", "remove"]
}
}
},
{
"name": {
"zh_CN": "日期选择"
},
"component": "TinyDatePicker",
"icon": "datepick",
"description": "用于输入或选择日期",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "DatePicker",
"version": "",
"destructuring": true
},
"group": "component",
"priority": 1,
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "modelValue",
"label": {
"text": {
"zh_CN": "绑定值"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "type",
"label": {
"text": {
"zh_CN": "类型"
}
},
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "日期",
"value": "date"
},
{
"label": "日期时间",
"value": "datetime"
},
{
"label": "周",
"value": "week"
},
{
"label": "月份",
"value": "month"
},
{
"label": "年份",
"value": "year"
}
]
}
},
"description": {
"zh_CN": "设置日期框的type属性"
}
},
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "clearable",
"label": {
"text": {
"zh_CN": "清除按钮"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "是否显示清除按钮"
},
"labelPosition": "left"
},
{
"property": "disabled",
"label": {
"text": {
"zh_CN": "禁用"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "禁用"
}
},
{
"property": "readonly",
"label": {
"text": {
"zh_CN": "是否只读"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": ""
}
},
{
"property": "size",
"label": {
"text": {
"zh_CN": "尺寸"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "medium",
"value": "medium"
},
{
"label": "small",
"value": "small"
},
{
"label": "mini",
"value": "mini"
}
]
}
},
"description": {
"zh_CN": "日期框尺寸。该属性的可选值为 medium / small / mini"
}
}
]
},
{
"name": "1",
"label": {
"zh_CN": "其他"
},
"content": [
{
"property": "maxlength",
"label": {
"text": {
"zh_CN": "最大长度"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {}
},
"description": {
"zh_CN": "设置 input 框的maxLength"
},
"labelPosition": "left"
},
{
"property": "autofocus",
"label": {
"text": {
"zh_CN": "聚焦"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "自动获取焦点"
},
"labelPosition": "left"
}
],
"description": {
"zh_CN": ""
}
}
],
"events": {
"onChange": {
"label": {
"zh_CN": "值改变时触发"
},
"description": {
"zh_CN": "在 Input 值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框改变后的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onInput": {
"label": {
"zh_CN": "输入值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框输入的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onUpdate:modelValue": {
"label": {
"zh_CN": "双向绑定的值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "双向绑定的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onBlur": {
"label": {
"zh_CN": "失去焦点时触发"
},
"description": {
"zh_CN": "在 Input 失去焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onFocus": {
"label": {
"zh_CN": "获取焦点时触发"
},
"description": {
"zh_CN": "在 Input 获取焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onClear": {
"label": {
"zh_CN": "点击清空按钮时触发"
},
"description": {
"zh_CN": "点击清空按钮时触发"
},
"type": "event",
"functionInfo": {
"params": [],
"returns": {}
},
"defaultValue": ""
}
}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["value", "disabled"]
},
"contextMenu": {
"actions": ["create symbol"],
"disable": ["copy", "remove"]
}
}
},
{
"name": {
"zh_CN": "数字输入框"
},
"component": "TinyNumeric",
"icon": "numeric",
"description": "通过鼠标或键盘输入字符",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "Numeric",
"version": "",
"destructuring": true
},
"group": "component",
"priority": 1,
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "modelValue",
"label": {
"text": {
"zh_CN": "绑定值"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "allow-empty",
"label": {
"text": {
"zh_CN": "内容可清空"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "是否内容可清空"
},
"labelPosition": "left"
},
{
"property": "disabled",
"label": {
"text": {
"zh_CN": "禁用"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "禁用"
}
},
{
"property": "size",
"label": {
"text": {
"zh_CN": "尺寸"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "medium",
"value": "medium"
},
{
"label": "small",
"value": "small"
},
{
"label": "mini",
"value": "mini"
}
]
}
},
"description": {
"zh_CN": "输入框尺寸。该属性的可选值为 medium / small / mini"
}
},
{
"property": "controls",
"label": {
"text": {
"zh_CN": "是否使用加减按钮"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": ""
}
},
{
"property": "controls-position",
"label": {
"text": {
"zh_CN": "加减按钮位置"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "左右两侧",
"value": ""
},
{
"label": "只在右侧",
"value": "right"
}
]
}
},
"description": {
"zh_CN": "加减按钮位置"
},
"labelPosition": "left"
},
{
"property": "precision",
"label": {
"text": {
"zh_CN": "数值精度"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "数值精度"
},
"labelPosition": "left"
},
{
"property": "step",
"label": {
"text": {
"zh_CN": "步长"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "步长"
},
"labelPosition": "left"
},
{
"property": "max",
"label": {
"text": {
"zh_CN": "可输入的最大数值"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "可输入的最大数值"
},
"labelPosition": "left"
},
{
"property": "min",
"label": {
"text": {
"zh_CN": "可输入的最小数值"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "可输入的最大数值"
},
"labelPosition": "left"
}
]
}
],
"events": {
"onChange": {
"label": {
"zh_CN": "值改变时触发"
},
"description": {
"zh_CN": "在 Input 值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框改变后的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onInput": {
"label": {
"zh_CN": "输入值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框输入的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onUpdate:modelValue": {
"label": {
"zh_CN": "双向绑定的值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "双向绑定的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onBlur": {
"label": {
"zh_CN": "失去焦点时触发"
},
"description": {
"zh_CN": "在 Input 失去焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onFocus": {
"label": {
"zh_CN": "获取焦点时触发"
},
"description": {
"zh_CN": "在 Input 获取焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onClear": {
"label": {
"zh_CN": "点击清空按钮时触发"
},
"description": {
"zh_CN": "点击清空按钮时触发"
},
"type": "event",
"functionInfo": {
"params": [],
"returns": {}
},
"defaultValue": ""
}
}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["value", "disabled"]
},
"contextMenu": {
"actions": ["create symbol"],
"disable": ["copy", "remove"]
}
}
}
]
},

View File

@ -12136,6 +12136,867 @@
"disable": ["copy", "remove"]
}
}
},
{
"name": {
"zh_CN": "日期选择"
},
"component": "TinyDatePicker",
"icon": "datepick",
"description": "用于输入或选择日期",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "DatePicker",
"version": "",
"destructuring": true
},
"group": "component",
"priority": 1,
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "modelValue",
"label": {
"text": {
"zh_CN": "绑定值"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "type",
"label": {
"text": {
"zh_CN": "类型"
}
},
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "日期",
"value": "date"
},
{
"label": "日期时间",
"value": "datetime"
},
{
"label": "周",
"value": "week"
},
{
"label": "月份",
"value": "month"
},
{
"label": "年份",
"value": "year"
}
]
}
},
"description": {
"zh_CN": "设置日期框的type属性"
}
},
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "clearable",
"label": {
"text": {
"zh_CN": "清除按钮"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "是否显示清除按钮"
},
"labelPosition": "left"
},
{
"property": "disabled",
"label": {
"text": {
"zh_CN": "禁用"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "禁用"
}
},
{
"property": "readonly",
"label": {
"text": {
"zh_CN": "是否只读"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": ""
}
},
{
"property": "size",
"label": {
"text": {
"zh_CN": "尺寸"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "medium",
"value": "medium"
},
{
"label": "small",
"value": "small"
},
{
"label": "mini",
"value": "mini"
}
]
}
},
"description": {
"zh_CN": "日期框尺寸。该属性的可选值为 medium / small / mini"
}
}
]
},
{
"name": "1",
"label": {
"zh_CN": "其他"
},
"content": [
{
"property": "maxlength",
"label": {
"text": {
"zh_CN": "最大长度"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {}
},
"description": {
"zh_CN": "设置 input 框的maxLength"
},
"labelPosition": "left"
},
{
"property": "autofocus",
"label": {
"text": {
"zh_CN": "聚焦"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "自动获取焦点"
},
"labelPosition": "left"
}
],
"description": {
"zh_CN": ""
}
}
],
"events": {
"onChange": {
"label": {
"zh_CN": "值改变时触发"
},
"description": {
"zh_CN": "在 Input 值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框改变后的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onInput": {
"label": {
"zh_CN": "输入值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框输入的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onUpdate:modelValue": {
"label": {
"zh_CN": "双向绑定的值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "双向绑定的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onBlur": {
"label": {
"zh_CN": "失去焦点时触发"
},
"description": {
"zh_CN": "在 Input 失去焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onFocus": {
"label": {
"zh_CN": "获取焦点时触发"
},
"description": {
"zh_CN": "在 Input 获取焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onClear": {
"label": {
"zh_CN": "点击清空按钮时触发"
},
"description": {
"zh_CN": "点击清空按钮时触发"
},
"type": "event",
"functionInfo": {
"params": [],
"returns": {}
},
"defaultValue": ""
}
}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["value", "disabled"]
},
"contextMenu": {
"actions": ["create symbol"],
"disable": ["copy", "remove"]
}
}
},
{
"name": {
"zh_CN": "数字输入框"
},
"component": "TinyNumeric",
"icon": "numeric",
"description": "通过鼠标或键盘输入字符",
"docUrl": "",
"screenshot": "",
"tags": "",
"keywords": "",
"devMode": "proCode",
"npm": {
"package": "@opentiny/vue",
"exportName": "Numeric",
"version": "",
"destructuring": true
},
"group": "component",
"priority": 1,
"schema": {
"properties": [
{
"label": {
"zh_CN": "基础信息"
},
"description": {
"zh_CN": "基础信息"
},
"collapse": {
"number": 6,
"text": {
"zh_CN": "显示更多"
}
},
"content": [
{
"property": "modelValue",
"label": {
"text": {
"zh_CN": "绑定值"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "双向绑定值"
},
"labelPosition": "left"
},
{
"property": "placeholder",
"label": {
"text": {
"zh_CN": "占位文本"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaBindI18n",
"props": {}
},
"description": {
"zh_CN": "输入框占位文本"
},
"labelPosition": "left"
},
{
"property": "allow-empty",
"label": {
"text": {
"zh_CN": "内容可清空"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "是否内容可清空"
},
"labelPosition": "left"
},
{
"property": "disabled",
"label": {
"text": {
"zh_CN": "禁用"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": "禁用"
}
},
{
"property": "size",
"label": {
"text": {
"zh_CN": "尺寸"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "medium",
"value": "medium"
},
{
"label": "small",
"value": "small"
},
{
"label": "mini",
"value": "mini"
}
]
}
},
"description": {
"zh_CN": "输入框尺寸。该属性的可选值为 medium / small / mini"
}
},
{
"property": "controls",
"label": {
"text": {
"zh_CN": "是否使用加减按钮"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSwitch",
"props": {}
},
"description": {
"zh_CN": ""
}
},
{
"property": "controls-position",
"label": {
"text": {
"zh_CN": "加减按钮位置"
}
},
"required": true,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaSelect",
"props": {
"options": [
{
"label": "左右两侧",
"value": ""
},
{
"label": "只在右侧",
"value": "right"
}
]
}
},
"description": {
"zh_CN": "加减按钮位置"
},
"labelPosition": "left"
},
{
"property": "precision",
"label": {
"text": {
"zh_CN": "数值精度"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "数值精度"
},
"labelPosition": "left"
},
{
"property": "step",
"label": {
"text": {
"zh_CN": "步长"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "步长"
},
"labelPosition": "left"
},
{
"property": "max",
"label": {
"text": {
"zh_CN": "可输入的最大数值"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "可输入的最大数值"
},
"labelPosition": "left"
},
{
"property": "min",
"label": {
"text": {
"zh_CN": "可输入的最小数值"
}
},
"required": false,
"readOnly": false,
"disabled": false,
"cols": 12,
"widget": {
"component": "MetaNumber",
"props": {
"allowEmpty": true
}
},
"description": {
"zh_CN": "可输入的最大数值"
},
"labelPosition": "left"
}
]
}
],
"events": {
"onChange": {
"label": {
"zh_CN": "值改变时触发"
},
"description": {
"zh_CN": "在 Input 值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框改变后的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onInput": {
"label": {
"zh_CN": "输入值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "输入框输入的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onUpdate:modelValue": {
"label": {
"zh_CN": "双向绑定的值改变时触发"
},
"description": {
"zh_CN": "在 Input 输入值改变时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "value",
"type": "string",
"defaultValue": "",
"description": {
"zh_CN": "双向绑定的值"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onBlur": {
"label": {
"zh_CN": "失去焦点时触发"
},
"description": {
"zh_CN": "在 Input 失去焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onFocus": {
"label": {
"zh_CN": "获取焦点时触发"
},
"description": {
"zh_CN": "在 Input 获取焦点时触发"
},
"type": "event",
"functionInfo": {
"params": [
{
"name": "event",
"type": "Object",
"defaultValue": "",
"description": {
"zh_CN": "原生 event"
}
}
],
"returns": {}
},
"defaultValue": ""
},
"onClear": {
"label": {
"zh_CN": "点击清空按钮时触发"
},
"description": {
"zh_CN": "点击清空按钮时触发"
},
"type": "event",
"functionInfo": {
"params": [],
"returns": {}
},
"defaultValue": ""
}
}
},
"configure": {
"loop": true,
"condition": true,
"styles": true,
"isContainer": true,
"isModal": false,
"nestingRule": {
"childWhitelist": "",
"parentWhitelist": "",
"descendantBlacklist": "",
"ancestorWhitelist": ""
},
"isNullNode": false,
"isLayout": false,
"rootSelector": "",
"shortcuts": {
"properties": ["value", "disabled"]
},
"contextMenu": {
"actions": ["create symbol"],
"disable": ["copy", "remove"]
}
}
}
],
"blocks": [],
@ -13154,6 +14015,38 @@
]
}
}
},
{
"name": {
"zh_CN": "日期选择"
},
"icon": "datepick",
"screenshot": "",
"snippetName": "TinyDatePicker",
"schema": {
"componentName": "TinyDatePicker",
"props": {
"placeholder": "请输入",
"modelValue": ""
}
}
},
{
"name": {
"zh_CN": "数字输入框"
},
"icon": "numeric",
"screenshot": "",
"snippetName": "TinyNumeric",
"schema": {
"componentName": "TinyNumeric",
"props": {
"allow-empty": true,
"placeholder": "请输入",
"controlsPosition": "right",
"step": 1
}
}
}
]
},