修复input只读无效、值错误等相关问题

This commit is contained in:
xuliangzhan
2020-12-24 18:28:07 +08:00
parent 006cb6967f
commit 0fac152c76
28 changed files with 277 additions and 181 deletions

View File

@@ -84,51 +84,51 @@
"description": "只对 edit-config 配置时有效,是否在编辑时高亮单元格边框(只支持部分)"
},
"vxe-table/row-class-name": {
"type": "string | (({ row, rowindex, $rowindex }) => any)",
"type": "string | ((params: { row, rowindex, $rowindex }) => any)",
"description": "给行附加 className"
},
"vxe-table/cell-class-name": {
"type": "string | (({ row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"type": "string | ((params: { row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给单元格附加 className"
},
"vxe-table/header-row-class-name": {
"type": "string | (({ $rowindex }) => any)",
"type": "string | ((params: { $rowindex }) => any)",
"description": "给表头的行附加 className"
},
"vxe-table/header-cell-class-name": {
"type": "string | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "string | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表头的单元格附加 className"
},
"vxe-table/footer-row-class-name": {
"type": "string | (({ $rowindex }) => any)",
"type": "string | ((params: { $rowindex }) => any)",
"description": "给表尾的行附加 className"
},
"vxe-table/footer-cell-class-name": {
"type": "string | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "string | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表尾的单元格附加 className"
},
"vxe-table/cell-style": {
"type": "any | (({ row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给单元格附加样式"
},
"vxe-table/header-cell-style": {
"type": "any | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表头单元格附加样式"
},
"vxe-table/footer-cell-style": {
"type": "any | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表尾单元格附加样式"
},
"vxe-table/row-style": {
"type": "any | (({ row, rowindex, $rowindex }) => any)",
"type": "any | ((params: { row, rowindex, $rowindex }) => any)",
"description": "给行附加样式,也可以是函数"
},
"vxe-table/header-row-style": {
"type": "any | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表头行附加样式"
},
"vxe-table/footer-row-style": {
"type": "any | (({ $rowindex }) => any)",
"type": "any | ((params: { $rowindex }) => any)",
"description": "给表尾行附加样式"
},
"vxe-table/show-footer": {
@@ -136,24 +136,24 @@
"description": "是否显示表尾"
},
"vxe-table/footer-method": {
"type": "({ columns, data }) => any[][]",
"type": "(params: { columns, data }) => any[][]",
"description": "表尾的数据获取方法,返回一个二维数组"
},
"vxe-table/merge-cells": {
"type": "array<{ row: number, col: number, rowspan: number, colspan: number }>",
"description": "临时合并指定的单元格不能用于树形结构、展开行,不建议用于固定列"
"description": "临时合并指定的单元格 (不能用于展开行、树形结构,不建议用于固定列)"
},
"vxe-table/merge-footer-items": {
"type": "array<{ row: number, col: number, rowspan: number, colspan: number }>",
"description": "临时合并表尾不能用于树形结构、展开行,不建议用于固定列"
"description": "临时合并表尾 (不能用于展开行、树形结构,不建议用于固定列)"
},
"vxe-table/span-method": {
"type": "({ row, rowindex, $rowindex, _rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "自定义合并函数,返回计算后的值不能用于虚拟滚动、树形结构、展开行、固定列"
"type": "(params: { row, rowindex, $rowindex, _rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "自定义合并函数,返回计算后的值 (不能用于虚拟滚动、展开行,不建议用于固定列、树形结构)"
},
"vxe-table/footer-span-method": {
"type": "({ $rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "表尾合并行或列,返回计算后的值不能用于虚拟滚动、树形结构、展开行、固定列"
"type": "(params: { $rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "表尾合并行或列,返回计算后的值 (不能用于虚拟滚动、展开行,不建议用于固定列、树形结构)"
},
"vxe-table/show-overflow": {
"type": "boolean | string",
@@ -183,10 +183,6 @@
"type": "boolean",
"description": "保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)"
},
"vxe-table/z-index": {
"type": "number",
"description": "自定义堆叠顺序(对于某些特殊场景,比如被遮挡时可能会用到)"
},
"vxe-table/column-config": {
"type": "any",
"description": "列的默认参数"
@@ -240,8 +236,12 @@
"description": "快捷菜单配置项"
},
"vxe-table/clip-config": {
"type": "object",
"description": "复制粘贴配置项"
"type": "any",
"description": "复制/粘贴配置项"
},
"vxe-table/fnr-config": {
"type": "any",
"description": "查找/替换配置项"
},
"vxe-table/mouse-config": {
"type": "any",
@@ -275,18 +275,6 @@
"type": "any",
"description": "自定义列配置项"
},
"vxe-table/animat": {
"type": "boolean",
"description": "表格动画效果开关(关闭后视觉效果更快)"
},
"vxe-table/cloak": {
"type": "boolean",
"description": "用于低性能的浏览器,可以设置为 true 来避免初始化渲染时的闪动"
},
"vxe-table/delay-hover": {
"type": "number",
"description": "当表格发生拖动、滚动...等行为时,至少多少毫秒之后才允许触发 hover 事件"
},
"vxe-table/scroll-x": {
"type": "any",
"description": "横向虚拟滚动配置(注:当 tree-config 启用后自动关闭该功能)"
@@ -416,7 +404,7 @@
"description": "给表尾的单元格附加 className"
},
"vxe-table-column/formatter": {
"type": "(({ cellvalue, row, column }) => string) | any[] | string",
"type": "(({ cellvalue, row, column }) => any) | any[] | string",
"description": "格式化显示内容"
},
"vxe-table-column/seq-method": {
@@ -428,7 +416,7 @@
"description": "是否允许列排序"
},
"vxe-table-column/sort-by": {
"type": "string",
"type": "string | ((row) => string | number)",
"description": "只对 sortable 有效,自定义排序的属性"
},
"vxe-table-column/filters": {
@@ -440,7 +428,7 @@
"description": "只对 filters 有效,筛选是否允许多选"
},
"vxe-table-column/filter-method": {
"type": "({ value, row, column }) => boolean",
"type": "function",
"description": "只对 filters 有效,列的筛选方法,该方法的返回值用来决定该行是否显示"
},
"vxe-table-column/filter-render": {
@@ -448,12 +436,12 @@
"description": "筛选渲染器配置项"
},
"vxe-table-column/export-method": {
"type": "({ row, column }) => string",
"description": "自定义单元格数据导出方法,返回自定义的值"
"type": "function",
"description": "自定义单元格数据导出方法,该方法 Function({ row, column }) 的返回值将会被导出"
},
"vxe-table-column/footer-export-method": {
"type": "({ items, _columnindex }) => string",
"description": "自定义表尾单元格数据导出方法,返回自定义的值"
"type": "function",
"description": "自定义表尾单元格数据导出方法,该方法 Function({ items, _columnIndex }) 的返回值将会被导出"
},
"vxe-table-column/title-help": {
"type": "any",
@@ -485,7 +473,7 @@
},
"vxe-table-column/col-id": {
"type": "string | number",
"description": "自定义列的唯一主键(注:非必要不需要设置,操作不正确将导致出现问题)"
"description": "自定义列的唯一主键(注:99%的场景不应该设置,操作不正确将导致出现问题)"
},
"vxe-grid/id": {
"type": "string",
@@ -576,51 +564,51 @@
"description": "只对 edit-config 配置时有效,是否在编辑时高亮单元格边框(只支持部分)"
},
"vxe-grid/row-class-name": {
"type": "string | (({ row, rowindex, $rowindex }) => any)",
"type": "string | ((params: { row, rowindex, $rowindex }) => any)",
"description": "给行附加 className"
},
"vxe-grid/cell-class-name": {
"type": "string | (({ row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"type": "string | ((params: { row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给单元格附加 className"
},
"vxe-grid/header-row-class-name": {
"type": "string | (({ $rowindex }) => any)",
"type": "string | ((params: { $rowindex }) => any)",
"description": "给表头的行附加 className"
},
"vxe-grid/header-cell-class-name": {
"type": "string | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "string | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表头的单元格附加 className"
},
"vxe-grid/footer-row-class-name": {
"type": "string | (({ $rowindex }) => any)",
"type": "string | ((params: { $rowindex }) => any)",
"description": "给表尾的行附加 className"
},
"vxe-grid/footer-cell-class-name": {
"type": "string | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "string | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表尾的单元格附加 className"
},
"vxe-grid/cell-style": {
"type": "any | (({ row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { row, rowindex, $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给单元格附加样式"
},
"vxe-grid/header-cell-style": {
"type": "any | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表头单元格附加样式"
},
"vxe-grid/footer-cell-style": {
"type": "any | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表尾单元格附加样式"
},
"vxe-grid/row-style": {
"type": "any | (({ row, rowindex, $rowindex }) => any)",
"type": "any | ((params: { row, rowindex, $rowindex }) => any)",
"description": "给行附加样式,也可以是函数"
},
"vxe-grid/header-row-style": {
"type": "any | (({ $rowindex, column, columnindex, $columnindex }) => any)",
"type": "any | ((params: { $rowindex, column, columnindex, $columnindex }) => any)",
"description": "给表头行附加样式"
},
"vxe-grid/footer-row-style": {
"type": "any | (({ $rowindex }) => any)",
"type": "any | ((params: { $rowindex }) => any)",
"description": "给表尾行附加样式"
},
"vxe-grid/show-footer": {
@@ -628,24 +616,24 @@
"description": "是否显示表尾"
},
"vxe-grid/footer-method": {
"type": "({ columns, data }) => any[][]",
"type": "(params: { columns, data }) => any[][]",
"description": "表尾的数据获取方法,返回一个二维数组"
},
"vxe-grid/merge-cells": {
"type": "array<{ row: number, col: number, rowspan: number, colspan: number }>",
"description": "临时合并指定的单元格不能用于树形结构、展开行,不建议用于固定列"
"description": "临时合并指定的单元格 (不能用于展开行、树形结构,不建议用于固定列)"
},
"vxe-grid/merge-footer-items": {
"type": "array<{ row: number, col: number, rowspan: number, colspan: number }>",
"description": "临时合并表尾不能用于树形结构、展开行,不建议用于固定列"
"description": "临时合并表尾 (不能用于展开行、树形结构,不建议用于固定列)"
},
"vxe-grid/span-method": {
"type": "({ row, rowindex, $rowindex, _rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "自定义合并函数,返回计算后的值不能用于虚拟滚动、树形结构、展开行、固定列"
"type": "(params: { row, rowindex, $rowindex, _rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "自定义合并函数,返回计算后的值 (不能用于虚拟滚动、展开行,不建议用于固定列、树形结构)"
},
"vxe-grid/footer-span-method": {
"type": "({ $rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "表尾合并行或列,返回计算后的值不能用于虚拟滚动、树形结构、展开行、固定列"
"type": "(params: { $rowindex, column, columnindex, $columnindex, _columnindex, data }) => { rowspan: number, colspan: number}",
"description": "表尾合并行或列,返回计算后的值 (不能用于虚拟滚动、展开行,不建议用于固定列、树形结构)"
},
"vxe-grid/show-overflow": {
"type": "boolean | string",
@@ -675,10 +663,6 @@
"type": "boolean",
"description": "保持原始值的状态,被某些功能所依赖,比如编辑状态、还原数据等(开启后影响性能,具体取决于数据量)"
},
"vxe-grid/z-index": {
"type": "number",
"description": "自定义堆叠顺序(对于某些特殊场景,比如被遮挡时可能会用到)"
},
"vxe-grid/column-config": {
"type": "any",
"description": "列的默认参数"
@@ -732,8 +716,12 @@
"description": "快捷菜单配置项"
},
"vxe-grid/clip-config": {
"type": "object",
"description": "复制粘贴配置项"
"type": "any",
"description": "复制/粘贴配置项"
},
"vxe-grid/fnr-config": {
"type": "any",
"description": "查找/替换配置项"
},
"vxe-grid/mouse-config": {
"type": "any",
@@ -767,18 +755,6 @@
"type": "any",
"description": "自定义列配置项"
},
"vxe-grid/animat": {
"type": "boolean",
"description": "表格动画效果开关(关闭后视觉效果更快)"
},
"vxe-grid/cloak": {
"type": "boolean",
"description": "用于低性能的浏览器,可以设置为 true 来避免初始化渲染时的闪动"
},
"vxe-grid/delay-hover": {
"type": "number",
"description": "当表格发生拖动、滚动...等行为时,至少多少毫秒之后才允许触发 hover 事件"
},
"vxe-grid/scroll-x": {
"type": "any",
"description": "横向虚拟滚动配置(注:当 tree-config 启用后自动关闭该功能)"
@@ -1140,12 +1116,12 @@
"description": "只对 type=date|time|datetime|week|month|year 有效,文本框是否允许输入"
},
"vxe-input/disabled-method": {
"type": "({ date, type }) => boolean",
"description": "只对 type=date|datetime|week|month|year 有效,该方法的返回值用来决定该日期是否允许选中"
"type": "function",
"description": "只对 type=date|datetime|week|month|year 有效,该方法 Function({ date, type }) 的返回值用来决定该日期是否允许选中"
},
"vxe-input/festival-method": {
"type": "({ date, type }) => any",
"description": "只对 type=date|datetime|week|month|year 有效,该方法用于返回对应日期显示的节日"
"type": "function",
"description": "只对 type=date|datetime|week|month|year 有效,该方法 Function({ date, type }) 用于返回对应日期显示的节日"
},
"vxe-input/transfer": {
"type": "boolean",
@@ -1304,7 +1280,7 @@
"description": "是否显示"
},
"vxe-tooltip/content": {
"type": "string | number",
"type": "string",
"description": "显示内容"
},
"vxe-tooltip/trigger": {
@@ -1357,7 +1333,7 @@
},
"vxe-modal/status": {
"type": "string",
"description": "confirm"
"description": "只对 type=alert | confirm | message 有效,消息状态"
},
"vxe-modal/class-name": {
"type": "string",
@@ -1407,6 +1383,10 @@
"type": "boolean",
"description": "是否允许按 Esc 键关闭窗口"
},
"vxe-modal/show-zoom": {
"type": "boolean",
"description": "是否允许窗口最大化与还原"
},
"vxe-modal/resize": {
"type": "boolean",
"description": "是否允许拖动调整窗口大小"
@@ -1472,7 +1452,7 @@
"description": "是否启用 localStorage 本地保存,会将窗口拖动的状态保存到本地(需要有 id"
},
"vxe-modal/before-hide-method": {
"type": "({ type }) => error | promise<any>",
"type": "function/promise<any>",
"description": "在窗口隐藏之前执行,可以返回 Error 阻止关闭,支持异步"
},
"vxe-form/data": {
@@ -1521,7 +1501,7 @@
},
"vxe-form/prevent-submit": {
"type": "boolean",
"description": "禁用默认提交方式,禁用后配合 validate() 方法可以更加自由的控制提交逻辑"
"description": "是否禁用默认的回车提交方式,禁用后配合 validate() 方法可以更加自由的控制提交逻辑"
},
"vxe-form/valid-config": {
"type": "any",
@@ -1556,7 +1536,7 @@
"description": "是否可视"
},
"vxe-form-item/visible-method": {
"type": "({ data }) => boolean",
"type": "function",
"description": "该方法的返回值用来决定该项是否显示"
},
"vxe-form-item/folding": {

View File

@@ -47,7 +47,6 @@
"row-key",
"row-id",
"keep-source",
"z-index",
"column-config",
"seq-config",
"sort-config",
@@ -62,6 +61,7 @@
"tree-config",
"menu-config",
"clip-config",
"fnr-config",
"mouse-config",
"keyboard-config",
"edit-config",
@@ -70,9 +70,6 @@
"empty-text",
"empty-render",
"custom-config",
"animat",
"cloak",
"delay-hover",
"scroll-x",
"scroll-y",
"params"
@@ -188,7 +185,6 @@
"row-key",
"row-id",
"keep-source",
"z-index",
"column-config",
"seq-config",
"sort-config",
@@ -203,6 +199,7 @@
"tree-config",
"menu-config",
"clip-config",
"fnr-config",
"mouse-config",
"keyboard-config",
"edit-config",
@@ -211,9 +208,6 @@
"empty-text",
"empty-render",
"custom-config",
"animat",
"cloak",
"delay-hover",
"scroll-x",
"scroll-y",
"params",
@@ -453,6 +447,7 @@
"mask",
"mask-closable",
"esc-closable",
"show-zoom",
"resize",
"duration",
"width",