@v2coding/ui 0.1.41 → 0.1.43
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 +50 -14
- package/dist/v2coding-ui.min.js +2 -2
- package/dist/v2coding-ui.ssr.js +196 -164
- 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 = () => {
|
|
@@ -10617,6 +10624,13 @@ var script$7 = {
|
|
|
10617
10624
|
default: ''
|
|
10618
10625
|
}
|
|
10619
10626
|
},
|
|
10627
|
+
|
|
10628
|
+
data() {
|
|
10629
|
+
return {
|
|
10630
|
+
key: 1
|
|
10631
|
+
};
|
|
10632
|
+
},
|
|
10633
|
+
|
|
10620
10634
|
computed: {
|
|
10621
10635
|
listeners() {
|
|
10622
10636
|
// eslint-disable-next-line
|
|
@@ -10643,6 +10657,10 @@ var script$7 = {
|
|
|
10643
10657
|
}
|
|
10644
10658
|
},
|
|
10645
10659
|
|
|
10660
|
+
onReset() {
|
|
10661
|
+
this.key++;
|
|
10662
|
+
},
|
|
10663
|
+
|
|
10646
10664
|
onSubmit(formData) {
|
|
10647
10665
|
let searchParam = this.getSearchParams();
|
|
10648
10666
|
searchParam = this.beforeSearch(searchParam, formData);
|
|
@@ -10752,6 +10770,7 @@ var __vue_render__$7 = function () {
|
|
|
10752
10770
|
var _c = _vm._self._c || _h;
|
|
10753
10771
|
|
|
10754
10772
|
return _c('ui-form', _vm._g(_vm._b({
|
|
10773
|
+
key: _vm.key,
|
|
10755
10774
|
ref: "form",
|
|
10756
10775
|
staticClass: "ui-table-select",
|
|
10757
10776
|
class: {
|
|
@@ -10762,8 +10781,9 @@ var __vue_render__$7 = function () {
|
|
|
10762
10781
|
"label-width": _vm.labelWidth
|
|
10763
10782
|
},
|
|
10764
10783
|
on: {
|
|
10765
|
-
"
|
|
10766
|
-
"
|
|
10784
|
+
"ready": _vm.onReady,
|
|
10785
|
+
"reset": _vm.onReset,
|
|
10786
|
+
"submit": _vm.onSubmit
|
|
10767
10787
|
}
|
|
10768
10788
|
}, 'ui-form', _vm.$attrs, false), _vm.listeners), [_vm._t("default"), _vm._v(" "), _vm._t("submit-item", function () {
|
|
10769
10789
|
return [_c('el-form-item', {
|
|
@@ -10790,7 +10810,7 @@ var __vue_staticRenderFns__$7 = [];
|
|
|
10790
10810
|
|
|
10791
10811
|
const __vue_inject_styles__$7 = function (inject) {
|
|
10792
10812
|
if (!inject) return;
|
|
10793
|
-
inject("data-v-
|
|
10813
|
+
inject("data-v-500dedbb_0", {
|
|
10794
10814
|
source: ".ui-table-select{display:flex;align-items:center;flex-wrap:wrap}.ui-table-select .el-row{width:100%}.ui-table-select .fill{flex:1}.ui-table-select .el-form-item{margin-bottom:10px}.ui-table-select .el-form-item:last-child{margin-right:0}.ui-table-select .el-form-item,.ui-table-select .el-form-item.el-form-item--mini{margin-bottom:10px}",
|
|
10795
10815
|
map: undefined,
|
|
10796
10816
|
media: undefined
|
|
@@ -12640,11 +12660,27 @@ var mixin = {
|
|
|
12640
12660
|
|
|
12641
12661
|
var index = {
|
|
12642
12662
|
install: (Vue, opt) => {
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
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
|
+
}
|
|
12648
12684
|
},
|
|
12649
12685
|
Components: ComponentList
|
|
12650
12686
|
};
|