Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed May 17, 2019
1 parent 386225c commit c8a7884
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-element-extends/favicon.ico><title>ElementUI 2.X components extends.</title><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=preload as=style><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=preload as=style><link href=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js rel=preload as=script><link href=/vue-element-extends/static/js/index.eb523cbe.js rel=preload as=script><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=stylesheet><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=stylesheet></head><body><noscript><strong>We're sorry but test2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js></script><script src=/vue-element-extends/static/js/index.eb523cbe.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/vue-element-extends/favicon.ico><title>ElementUI 2.X components extends.</title><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=preload as=style><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=preload as=style><link href=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js rel=preload as=script><link href=/vue-element-extends/static/js/index.44ee5867.js rel=preload as=script><link href=/vue-element-extends/static/css/chunk-vendors.a8b08852.css rel=stylesheet><link href=/vue-element-extends/static/css/index.b5f8c35c.css rel=stylesheet></head><body><noscript><strong>We're sorry but test2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-element-extends/static/js/chunk-vendors.5e1205b6.js></script><script src=/vue-element-extends/static/js/index.44ee5867.js></script></body></html>

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -4815,14 +4815,14 @@ var UtilHandle = {
if (isOriginal) {
content += columns.map(function (column) {
if (column.type === 'index') {
return column.index ? column.index(rowIndex) : rowIndex + 1;
return "\"".concat(column.index ? column.index(rowIndex) : rowIndex + 1, "\"");
}

return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record, column.property) || '';
return "\"".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record, column.property) || '', "\"");
}).join(',') + '\n';
} else {
content += columns.map(function (column) {
return record[column.id];
return "\"".concat(record[column.id], "\"");
}).join(',') + '\n';
}
});
Expand Down
6 changes: 3 additions & 3 deletions lib/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -4824,14 +4824,14 @@ var UtilHandle = {
if (isOriginal) {
content += columns.map(function (column) {
if (column.type === 'index') {
return column.index ? column.index(rowIndex) : rowIndex + 1;
return "\"".concat(column.index ? column.index(rowIndex) : rowIndex + 1, "\"");
}

return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record, column.property) || '';
return "\"".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(record, column.property) || '', "\"");
}).join(',') + '\n';
} else {
content += columns.map(function (column) {
return record[column.id];
return "\"".concat(record[column.id], "\"");
}).join(',') + '\n';
}
});
Expand Down
2 changes: 1 addition & 1 deletion lib/index.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-element-extends",
"version": "1.2.17",
"version": "1.2.18",
"description": "Extension component based on ElementUI 2.x",
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
6 changes: 3 additions & 3 deletions packages/editable/src/tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ const UtilHandle = {
if (isOriginal) {
content += columns.map(column => {
if (column.type === 'index') {
return column.index ? column.index(rowIndex) : rowIndex + 1
return `"${column.index ? column.index(rowIndex) : rowIndex + 1}"`
}
return XEUtils.get(record, column.property) || ''
return `"${XEUtils.get(record, column.property) || ''}"`
}).join(',') + '\n'
} else {
content += columns.map(column => record[column.id]).join(',') + '\n'
content += columns.map(column => `"${record[column.id]}"`).join(',') + '\n'
}
})
return content
Expand Down

0 comments on commit c8a7884

Please sign in to comment.