Skip to content

Commit

Permalink
修复已知问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Feb 4, 2020
1 parent c9a2d72 commit 4ded4a0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dist/index.common.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,17 +346,17 @@
function createFormItemRender(defaultProps) {
return function (h, renderOpts, params, context) {
var data = params.data,
field = params.field;
property = params.property;
var name = renderOpts.name;
var attrs = renderOpts.attrs;
var props = getFormProps(context, renderOpts, defaultProps);
return [h(name, {
attrs: attrs,
props: props,
model: {
value: _xeUtils["default"].get(data, field),
value: _xeUtils["default"].get(data, property),
callback: function callback(value) {
_xeUtils["default"].set(data, field, value);
_xeUtils["default"].set(data, property, value);
}
},
on: getFormEvents(renderOpts, params, context)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function cellText (h: Function, cellValue: any) {

function createFormItemRender (defaultProps?: any) {
return function (h: Function, renderOpts: any, params: any, context: any) {
let { data, field } = params
let { data, property } = params
let { name } = renderOpts
let { attrs }: any = renderOpts
let props: any = getFormProps(context, renderOpts, defaultProps)
Expand All @@ -248,9 +248,9 @@ function createFormItemRender (defaultProps?: any) {
attrs,
props,
model: {
value: XEUtils.get(data, field),
value: XEUtils.get(data, property),
callback (value: any) {
XEUtils.set(data, field, value)
XEUtils.set(data, property, value)
}
},
on: getFormEvents(renderOpts, params, context)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-iview",
"version": "1.6.1",
"version": "1.6.2",
"description": "基于 vxe-table 表格的适配插件,用于兼容 iview 组件库",
"scripts": {
"lib": "gulp build"
Expand Down

0 comments on commit 4ded4a0

Please sign in to comment.