@v2coding/ui 0.1.42 → 0.1.44
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/dist/v2coding-ui.esm.js +38 -15
- package/dist/v2coding-ui.min.js +2 -2
- package/dist/v2coding-ui.ssr.js +188 -166
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { fromJS, is } from 'immutable';
|
|
2
2
|
import { merge, debounce, throttle } from 'lodash';
|
|
3
|
+
import Vue from 'vue';
|
|
3
4
|
import axios from 'axios';
|
|
4
5
|
import to from 'await-to-js';
|
|
5
6
|
import { Message, TableColumn as TableColumn$1 } from 'element-ui';
|
|
@@ -268,13 +269,14 @@ const init$2 = function (Vue) {
|
|
|
268
269
|
downloadInstance.interceptors.request.use(onRequestSuccess);
|
|
269
270
|
downloadInstance.interceptors.response.use(onResponseSuccess, onResponseError);
|
|
270
271
|
instance.download = initDownload(downloadInstance);
|
|
272
|
+
instance.downloadServer = downloadInstance;
|
|
271
273
|
Vue.prototype.$axios = instance;
|
|
272
274
|
return instance;
|
|
273
275
|
};
|
|
274
276
|
|
|
275
277
|
const getInstance = () => {
|
|
276
278
|
if (!instance) {
|
|
277
|
-
return init$2();
|
|
279
|
+
return init$2(Vue);
|
|
278
280
|
}
|
|
279
281
|
|
|
280
282
|
return instance;
|
|
@@ -337,7 +339,7 @@ const init$1 = function (Vue) {
|
|
|
337
339
|
|
|
338
340
|
const getStore = () => {
|
|
339
341
|
if (!store) {
|
|
340
|
-
return init$1();
|
|
342
|
+
return init$1(Vue);
|
|
341
343
|
}
|
|
342
344
|
|
|
343
345
|
return store;
|
|
@@ -432,7 +434,7 @@ const init = function (Vue) {
|
|
|
432
434
|
|
|
433
435
|
const getRouter = () => {
|
|
434
436
|
if (!router) {
|
|
435
|
-
return init();
|
|
437
|
+
return init(Vue);
|
|
436
438
|
}
|
|
437
439
|
|
|
438
440
|
return router;
|
|
@@ -562,10 +564,15 @@ var Config = {
|
|
|
562
564
|
let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
563
565
|
config = Objects.isObject(config) ? config : {};
|
|
564
566
|
setting = Objects.merge({}, DefaultSetting$1, config);
|
|
565
|
-
Axios.init(Vue, setting);
|
|
566
|
-
Store.init(Vue, setting);
|
|
567
|
-
Router.init(Vue, setting);
|
|
567
|
+
const axios = Axios.init(Vue, setting);
|
|
568
|
+
const store = Store.init(Vue, setting);
|
|
569
|
+
const router = Router.init(Vue, setting);
|
|
568
570
|
Iconfont.init();
|
|
571
|
+
return {
|
|
572
|
+
axios,
|
|
573
|
+
store,
|
|
574
|
+
router
|
|
575
|
+
};
|
|
569
576
|
}
|
|
570
577
|
};
|
|
571
578
|
const getSetting = () => {
|
|
@@ -9248,8 +9255,8 @@ var __vue_staticRenderFns__$9 = [];
|
|
|
9248
9255
|
|
|
9249
9256
|
const __vue_inject_styles__$a = function (inject) {
|
|
9250
9257
|
if (!inject) return;
|
|
9251
|
-
inject("data-v-
|
|
9252
|
-
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{text-align:
|
|
9258
|
+
inject("data-v-3d8fc84d_0", {
|
|
9259
|
+
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+CiAgICAgIDxlbGxpcHNlIGZpbGwtb3BhY2l0eT0iLjgiIGZpbGw9IiNGNUY1RjciIGN4PSI2Ny43OTciIGN5PSIxMDYuODkiIHJ4PSI2Ny43OTciIHJ5PSIxMi42NjgiPjwvZWxsaXBzZT4KICAgICAgPHBhdGggZD0iTTEyMi4wMzQgNjkuNjc0TDk4LjEwOSA0MC4yMjljLTEuMTQ4LTEuMzg2LTIuODI2LTIuMjI1LTQuNTkzLTIuMjI1aC01MS40NGMtMS43NjYgMC0zLjQ0NC44MzktNC41OTIgMi4yMjVMMTMuNTYgNjkuNjc0djE1LjM4M2gxMDguNDc1VjY5LjY3NHoiIGZpbGw9IiNBRUI4QzIiPjwvcGF0aD4KICAgICAgPHBhdGggZD0iTTEwMS41MzcgODYuMjE0TDgwLjYzIDYxLjEwMmMtMS4wMDEtMS4yMDctMi41MDctMS44NjctNC4wNDgtMS44NjdIMzEuNzI0Yy0xLjU0IDAtMy4wNDcuNjYtNC4wNDggMS44NjdMNi43NjkgODYuMjE0djEzLjc5Mmg5NC43NjhWODYuMjE0eiIgZmlsbD0idXJsKCNsaW5lYXJHcmFkaWVudC0xKSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTMuNTYpIj48L3BhdGg+CiAgICAgIDxwYXRoIGQ9Ik0zMy44MyAwaDY3LjkzM2E0IDQgMCAwIDEgNCA0djkzLjM0NGE0IDQgMCAwIDEtNCA0SDMzLjgzYTQgNCAwIDAgM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MDIgMTQ4LjkyIDAgMTYxLjQwMiAwIDE3My44ODEgMCAxODQgOC4xMDIgMTg0IDE4LjA5N2MwIDkuOTk1LTEwLjExOCAxOC4wOTctMjIuNTk5IDE4LjA5Ny00LjUyOCAwLTguNzQ0LTEuMDY2LTEyLjI4LTIuOTAyeiIgZmlsbD0iI0RDRTBFNiI+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}",
|
|
9253
9260
|
map: undefined,
|
|
9254
9261
|
media: undefined
|
|
9255
9262
|
});
|
|
@@ -10477,7 +10484,7 @@ var script$8 = {
|
|
|
10477
10484
|
props: {
|
|
10478
10485
|
layout: {
|
|
10479
10486
|
type: String,
|
|
10480
|
-
default: 'prev, pager, next'
|
|
10487
|
+
default: 'total, ->, prev, pager, next'
|
|
10481
10488
|
},
|
|
10482
10489
|
pageSizes: {
|
|
10483
10490
|
type: Array,
|
|
@@ -10573,7 +10580,7 @@ var __vue_staticRenderFns__$8 = [];
|
|
|
10573
10580
|
const __vue_inject_styles__$8 = undefined;
|
|
10574
10581
|
/* scoped */
|
|
10575
10582
|
|
|
10576
|
-
const __vue_scope_id__$8 = "data-v-
|
|
10583
|
+
const __vue_scope_id__$8 = "data-v-48ae7f8f";
|
|
10577
10584
|
/* module identifier */
|
|
10578
10585
|
|
|
10579
10586
|
const __vue_module_identifier__$8 = undefined;
|
|
@@ -12653,11 +12660,27 @@ var mixin = {
|
|
|
12653
12660
|
|
|
12654
12661
|
var index = {
|
|
12655
12662
|
install: (Vue, opt) => {
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12663
|
+
const {
|
|
12664
|
+
onReady,
|
|
12665
|
+
...options
|
|
12666
|
+
} = opt;
|
|
12667
|
+
const {
|
|
12668
|
+
axios,
|
|
12669
|
+
store,
|
|
12670
|
+
router
|
|
12671
|
+
} = Config.init(Vue, options);
|
|
12672
|
+
Vue.use(Plugins, options);
|
|
12673
|
+
Vue.use(Mixins, options);
|
|
12674
|
+
Vue.use(Directives, options);
|
|
12675
|
+
Vue.use(Components, options);
|
|
12676
|
+
|
|
12677
|
+
if (typeof onReady === 'function') {
|
|
12678
|
+
onReady({
|
|
12679
|
+
axios,
|
|
12680
|
+
store,
|
|
12681
|
+
router
|
|
12682
|
+
});
|
|
12683
|
+
}
|
|
12661
12684
|
},
|
|
12662
12685
|
Components: ComponentList
|
|
12663
12686
|
};
|