From 2b6876907644f42c9d3c6b6d5836415e6dd86e5e Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 4 Aug 2020 19:16:08 +0800 Subject: [PATCH] update --- index.ts | 6 ++---- package.json | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/index.ts b/index.ts index b9f2e84..6ab8edb 100644 --- a/index.ts +++ b/index.ts @@ -311,14 +311,13 @@ function defaultFilterMethod (params: ColumnFilterMethodParams) { function renderOptions (h: CreateElement, options: any[], optionProps: OptionProps) { const labelProp = optionProps.label || 'label' const valueProp = optionProps.value || 'value' - const disabledProp = optionProps.disabled || 'disabled' return XEUtils.map(options, (item, oIndex) => { return h('Option', { key: oIndex, props: { value: item[valueProp], label: item[labelProp], - disabled: item[disabledProp] + disabled: item.disabled } }) }) @@ -376,7 +375,6 @@ function createFormItemRadioAndCheckboxRender () { const { attrs } = renderOpts const labelProp = optionProps.label || 'label' const valueProp = optionProps.value || 'value' - const disabledProp = optionProps.disabled || 'disabled' const itemValue = XEUtils.get(data, property) return [ h(`${name}Group`, { @@ -388,7 +386,7 @@ function createFormItemRadioAndCheckboxRender () { return h(name, { props: { label: option[valueProp], - disabled: option[disabledProp] + disabled: option.disabled } }, option[labelProp]) })) diff --git a/package.json b/package.json index d7e701e..caa08d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-iview", - "version": "1.9.0", + "version": "1.9.1", "description": "基于 vxe-table 表格的适配插件,用于兼容 iview、view-design 组件库", "scripts": { "lib": "gulp build" @@ -49,7 +49,7 @@ "prettier": "^1.18.2", "typescript": "^3.9.3", "vue": "^2.6.11", - "vxe-table": "^2.9.15", + "vxe-table": "^2.9.16", "xe-utils": "^2.7.2" }, "peerDependencies": {