1
0
mirror of synced 2025-12-10 07:58:13 +08:00

releases 4.0.0

This commit is contained in:
xuliangzhan
2021-03-08 21:29:38 +08:00
parent f2ac306184
commit 19f7e3f32e
3 changed files with 59 additions and 54 deletions

View File

@@ -229,11 +229,11 @@
},
"vxe-table/expand-config": {
"type": "any",
"description": "展开行配置项(不能用于虚拟滚动)"
"description": "展开行配置项(不支持虚拟滚动)"
},
"vxe-table/tree-config": {
"type": "any",
"description": "树形结构配置项(不能用于虚拟滚动)"
"description": "树形结构配置项(不支持虚拟滚动)"
},
"vxe-table/menu-config": {
"type": "any",
@@ -268,7 +268,7 @@
"description": "校验配置项"
},
"vxe-table/edit-rules": {
"type": "{ [field: string]: columneditrule[] }",
"type": "{ [field: string]: vxetabledefines.validatorrule[] }",
"description": "校验规则配置项"
},
"vxe-table/empty-text": {
@@ -412,7 +412,7 @@
"description": "给表尾的单元格附加 className"
},
"vxe-table-column/formatter": {
"type": "(({ cellvalue, row, column }) => any) | any[] | string",
"type": "(({ cellvalue, row, column }) => string) | any[] | string",
"description": "格式化显示内容"
},
"vxe-table-column/seq-method": {
@@ -440,20 +440,28 @@
"description": "只对 filters 有效,筛选是否允许多选"
},
"vxe-table-column/filter-method": {
"type": "function",
"type": "({ value, row, column }) => boolean",
"description": "只对 filters 有效,列的筛选方法,该方法的返回值用来决定该行是否显示"
},
"vxe-table-column/filter-reset-method": {
"type": "({ options, column }) => void",
"description": "只对 filters 有效,自定义筛选重置方法"
},
"vxe-table-column/filter-recover-method": {
"type": "({ option, column }) => void",
"description": "只对 filters 有效,自定义筛选复原方法(使用自定义筛选时可能会用到)"
},
"vxe-table-column/filter-render": {
"type": "any",
"description": "筛选渲染器配置项"
},
"vxe-table-column/export-method": {
"type": "function",
"description": "自定义单元格数据导出方法,该方法 Function({ row, column }) 的返回值将会被导出"
"type": "({ row, column }) => string",
"description": "自定义单元格数据导出方法,返回自定义的值"
},
"vxe-table-column/footer-export-method": {
"type": "function",
"description": "自定义表尾单元格数据导出方法,该方法 Function({ items, _columnIndex }) 的返回值将会被导出"
"type": "({ items, _columnindex }) => string",
"description": "自定义表尾单元格数据导出方法,返回自定义的值"
},
"vxe-table-column/title-help": {
"type": "any",
@@ -721,11 +729,11 @@
},
"vxe-grid/expand-config": {
"type": "any",
"description": "展开行配置项(不能用于虚拟滚动)"
"description": "展开行配置项(不支持虚拟滚动)"
},
"vxe-grid/tree-config": {
"type": "any",
"description": "树形结构配置项(不能用于虚拟滚动)"
"description": "树形结构配置项(不支持虚拟滚动)"
},
"vxe-grid/menu-config": {
"type": "any",
@@ -760,7 +768,7 @@
"description": "校验配置项"
},
"vxe-grid/edit-rules": {
"type": "{ [field: string]: columneditrule[] }",
"type": "{ [field: string]: vxetabledefines.validatorrule[] }",
"description": "校验规则配置项"
},
"vxe-grid/empty-text": {
@@ -915,7 +923,7 @@
"type": "string",
"description": "自定义跳页显示图标"
},
"vxe-radio/v-model / value": {
"vxe-radio/v-model / model-value": {
"type": "any",
"description": "绑定值"
},
@@ -939,7 +947,7 @@
"type": "string",
"description": "原生 name 属性"
},
"vxe-radio-group/v-model / value": {
"vxe-radio-group/v-model / model-value": {
"type": "any[]",
"description": "绑定值"
},
@@ -951,7 +959,7 @@
"type": "boolean",
"description": "是否禁用"
},
"vxe-radio-button/v-model / value": {
"vxe-radio-button/v-model / model-value": {
"type": "any",
"description": "绑定值"
},
@@ -967,7 +975,7 @@
"type": "boolean",
"description": "是否禁用"
},
"vxe-checkbox/v-model / value": {
"vxe-checkbox/v-model / model-value": {
"type": "any",
"description": "绑定值"
},
@@ -995,7 +1003,7 @@
"type": "boolean",
"description": "是否不确定状态"
},
"vxe-checkbox-group/v-model / value": {
"vxe-checkbox-group/v-model / model-value": {
"type": "any[]",
"description": "绑定值"
},
@@ -1007,7 +1015,7 @@
"type": "boolean",
"description": "是否禁用"
},
"vxe-switch/v-model / value": {
"vxe-switch/v-model / model-value": {
"type": "string | number | boolean",
"description": "绑定值"
},
@@ -1043,7 +1051,7 @@
"type": "string",
"description": "关闭时的图标"
},
"vxe-input/v-model / value": {
"vxe-input/v-model / model-value": {
"type": "any",
"description": "绑定值"
},
@@ -1135,10 +1143,6 @@
"type": "string",
"description": "只对 type=date|datetime|week|month|year 有效,输入框中显示的日期格式"
},
"vxe-input/parse-format": {
"type": "string",
"description": "只对 type=date|datetime|week|month|year 有效,绑定值的解析格式,如果是值为字符串时可能会用到"
},
"vxe-input/value-format": {
"type": "string",
"description": "只对 type=date|datetime|week|month|year 有效,绑定值的返回格式,默认返回 Date 类型,如果指定格式则返回字符串"
@@ -1148,18 +1152,18 @@
"description": "只对 type=date|time|datetime|week|month|year 有效,文本框是否允许输入"
},
"vxe-input/disabled-method": {
"type": "function",
"description": "只对 type=date|datetime|week|month|year 有效,该方法 Function({ date, type }) 的返回值用来决定该日期是否允许选中"
"type": "({ date, type }) => boolean",
"description": "只对 type=date|datetime|week|month|year 有效,该方法的返回值用来决定该日期是否允许选中"
},
"vxe-input/festival-method": {
"type": "function",
"description": "只对 type=date|datetime|week|month|year 有效,该方法 Function({ date, type }) 用于返回对应日期显示的节日"
"type": "({ date, type }) => any",
"description": "只对 type=date|datetime|week|month|year 有效,该方法用于返回对应日期显示的节日"
},
"vxe-input/transfer": {
"type": "boolean",
"description": "只对 type=date|time|datetime|week|month|year 有效,是否将弹框容器插入于 body 内(对于嵌入到表格或者弹窗中被遮挡时需要设置为 true"
},
"vxe-select/v-model / value": {
"vxe-select/v-model / model-value": {
"type": "any",
"description": "绑定值"
},
@@ -1312,7 +1316,7 @@
"description": "是否显示"
},
"vxe-tooltip/content": {
"type": "string",
"type": "string | number",
"description": "显示内容"
},
"vxe-tooltip/trigger": {
@@ -1339,7 +1343,7 @@
"type": "number",
"description": "鼠标移出后延时多少才隐藏 tooltip"
},
"vxe-modal/v-model / value": {
"vxe-modal/v-model / model-value": {
"type": "any",
"description": "绑定值"
},
@@ -1365,7 +1369,7 @@
},
"vxe-modal/status": {
"type": "string",
"description": "只对 type=alert | confirm | message 有效,消息状态"
"description": "confirm"
},
"vxe-modal/class-name": {
"type": "string",
@@ -1484,7 +1488,7 @@
"description": "是否启用 localStorage 本地保存,会将窗口拖动的状态保存到本地(需要有 id"
},
"vxe-modal/before-hide-method": {
"type": "function/promise<any>",
"type": "({ type }) => error | promise<any>",
"description": "在窗口隐藏之前执行,可以返回 Error 阻止关闭,支持异步"
},
"vxe-form/data": {
@@ -1528,7 +1532,7 @@
"description": "项列表"
},
"vxe-form/rules": {
"type": "{ [field: string]: formrule[] }",
"type": "{ [field: string]: vxeformdefines.formrule[] }",
"description": "校验规则配置项"
},
"vxe-form/prevent-submit": {
@@ -1572,7 +1576,7 @@
"description": "默认是否显示"
},
"vxe-form-item/visible-method": {
"type": "function",
"type": "({ data }) => boolean",
"description": "该方法的返回值用来决定该项是否显示"
},
"vxe-form-item/folding": {

View File

@@ -125,6 +125,8 @@
"filters",
"filter-multiple",
"filter-method",
"filter-reset-method",
"filter-recover-method",
"filter-render",
"export-method",
"footer-export-method",
@@ -263,7 +265,7 @@
},
"vxe-radio": {
"attributes": [
"v-model / value",
"v-model / model-value",
"label",
"content",
"size",
@@ -274,7 +276,7 @@
},
"vxe-radio-group": {
"attributes": [
"v-model / value",
"v-model / model-value",
"size",
"disabled"
],
@@ -282,7 +284,7 @@
},
"vxe-radio-button": {
"attributes": [
"v-model / value",
"v-model / model-value",
"label",
"content",
"disabled"
@@ -291,7 +293,7 @@
},
"vxe-checkbox": {
"attributes": [
"v-model / value",
"v-model / model-value",
"label",
"content",
"size",
@@ -303,7 +305,7 @@
},
"vxe-checkbox-group": {
"attributes": [
"v-model / value",
"v-model / model-value",
"size",
"disabled"
],
@@ -311,7 +313,7 @@
},
"vxe-switch": {
"attributes": [
"v-model / value",
"v-model / model-value",
"disabled",
"size",
"open-label",
@@ -325,7 +327,7 @@
},
"vxe-input": {
"attributes": [
"v-model / value",
"v-model / model-value",
"size",
"type",
"name",
@@ -348,7 +350,6 @@
"max-date",
"start-week",
"label-format",
"parse-format",
"value-format",
"editable",
"disabled-method",
@@ -359,7 +360,7 @@
},
"vxe-select": {
"attributes": [
"v-model / value",
"v-model / model-value",
"size",
"multiple",
"multi-char-overflow",
@@ -436,7 +437,7 @@
},
"vxe-modal": {
"attributes": [
"v-model / value",
"v-model / model-value",
"size",
"loading",
"id",

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.0.0-beta.19",
"version": "4.0.0",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、模态窗口、自定义模板、渲染器、贼灵活的配置项、扩展接口等...",
"scripts": {
"serve": "vue-cli-service serve",
@@ -77,21 +77,21 @@
"vue-i18n": "^9.0.0",
"vue-router": "^4.0.4",
"vuex": "^4.0.0",
"vxe-table-plugin-antd": "^3.0.0-beta.3",
"vxe-table-plugin-element": "^3.0.0-beta.3",
"vxe-table-plugin-export-pdf": "^3.0.0-beta.3",
"vxe-table-plugin-export-xlsx": "^3.0.0-beta.3",
"vxe-table-plugin-menus": "^3.0.0-beta.3",
"vxe-table-plugin-renderer": "^3.0.0-beta.3",
"vxe-table-plugin-shortcut-key": "^3.0.0-beta.3",
"vxe-table-plugin-antd": "^3.0.0",
"vxe-table-plugin-element": "^3.0.0",
"vxe-table-plugin-export-pdf": "^3.0.0",
"vxe-table-plugin-export-xlsx": "^3.0.0",
"vxe-table-plugin-menus": "^3.0.0",
"vxe-table-plugin-renderer": "^3.0.0",
"vxe-table-plugin-shortcut-key": "^3.0.0",
"xe-ajax": "^4.0.5",
"xe-clipboard": "^1.10.1",
"xe-utils": "^3.1.11",
"xlsx": "^0.16.9"
},
"peerDependencies": {
"vue": ">= 3",
"xe-utils": ">= 3"
"vue": "^3.0.0",
"xe-utils": "^3.0.0"
},
"vetur": {
"tags": "helper/vetur/tags.json",