meixioacomponent 0.3.76 → 0.3.79
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/lib/meixioacomponent.common.js +107 -1305
- package/lib/meixioacomponent.umd.js +107 -1305
- package/lib/meixioacomponent.umd.min.js +14 -20
- package/package.json +1 -1
- package/packages/components/dialogCache/index.vue +11 -17
- package/packages/components/proPageTable/oa_pro_table.vue +0 -2
- package/src/App.vue +4 -0
- package/src/component/test.vue +5 -4
|
@@ -92,6 +92,17 @@ module.exports =
|
|
|
92
92
|
|
|
93
93
|
/* (ignored) */
|
|
94
94
|
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ "007a":
|
|
98
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
+
|
|
100
|
+
"use strict";
|
|
101
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_oa_pro_table_vue_vue_type_style_index_0_id_011f8739_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f2d5");
|
|
102
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_oa_pro_table_vue_vue_type_style_index_0_id_011f8739_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_oa_pro_table_vue_vue_type_style_index_0_id_011f8739_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
103
|
+
/* unused harmony reexport * */
|
|
104
|
+
|
|
105
|
+
|
|
95
106
|
/***/ }),
|
|
96
107
|
|
|
97
108
|
/***/ "00ce":
|
|
@@ -461,6 +472,20 @@ if(content.locals) module.exports = content.locals;
|
|
|
461
472
|
var add = __webpack_require__("499e").default
|
|
462
473
|
var update = add("37f52d61", content, true, {"sourceMap":false,"shadowMode":false});
|
|
463
474
|
|
|
475
|
+
/***/ }),
|
|
476
|
+
|
|
477
|
+
/***/ "01ec":
|
|
478
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
479
|
+
|
|
480
|
+
// Imports
|
|
481
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
482
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
483
|
+
// Module
|
|
484
|
+
exports.push([module.i, ".oa-pro-table-wrap[data-v-011f8739]{position:relative}.oa-pro-table-wrap .oa-pro-header-wrap[data-v-011f8739]{width:100%;background:inherit}.oa-pro-table-wrap .oa-pro-header-wrap .header-extend[data-v-011f8739]{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;margin-right:var(--margin-5)}.oa-pro-table-wrap .table-suffix[data-v-011f8739]{top:0;right:0;width:40px;height:40px;display:flex;align-items:center;background:inherit;position:absolute;justify-content:center;flex-flow:row nowrap}.oa-pro-table-wrap[data-v-011f8739] .caret-wrapper{display:none}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739]{position:relative}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739] th{padding:0 0;background:var(--color-table-header)!important}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739] th .cell{padding-left:0!important;padding-right:0!important}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739] th .cell .el-checkbox{margin:0 var(--margin-5)}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739] td{padding:var(--padding-4)}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739] td .cell{padding-left:0!important;padding-right:0!important}.oa-pro-table-wrap .oa-pro-table[data-v-011f8739] td .cell .el-checkbox{margin:0 var(--margin-5)}.oa-pro-table-wrap .oa-pro-table .table-tooltip-wrap[data-v-011f8739]{z-index:-1;position:fixed;visibility:hidden}.oa-pro-table-wrap .oa-pro-table .cell-content-text[data-v-011f8739]{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--font-weight-g);color:var(--font-color-d)!important;font-size:var(--font-size-base)!important}.oa-pro-table-wrap .oa-pro-table .fun[data-v-011f8739],.oa-pro-table-wrap .oa-pro-table .primary[data-v-011f8739]{font-weight:var(--font-weight-g);color:var(--color-primary)!important;font-size:var(--font-size-base)!important}.oa-pro-table-wrap .oa-pro-table .fun[data-v-011f8739]{cursor:pointer}.oa-pro-table-wrap .oa-pro-table .fun[data-v-011f8739]:hover{text-decoration:underline}.oa-pro-table-wrap .oa-pro-table .warn[data-v-011f8739]{font-size:var(--font-size-base)!important;color:var(--color-warn)!important}.oa-pro-table-wrap .oa-pro-table .error[data-v-011f8739]{font-size:var(--font-size-base)!important;color:var(--color-error)!important}.oa-pro-table-wrap .oa-pro-table .success[data-v-011f8739]{font-size:var(--font-size-base)!important;color:var(--color-success)!important}.oa-pro-table-wrap .no-row-bordel[data-v-011f8739] .el-table__cell{border-bottom:none}.oa-pro-table-wrap .check-type-single[data-v-011f8739] th .el-checkbox{visibility:hidden}.oa-pro-table-wrap .oa-pro-table-footer[data-v-011f8739]{width:100%;background:inherit;box-sizing:border-box;padding-top:var(--padding-5)}.no-auth[data-v-011f8739]{display:flex;align-items:center;flex-flow:column nowrap;justify-content:center}", ""]);
|
|
485
|
+
// Exports
|
|
486
|
+
module.exports = exports;
|
|
487
|
+
|
|
488
|
+
|
|
464
489
|
/***/ }),
|
|
465
490
|
|
|
466
491
|
/***/ "0211":
|
|
@@ -6914,17 +6939,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
6914
6939
|
var add = __webpack_require__("499e").default
|
|
6915
6940
|
var update = add("89a90ad0", content, true, {"sourceMap":false,"shadowMode":false});
|
|
6916
6941
|
|
|
6917
|
-
/***/ }),
|
|
6918
|
-
|
|
6919
|
-
/***/ "1b35":
|
|
6920
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6921
|
-
|
|
6922
|
-
"use strict";
|
|
6923
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_16d621a4_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("92d3");
|
|
6924
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_16d621a4_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_16d621a4_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
6925
|
-
/* unused harmony reexport * */
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
6942
|
/***/ }),
|
|
6929
6943
|
|
|
6930
6944
|
/***/ "1b3e":
|
|
@@ -9369,17 +9383,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
9369
9383
|
var add = __webpack_require__("499e").default
|
|
9370
9384
|
var update = add("22c47b01", content, true, {"sourceMap":false,"shadowMode":false});
|
|
9371
9385
|
|
|
9372
|
-
/***/ }),
|
|
9373
|
-
|
|
9374
|
-
/***/ "24c7":
|
|
9375
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9376
|
-
|
|
9377
|
-
"use strict";
|
|
9378
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_oa_pro_table_vue_vue_type_style_index_0_id_8becbaa0_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("94e0");
|
|
9379
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_oa_pro_table_vue_vue_type_style_index_0_id_8becbaa0_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_oa_pro_table_vue_vue_type_style_index_0_id_8becbaa0_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
9380
|
-
/* unused harmony reexport * */
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
9386
|
/***/ }),
|
|
9384
9387
|
|
|
9385
9388
|
/***/ "24cd":
|
|
@@ -11196,1183 +11199,6 @@ module.exports = function isCancel(value) {
|
|
|
11196
11199
|
};
|
|
11197
11200
|
|
|
11198
11201
|
|
|
11199
|
-
/***/ }),
|
|
11200
|
-
|
|
11201
|
-
/***/ "2f62":
|
|
11202
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11203
|
-
|
|
11204
|
-
"use strict";
|
|
11205
|
-
/* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export Store */
|
|
11206
|
-
/* unused harmony export createLogger */
|
|
11207
|
-
/* unused harmony export createNamespacedHelpers */
|
|
11208
|
-
/* unused harmony export install */
|
|
11209
|
-
/* unused harmony export mapActions */
|
|
11210
|
-
/* unused harmony export mapGetters */
|
|
11211
|
-
/* unused harmony export mapMutations */
|
|
11212
|
-
/* unused harmony export mapState */
|
|
11213
|
-
/*!
|
|
11214
|
-
* vuex v3.6.2
|
|
11215
|
-
* (c) 2021 Evan You
|
|
11216
|
-
* @license MIT
|
|
11217
|
-
*/
|
|
11218
|
-
function applyMixin (Vue) {
|
|
11219
|
-
var version = Number(Vue.version.split('.')[0]);
|
|
11220
|
-
|
|
11221
|
-
if (version >= 2) {
|
|
11222
|
-
Vue.mixin({ beforeCreate: vuexInit });
|
|
11223
|
-
} else {
|
|
11224
|
-
// override init and inject vuex init procedure
|
|
11225
|
-
// for 1.x backwards compatibility.
|
|
11226
|
-
var _init = Vue.prototype._init;
|
|
11227
|
-
Vue.prototype._init = function (options) {
|
|
11228
|
-
if ( options === void 0 ) options = {};
|
|
11229
|
-
|
|
11230
|
-
options.init = options.init
|
|
11231
|
-
? [vuexInit].concat(options.init)
|
|
11232
|
-
: vuexInit;
|
|
11233
|
-
_init.call(this, options);
|
|
11234
|
-
};
|
|
11235
|
-
}
|
|
11236
|
-
|
|
11237
|
-
/**
|
|
11238
|
-
* Vuex init hook, injected into each instances init hooks list.
|
|
11239
|
-
*/
|
|
11240
|
-
|
|
11241
|
-
function vuexInit () {
|
|
11242
|
-
var options = this.$options;
|
|
11243
|
-
// store injection
|
|
11244
|
-
if (options.store) {
|
|
11245
|
-
this.$store = typeof options.store === 'function'
|
|
11246
|
-
? options.store()
|
|
11247
|
-
: options.store;
|
|
11248
|
-
} else if (options.parent && options.parent.$store) {
|
|
11249
|
-
this.$store = options.parent.$store;
|
|
11250
|
-
}
|
|
11251
|
-
}
|
|
11252
|
-
}
|
|
11253
|
-
|
|
11254
|
-
var target = typeof window !== 'undefined'
|
|
11255
|
-
? window
|
|
11256
|
-
: typeof global !== 'undefined'
|
|
11257
|
-
? global
|
|
11258
|
-
: {};
|
|
11259
|
-
var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
11260
|
-
|
|
11261
|
-
function devtoolPlugin (store) {
|
|
11262
|
-
if (!devtoolHook) { return }
|
|
11263
|
-
|
|
11264
|
-
store._devtoolHook = devtoolHook;
|
|
11265
|
-
|
|
11266
|
-
devtoolHook.emit('vuex:init', store);
|
|
11267
|
-
|
|
11268
|
-
devtoolHook.on('vuex:travel-to-state', function (targetState) {
|
|
11269
|
-
store.replaceState(targetState);
|
|
11270
|
-
});
|
|
11271
|
-
|
|
11272
|
-
store.subscribe(function (mutation, state) {
|
|
11273
|
-
devtoolHook.emit('vuex:mutation', mutation, state);
|
|
11274
|
-
}, { prepend: true });
|
|
11275
|
-
|
|
11276
|
-
store.subscribeAction(function (action, state) {
|
|
11277
|
-
devtoolHook.emit('vuex:action', action, state);
|
|
11278
|
-
}, { prepend: true });
|
|
11279
|
-
}
|
|
11280
|
-
|
|
11281
|
-
/**
|
|
11282
|
-
* Get the first item that pass the test
|
|
11283
|
-
* by second argument function
|
|
11284
|
-
*
|
|
11285
|
-
* @param {Array} list
|
|
11286
|
-
* @param {Function} f
|
|
11287
|
-
* @return {*}
|
|
11288
|
-
*/
|
|
11289
|
-
function find (list, f) {
|
|
11290
|
-
return list.filter(f)[0]
|
|
11291
|
-
}
|
|
11292
|
-
|
|
11293
|
-
/**
|
|
11294
|
-
* Deep copy the given object considering circular structure.
|
|
11295
|
-
* This function caches all nested objects and its copies.
|
|
11296
|
-
* If it detects circular structure, use cached copy to avoid infinite loop.
|
|
11297
|
-
*
|
|
11298
|
-
* @param {*} obj
|
|
11299
|
-
* @param {Array<Object>} cache
|
|
11300
|
-
* @return {*}
|
|
11301
|
-
*/
|
|
11302
|
-
function deepCopy (obj, cache) {
|
|
11303
|
-
if ( cache === void 0 ) cache = [];
|
|
11304
|
-
|
|
11305
|
-
// just return if obj is immutable value
|
|
11306
|
-
if (obj === null || typeof obj !== 'object') {
|
|
11307
|
-
return obj
|
|
11308
|
-
}
|
|
11309
|
-
|
|
11310
|
-
// if obj is hit, it is in circular structure
|
|
11311
|
-
var hit = find(cache, function (c) { return c.original === obj; });
|
|
11312
|
-
if (hit) {
|
|
11313
|
-
return hit.copy
|
|
11314
|
-
}
|
|
11315
|
-
|
|
11316
|
-
var copy = Array.isArray(obj) ? [] : {};
|
|
11317
|
-
// put the copy into cache at first
|
|
11318
|
-
// because we want to refer it in recursive deepCopy
|
|
11319
|
-
cache.push({
|
|
11320
|
-
original: obj,
|
|
11321
|
-
copy: copy
|
|
11322
|
-
});
|
|
11323
|
-
|
|
11324
|
-
Object.keys(obj).forEach(function (key) {
|
|
11325
|
-
copy[key] = deepCopy(obj[key], cache);
|
|
11326
|
-
});
|
|
11327
|
-
|
|
11328
|
-
return copy
|
|
11329
|
-
}
|
|
11330
|
-
|
|
11331
|
-
/**
|
|
11332
|
-
* forEach for object
|
|
11333
|
-
*/
|
|
11334
|
-
function forEachValue (obj, fn) {
|
|
11335
|
-
Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
|
|
11336
|
-
}
|
|
11337
|
-
|
|
11338
|
-
function isObject (obj) {
|
|
11339
|
-
return obj !== null && typeof obj === 'object'
|
|
11340
|
-
}
|
|
11341
|
-
|
|
11342
|
-
function isPromise (val) {
|
|
11343
|
-
return val && typeof val.then === 'function'
|
|
11344
|
-
}
|
|
11345
|
-
|
|
11346
|
-
function assert (condition, msg) {
|
|
11347
|
-
if (!condition) { throw new Error(("[vuex] " + msg)) }
|
|
11348
|
-
}
|
|
11349
|
-
|
|
11350
|
-
function partial (fn, arg) {
|
|
11351
|
-
return function () {
|
|
11352
|
-
return fn(arg)
|
|
11353
|
-
}
|
|
11354
|
-
}
|
|
11355
|
-
|
|
11356
|
-
// Base data struct for store's module, package with some attribute and method
|
|
11357
|
-
var Module = function Module (rawModule, runtime) {
|
|
11358
|
-
this.runtime = runtime;
|
|
11359
|
-
// Store some children item
|
|
11360
|
-
this._children = Object.create(null);
|
|
11361
|
-
// Store the origin module object which passed by programmer
|
|
11362
|
-
this._rawModule = rawModule;
|
|
11363
|
-
var rawState = rawModule.state;
|
|
11364
|
-
|
|
11365
|
-
// Store the origin module's state
|
|
11366
|
-
this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
|
|
11367
|
-
};
|
|
11368
|
-
|
|
11369
|
-
var prototypeAccessors = { namespaced: { configurable: true } };
|
|
11370
|
-
|
|
11371
|
-
prototypeAccessors.namespaced.get = function () {
|
|
11372
|
-
return !!this._rawModule.namespaced
|
|
11373
|
-
};
|
|
11374
|
-
|
|
11375
|
-
Module.prototype.addChild = function addChild (key, module) {
|
|
11376
|
-
this._children[key] = module;
|
|
11377
|
-
};
|
|
11378
|
-
|
|
11379
|
-
Module.prototype.removeChild = function removeChild (key) {
|
|
11380
|
-
delete this._children[key];
|
|
11381
|
-
};
|
|
11382
|
-
|
|
11383
|
-
Module.prototype.getChild = function getChild (key) {
|
|
11384
|
-
return this._children[key]
|
|
11385
|
-
};
|
|
11386
|
-
|
|
11387
|
-
Module.prototype.hasChild = function hasChild (key) {
|
|
11388
|
-
return key in this._children
|
|
11389
|
-
};
|
|
11390
|
-
|
|
11391
|
-
Module.prototype.update = function update (rawModule) {
|
|
11392
|
-
this._rawModule.namespaced = rawModule.namespaced;
|
|
11393
|
-
if (rawModule.actions) {
|
|
11394
|
-
this._rawModule.actions = rawModule.actions;
|
|
11395
|
-
}
|
|
11396
|
-
if (rawModule.mutations) {
|
|
11397
|
-
this._rawModule.mutations = rawModule.mutations;
|
|
11398
|
-
}
|
|
11399
|
-
if (rawModule.getters) {
|
|
11400
|
-
this._rawModule.getters = rawModule.getters;
|
|
11401
|
-
}
|
|
11402
|
-
};
|
|
11403
|
-
|
|
11404
|
-
Module.prototype.forEachChild = function forEachChild (fn) {
|
|
11405
|
-
forEachValue(this._children, fn);
|
|
11406
|
-
};
|
|
11407
|
-
|
|
11408
|
-
Module.prototype.forEachGetter = function forEachGetter (fn) {
|
|
11409
|
-
if (this._rawModule.getters) {
|
|
11410
|
-
forEachValue(this._rawModule.getters, fn);
|
|
11411
|
-
}
|
|
11412
|
-
};
|
|
11413
|
-
|
|
11414
|
-
Module.prototype.forEachAction = function forEachAction (fn) {
|
|
11415
|
-
if (this._rawModule.actions) {
|
|
11416
|
-
forEachValue(this._rawModule.actions, fn);
|
|
11417
|
-
}
|
|
11418
|
-
};
|
|
11419
|
-
|
|
11420
|
-
Module.prototype.forEachMutation = function forEachMutation (fn) {
|
|
11421
|
-
if (this._rawModule.mutations) {
|
|
11422
|
-
forEachValue(this._rawModule.mutations, fn);
|
|
11423
|
-
}
|
|
11424
|
-
};
|
|
11425
|
-
|
|
11426
|
-
Object.defineProperties( Module.prototype, prototypeAccessors );
|
|
11427
|
-
|
|
11428
|
-
var ModuleCollection = function ModuleCollection (rawRootModule) {
|
|
11429
|
-
// register root module (Vuex.Store options)
|
|
11430
|
-
this.register([], rawRootModule, false);
|
|
11431
|
-
};
|
|
11432
|
-
|
|
11433
|
-
ModuleCollection.prototype.get = function get (path) {
|
|
11434
|
-
return path.reduce(function (module, key) {
|
|
11435
|
-
return module.getChild(key)
|
|
11436
|
-
}, this.root)
|
|
11437
|
-
};
|
|
11438
|
-
|
|
11439
|
-
ModuleCollection.prototype.getNamespace = function getNamespace (path) {
|
|
11440
|
-
var module = this.root;
|
|
11441
|
-
return path.reduce(function (namespace, key) {
|
|
11442
|
-
module = module.getChild(key);
|
|
11443
|
-
return namespace + (module.namespaced ? key + '/' : '')
|
|
11444
|
-
}, '')
|
|
11445
|
-
};
|
|
11446
|
-
|
|
11447
|
-
ModuleCollection.prototype.update = function update$1 (rawRootModule) {
|
|
11448
|
-
update([], this.root, rawRootModule);
|
|
11449
|
-
};
|
|
11450
|
-
|
|
11451
|
-
ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
|
|
11452
|
-
var this$1 = this;
|
|
11453
|
-
if ( runtime === void 0 ) runtime = true;
|
|
11454
|
-
|
|
11455
|
-
if ((false)) {}
|
|
11456
|
-
|
|
11457
|
-
var newModule = new Module(rawModule, runtime);
|
|
11458
|
-
if (path.length === 0) {
|
|
11459
|
-
this.root = newModule;
|
|
11460
|
-
} else {
|
|
11461
|
-
var parent = this.get(path.slice(0, -1));
|
|
11462
|
-
parent.addChild(path[path.length - 1], newModule);
|
|
11463
|
-
}
|
|
11464
|
-
|
|
11465
|
-
// register nested modules
|
|
11466
|
-
if (rawModule.modules) {
|
|
11467
|
-
forEachValue(rawModule.modules, function (rawChildModule, key) {
|
|
11468
|
-
this$1.register(path.concat(key), rawChildModule, runtime);
|
|
11469
|
-
});
|
|
11470
|
-
}
|
|
11471
|
-
};
|
|
11472
|
-
|
|
11473
|
-
ModuleCollection.prototype.unregister = function unregister (path) {
|
|
11474
|
-
var parent = this.get(path.slice(0, -1));
|
|
11475
|
-
var key = path[path.length - 1];
|
|
11476
|
-
var child = parent.getChild(key);
|
|
11477
|
-
|
|
11478
|
-
if (!child) {
|
|
11479
|
-
if ((false)) {}
|
|
11480
|
-
return
|
|
11481
|
-
}
|
|
11482
|
-
|
|
11483
|
-
if (!child.runtime) {
|
|
11484
|
-
return
|
|
11485
|
-
}
|
|
11486
|
-
|
|
11487
|
-
parent.removeChild(key);
|
|
11488
|
-
};
|
|
11489
|
-
|
|
11490
|
-
ModuleCollection.prototype.isRegistered = function isRegistered (path) {
|
|
11491
|
-
var parent = this.get(path.slice(0, -1));
|
|
11492
|
-
var key = path[path.length - 1];
|
|
11493
|
-
|
|
11494
|
-
if (parent) {
|
|
11495
|
-
return parent.hasChild(key)
|
|
11496
|
-
}
|
|
11497
|
-
|
|
11498
|
-
return false
|
|
11499
|
-
};
|
|
11500
|
-
|
|
11501
|
-
function update (path, targetModule, newModule) {
|
|
11502
|
-
if ((false)) {}
|
|
11503
|
-
|
|
11504
|
-
// update target module
|
|
11505
|
-
targetModule.update(newModule);
|
|
11506
|
-
|
|
11507
|
-
// update nested modules
|
|
11508
|
-
if (newModule.modules) {
|
|
11509
|
-
for (var key in newModule.modules) {
|
|
11510
|
-
if (!targetModule.getChild(key)) {
|
|
11511
|
-
if ((false)) {}
|
|
11512
|
-
return
|
|
11513
|
-
}
|
|
11514
|
-
update(
|
|
11515
|
-
path.concat(key),
|
|
11516
|
-
targetModule.getChild(key),
|
|
11517
|
-
newModule.modules[key]
|
|
11518
|
-
);
|
|
11519
|
-
}
|
|
11520
|
-
}
|
|
11521
|
-
}
|
|
11522
|
-
|
|
11523
|
-
var functionAssert = {
|
|
11524
|
-
assert: function (value) { return typeof value === 'function'; },
|
|
11525
|
-
expected: 'function'
|
|
11526
|
-
};
|
|
11527
|
-
|
|
11528
|
-
var objectAssert = {
|
|
11529
|
-
assert: function (value) { return typeof value === 'function' ||
|
|
11530
|
-
(typeof value === 'object' && typeof value.handler === 'function'); },
|
|
11531
|
-
expected: 'function or object with "handler" function'
|
|
11532
|
-
};
|
|
11533
|
-
|
|
11534
|
-
var assertTypes = {
|
|
11535
|
-
getters: functionAssert,
|
|
11536
|
-
mutations: functionAssert,
|
|
11537
|
-
actions: objectAssert
|
|
11538
|
-
};
|
|
11539
|
-
|
|
11540
|
-
function assertRawModule (path, rawModule) {
|
|
11541
|
-
Object.keys(assertTypes).forEach(function (key) {
|
|
11542
|
-
if (!rawModule[key]) { return }
|
|
11543
|
-
|
|
11544
|
-
var assertOptions = assertTypes[key];
|
|
11545
|
-
|
|
11546
|
-
forEachValue(rawModule[key], function (value, type) {
|
|
11547
|
-
assert(
|
|
11548
|
-
assertOptions.assert(value),
|
|
11549
|
-
makeAssertionMessage(path, key, type, value, assertOptions.expected)
|
|
11550
|
-
);
|
|
11551
|
-
});
|
|
11552
|
-
});
|
|
11553
|
-
}
|
|
11554
|
-
|
|
11555
|
-
function makeAssertionMessage (path, key, type, value, expected) {
|
|
11556
|
-
var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
|
|
11557
|
-
if (path.length > 0) {
|
|
11558
|
-
buf += " in module \"" + (path.join('.')) + "\"";
|
|
11559
|
-
}
|
|
11560
|
-
buf += " is " + (JSON.stringify(value)) + ".";
|
|
11561
|
-
return buf
|
|
11562
|
-
}
|
|
11563
|
-
|
|
11564
|
-
var Vue; // bind on install
|
|
11565
|
-
|
|
11566
|
-
var Store = function Store (options) {
|
|
11567
|
-
var this$1 = this;
|
|
11568
|
-
if ( options === void 0 ) options = {};
|
|
11569
|
-
|
|
11570
|
-
// Auto install if it is not done yet and `window` has `Vue`.
|
|
11571
|
-
// To allow users to avoid auto-installation in some cases,
|
|
11572
|
-
// this code should be placed here. See #731
|
|
11573
|
-
if (!Vue && typeof window !== 'undefined' && window.Vue) {
|
|
11574
|
-
install(window.Vue);
|
|
11575
|
-
}
|
|
11576
|
-
|
|
11577
|
-
if ((false)) {}
|
|
11578
|
-
|
|
11579
|
-
var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
|
|
11580
|
-
var strict = options.strict; if ( strict === void 0 ) strict = false;
|
|
11581
|
-
|
|
11582
|
-
// store internal state
|
|
11583
|
-
this._committing = false;
|
|
11584
|
-
this._actions = Object.create(null);
|
|
11585
|
-
this._actionSubscribers = [];
|
|
11586
|
-
this._mutations = Object.create(null);
|
|
11587
|
-
this._wrappedGetters = Object.create(null);
|
|
11588
|
-
this._modules = new ModuleCollection(options);
|
|
11589
|
-
this._modulesNamespaceMap = Object.create(null);
|
|
11590
|
-
this._subscribers = [];
|
|
11591
|
-
this._watcherVM = new Vue();
|
|
11592
|
-
this._makeLocalGettersCache = Object.create(null);
|
|
11593
|
-
|
|
11594
|
-
// bind commit and dispatch to self
|
|
11595
|
-
var store = this;
|
|
11596
|
-
var ref = this;
|
|
11597
|
-
var dispatch = ref.dispatch;
|
|
11598
|
-
var commit = ref.commit;
|
|
11599
|
-
this.dispatch = function boundDispatch (type, payload) {
|
|
11600
|
-
return dispatch.call(store, type, payload)
|
|
11601
|
-
};
|
|
11602
|
-
this.commit = function boundCommit (type, payload, options) {
|
|
11603
|
-
return commit.call(store, type, payload, options)
|
|
11604
|
-
};
|
|
11605
|
-
|
|
11606
|
-
// strict mode
|
|
11607
|
-
this.strict = strict;
|
|
11608
|
-
|
|
11609
|
-
var state = this._modules.root.state;
|
|
11610
|
-
|
|
11611
|
-
// init root module.
|
|
11612
|
-
// this also recursively registers all sub-modules
|
|
11613
|
-
// and collects all module getters inside this._wrappedGetters
|
|
11614
|
-
installModule(this, state, [], this._modules.root);
|
|
11615
|
-
|
|
11616
|
-
// initialize the store vm, which is responsible for the reactivity
|
|
11617
|
-
// (also registers _wrappedGetters as computed properties)
|
|
11618
|
-
resetStoreVM(this, state);
|
|
11619
|
-
|
|
11620
|
-
// apply plugins
|
|
11621
|
-
plugins.forEach(function (plugin) { return plugin(this$1); });
|
|
11622
|
-
|
|
11623
|
-
var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
|
|
11624
|
-
if (useDevtools) {
|
|
11625
|
-
devtoolPlugin(this);
|
|
11626
|
-
}
|
|
11627
|
-
};
|
|
11628
|
-
|
|
11629
|
-
var prototypeAccessors$1 = { state: { configurable: true } };
|
|
11630
|
-
|
|
11631
|
-
prototypeAccessors$1.state.get = function () {
|
|
11632
|
-
return this._vm._data.$$state
|
|
11633
|
-
};
|
|
11634
|
-
|
|
11635
|
-
prototypeAccessors$1.state.set = function (v) {
|
|
11636
|
-
if ((false)) {}
|
|
11637
|
-
};
|
|
11638
|
-
|
|
11639
|
-
Store.prototype.commit = function commit (_type, _payload, _options) {
|
|
11640
|
-
var this$1 = this;
|
|
11641
|
-
|
|
11642
|
-
// check object-style commit
|
|
11643
|
-
var ref = unifyObjectStyle(_type, _payload, _options);
|
|
11644
|
-
var type = ref.type;
|
|
11645
|
-
var payload = ref.payload;
|
|
11646
|
-
var options = ref.options;
|
|
11647
|
-
|
|
11648
|
-
var mutation = { type: type, payload: payload };
|
|
11649
|
-
var entry = this._mutations[type];
|
|
11650
|
-
if (!entry) {
|
|
11651
|
-
if ((false)) {}
|
|
11652
|
-
return
|
|
11653
|
-
}
|
|
11654
|
-
this._withCommit(function () {
|
|
11655
|
-
entry.forEach(function commitIterator (handler) {
|
|
11656
|
-
handler(payload);
|
|
11657
|
-
});
|
|
11658
|
-
});
|
|
11659
|
-
|
|
11660
|
-
this._subscribers
|
|
11661
|
-
.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
|
|
11662
|
-
.forEach(function (sub) { return sub(mutation, this$1.state); });
|
|
11663
|
-
|
|
11664
|
-
if (
|
|
11665
|
-
false
|
|
11666
|
-
) {}
|
|
11667
|
-
};
|
|
11668
|
-
|
|
11669
|
-
Store.prototype.dispatch = function dispatch (_type, _payload) {
|
|
11670
|
-
var this$1 = this;
|
|
11671
|
-
|
|
11672
|
-
// check object-style dispatch
|
|
11673
|
-
var ref = unifyObjectStyle(_type, _payload);
|
|
11674
|
-
var type = ref.type;
|
|
11675
|
-
var payload = ref.payload;
|
|
11676
|
-
|
|
11677
|
-
var action = { type: type, payload: payload };
|
|
11678
|
-
var entry = this._actions[type];
|
|
11679
|
-
if (!entry) {
|
|
11680
|
-
if ((false)) {}
|
|
11681
|
-
return
|
|
11682
|
-
}
|
|
11683
|
-
|
|
11684
|
-
try {
|
|
11685
|
-
this._actionSubscribers
|
|
11686
|
-
.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
|
|
11687
|
-
.filter(function (sub) { return sub.before; })
|
|
11688
|
-
.forEach(function (sub) { return sub.before(action, this$1.state); });
|
|
11689
|
-
} catch (e) {
|
|
11690
|
-
if ((false)) {}
|
|
11691
|
-
}
|
|
11692
|
-
|
|
11693
|
-
var result = entry.length > 1
|
|
11694
|
-
? Promise.all(entry.map(function (handler) { return handler(payload); }))
|
|
11695
|
-
: entry[0](payload);
|
|
11696
|
-
|
|
11697
|
-
return new Promise(function (resolve, reject) {
|
|
11698
|
-
result.then(function (res) {
|
|
11699
|
-
try {
|
|
11700
|
-
this$1._actionSubscribers
|
|
11701
|
-
.filter(function (sub) { return sub.after; })
|
|
11702
|
-
.forEach(function (sub) { return sub.after(action, this$1.state); });
|
|
11703
|
-
} catch (e) {
|
|
11704
|
-
if ((false)) {}
|
|
11705
|
-
}
|
|
11706
|
-
resolve(res);
|
|
11707
|
-
}, function (error) {
|
|
11708
|
-
try {
|
|
11709
|
-
this$1._actionSubscribers
|
|
11710
|
-
.filter(function (sub) { return sub.error; })
|
|
11711
|
-
.forEach(function (sub) { return sub.error(action, this$1.state, error); });
|
|
11712
|
-
} catch (e) {
|
|
11713
|
-
if ((false)) {}
|
|
11714
|
-
}
|
|
11715
|
-
reject(error);
|
|
11716
|
-
});
|
|
11717
|
-
})
|
|
11718
|
-
};
|
|
11719
|
-
|
|
11720
|
-
Store.prototype.subscribe = function subscribe (fn, options) {
|
|
11721
|
-
return genericSubscribe(fn, this._subscribers, options)
|
|
11722
|
-
};
|
|
11723
|
-
|
|
11724
|
-
Store.prototype.subscribeAction = function subscribeAction (fn, options) {
|
|
11725
|
-
var subs = typeof fn === 'function' ? { before: fn } : fn;
|
|
11726
|
-
return genericSubscribe(subs, this._actionSubscribers, options)
|
|
11727
|
-
};
|
|
11728
|
-
|
|
11729
|
-
Store.prototype.watch = function watch (getter, cb, options) {
|
|
11730
|
-
var this$1 = this;
|
|
11731
|
-
|
|
11732
|
-
if ((false)) {}
|
|
11733
|
-
return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
|
|
11734
|
-
};
|
|
11735
|
-
|
|
11736
|
-
Store.prototype.replaceState = function replaceState (state) {
|
|
11737
|
-
var this$1 = this;
|
|
11738
|
-
|
|
11739
|
-
this._withCommit(function () {
|
|
11740
|
-
this$1._vm._data.$$state = state;
|
|
11741
|
-
});
|
|
11742
|
-
};
|
|
11743
|
-
|
|
11744
|
-
Store.prototype.registerModule = function registerModule (path, rawModule, options) {
|
|
11745
|
-
if ( options === void 0 ) options = {};
|
|
11746
|
-
|
|
11747
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11748
|
-
|
|
11749
|
-
if ((false)) {}
|
|
11750
|
-
|
|
11751
|
-
this._modules.register(path, rawModule);
|
|
11752
|
-
installModule(this, this.state, path, this._modules.get(path), options.preserveState);
|
|
11753
|
-
// reset store to update getters...
|
|
11754
|
-
resetStoreVM(this, this.state);
|
|
11755
|
-
};
|
|
11756
|
-
|
|
11757
|
-
Store.prototype.unregisterModule = function unregisterModule (path) {
|
|
11758
|
-
var this$1 = this;
|
|
11759
|
-
|
|
11760
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11761
|
-
|
|
11762
|
-
if ((false)) {}
|
|
11763
|
-
|
|
11764
|
-
this._modules.unregister(path);
|
|
11765
|
-
this._withCommit(function () {
|
|
11766
|
-
var parentState = getNestedState(this$1.state, path.slice(0, -1));
|
|
11767
|
-
Vue.delete(parentState, path[path.length - 1]);
|
|
11768
|
-
});
|
|
11769
|
-
resetStore(this);
|
|
11770
|
-
};
|
|
11771
|
-
|
|
11772
|
-
Store.prototype.hasModule = function hasModule (path) {
|
|
11773
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11774
|
-
|
|
11775
|
-
if ((false)) {}
|
|
11776
|
-
|
|
11777
|
-
return this._modules.isRegistered(path)
|
|
11778
|
-
};
|
|
11779
|
-
|
|
11780
|
-
Store.prototype.hotUpdate = function hotUpdate (newOptions) {
|
|
11781
|
-
this._modules.update(newOptions);
|
|
11782
|
-
resetStore(this, true);
|
|
11783
|
-
};
|
|
11784
|
-
|
|
11785
|
-
Store.prototype._withCommit = function _withCommit (fn) {
|
|
11786
|
-
var committing = this._committing;
|
|
11787
|
-
this._committing = true;
|
|
11788
|
-
fn();
|
|
11789
|
-
this._committing = committing;
|
|
11790
|
-
};
|
|
11791
|
-
|
|
11792
|
-
Object.defineProperties( Store.prototype, prototypeAccessors$1 );
|
|
11793
|
-
|
|
11794
|
-
function genericSubscribe (fn, subs, options) {
|
|
11795
|
-
if (subs.indexOf(fn) < 0) {
|
|
11796
|
-
options && options.prepend
|
|
11797
|
-
? subs.unshift(fn)
|
|
11798
|
-
: subs.push(fn);
|
|
11799
|
-
}
|
|
11800
|
-
return function () {
|
|
11801
|
-
var i = subs.indexOf(fn);
|
|
11802
|
-
if (i > -1) {
|
|
11803
|
-
subs.splice(i, 1);
|
|
11804
|
-
}
|
|
11805
|
-
}
|
|
11806
|
-
}
|
|
11807
|
-
|
|
11808
|
-
function resetStore (store, hot) {
|
|
11809
|
-
store._actions = Object.create(null);
|
|
11810
|
-
store._mutations = Object.create(null);
|
|
11811
|
-
store._wrappedGetters = Object.create(null);
|
|
11812
|
-
store._modulesNamespaceMap = Object.create(null);
|
|
11813
|
-
var state = store.state;
|
|
11814
|
-
// init all modules
|
|
11815
|
-
installModule(store, state, [], store._modules.root, true);
|
|
11816
|
-
// reset vm
|
|
11817
|
-
resetStoreVM(store, state, hot);
|
|
11818
|
-
}
|
|
11819
|
-
|
|
11820
|
-
function resetStoreVM (store, state, hot) {
|
|
11821
|
-
var oldVm = store._vm;
|
|
11822
|
-
|
|
11823
|
-
// bind store public getters
|
|
11824
|
-
store.getters = {};
|
|
11825
|
-
// reset local getters cache
|
|
11826
|
-
store._makeLocalGettersCache = Object.create(null);
|
|
11827
|
-
var wrappedGetters = store._wrappedGetters;
|
|
11828
|
-
var computed = {};
|
|
11829
|
-
forEachValue(wrappedGetters, function (fn, key) {
|
|
11830
|
-
// use computed to leverage its lazy-caching mechanism
|
|
11831
|
-
// direct inline function use will lead to closure preserving oldVm.
|
|
11832
|
-
// using partial to return function with only arguments preserved in closure environment.
|
|
11833
|
-
computed[key] = partial(fn, store);
|
|
11834
|
-
Object.defineProperty(store.getters, key, {
|
|
11835
|
-
get: function () { return store._vm[key]; },
|
|
11836
|
-
enumerable: true // for local getters
|
|
11837
|
-
});
|
|
11838
|
-
});
|
|
11839
|
-
|
|
11840
|
-
// use a Vue instance to store the state tree
|
|
11841
|
-
// suppress warnings just in case the user has added
|
|
11842
|
-
// some funky global mixins
|
|
11843
|
-
var silent = Vue.config.silent;
|
|
11844
|
-
Vue.config.silent = true;
|
|
11845
|
-
store._vm = new Vue({
|
|
11846
|
-
data: {
|
|
11847
|
-
$$state: state
|
|
11848
|
-
},
|
|
11849
|
-
computed: computed
|
|
11850
|
-
});
|
|
11851
|
-
Vue.config.silent = silent;
|
|
11852
|
-
|
|
11853
|
-
// enable strict mode for new vm
|
|
11854
|
-
if (store.strict) {
|
|
11855
|
-
enableStrictMode(store);
|
|
11856
|
-
}
|
|
11857
|
-
|
|
11858
|
-
if (oldVm) {
|
|
11859
|
-
if (hot) {
|
|
11860
|
-
// dispatch changes in all subscribed watchers
|
|
11861
|
-
// to force getter re-evaluation for hot reloading.
|
|
11862
|
-
store._withCommit(function () {
|
|
11863
|
-
oldVm._data.$$state = null;
|
|
11864
|
-
});
|
|
11865
|
-
}
|
|
11866
|
-
Vue.nextTick(function () { return oldVm.$destroy(); });
|
|
11867
|
-
}
|
|
11868
|
-
}
|
|
11869
|
-
|
|
11870
|
-
function installModule (store, rootState, path, module, hot) {
|
|
11871
|
-
var isRoot = !path.length;
|
|
11872
|
-
var namespace = store._modules.getNamespace(path);
|
|
11873
|
-
|
|
11874
|
-
// register in namespace map
|
|
11875
|
-
if (module.namespaced) {
|
|
11876
|
-
if (store._modulesNamespaceMap[namespace] && ("production" !== 'production')) {
|
|
11877
|
-
console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
|
|
11878
|
-
}
|
|
11879
|
-
store._modulesNamespaceMap[namespace] = module;
|
|
11880
|
-
}
|
|
11881
|
-
|
|
11882
|
-
// set state
|
|
11883
|
-
if (!isRoot && !hot) {
|
|
11884
|
-
var parentState = getNestedState(rootState, path.slice(0, -1));
|
|
11885
|
-
var moduleName = path[path.length - 1];
|
|
11886
|
-
store._withCommit(function () {
|
|
11887
|
-
if ((false)) {}
|
|
11888
|
-
Vue.set(parentState, moduleName, module.state);
|
|
11889
|
-
});
|
|
11890
|
-
}
|
|
11891
|
-
|
|
11892
|
-
var local = module.context = makeLocalContext(store, namespace, path);
|
|
11893
|
-
|
|
11894
|
-
module.forEachMutation(function (mutation, key) {
|
|
11895
|
-
var namespacedType = namespace + key;
|
|
11896
|
-
registerMutation(store, namespacedType, mutation, local);
|
|
11897
|
-
});
|
|
11898
|
-
|
|
11899
|
-
module.forEachAction(function (action, key) {
|
|
11900
|
-
var type = action.root ? key : namespace + key;
|
|
11901
|
-
var handler = action.handler || action;
|
|
11902
|
-
registerAction(store, type, handler, local);
|
|
11903
|
-
});
|
|
11904
|
-
|
|
11905
|
-
module.forEachGetter(function (getter, key) {
|
|
11906
|
-
var namespacedType = namespace + key;
|
|
11907
|
-
registerGetter(store, namespacedType, getter, local);
|
|
11908
|
-
});
|
|
11909
|
-
|
|
11910
|
-
module.forEachChild(function (child, key) {
|
|
11911
|
-
installModule(store, rootState, path.concat(key), child, hot);
|
|
11912
|
-
});
|
|
11913
|
-
}
|
|
11914
|
-
|
|
11915
|
-
/**
|
|
11916
|
-
* make localized dispatch, commit, getters and state
|
|
11917
|
-
* if there is no namespace, just use root ones
|
|
11918
|
-
*/
|
|
11919
|
-
function makeLocalContext (store, namespace, path) {
|
|
11920
|
-
var noNamespace = namespace === '';
|
|
11921
|
-
|
|
11922
|
-
var local = {
|
|
11923
|
-
dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
|
|
11924
|
-
var args = unifyObjectStyle(_type, _payload, _options);
|
|
11925
|
-
var payload = args.payload;
|
|
11926
|
-
var options = args.options;
|
|
11927
|
-
var type = args.type;
|
|
11928
|
-
|
|
11929
|
-
if (!options || !options.root) {
|
|
11930
|
-
type = namespace + type;
|
|
11931
|
-
if (false) {}
|
|
11932
|
-
}
|
|
11933
|
-
|
|
11934
|
-
return store.dispatch(type, payload)
|
|
11935
|
-
},
|
|
11936
|
-
|
|
11937
|
-
commit: noNamespace ? store.commit : function (_type, _payload, _options) {
|
|
11938
|
-
var args = unifyObjectStyle(_type, _payload, _options);
|
|
11939
|
-
var payload = args.payload;
|
|
11940
|
-
var options = args.options;
|
|
11941
|
-
var type = args.type;
|
|
11942
|
-
|
|
11943
|
-
if (!options || !options.root) {
|
|
11944
|
-
type = namespace + type;
|
|
11945
|
-
if (false) {}
|
|
11946
|
-
}
|
|
11947
|
-
|
|
11948
|
-
store.commit(type, payload, options);
|
|
11949
|
-
}
|
|
11950
|
-
};
|
|
11951
|
-
|
|
11952
|
-
// getters and state object must be gotten lazily
|
|
11953
|
-
// because they will be changed by vm update
|
|
11954
|
-
Object.defineProperties(local, {
|
|
11955
|
-
getters: {
|
|
11956
|
-
get: noNamespace
|
|
11957
|
-
? function () { return store.getters; }
|
|
11958
|
-
: function () { return makeLocalGetters(store, namespace); }
|
|
11959
|
-
},
|
|
11960
|
-
state: {
|
|
11961
|
-
get: function () { return getNestedState(store.state, path); }
|
|
11962
|
-
}
|
|
11963
|
-
});
|
|
11964
|
-
|
|
11965
|
-
return local
|
|
11966
|
-
}
|
|
11967
|
-
|
|
11968
|
-
function makeLocalGetters (store, namespace) {
|
|
11969
|
-
if (!store._makeLocalGettersCache[namespace]) {
|
|
11970
|
-
var gettersProxy = {};
|
|
11971
|
-
var splitPos = namespace.length;
|
|
11972
|
-
Object.keys(store.getters).forEach(function (type) {
|
|
11973
|
-
// skip if the target getter is not match this namespace
|
|
11974
|
-
if (type.slice(0, splitPos) !== namespace) { return }
|
|
11975
|
-
|
|
11976
|
-
// extract local getter type
|
|
11977
|
-
var localType = type.slice(splitPos);
|
|
11978
|
-
|
|
11979
|
-
// Add a port to the getters proxy.
|
|
11980
|
-
// Define as getter property because
|
|
11981
|
-
// we do not want to evaluate the getters in this time.
|
|
11982
|
-
Object.defineProperty(gettersProxy, localType, {
|
|
11983
|
-
get: function () { return store.getters[type]; },
|
|
11984
|
-
enumerable: true
|
|
11985
|
-
});
|
|
11986
|
-
});
|
|
11987
|
-
store._makeLocalGettersCache[namespace] = gettersProxy;
|
|
11988
|
-
}
|
|
11989
|
-
|
|
11990
|
-
return store._makeLocalGettersCache[namespace]
|
|
11991
|
-
}
|
|
11992
|
-
|
|
11993
|
-
function registerMutation (store, type, handler, local) {
|
|
11994
|
-
var entry = store._mutations[type] || (store._mutations[type] = []);
|
|
11995
|
-
entry.push(function wrappedMutationHandler (payload) {
|
|
11996
|
-
handler.call(store, local.state, payload);
|
|
11997
|
-
});
|
|
11998
|
-
}
|
|
11999
|
-
|
|
12000
|
-
function registerAction (store, type, handler, local) {
|
|
12001
|
-
var entry = store._actions[type] || (store._actions[type] = []);
|
|
12002
|
-
entry.push(function wrappedActionHandler (payload) {
|
|
12003
|
-
var res = handler.call(store, {
|
|
12004
|
-
dispatch: local.dispatch,
|
|
12005
|
-
commit: local.commit,
|
|
12006
|
-
getters: local.getters,
|
|
12007
|
-
state: local.state,
|
|
12008
|
-
rootGetters: store.getters,
|
|
12009
|
-
rootState: store.state
|
|
12010
|
-
}, payload);
|
|
12011
|
-
if (!isPromise(res)) {
|
|
12012
|
-
res = Promise.resolve(res);
|
|
12013
|
-
}
|
|
12014
|
-
if (store._devtoolHook) {
|
|
12015
|
-
return res.catch(function (err) {
|
|
12016
|
-
store._devtoolHook.emit('vuex:error', err);
|
|
12017
|
-
throw err
|
|
12018
|
-
})
|
|
12019
|
-
} else {
|
|
12020
|
-
return res
|
|
12021
|
-
}
|
|
12022
|
-
});
|
|
12023
|
-
}
|
|
12024
|
-
|
|
12025
|
-
function registerGetter (store, type, rawGetter, local) {
|
|
12026
|
-
if (store._wrappedGetters[type]) {
|
|
12027
|
-
if ((false)) {}
|
|
12028
|
-
return
|
|
12029
|
-
}
|
|
12030
|
-
store._wrappedGetters[type] = function wrappedGetter (store) {
|
|
12031
|
-
return rawGetter(
|
|
12032
|
-
local.state, // local state
|
|
12033
|
-
local.getters, // local getters
|
|
12034
|
-
store.state, // root state
|
|
12035
|
-
store.getters // root getters
|
|
12036
|
-
)
|
|
12037
|
-
};
|
|
12038
|
-
}
|
|
12039
|
-
|
|
12040
|
-
function enableStrictMode (store) {
|
|
12041
|
-
store._vm.$watch(function () { return this._data.$$state }, function () {
|
|
12042
|
-
if ((false)) {}
|
|
12043
|
-
}, { deep: true, sync: true });
|
|
12044
|
-
}
|
|
12045
|
-
|
|
12046
|
-
function getNestedState (state, path) {
|
|
12047
|
-
return path.reduce(function (state, key) { return state[key]; }, state)
|
|
12048
|
-
}
|
|
12049
|
-
|
|
12050
|
-
function unifyObjectStyle (type, payload, options) {
|
|
12051
|
-
if (isObject(type) && type.type) {
|
|
12052
|
-
options = payload;
|
|
12053
|
-
payload = type;
|
|
12054
|
-
type = type.type;
|
|
12055
|
-
}
|
|
12056
|
-
|
|
12057
|
-
if ((false)) {}
|
|
12058
|
-
|
|
12059
|
-
return { type: type, payload: payload, options: options }
|
|
12060
|
-
}
|
|
12061
|
-
|
|
12062
|
-
function install (_Vue) {
|
|
12063
|
-
if (Vue && _Vue === Vue) {
|
|
12064
|
-
if ((false)) {}
|
|
12065
|
-
return
|
|
12066
|
-
}
|
|
12067
|
-
Vue = _Vue;
|
|
12068
|
-
applyMixin(Vue);
|
|
12069
|
-
}
|
|
12070
|
-
|
|
12071
|
-
/**
|
|
12072
|
-
* Reduce the code which written in Vue.js for getting the state.
|
|
12073
|
-
* @param {String} [namespace] - Module's namespace
|
|
12074
|
-
* @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
|
|
12075
|
-
* @param {Object}
|
|
12076
|
-
*/
|
|
12077
|
-
var mapState = normalizeNamespace(function (namespace, states) {
|
|
12078
|
-
var res = {};
|
|
12079
|
-
if (false) {}
|
|
12080
|
-
normalizeMap(states).forEach(function (ref) {
|
|
12081
|
-
var key = ref.key;
|
|
12082
|
-
var val = ref.val;
|
|
12083
|
-
|
|
12084
|
-
res[key] = function mappedState () {
|
|
12085
|
-
var state = this.$store.state;
|
|
12086
|
-
var getters = this.$store.getters;
|
|
12087
|
-
if (namespace) {
|
|
12088
|
-
var module = getModuleByNamespace(this.$store, 'mapState', namespace);
|
|
12089
|
-
if (!module) {
|
|
12090
|
-
return
|
|
12091
|
-
}
|
|
12092
|
-
state = module.context.state;
|
|
12093
|
-
getters = module.context.getters;
|
|
12094
|
-
}
|
|
12095
|
-
return typeof val === 'function'
|
|
12096
|
-
? val.call(this, state, getters)
|
|
12097
|
-
: state[val]
|
|
12098
|
-
};
|
|
12099
|
-
// mark vuex getter for devtools
|
|
12100
|
-
res[key].vuex = true;
|
|
12101
|
-
});
|
|
12102
|
-
return res
|
|
12103
|
-
});
|
|
12104
|
-
|
|
12105
|
-
/**
|
|
12106
|
-
* Reduce the code which written in Vue.js for committing the mutation
|
|
12107
|
-
* @param {String} [namespace] - Module's namespace
|
|
12108
|
-
* @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
|
12109
|
-
* @return {Object}
|
|
12110
|
-
*/
|
|
12111
|
-
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
|
12112
|
-
var res = {};
|
|
12113
|
-
if (false) {}
|
|
12114
|
-
normalizeMap(mutations).forEach(function (ref) {
|
|
12115
|
-
var key = ref.key;
|
|
12116
|
-
var val = ref.val;
|
|
12117
|
-
|
|
12118
|
-
res[key] = function mappedMutation () {
|
|
12119
|
-
var args = [], len = arguments.length;
|
|
12120
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
12121
|
-
|
|
12122
|
-
// Get the commit method from store
|
|
12123
|
-
var commit = this.$store.commit;
|
|
12124
|
-
if (namespace) {
|
|
12125
|
-
var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
|
|
12126
|
-
if (!module) {
|
|
12127
|
-
return
|
|
12128
|
-
}
|
|
12129
|
-
commit = module.context.commit;
|
|
12130
|
-
}
|
|
12131
|
-
return typeof val === 'function'
|
|
12132
|
-
? val.apply(this, [commit].concat(args))
|
|
12133
|
-
: commit.apply(this.$store, [val].concat(args))
|
|
12134
|
-
};
|
|
12135
|
-
});
|
|
12136
|
-
return res
|
|
12137
|
-
});
|
|
12138
|
-
|
|
12139
|
-
/**
|
|
12140
|
-
* Reduce the code which written in Vue.js for getting the getters
|
|
12141
|
-
* @param {String} [namespace] - Module's namespace
|
|
12142
|
-
* @param {Object|Array} getters
|
|
12143
|
-
* @return {Object}
|
|
12144
|
-
*/
|
|
12145
|
-
var mapGetters = normalizeNamespace(function (namespace, getters) {
|
|
12146
|
-
var res = {};
|
|
12147
|
-
if (false) {}
|
|
12148
|
-
normalizeMap(getters).forEach(function (ref) {
|
|
12149
|
-
var key = ref.key;
|
|
12150
|
-
var val = ref.val;
|
|
12151
|
-
|
|
12152
|
-
// The namespace has been mutated by normalizeNamespace
|
|
12153
|
-
val = namespace + val;
|
|
12154
|
-
res[key] = function mappedGetter () {
|
|
12155
|
-
if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
|
|
12156
|
-
return
|
|
12157
|
-
}
|
|
12158
|
-
if (false) {}
|
|
12159
|
-
return this.$store.getters[val]
|
|
12160
|
-
};
|
|
12161
|
-
// mark vuex getter for devtools
|
|
12162
|
-
res[key].vuex = true;
|
|
12163
|
-
});
|
|
12164
|
-
return res
|
|
12165
|
-
});
|
|
12166
|
-
|
|
12167
|
-
/**
|
|
12168
|
-
* Reduce the code which written in Vue.js for dispatch the action
|
|
12169
|
-
* @param {String} [namespace] - Module's namespace
|
|
12170
|
-
* @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
|
|
12171
|
-
* @return {Object}
|
|
12172
|
-
*/
|
|
12173
|
-
var mapActions = normalizeNamespace(function (namespace, actions) {
|
|
12174
|
-
var res = {};
|
|
12175
|
-
if (false) {}
|
|
12176
|
-
normalizeMap(actions).forEach(function (ref) {
|
|
12177
|
-
var key = ref.key;
|
|
12178
|
-
var val = ref.val;
|
|
12179
|
-
|
|
12180
|
-
res[key] = function mappedAction () {
|
|
12181
|
-
var args = [], len = arguments.length;
|
|
12182
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
12183
|
-
|
|
12184
|
-
// get dispatch function from store
|
|
12185
|
-
var dispatch = this.$store.dispatch;
|
|
12186
|
-
if (namespace) {
|
|
12187
|
-
var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
|
|
12188
|
-
if (!module) {
|
|
12189
|
-
return
|
|
12190
|
-
}
|
|
12191
|
-
dispatch = module.context.dispatch;
|
|
12192
|
-
}
|
|
12193
|
-
return typeof val === 'function'
|
|
12194
|
-
? val.apply(this, [dispatch].concat(args))
|
|
12195
|
-
: dispatch.apply(this.$store, [val].concat(args))
|
|
12196
|
-
};
|
|
12197
|
-
});
|
|
12198
|
-
return res
|
|
12199
|
-
});
|
|
12200
|
-
|
|
12201
|
-
/**
|
|
12202
|
-
* Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
|
|
12203
|
-
* @param {String} namespace
|
|
12204
|
-
* @return {Object}
|
|
12205
|
-
*/
|
|
12206
|
-
var createNamespacedHelpers = function (namespace) { return ({
|
|
12207
|
-
mapState: mapState.bind(null, namespace),
|
|
12208
|
-
mapGetters: mapGetters.bind(null, namespace),
|
|
12209
|
-
mapMutations: mapMutations.bind(null, namespace),
|
|
12210
|
-
mapActions: mapActions.bind(null, namespace)
|
|
12211
|
-
}); };
|
|
12212
|
-
|
|
12213
|
-
/**
|
|
12214
|
-
* Normalize the map
|
|
12215
|
-
* normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
|
|
12216
|
-
* normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
|
|
12217
|
-
* @param {Array|Object} map
|
|
12218
|
-
* @return {Object}
|
|
12219
|
-
*/
|
|
12220
|
-
function normalizeMap (map) {
|
|
12221
|
-
if (!isValidMap(map)) {
|
|
12222
|
-
return []
|
|
12223
|
-
}
|
|
12224
|
-
return Array.isArray(map)
|
|
12225
|
-
? map.map(function (key) { return ({ key: key, val: key }); })
|
|
12226
|
-
: Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
|
|
12227
|
-
}
|
|
12228
|
-
|
|
12229
|
-
/**
|
|
12230
|
-
* Validate whether given map is valid or not
|
|
12231
|
-
* @param {*} map
|
|
12232
|
-
* @return {Boolean}
|
|
12233
|
-
*/
|
|
12234
|
-
function isValidMap (map) {
|
|
12235
|
-
return Array.isArray(map) || isObject(map)
|
|
12236
|
-
}
|
|
12237
|
-
|
|
12238
|
-
/**
|
|
12239
|
-
* Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
|
|
12240
|
-
* @param {Function} fn
|
|
12241
|
-
* @return {Function}
|
|
12242
|
-
*/
|
|
12243
|
-
function normalizeNamespace (fn) {
|
|
12244
|
-
return function (namespace, map) {
|
|
12245
|
-
if (typeof namespace !== 'string') {
|
|
12246
|
-
map = namespace;
|
|
12247
|
-
namespace = '';
|
|
12248
|
-
} else if (namespace.charAt(namespace.length - 1) !== '/') {
|
|
12249
|
-
namespace += '/';
|
|
12250
|
-
}
|
|
12251
|
-
return fn(namespace, map)
|
|
12252
|
-
}
|
|
12253
|
-
}
|
|
12254
|
-
|
|
12255
|
-
/**
|
|
12256
|
-
* Search a special module from store by namespace. if module not exist, print error message.
|
|
12257
|
-
* @param {Object} store
|
|
12258
|
-
* @param {String} helper
|
|
12259
|
-
* @param {String} namespace
|
|
12260
|
-
* @return {Object}
|
|
12261
|
-
*/
|
|
12262
|
-
function getModuleByNamespace (store, helper, namespace) {
|
|
12263
|
-
var module = store._modulesNamespaceMap[namespace];
|
|
12264
|
-
if (false) {}
|
|
12265
|
-
return module
|
|
12266
|
-
}
|
|
12267
|
-
|
|
12268
|
-
// Credits: borrowed code from fcomb/redux-logger
|
|
12269
|
-
|
|
12270
|
-
function createLogger (ref) {
|
|
12271
|
-
if ( ref === void 0 ) ref = {};
|
|
12272
|
-
var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
|
|
12273
|
-
var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
|
|
12274
|
-
var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
|
|
12275
|
-
var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
|
|
12276
|
-
var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
|
|
12277
|
-
var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
|
|
12278
|
-
var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
|
|
12279
|
-
var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
|
|
12280
|
-
var logger = ref.logger; if ( logger === void 0 ) logger = console;
|
|
12281
|
-
|
|
12282
|
-
return function (store) {
|
|
12283
|
-
var prevState = deepCopy(store.state);
|
|
12284
|
-
|
|
12285
|
-
if (typeof logger === 'undefined') {
|
|
12286
|
-
return
|
|
12287
|
-
}
|
|
12288
|
-
|
|
12289
|
-
if (logMutations) {
|
|
12290
|
-
store.subscribe(function (mutation, state) {
|
|
12291
|
-
var nextState = deepCopy(state);
|
|
12292
|
-
|
|
12293
|
-
if (filter(mutation, prevState, nextState)) {
|
|
12294
|
-
var formattedTime = getFormattedTime();
|
|
12295
|
-
var formattedMutation = mutationTransformer(mutation);
|
|
12296
|
-
var message = "mutation " + (mutation.type) + formattedTime;
|
|
12297
|
-
|
|
12298
|
-
startMessage(logger, message, collapsed);
|
|
12299
|
-
logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
|
|
12300
|
-
logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
|
|
12301
|
-
logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
|
|
12302
|
-
endMessage(logger);
|
|
12303
|
-
}
|
|
12304
|
-
|
|
12305
|
-
prevState = nextState;
|
|
12306
|
-
});
|
|
12307
|
-
}
|
|
12308
|
-
|
|
12309
|
-
if (logActions) {
|
|
12310
|
-
store.subscribeAction(function (action, state) {
|
|
12311
|
-
if (actionFilter(action, state)) {
|
|
12312
|
-
var formattedTime = getFormattedTime();
|
|
12313
|
-
var formattedAction = actionTransformer(action);
|
|
12314
|
-
var message = "action " + (action.type) + formattedTime;
|
|
12315
|
-
|
|
12316
|
-
startMessage(logger, message, collapsed);
|
|
12317
|
-
logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
|
|
12318
|
-
endMessage(logger);
|
|
12319
|
-
}
|
|
12320
|
-
});
|
|
12321
|
-
}
|
|
12322
|
-
}
|
|
12323
|
-
}
|
|
12324
|
-
|
|
12325
|
-
function startMessage (logger, message, collapsed) {
|
|
12326
|
-
var startMessage = collapsed
|
|
12327
|
-
? logger.groupCollapsed
|
|
12328
|
-
: logger.group;
|
|
12329
|
-
|
|
12330
|
-
// render
|
|
12331
|
-
try {
|
|
12332
|
-
startMessage.call(logger, message);
|
|
12333
|
-
} catch (e) {
|
|
12334
|
-
logger.log(message);
|
|
12335
|
-
}
|
|
12336
|
-
}
|
|
12337
|
-
|
|
12338
|
-
function endMessage (logger) {
|
|
12339
|
-
try {
|
|
12340
|
-
logger.groupEnd();
|
|
12341
|
-
} catch (e) {
|
|
12342
|
-
logger.log('—— log end ——');
|
|
12343
|
-
}
|
|
12344
|
-
}
|
|
12345
|
-
|
|
12346
|
-
function getFormattedTime () {
|
|
12347
|
-
var time = new Date();
|
|
12348
|
-
return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
|
|
12349
|
-
}
|
|
12350
|
-
|
|
12351
|
-
function repeat (str, times) {
|
|
12352
|
-
return (new Array(times + 1)).join(str)
|
|
12353
|
-
}
|
|
12354
|
-
|
|
12355
|
-
function pad (num, maxLength) {
|
|
12356
|
-
return repeat('0', maxLength - num.toString().length) + num
|
|
12357
|
-
}
|
|
12358
|
-
|
|
12359
|
-
var index = {
|
|
12360
|
-
Store: Store,
|
|
12361
|
-
install: install,
|
|
12362
|
-
version: '3.6.2',
|
|
12363
|
-
mapState: mapState,
|
|
12364
|
-
mapMutations: mapMutations,
|
|
12365
|
-
mapGetters: mapGetters,
|
|
12366
|
-
mapActions: mapActions,
|
|
12367
|
-
createNamespacedHelpers: createNamespacedHelpers,
|
|
12368
|
-
createLogger: createLogger
|
|
12369
|
-
};
|
|
12370
|
-
|
|
12371
|
-
/* harmony default export */ __webpack_exports__["a"] = (index);
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
12375
|
-
|
|
12376
11202
|
/***/ }),
|
|
12377
11203
|
|
|
12378
11204
|
/***/ "2f9a":
|
|
@@ -41698,6 +40524,20 @@ module.exports = __webpack_require__("8bbf");
|
|
|
41698
40524
|
/* unused harmony reexport * */
|
|
41699
40525
|
|
|
41700
40526
|
|
|
40527
|
+
/***/ }),
|
|
40528
|
+
|
|
40529
|
+
/***/ "75dd":
|
|
40530
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
40531
|
+
|
|
40532
|
+
// Imports
|
|
40533
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
40534
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
40535
|
+
// Module
|
|
40536
|
+
exports.push([module.i, ".dialog-cache-wrap[data-v-21351126]{top:56px;left:0;z-index:4;width:100vw;height:auto;position:fixed;box-sizing:border-box;background:var(--bg-white);padding:calc(var(--padding-4)*2);box-shadow:0 2px 12px 0 rgba(0,0,0,.3)}.dialog-cache-wrap .dialog-no-cache[data-v-21351126]{width:100%;height:auto;display:flex;align-items:center;flex-flow:row nowrap;justify-content:center}", ""]);
|
|
40537
|
+
// Exports
|
|
40538
|
+
module.exports = exports;
|
|
40539
|
+
|
|
40540
|
+
|
|
41701
40541
|
/***/ }),
|
|
41702
40542
|
|
|
41703
40543
|
/***/ "76b9":
|
|
@@ -48499,22 +47339,6 @@ exports.push([module.i, ".base-time-type-select-wrap[data-v-975a3516]{width:auto
|
|
|
48499
47339
|
module.exports = exports;
|
|
48500
47340
|
|
|
48501
47341
|
|
|
48502
|
-
/***/ }),
|
|
48503
|
-
|
|
48504
|
-
/***/ "92d3":
|
|
48505
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
48506
|
-
|
|
48507
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
48508
|
-
|
|
48509
|
-
// load the styles
|
|
48510
|
-
var content = __webpack_require__("bacb");
|
|
48511
|
-
if(content.__esModule) content = content.default;
|
|
48512
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
48513
|
-
if(content.locals) module.exports = content.locals;
|
|
48514
|
-
// add the styles to the DOM
|
|
48515
|
-
var add = __webpack_require__("499e").default
|
|
48516
|
-
var update = add("66f1c524", content, true, {"sourceMap":false,"shadowMode":false});
|
|
48517
|
-
|
|
48518
47342
|
/***/ }),
|
|
48519
47343
|
|
|
48520
47344
|
/***/ "92f0":
|
|
@@ -51582,22 +50406,6 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
51582
50406
|
module.exports = isForced;
|
|
51583
50407
|
|
|
51584
50408
|
|
|
51585
|
-
/***/ }),
|
|
51586
|
-
|
|
51587
|
-
/***/ "94e0":
|
|
51588
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
51589
|
-
|
|
51590
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
51591
|
-
|
|
51592
|
-
// load the styles
|
|
51593
|
-
var content = __webpack_require__("d139");
|
|
51594
|
-
if(content.__esModule) content = content.default;
|
|
51595
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
51596
|
-
if(content.locals) module.exports = content.locals;
|
|
51597
|
-
// add the styles to the DOM
|
|
51598
|
-
var add = __webpack_require__("499e").default
|
|
51599
|
-
var update = add("148a590e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
51600
|
-
|
|
51601
50409
|
/***/ }),
|
|
51602
50410
|
|
|
51603
50411
|
/***/ "94f4":
|
|
@@ -59034,6 +57842,22 @@ var isDefined = exports.isDefined = function isDefined(val) {
|
|
|
59034
57842
|
|
|
59035
57843
|
/***/ }),
|
|
59036
57844
|
|
|
57845
|
+
/***/ "a7aa":
|
|
57846
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
57847
|
+
|
|
57848
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
57849
|
+
|
|
57850
|
+
// load the styles
|
|
57851
|
+
var content = __webpack_require__("75dd");
|
|
57852
|
+
if(content.__esModule) content = content.default;
|
|
57853
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
57854
|
+
if(content.locals) module.exports = content.locals;
|
|
57855
|
+
// add the styles to the DOM
|
|
57856
|
+
var add = __webpack_require__("499e").default
|
|
57857
|
+
var update = add("32c3d952", content, true, {"sourceMap":false,"shadowMode":false});
|
|
57858
|
+
|
|
57859
|
+
/***/ }),
|
|
57860
|
+
|
|
59037
57861
|
/***/ "a7cc":
|
|
59038
57862
|
/***/ (function(module, exports, __webpack_require__) {
|
|
59039
57863
|
|
|
@@ -75589,20 +74413,6 @@ module.exports = __webpack_require__("5524").Object.assign;
|
|
|
75589
74413
|
module.exports = __webpack_require__("051b");
|
|
75590
74414
|
|
|
75591
74415
|
|
|
75592
|
-
/***/ }),
|
|
75593
|
-
|
|
75594
|
-
/***/ "bacb":
|
|
75595
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
75596
|
-
|
|
75597
|
-
// Imports
|
|
75598
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
75599
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
75600
|
-
// Module
|
|
75601
|
-
exports.push([module.i, ".dialog-cache-wrap[data-v-16d621a4]{top:56px;left:0;z-index:4;width:100vw;height:auto;position:fixed;box-sizing:border-box;background:var(--bg-white);padding:calc(var(--padding-4)*2);box-shadow:0 2px 12px 0 rgba(0,0,0,.3)}.dialog-cache-wrap .dialog-no-cache[data-v-16d621a4]{width:100%;height:auto;display:flex;align-items:center;flex-flow:row nowrap;justify-content:center}", ""]);
|
|
75602
|
-
// Exports
|
|
75603
|
-
module.exports = exports;
|
|
75604
|
-
|
|
75605
|
-
|
|
75606
74416
|
/***/ }),
|
|
75607
74417
|
|
|
75608
74418
|
/***/ "bc1c":
|
|
@@ -85945,20 +84755,6 @@ module.exports = function (namespace, method) {
|
|
|
85945
84755
|
};
|
|
85946
84756
|
|
|
85947
84757
|
|
|
85948
|
-
/***/ }),
|
|
85949
|
-
|
|
85950
|
-
/***/ "d139":
|
|
85951
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
85952
|
-
|
|
85953
|
-
// Imports
|
|
85954
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
85955
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
85956
|
-
// Module
|
|
85957
|
-
exports.push([module.i, ".oa-pro-table-wrap[data-v-8becbaa0]{position:relative}.oa-pro-table-wrap .oa-pro-header-wrap[data-v-8becbaa0]{width:100%;background:inherit}.oa-pro-table-wrap .oa-pro-header-wrap .header-extend[data-v-8becbaa0]{display:flex;flex-flow:row nowrap;justify-content:flex-start;align-items:center;margin-right:var(--margin-5)}.oa-pro-table-wrap .table-suffix[data-v-8becbaa0]{top:0;right:0;width:40px;height:40px;display:flex;align-items:center;background:inherit;position:absolute;justify-content:center;flex-flow:row nowrap}.oa-pro-table-wrap[data-v-8becbaa0] .caret-wrapper{display:none}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0]{position:relative}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0] th{padding:0 0;background:var(--color-table-header)!important}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0] th .cell{padding-left:0!important;padding-right:0!important}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0] th .cell .el-checkbox{margin:0 var(--margin-5)}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0] td{padding:var(--padding-4)}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0] td .cell{padding-left:0!important;padding-right:0!important}.oa-pro-table-wrap .oa-pro-table[data-v-8becbaa0] td .cell .el-checkbox{margin:0 var(--margin-5)}.oa-pro-table-wrap .oa-pro-table .table-tooltip-wrap[data-v-8becbaa0]{z-index:-1;position:fixed;visibility:hidden}.oa-pro-table-wrap .oa-pro-table .cell-content-text[data-v-8becbaa0]{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--font-weight-g);color:var(--font-color-d)!important;font-size:var(--font-size-base)!important}.oa-pro-table-wrap .oa-pro-table .fun[data-v-8becbaa0],.oa-pro-table-wrap .oa-pro-table .primary[data-v-8becbaa0]{font-weight:var(--font-weight-g);color:var(--color-primary)!important;font-size:var(--font-size-base)!important}.oa-pro-table-wrap .oa-pro-table .fun[data-v-8becbaa0]{cursor:pointer}.oa-pro-table-wrap .oa-pro-table .fun[data-v-8becbaa0]:hover{text-decoration:underline}.oa-pro-table-wrap .oa-pro-table .warn[data-v-8becbaa0]{font-size:var(--font-size-base)!important;color:var(--color-warn)!important}.oa-pro-table-wrap .oa-pro-table .error[data-v-8becbaa0]{font-size:var(--font-size-base)!important;color:var(--color-error)!important}.oa-pro-table-wrap .oa-pro-table .success[data-v-8becbaa0]{font-size:var(--font-size-base)!important;color:var(--color-success)!important}.oa-pro-table-wrap .no-row-bordel[data-v-8becbaa0] .el-table__cell{border-bottom:none}.oa-pro-table-wrap .check-type-single[data-v-8becbaa0] th .el-checkbox{visibility:hidden}.oa-pro-table-wrap .oa-pro-table-footer[data-v-8becbaa0]{width:100%;background:inherit;box-sizing:border-box;padding-top:var(--padding-5)}.no-auth[data-v-8becbaa0]{display:flex;align-items:center;flex-flow:column nowrap;justify-content:center}", ""]);
|
|
85958
|
-
// Exports
|
|
85959
|
-
module.exports = exports;
|
|
85960
|
-
|
|
85961
|
-
|
|
85962
84758
|
/***/ }),
|
|
85963
84759
|
|
|
85964
84760
|
/***/ "d154":
|
|
@@ -95185,6 +93981,17 @@ module.exports = function (target, source, exceptions) {
|
|
|
95185
93981
|
};
|
|
95186
93982
|
|
|
95187
93983
|
|
|
93984
|
+
/***/ }),
|
|
93985
|
+
|
|
93986
|
+
/***/ "e94d":
|
|
93987
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
93988
|
+
|
|
93989
|
+
"use strict";
|
|
93990
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_21351126_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a7aa");
|
|
93991
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_21351126_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_21351126_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
93992
|
+
/* unused harmony reexport * */
|
|
93993
|
+
|
|
93994
|
+
|
|
95188
93995
|
/***/ }),
|
|
95189
93996
|
|
|
95190
93997
|
/***/ "e95e":
|
|
@@ -97234,6 +96041,22 @@ exports.push([module.i, ".el-select-dropdown__item{font-size:14px;padding:0 20px
|
|
|
97234
96041
|
module.exports = exports;
|
|
97235
96042
|
|
|
97236
96043
|
|
|
96044
|
+
/***/ }),
|
|
96045
|
+
|
|
96046
|
+
/***/ "f2d5":
|
|
96047
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
96048
|
+
|
|
96049
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
96050
|
+
|
|
96051
|
+
// load the styles
|
|
96052
|
+
var content = __webpack_require__("01ec");
|
|
96053
|
+
if(content.__esModule) content = content.default;
|
|
96054
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
96055
|
+
if(content.locals) module.exports = content.locals;
|
|
96056
|
+
// add the styles to the DOM
|
|
96057
|
+
var add = __webpack_require__("499e").default
|
|
96058
|
+
var update = add("041f3858", content, true, {"sourceMap":false,"shadowMode":false});
|
|
96059
|
+
|
|
97237
96060
|
/***/ }),
|
|
97238
96061
|
|
|
97239
96062
|
/***/ "f30b":
|
|
@@ -115632,8 +114455,8 @@ var dialogTablevue_type_template_id_a5739740_scoped_true_staticRenderFns = []
|
|
|
115632
114455
|
|
|
115633
114456
|
// CONCATENATED MODULE: ./packages/components/base/baseDialogTable/dialogTable.vue?vue&type=template&id=a5739740&scoped=true&
|
|
115634
114457
|
|
|
115635
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"693bc1e9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/proPageTable/oa_pro_table.vue?vue&type=template&id=
|
|
115636
|
-
var
|
|
114458
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"693bc1e9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/proPageTable/oa_pro_table.vue?vue&type=template&id=011f8739&scoped=true&
|
|
114459
|
+
var oa_pro_tablevue_type_template_id_011f8739_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isAuth)?_c('div',{staticClass:"oa-pro-table-wrap",style:({ height: _vm.height })},[(_vm.headerConfig)?_c('div',{staticClass:"oa-pro-header-wrap",style:({ height: ((_vm.config.headerHeight) + "px") })},[_c('oaProHeader',{attrs:{"headerText":_vm.headerConfig.headerText}},[_c('template',{slot:"prefix"},[_vm._t("prefix")],2),_c('div',{staticClass:"header-extend",attrs:{"slot":"headerExtend"},slot:"headerExtend"},[_vm._t("headerExtend")],2),_c('template',{slot:"suffix"},[_vm._t("suffix")],2)],2)],1):_vm._e(),_c('div',{staticClass:"oa-pro-table-search"},[_c('oa_pro_table_searchVue',{ref:"oaProTableSearch",attrs:{"screenList":_vm.screenList,"placeholder":_vm.placeholder,"proScreenList":_vm.proScreenList,"proScreenConfig":_vm._proScreenConfig},on:{"searchContentHeightChange":_vm.searchContentHeightChange},model:{value:(_vm.module),callback:function ($$v) {_vm.module=$$v},expression:"module"}},[_c('template',{slot:"table-search-extend"},[_vm._t("search-extend")],2)],2)],1),_c('div',{class:{
|
|
115637
114460
|
'oa-pro-table': true,
|
|
115638
114461
|
'check-type-single': _vm.tableCheckboxConfig.type == 'single',
|
|
115639
114462
|
'check-type-multiple': _vm.tableCheckboxConfig.type == 'multiple',
|
|
@@ -115648,10 +114471,10 @@ var oa_pro_tablevue_type_template_id_8becbaa0_scoped_true_render = function () {
|
|
|
115648
114471
|
item.fun ? 'fun' : '',
|
|
115649
114472
|
item.click ? 'primary' : '',
|
|
115650
114473
|
item.color ? item.color : '' ],on:{"click":function($event){return _vm.rowClick(item, scope.row)}}},[_vm._v(" "+_vm._s(scope.row[("" + (item.key))])+" ")])]}}],null,true)})})],2),(!_vm.isAverageWidth)?_c('div',{staticClass:"table-suffix"},[_c('oa_pro_colum_configVue',{attrs:{"config":_vm.tableConfig},on:{"setTableHeaderConfig":_vm.setTableHeaderConfig}})],1):_vm._e()],1),_c('div',{staticClass:"oa-pro-table-footer",style:({ height: ((_vm.config.footHeight) + "px") })},[_c('oa_pro_footerVue',{attrs:{"pageProps":_vm.pageProps,"totalList":_vm.totalList,"pageConfig":_vm.pageConfig}})],1),_c('base-dialog',{ref:"dialog",attrs:{"width":"1000px","title":"高级筛选","modal":_vm.proScreenModel,"modallAppendToBody":false}},[_c('oa_pro_screenVue',{attrs:{"slot":"dialog-content","proScreenList":_vm.proScreenList,"proScreenConfig":_vm._proScreenConfig},on:{"insertDefaultItem":_vm.insertDefaultItem,"deleteProscreenItem":_vm.deleteProscreenItem},slot:"dialog-content"}),_c('baseButtonHandle',{attrs:{"slot":"dialog-footer","size":"medium","config":_vm.footerHandleConfig},slot:"dialog-footer"})],1)],1):_c('div',{staticClass:"oa-pro-table-wrap no-auth"},[_c('baseDefaultSvgVue',{attrs:{"width":440,"height":440,"svgName":"404","text":"无权限查看该表格"}})],1)}
|
|
115651
|
-
var
|
|
114474
|
+
var oa_pro_tablevue_type_template_id_011f8739_scoped_true_staticRenderFns = []
|
|
115652
114475
|
|
|
115653
114476
|
|
|
115654
|
-
// CONCATENATED MODULE: ./packages/components/proPageTable/oa_pro_table.vue?vue&type=template&id=
|
|
114477
|
+
// CONCATENATED MODULE: ./packages/components/proPageTable/oa_pro_table.vue?vue&type=template&id=011f8739&scoped=true&
|
|
115655
114478
|
|
|
115656
114479
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
|
|
115657
114480
|
var es_array_reduce = __webpack_require__("13d5");
|
|
@@ -116630,26 +115453,13 @@ const dialogCacheStore = {
|
|
|
116630
115453
|
}
|
|
116631
115454
|
};
|
|
116632
115455
|
/* harmony default export */ var storeModule_dialogCacheStore = (dialogCacheStore);
|
|
116633
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"693bc1e9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/dialogCache/index.vue?vue&type=template&id=
|
|
116634
|
-
var
|
|
116635
|
-
var
|
|
116636
|
-
|
|
116637
|
-
|
|
116638
|
-
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=template&id=16d621a4&scoped=true&
|
|
115456
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"693bc1e9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/dialogCache/index.vue?vue&type=template&id=21351126&scoped=true&
|
|
115457
|
+
var dialogCachevue_type_template_id_21351126_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.getRenderShow),expression:"getRenderShow"},{name:"clickOutside",rawName:"v-clickOutside",value:(_vm.dialogCacheWrapOnBlue),expression:"dialogCacheWrapOnBlue"}],ref:"dialogCacheWrapRef",staticClass:"dialog-cache-wrap",attrs:{"tabindex":"0"}},[(_vm.getCacheList && _vm.getCacheList.length <= 0)?_c('div',{staticClass:"dialog-no-cache"},[_c('baseDefaultSvg',{attrs:{"width":100,"height":100,"text":"暂无缓存表单","svgName":"no-content"}})],1):_c('div',{staticClass:"dialog-cache-content"},_vm._l((_vm.getCacheList),function(item,index){return _c('el-button',{key:index,attrs:{"type":"info","size":"medium","icon":"el-icon-tickets"},on:{"click":function($event){return _vm.openDialogCache(index)}}},[_vm._v(" "+_vm._s(item.title)+" ")])}),1)])}
|
|
115458
|
+
var dialogCachevue_type_template_id_21351126_scoped_true_staticRenderFns = []
|
|
116639
115459
|
|
|
116640
|
-
// EXTERNAL MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
116641
|
-
var vuex_esm = __webpack_require__("2f62");
|
|
116642
115460
|
|
|
116643
|
-
// CONCATENATED MODULE: ./
|
|
115461
|
+
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=template&id=21351126&scoped=true&
|
|
116644
115462
|
|
|
116645
|
-
|
|
116646
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* default */]);
|
|
116647
|
-
/* harmony default export */ var store = (new vuex_esm["a" /* default */].Store({
|
|
116648
|
-
state: {},
|
|
116649
|
-
mutations: {},
|
|
116650
|
-
actions: {},
|
|
116651
|
-
modules: {}
|
|
116652
|
-
}));
|
|
116653
115463
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/dialogCache/index.vue?vue&type=script&lang=js&
|
|
116654
115464
|
//
|
|
116655
115465
|
//
|
|
@@ -116682,7 +115492,9 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116682
115492
|
//
|
|
116683
115493
|
//
|
|
116684
115494
|
//
|
|
116685
|
-
|
|
115495
|
+
//
|
|
115496
|
+
//
|
|
115497
|
+
//
|
|
116686
115498
|
|
|
116687
115499
|
/* harmony default export */ var dialogCachevue_type_script_lang_js_ = ({
|
|
116688
115500
|
data() {
|
|
@@ -116695,11 +115507,11 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116695
115507
|
|
|
116696
115508
|
computed: {
|
|
116697
115509
|
getCacheList() {
|
|
116698
|
-
return store.getters['dialogCacheStore/getCacheList'];
|
|
115510
|
+
return this.$store.getters['dialogCacheStore/getCacheList'];
|
|
116699
115511
|
},
|
|
116700
115512
|
|
|
116701
115513
|
getRenderShow() {
|
|
116702
|
-
return store.getters['dialogCacheStore/getRenderShow'];
|
|
115514
|
+
return this.$store.getters['dialogCacheStore/getRenderShow'];
|
|
116703
115515
|
}
|
|
116704
115516
|
|
|
116705
115517
|
},
|
|
@@ -116708,7 +115520,7 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116708
115520
|
},
|
|
116709
115521
|
methods: {
|
|
116710
115522
|
openDialogCache(index) {
|
|
116711
|
-
store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index);
|
|
115523
|
+
this.$store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index);
|
|
116712
115524
|
},
|
|
116713
115525
|
|
|
116714
115526
|
dialogCacheWrapOnBlue() {
|
|
@@ -116716,21 +115528,12 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116716
115528
|
}
|
|
116717
115529
|
|
|
116718
115530
|
},
|
|
116719
|
-
watch: {
|
|
116720
|
-
getRenderShow(newVal, oldVal) {
|
|
116721
|
-
if (newVal) {
|
|
116722
|
-
this.$nextTick(() => {
|
|
116723
|
-
this.$refs.dialogCacheWrapRef.focus();
|
|
116724
|
-
});
|
|
116725
|
-
}
|
|
116726
|
-
}
|
|
116727
|
-
|
|
116728
|
-
}
|
|
115531
|
+
watch: {}
|
|
116729
115532
|
});
|
|
116730
115533
|
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=script&lang=js&
|
|
116731
115534
|
/* harmony default export */ var components_dialogCachevue_type_script_lang_js_ = (dialogCachevue_type_script_lang_js_);
|
|
116732
|
-
// EXTERNAL MODULE: ./packages/components/dialogCache/index.vue?vue&type=style&index=0&id=
|
|
116733
|
-
var
|
|
115535
|
+
// EXTERNAL MODULE: ./packages/components/dialogCache/index.vue?vue&type=style&index=0&id=21351126&lang=less&scoped=true&
|
|
115536
|
+
var dialogCachevue_type_style_index_0_id_21351126_lang_less_scoped_true_ = __webpack_require__("e94d");
|
|
116734
115537
|
|
|
116735
115538
|
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue
|
|
116736
115539
|
|
|
@@ -116743,11 +115546,11 @@ var dialogCachevue_type_style_index_0_id_16d621a4_lang_less_scoped_true_ = __web
|
|
|
116743
115546
|
|
|
116744
115547
|
var dialogCache_component = Object(componentNormalizer["a" /* default */])(
|
|
116745
115548
|
components_dialogCachevue_type_script_lang_js_,
|
|
116746
|
-
|
|
116747
|
-
|
|
115549
|
+
dialogCachevue_type_template_id_21351126_scoped_true_render,
|
|
115550
|
+
dialogCachevue_type_template_id_21351126_scoped_true_staticRenderFns,
|
|
116748
115551
|
false,
|
|
116749
115552
|
null,
|
|
116750
|
-
"
|
|
115553
|
+
"21351126",
|
|
116751
115554
|
null
|
|
116752
115555
|
|
|
116753
115556
|
)
|
|
@@ -118706,7 +117509,6 @@ let canPush = true;
|
|
|
118706
117509
|
let proScreenConfig = this.$props.proScreenConfig;
|
|
118707
117510
|
this._proScreenConfig = proScreenConfig.map(item => {
|
|
118708
117511
|
let index = this.$props.tableConfig.findIndex(citem => {
|
|
118709
|
-
//console.log(citem);
|
|
118710
117512
|
return citem.key == item.key;
|
|
118711
117513
|
});
|
|
118712
117514
|
|
|
@@ -119058,8 +117860,8 @@ let canPush = true;
|
|
|
119058
117860
|
});
|
|
119059
117861
|
// CONCATENATED MODULE: ./packages/components/proPageTable/oa_pro_table.vue?vue&type=script&lang=js&
|
|
119060
117862
|
/* harmony default export */ var proPageTable_oa_pro_tablevue_type_script_lang_js_ = (oa_pro_tablevue_type_script_lang_js_);
|
|
119061
|
-
// EXTERNAL MODULE: ./packages/components/proPageTable/oa_pro_table.vue?vue&type=style&index=0&id=
|
|
119062
|
-
var
|
|
117863
|
+
// EXTERNAL MODULE: ./packages/components/proPageTable/oa_pro_table.vue?vue&type=style&index=0&id=011f8739&lang=less&scoped=true&
|
|
117864
|
+
var oa_pro_tablevue_type_style_index_0_id_011f8739_lang_less_scoped_true_ = __webpack_require__("007a");
|
|
119063
117865
|
|
|
119064
117866
|
// CONCATENATED MODULE: ./packages/components/proPageTable/oa_pro_table.vue
|
|
119065
117867
|
|
|
@@ -119072,11 +117874,11 @@ var oa_pro_tablevue_type_style_index_0_id_8becbaa0_lang_less_scoped_true_ = __we
|
|
|
119072
117874
|
|
|
119073
117875
|
var oa_pro_table_component = Object(componentNormalizer["a" /* default */])(
|
|
119074
117876
|
proPageTable_oa_pro_tablevue_type_script_lang_js_,
|
|
119075
|
-
|
|
119076
|
-
|
|
117877
|
+
oa_pro_tablevue_type_template_id_011f8739_scoped_true_render,
|
|
117878
|
+
oa_pro_tablevue_type_template_id_011f8739_scoped_true_staticRenderFns,
|
|
119077
117879
|
false,
|
|
119078
117880
|
null,
|
|
119079
|
-
"
|
|
117881
|
+
"011f8739",
|
|
119080
117882
|
null
|
|
119081
117883
|
|
|
119082
117884
|
)
|