Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 4, 2020
1 parent 6a7cd5c commit 2b68769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
})
Expand Down Expand Up @@ -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`, {
Expand All @@ -388,7 +386,7 @@ function createFormItemRadioAndCheckboxRender () {
return h(name, {
props: {
label: option[valueProp],
disabled: option[disabledProp]
disabled: option.disabled
}
}, option[labelProp])
}))
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 2b68769

Please sign in to comment.