@v2coding/ui 1.5.8 → 1.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/v2coding-ui.esm.js +34 -8
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +84 -39
- package/package.json +50 -50
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -8275,6 +8275,18 @@ var script$9 = {
|
|
|
8275
8275
|
emptyMessage: {
|
|
8276
8276
|
type: String,
|
|
8277
8277
|
default: '暂无数据'
|
|
8278
|
+
},
|
|
8279
|
+
requestMethod: {
|
|
8280
|
+
type: String,
|
|
8281
|
+
default: 'get'
|
|
8282
|
+
},
|
|
8283
|
+
|
|
8284
|
+
/**
|
|
8285
|
+
* json/querystring 仅post时支持该参数, get始终是querystring
|
|
8286
|
+
*/
|
|
8287
|
+
requestParamsType: {
|
|
8288
|
+
type: String,
|
|
8289
|
+
default: 'querystring'
|
|
8278
8290
|
}
|
|
8279
8291
|
},
|
|
8280
8292
|
data: function data() {
|
|
@@ -8532,36 +8544,69 @@ var script$9 = {
|
|
|
8532
8544
|
fetchData: function fetchData(params) {
|
|
8533
8545
|
var _this4 = this;
|
|
8534
8546
|
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
return this.$axios.get(this.url, _objectSpread2({
|
|
8538
|
-
params: Object.assign({}, this.tablePageParams, searchParams, this.params, params || {})
|
|
8539
|
-
}, this.hasPagination ? {} : {
|
|
8540
|
-
fallback: Array
|
|
8541
|
-
})).then(function (r) {
|
|
8542
|
-
_this4.remoteLoading = false;
|
|
8543
|
-
|
|
8544
|
-
if (r.success) {
|
|
8545
|
-
return Promise.resolve(r.data);
|
|
8546
|
-
}
|
|
8547
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
8548
|
+
var _this4$$axios;
|
|
8547
8549
|
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8550
|
+
var searchParams, requestParams, config, args;
|
|
8551
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
8552
|
+
while (1) {
|
|
8553
|
+
switch (_context2.prev = _context2.next) {
|
|
8554
|
+
case 0:
|
|
8555
|
+
_this4.remoteLoading = true;
|
|
8556
|
+
_context2.next = 3;
|
|
8557
|
+
return _this4.$nextTick();
|
|
8558
|
+
|
|
8559
|
+
case 3:
|
|
8560
|
+
searchParams = _this4.getSearchParams();
|
|
8561
|
+
requestParams = Object.assign({}, _this4.tablePageParams, searchParams, _this4.params, params || {});
|
|
8562
|
+
config = _this4.hasPagination ? {} : {
|
|
8563
|
+
fallback: Array
|
|
8564
|
+
};
|
|
8565
|
+
|
|
8566
|
+
if (_this4.requestMethod === 'get') {
|
|
8567
|
+
args = [_this4.url, _objectSpread2(_objectSpread2({}, config), {}, {
|
|
8568
|
+
params: requestParams
|
|
8569
|
+
})];
|
|
8570
|
+
} else if (_this4.requestParamsType === 'json') {
|
|
8571
|
+
args = [_this4.url, requestParams, _objectSpread2({}, config)];
|
|
8572
|
+
} else {
|
|
8573
|
+
args = [_this4.url, null, _objectSpread2(_objectSpread2({}, config), {}, {
|
|
8574
|
+
params: requestParams
|
|
8575
|
+
})];
|
|
8576
|
+
}
|
|
8577
|
+
|
|
8578
|
+
return _context2.abrupt("return", (_this4$$axios = _this4.$axios)[_this4.requestMethod].apply(_this4$$axios, _toConsumableArray(args)).then(function (r) {
|
|
8579
|
+
_this4.remoteLoading = false;
|
|
8580
|
+
|
|
8581
|
+
if (r.success) {
|
|
8582
|
+
return Promise.resolve(r.data);
|
|
8583
|
+
}
|
|
8584
|
+
|
|
8585
|
+
return Promise.resolve(_this4.hasPagination ? {
|
|
8586
|
+
no: 1,
|
|
8587
|
+
size: 0,
|
|
8588
|
+
data: [],
|
|
8589
|
+
total: 0,
|
|
8590
|
+
totalPages: 1
|
|
8591
|
+
} : []);
|
|
8592
|
+
}).catch(function () {
|
|
8593
|
+
_this4.remoteLoading = false;
|
|
8594
|
+
return Promise.resolve(_this4.hasPagination ? {
|
|
8595
|
+
no: 1,
|
|
8596
|
+
size: 0,
|
|
8597
|
+
data: [],
|
|
8598
|
+
total: 0,
|
|
8599
|
+
totalPages: 1
|
|
8600
|
+
} : []);
|
|
8601
|
+
}));
|
|
8602
|
+
|
|
8603
|
+
case 8:
|
|
8604
|
+
case "end":
|
|
8605
|
+
return _context2.stop();
|
|
8606
|
+
}
|
|
8607
|
+
}
|
|
8608
|
+
}, _callee2);
|
|
8609
|
+
}))();
|
|
8565
8610
|
},
|
|
8566
8611
|
|
|
8567
8612
|
/**
|
|
@@ -8839,28 +8884,28 @@ var script$9 = {
|
|
|
8839
8884
|
var _arguments = arguments,
|
|
8840
8885
|
_this6 = this;
|
|
8841
8886
|
|
|
8842
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
8887
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
8843
8888
|
var url, filename, searchParams, columns, headers;
|
|
8844
|
-
return _regeneratorRuntime().wrap(function
|
|
8889
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
8845
8890
|
while (1) {
|
|
8846
|
-
switch (
|
|
8891
|
+
switch (_context3.prev = _context3.next) {
|
|
8847
8892
|
case 0:
|
|
8848
8893
|
url = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : '';
|
|
8849
8894
|
filename = _arguments.length > 1 && _arguments[1] !== undefined ? _arguments[1] : '文件.xlsx';
|
|
8850
8895
|
|
|
8851
8896
|
if (url) {
|
|
8852
|
-
|
|
8897
|
+
_context3.next = 5;
|
|
8853
8898
|
break;
|
|
8854
8899
|
}
|
|
8855
8900
|
|
|
8856
8901
|
console.error("\u8BF7\u6307\u5B9A export api \u8BF7\u6C42\u5730\u5740");
|
|
8857
|
-
return
|
|
8902
|
+
return _context3.abrupt("return");
|
|
8858
8903
|
|
|
8859
8904
|
case 5:
|
|
8860
8905
|
searchParams = _this6.getSearchParams();
|
|
8861
8906
|
columns = _this6.getColumns();
|
|
8862
8907
|
headers = _this6.getHeaders();
|
|
8863
|
-
|
|
8908
|
+
_context3.next = 10;
|
|
8864
8909
|
return _this6.$axios.download(url, filename, {
|
|
8865
8910
|
params: _objectSpread2(_objectSpread2({}, searchParams), {}, {
|
|
8866
8911
|
columns: columns.join(','),
|
|
@@ -8870,10 +8915,10 @@ var script$9 = {
|
|
|
8870
8915
|
|
|
8871
8916
|
case 10:
|
|
8872
8917
|
case "end":
|
|
8873
|
-
return
|
|
8918
|
+
return _context3.stop();
|
|
8874
8919
|
}
|
|
8875
8920
|
}
|
|
8876
|
-
},
|
|
8921
|
+
}, _callee3);
|
|
8877
8922
|
}))();
|
|
8878
8923
|
} // print() {
|
|
8879
8924
|
// this.$print(this.getTableDom());
|
|
@@ -9075,7 +9120,7 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
9075
9120
|
|
|
9076
9121
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
9077
9122
|
if (!inject) return;
|
|
9078
|
-
inject("data-v-
|
|
9123
|
+
inject("data-v-70651622_0", {
|
|
9079
9124
|
source: ".ui-table{flex:1;display:flex;flex-direction:column;z-index:0;background-color:#fff;padding:15px 20px}.ui-table .ui-table-select-bar{flex:none}.ui-table .ui-table-select-bar .ui-table-select{position:relative;padding-right:100px}.ui-table .ui-table-select-bar .ui-table-select.has-reset{padding-right:200px}.ui-table .ui-table-select-bar .ui-table-select .submit-item{position:absolute;top:0;right:0;margin-right:0;margin-bottom:0}.ui-table .ui-table-select-bar .el-input{width:200px}.ui-table .ui-table-tool-bar{padding:10px 0;flex:none;display:flex;flex-wrap:wrap;align-items:center;flex-direction:row;background-color:#fff}.ui-table .private-tools{z-index:1;position:absolute;top:8px;right:5px;display:flex;flex-direction:row;padding-left:20px}.ui-table .private-tools .tool+.tool{margin-left:5px}.ui-table .private-tools .el-button.el-tooltip{background:rgba(255,255,255,.6);backdrop-filter:blur(3px);box-shadow:0 0 3px #999}.ui-table .ui-table-alert{margin-bottom:10px;border:1px solid #b3d8ff;background-color:#ecf5ff;border-radius:3px;padding:8px 10px}.ui-table .ui-table-alert .el-icon-info{color:#409eff;margin-right:6px}.ui-table .ui-table-alert .el-button--text{padding:0;margin-left:10px}.ui-table .el-table{flex:1;border:1px solid #ebeef5;border-bottom:none;z-index:0}.ui-table .footer-bar{flex:none;display:block;padding:20px 15px 15px;background-color:#fff}.ui-table .footer-bar .el-pagination{padding:0;display:flex;flex-direction:row-reverse}.ui-table .footer-bar .el-pagination .el-pagination__rightwrapper+*{flex:1;text-align:left}.ui-table .footer-bar .el-pagination::after,.ui-table .footer-bar .el-pagination::before{content:unset}.ui-table .ui-table-empty{padding-top:110px;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgdmlld0JveD0iMCAwIDE4NCAxNTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI0IDMxLjY3KSI+CiAgICAgIDxlbGxpcHNlIGZpbGwtb3BhY2l0eT0iLjgiIGZpbGw9IiNGNUY1RjciIGN4PSI2Ny43OTciIGN5PSIxMDYuODkiIHJ4PSI2Ny43OTciIHJ5PSIxMi42NjgiPjwvZWxsaXBzZT4KICAgICAgPHBhdGggZD0iTTEyMi4wMzQgNjkuNjc0TDk4LjEwOSA0MC4yMjljLTEuMTQ4LTEuMzg2LTIuODI2LTIuMjI1L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100px;color:rgba(0,0,0,.65);font-size:14px;line-height:22px;text-align:center}.column-label{width:80px;display:inline-block;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-table-column-action .el-button{box-shadow:none;padding:0;line-height:inherit}",
|
|
9080
9125
|
map: undefined,
|
|
9081
9126
|
media: undefined
|
|
@@ -9087,7 +9132,7 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
9087
9132
|
var __vue_scope_id__$9 = undefined;
|
|
9088
9133
|
/* module identifier */
|
|
9089
9134
|
|
|
9090
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
9135
|
+
var __vue_module_identifier__$9 = "data-v-70651622";
|
|
9091
9136
|
/* functional template */
|
|
9092
9137
|
|
|
9093
9138
|
var __vue_is_functional_template__$9 = false;
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@v2coding/ui",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/v2coding-ui.ssr.js",
|
|
6
|
-
"browser": "dist/v2coding-ui.esm.js",
|
|
7
|
-
"module": "dist/v2coding-ui.esm.js",
|
|
8
|
-
"unpkg": "dist/v2coding-ui.min.js",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist/*"
|
|
11
|
-
],
|
|
12
|
-
"sideEffects": false,
|
|
13
|
-
"scripts": {
|
|
14
|
-
"serve": "vue-cli-service serve dev/serve.js",
|
|
15
|
-
"prebuild": "rimraf ./dist",
|
|
16
|
-
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
|
|
17
|
-
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
|
|
18
|
-
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
|
|
19
|
-
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"iconv-lite": "^0.6.3"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@babel/core": "^7.14.6",
|
|
26
|
-
"@babel/preset-env": "^7.14.7",
|
|
27
|
-
"@rollup/plugin-alias": "^3.1.2",
|
|
28
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
29
|
-
"@rollup/plugin-commonjs": "^14.0.0",
|
|
30
|
-
"@rollup/plugin-json": "^6.0.0",
|
|
31
|
-
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
32
|
-
"@rollup/plugin-replace": "^2.4.2",
|
|
33
|
-
"@vue/cli-plugin-babel": "^4.5.13",
|
|
34
|
-
"@vue/cli-service": "^4.5.13",
|
|
35
|
-
"cross-env": "^7.0.3",
|
|
36
|
-
"minimist": "^1.2.5",
|
|
37
|
-
"rimraf": "^3.0.2",
|
|
38
|
-
"rollup": "^2.52.8",
|
|
39
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
40
|
-
"rollup-plugin-vue": "^5.1.9",
|
|
41
|
-
"vue": "^2.6.14",
|
|
42
|
-
"vue-template-compiler": "^2.6.14"
|
|
43
|
-
},
|
|
44
|
-
"engines": {
|
|
45
|
-
"node": ">=16 <24"
|
|
46
|
-
},
|
|
47
|
-
"resolutions": {
|
|
48
|
-
"@achrinza/node-ipc": "10.1.11"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@v2coding/ui",
|
|
3
|
+
"version": "1.5.10",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/v2coding-ui.ssr.js",
|
|
6
|
+
"browser": "dist/v2coding-ui.esm.js",
|
|
7
|
+
"module": "dist/v2coding-ui.esm.js",
|
|
8
|
+
"unpkg": "dist/v2coding-ui.min.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/*"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"scripts": {
|
|
14
|
+
"serve": "vue-cli-service serve dev/serve.js",
|
|
15
|
+
"prebuild": "rimraf ./dist",
|
|
16
|
+
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
|
|
17
|
+
"build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
|
|
18
|
+
"build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
|
|
19
|
+
"build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"iconv-lite": "^0.6.3"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@babel/core": "^7.14.6",
|
|
26
|
+
"@babel/preset-env": "^7.14.7",
|
|
27
|
+
"@rollup/plugin-alias": "^3.1.2",
|
|
28
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
29
|
+
"@rollup/plugin-commonjs": "^14.0.0",
|
|
30
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
31
|
+
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
32
|
+
"@rollup/plugin-replace": "^2.4.2",
|
|
33
|
+
"@vue/cli-plugin-babel": "^4.5.13",
|
|
34
|
+
"@vue/cli-service": "^4.5.13",
|
|
35
|
+
"cross-env": "^7.0.3",
|
|
36
|
+
"minimist": "^1.2.5",
|
|
37
|
+
"rimraf": "^3.0.2",
|
|
38
|
+
"rollup": "^2.52.8",
|
|
39
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
40
|
+
"rollup-plugin-vue": "^5.1.9",
|
|
41
|
+
"vue": "^2.6.14",
|
|
42
|
+
"vue-template-compiler": "^2.6.14"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=16 <24"
|
|
46
|
+
},
|
|
47
|
+
"resolutions": {
|
|
48
|
+
"@achrinza/node-ipc": "10.1.11"
|
|
49
|
+
}
|
|
50
|
+
}
|