@v2coding/ui 1.5.8 → 1.5.9
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 +32 -7
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +34 -7
- 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() {
|
|
@@ -8530,15 +8542,30 @@ var script$9 = {
|
|
|
8530
8542
|
* @private
|
|
8531
8543
|
*/
|
|
8532
8544
|
fetchData: function fetchData(params) {
|
|
8533
|
-
var
|
|
8545
|
+
var _this$$axios,
|
|
8546
|
+
_this4 = this;
|
|
8534
8547
|
|
|
8535
8548
|
this.remoteLoading = true;
|
|
8536
8549
|
var searchParams = this.getSearchParams();
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
}, this.hasPagination ? {} : {
|
|
8550
|
+
var requestParams = Object.assign({}, this.tablePageParams, searchParams, this.params, params || {});
|
|
8551
|
+
var config = this.hasPagination ? {} : {
|
|
8540
8552
|
fallback: Array
|
|
8541
|
-
}
|
|
8553
|
+
};
|
|
8554
|
+
var args;
|
|
8555
|
+
|
|
8556
|
+
if (this.requestMethod === 'get') {
|
|
8557
|
+
args = [this.url, _objectSpread2(_objectSpread2({}, config), {}, {
|
|
8558
|
+
params: requestParams
|
|
8559
|
+
})];
|
|
8560
|
+
} else if (this.requestParamsType === 'json') {
|
|
8561
|
+
args = [this.url, requestParams, _objectSpread2({}, config)];
|
|
8562
|
+
} else {
|
|
8563
|
+
args = [this.url, null, _objectSpread2(_objectSpread2({}, config), {}, {
|
|
8564
|
+
params: requestParams
|
|
8565
|
+
})];
|
|
8566
|
+
}
|
|
8567
|
+
|
|
8568
|
+
return (_this$$axios = this.$axios)[this.requestMethod].apply(_this$$axios, _toConsumableArray(args)).then(function (r) {
|
|
8542
8569
|
_this4.remoteLoading = false;
|
|
8543
8570
|
|
|
8544
8571
|
if (r.success) {
|
|
@@ -9075,7 +9102,7 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
9075
9102
|
|
|
9076
9103
|
var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
9077
9104
|
if (!inject) return;
|
|
9078
|
-
inject("data-v-
|
|
9105
|
+
inject("data-v-5562d046_0", {
|
|
9079
9106
|
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+CiAgICAgIDxlbGxpcHNlIGZpbGwtb3BhY2l0eT0iLjgiIGZpbGw9IiNGNUY1RjciIGN4PSI2Ny43OTciIGN5PSIxMDYuODkiIHJ4PSI2Ny43OTciIHJ5PSIxMi42NjgiPjwvZWxsaXBzZT4KICAgICAgPHBhdGggZD0iTTEyMi4wMzQgNjkuNjc0TDk4LjEwOSA0MC4yMjljLTEuMTQ4LTEuMzg2LTIuODI2LTIuMjI1LTQuNTkzLTIuMjI1aC01MS40NGMtMS43NjYgMC0zLjQ0NC44MzktNC41OTIgMi4yMjVMMTMuNTYgNjkuNjc0djE1LjM4M2gxMDguNDc1VjY5LjY3NHoiIGZpbGw9IiNBRUI4QzIiPjwvcGF0aD4KICAgICAgPHBhdGggZD0iTTEwMS41MzcgODYuMjE0TDgwLjYzIDYxLjEwMmMtMS4wMDEtMS4yMDctMi41MDctMS44NjctNC4wNDgtMS44NjdIMzEuNzI0Yy0xLj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DUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIKICAgICAgICBmaWxsPSIjRENFMEU2Ij48L3BhdGg+CiAgICA8L2c+CiAgICA8cGF0aCBkPSJNMTQ5LjEyMSAzMy4yOTJsLTYuODMgMi42NWExIDEgMCAwIDEtMS4zMTctMS4yM2wxLjkzNy02LjIwN2MtMi41ODktMi45NDQtNC4xMDktNi41MzQtNC4xMDktMTAuNDA4QzEzOC44MDIgOC4xMDIgMTQ4LjkyIDAgMTYxLjQwMiAwIDE3My44ODEgMCAxODQgOC4xMDIgMTg0IDE4LjA5N2MwIDkuOTk1LTEwLjExOCAxOC4wOTctMjIuNTk5IDE4LjA5Ny00LjUyOCAwLTguNzQ0LTEuMDY2LTEyLjI4LTIuOTAyeiIgZmlsbD0iI0RDRTBFNiI+PC9wYXRoPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTQ5LjY1IDE1LjM4MykiIGZpbGw9IiNGRkYiPgogICAgICA8ZWxsaXBzZSBjeD0iMjAuNjU0IiBjeT0iMy4xNjciIHJ4PSIyLjg0OSIgcnk9IjIuODE1Ij48L2VsbGlwc2U+CiAgICAgIDxwYXRoIGQ9Ik01LjY5OCA1LjYzSDBMMi44OTguNzA0ek05LjI1OS43MDRoNC45ODVWNS42M0g5LjI1OXoiPjwvcGF0aD4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=) center top no-repeat;background-size:auto 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
9107
|
map: undefined,
|
|
9081
9108
|
media: undefined
|
|
@@ -9087,7 +9114,7 @@ var __vue_inject_styles__$9 = function __vue_inject_styles__(inject) {
|
|
|
9087
9114
|
var __vue_scope_id__$9 = undefined;
|
|
9088
9115
|
/* module identifier */
|
|
9089
9116
|
|
|
9090
|
-
var __vue_module_identifier__$9 = "data-v-
|
|
9117
|
+
var __vue_module_identifier__$9 = "data-v-5562d046";
|
|
9091
9118
|
/* functional template */
|
|
9092
9119
|
|
|
9093
9120
|
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.9",
|
|
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
|
+
}
|