meixioacomponent 0.3.77 → 0.3.80
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 +54 -1250
- package/lib/meixioacomponent.umd.js +54 -1250
- package/lib/meixioacomponent.umd.min.js +14 -20
- package/package.json +1 -1
- package/packages/components/dialogCache/index.vue +6 -12
- package/src/App.vue +4 -0
- package/src/component/test.vue +5 -4
|
@@ -11199,1183 +11199,6 @@ module.exports = function isCancel(value) {
|
|
|
11199
11199
|
};
|
|
11200
11200
|
|
|
11201
11201
|
|
|
11202
|
-
/***/ }),
|
|
11203
|
-
|
|
11204
|
-
/***/ "2f62":
|
|
11205
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11206
|
-
|
|
11207
|
-
"use strict";
|
|
11208
|
-
/* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export Store */
|
|
11209
|
-
/* unused harmony export createLogger */
|
|
11210
|
-
/* unused harmony export createNamespacedHelpers */
|
|
11211
|
-
/* unused harmony export install */
|
|
11212
|
-
/* unused harmony export mapActions */
|
|
11213
|
-
/* unused harmony export mapGetters */
|
|
11214
|
-
/* unused harmony export mapMutations */
|
|
11215
|
-
/* unused harmony export mapState */
|
|
11216
|
-
/*!
|
|
11217
|
-
* vuex v3.6.2
|
|
11218
|
-
* (c) 2021 Evan You
|
|
11219
|
-
* @license MIT
|
|
11220
|
-
*/
|
|
11221
|
-
function applyMixin (Vue) {
|
|
11222
|
-
var version = Number(Vue.version.split('.')[0]);
|
|
11223
|
-
|
|
11224
|
-
if (version >= 2) {
|
|
11225
|
-
Vue.mixin({ beforeCreate: vuexInit });
|
|
11226
|
-
} else {
|
|
11227
|
-
// override init and inject vuex init procedure
|
|
11228
|
-
// for 1.x backwards compatibility.
|
|
11229
|
-
var _init = Vue.prototype._init;
|
|
11230
|
-
Vue.prototype._init = function (options) {
|
|
11231
|
-
if ( options === void 0 ) options = {};
|
|
11232
|
-
|
|
11233
|
-
options.init = options.init
|
|
11234
|
-
? [vuexInit].concat(options.init)
|
|
11235
|
-
: vuexInit;
|
|
11236
|
-
_init.call(this, options);
|
|
11237
|
-
};
|
|
11238
|
-
}
|
|
11239
|
-
|
|
11240
|
-
/**
|
|
11241
|
-
* Vuex init hook, injected into each instances init hooks list.
|
|
11242
|
-
*/
|
|
11243
|
-
|
|
11244
|
-
function vuexInit () {
|
|
11245
|
-
var options = this.$options;
|
|
11246
|
-
// store injection
|
|
11247
|
-
if (options.store) {
|
|
11248
|
-
this.$store = typeof options.store === 'function'
|
|
11249
|
-
? options.store()
|
|
11250
|
-
: options.store;
|
|
11251
|
-
} else if (options.parent && options.parent.$store) {
|
|
11252
|
-
this.$store = options.parent.$store;
|
|
11253
|
-
}
|
|
11254
|
-
}
|
|
11255
|
-
}
|
|
11256
|
-
|
|
11257
|
-
var target = typeof window !== 'undefined'
|
|
11258
|
-
? window
|
|
11259
|
-
: typeof global !== 'undefined'
|
|
11260
|
-
? global
|
|
11261
|
-
: {};
|
|
11262
|
-
var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
11263
|
-
|
|
11264
|
-
function devtoolPlugin (store) {
|
|
11265
|
-
if (!devtoolHook) { return }
|
|
11266
|
-
|
|
11267
|
-
store._devtoolHook = devtoolHook;
|
|
11268
|
-
|
|
11269
|
-
devtoolHook.emit('vuex:init', store);
|
|
11270
|
-
|
|
11271
|
-
devtoolHook.on('vuex:travel-to-state', function (targetState) {
|
|
11272
|
-
store.replaceState(targetState);
|
|
11273
|
-
});
|
|
11274
|
-
|
|
11275
|
-
store.subscribe(function (mutation, state) {
|
|
11276
|
-
devtoolHook.emit('vuex:mutation', mutation, state);
|
|
11277
|
-
}, { prepend: true });
|
|
11278
|
-
|
|
11279
|
-
store.subscribeAction(function (action, state) {
|
|
11280
|
-
devtoolHook.emit('vuex:action', action, state);
|
|
11281
|
-
}, { prepend: true });
|
|
11282
|
-
}
|
|
11283
|
-
|
|
11284
|
-
/**
|
|
11285
|
-
* Get the first item that pass the test
|
|
11286
|
-
* by second argument function
|
|
11287
|
-
*
|
|
11288
|
-
* @param {Array} list
|
|
11289
|
-
* @param {Function} f
|
|
11290
|
-
* @return {*}
|
|
11291
|
-
*/
|
|
11292
|
-
function find (list, f) {
|
|
11293
|
-
return list.filter(f)[0]
|
|
11294
|
-
}
|
|
11295
|
-
|
|
11296
|
-
/**
|
|
11297
|
-
* Deep copy the given object considering circular structure.
|
|
11298
|
-
* This function caches all nested objects and its copies.
|
|
11299
|
-
* If it detects circular structure, use cached copy to avoid infinite loop.
|
|
11300
|
-
*
|
|
11301
|
-
* @param {*} obj
|
|
11302
|
-
* @param {Array<Object>} cache
|
|
11303
|
-
* @return {*}
|
|
11304
|
-
*/
|
|
11305
|
-
function deepCopy (obj, cache) {
|
|
11306
|
-
if ( cache === void 0 ) cache = [];
|
|
11307
|
-
|
|
11308
|
-
// just return if obj is immutable value
|
|
11309
|
-
if (obj === null || typeof obj !== 'object') {
|
|
11310
|
-
return obj
|
|
11311
|
-
}
|
|
11312
|
-
|
|
11313
|
-
// if obj is hit, it is in circular structure
|
|
11314
|
-
var hit = find(cache, function (c) { return c.original === obj; });
|
|
11315
|
-
if (hit) {
|
|
11316
|
-
return hit.copy
|
|
11317
|
-
}
|
|
11318
|
-
|
|
11319
|
-
var copy = Array.isArray(obj) ? [] : {};
|
|
11320
|
-
// put the copy into cache at first
|
|
11321
|
-
// because we want to refer it in recursive deepCopy
|
|
11322
|
-
cache.push({
|
|
11323
|
-
original: obj,
|
|
11324
|
-
copy: copy
|
|
11325
|
-
});
|
|
11326
|
-
|
|
11327
|
-
Object.keys(obj).forEach(function (key) {
|
|
11328
|
-
copy[key] = deepCopy(obj[key], cache);
|
|
11329
|
-
});
|
|
11330
|
-
|
|
11331
|
-
return copy
|
|
11332
|
-
}
|
|
11333
|
-
|
|
11334
|
-
/**
|
|
11335
|
-
* forEach for object
|
|
11336
|
-
*/
|
|
11337
|
-
function forEachValue (obj, fn) {
|
|
11338
|
-
Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
|
|
11339
|
-
}
|
|
11340
|
-
|
|
11341
|
-
function isObject (obj) {
|
|
11342
|
-
return obj !== null && typeof obj === 'object'
|
|
11343
|
-
}
|
|
11344
|
-
|
|
11345
|
-
function isPromise (val) {
|
|
11346
|
-
return val && typeof val.then === 'function'
|
|
11347
|
-
}
|
|
11348
|
-
|
|
11349
|
-
function assert (condition, msg) {
|
|
11350
|
-
if (!condition) { throw new Error(("[vuex] " + msg)) }
|
|
11351
|
-
}
|
|
11352
|
-
|
|
11353
|
-
function partial (fn, arg) {
|
|
11354
|
-
return function () {
|
|
11355
|
-
return fn(arg)
|
|
11356
|
-
}
|
|
11357
|
-
}
|
|
11358
|
-
|
|
11359
|
-
// Base data struct for store's module, package with some attribute and method
|
|
11360
|
-
var Module = function Module (rawModule, runtime) {
|
|
11361
|
-
this.runtime = runtime;
|
|
11362
|
-
// Store some children item
|
|
11363
|
-
this._children = Object.create(null);
|
|
11364
|
-
// Store the origin module object which passed by programmer
|
|
11365
|
-
this._rawModule = rawModule;
|
|
11366
|
-
var rawState = rawModule.state;
|
|
11367
|
-
|
|
11368
|
-
// Store the origin module's state
|
|
11369
|
-
this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
|
|
11370
|
-
};
|
|
11371
|
-
|
|
11372
|
-
var prototypeAccessors = { namespaced: { configurable: true } };
|
|
11373
|
-
|
|
11374
|
-
prototypeAccessors.namespaced.get = function () {
|
|
11375
|
-
return !!this._rawModule.namespaced
|
|
11376
|
-
};
|
|
11377
|
-
|
|
11378
|
-
Module.prototype.addChild = function addChild (key, module) {
|
|
11379
|
-
this._children[key] = module;
|
|
11380
|
-
};
|
|
11381
|
-
|
|
11382
|
-
Module.prototype.removeChild = function removeChild (key) {
|
|
11383
|
-
delete this._children[key];
|
|
11384
|
-
};
|
|
11385
|
-
|
|
11386
|
-
Module.prototype.getChild = function getChild (key) {
|
|
11387
|
-
return this._children[key]
|
|
11388
|
-
};
|
|
11389
|
-
|
|
11390
|
-
Module.prototype.hasChild = function hasChild (key) {
|
|
11391
|
-
return key in this._children
|
|
11392
|
-
};
|
|
11393
|
-
|
|
11394
|
-
Module.prototype.update = function update (rawModule) {
|
|
11395
|
-
this._rawModule.namespaced = rawModule.namespaced;
|
|
11396
|
-
if (rawModule.actions) {
|
|
11397
|
-
this._rawModule.actions = rawModule.actions;
|
|
11398
|
-
}
|
|
11399
|
-
if (rawModule.mutations) {
|
|
11400
|
-
this._rawModule.mutations = rawModule.mutations;
|
|
11401
|
-
}
|
|
11402
|
-
if (rawModule.getters) {
|
|
11403
|
-
this._rawModule.getters = rawModule.getters;
|
|
11404
|
-
}
|
|
11405
|
-
};
|
|
11406
|
-
|
|
11407
|
-
Module.prototype.forEachChild = function forEachChild (fn) {
|
|
11408
|
-
forEachValue(this._children, fn);
|
|
11409
|
-
};
|
|
11410
|
-
|
|
11411
|
-
Module.prototype.forEachGetter = function forEachGetter (fn) {
|
|
11412
|
-
if (this._rawModule.getters) {
|
|
11413
|
-
forEachValue(this._rawModule.getters, fn);
|
|
11414
|
-
}
|
|
11415
|
-
};
|
|
11416
|
-
|
|
11417
|
-
Module.prototype.forEachAction = function forEachAction (fn) {
|
|
11418
|
-
if (this._rawModule.actions) {
|
|
11419
|
-
forEachValue(this._rawModule.actions, fn);
|
|
11420
|
-
}
|
|
11421
|
-
};
|
|
11422
|
-
|
|
11423
|
-
Module.prototype.forEachMutation = function forEachMutation (fn) {
|
|
11424
|
-
if (this._rawModule.mutations) {
|
|
11425
|
-
forEachValue(this._rawModule.mutations, fn);
|
|
11426
|
-
}
|
|
11427
|
-
};
|
|
11428
|
-
|
|
11429
|
-
Object.defineProperties( Module.prototype, prototypeAccessors );
|
|
11430
|
-
|
|
11431
|
-
var ModuleCollection = function ModuleCollection (rawRootModule) {
|
|
11432
|
-
// register root module (Vuex.Store options)
|
|
11433
|
-
this.register([], rawRootModule, false);
|
|
11434
|
-
};
|
|
11435
|
-
|
|
11436
|
-
ModuleCollection.prototype.get = function get (path) {
|
|
11437
|
-
return path.reduce(function (module, key) {
|
|
11438
|
-
return module.getChild(key)
|
|
11439
|
-
}, this.root)
|
|
11440
|
-
};
|
|
11441
|
-
|
|
11442
|
-
ModuleCollection.prototype.getNamespace = function getNamespace (path) {
|
|
11443
|
-
var module = this.root;
|
|
11444
|
-
return path.reduce(function (namespace, key) {
|
|
11445
|
-
module = module.getChild(key);
|
|
11446
|
-
return namespace + (module.namespaced ? key + '/' : '')
|
|
11447
|
-
}, '')
|
|
11448
|
-
};
|
|
11449
|
-
|
|
11450
|
-
ModuleCollection.prototype.update = function update$1 (rawRootModule) {
|
|
11451
|
-
update([], this.root, rawRootModule);
|
|
11452
|
-
};
|
|
11453
|
-
|
|
11454
|
-
ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
|
|
11455
|
-
var this$1 = this;
|
|
11456
|
-
if ( runtime === void 0 ) runtime = true;
|
|
11457
|
-
|
|
11458
|
-
if ((false)) {}
|
|
11459
|
-
|
|
11460
|
-
var newModule = new Module(rawModule, runtime);
|
|
11461
|
-
if (path.length === 0) {
|
|
11462
|
-
this.root = newModule;
|
|
11463
|
-
} else {
|
|
11464
|
-
var parent = this.get(path.slice(0, -1));
|
|
11465
|
-
parent.addChild(path[path.length - 1], newModule);
|
|
11466
|
-
}
|
|
11467
|
-
|
|
11468
|
-
// register nested modules
|
|
11469
|
-
if (rawModule.modules) {
|
|
11470
|
-
forEachValue(rawModule.modules, function (rawChildModule, key) {
|
|
11471
|
-
this$1.register(path.concat(key), rawChildModule, runtime);
|
|
11472
|
-
});
|
|
11473
|
-
}
|
|
11474
|
-
};
|
|
11475
|
-
|
|
11476
|
-
ModuleCollection.prototype.unregister = function unregister (path) {
|
|
11477
|
-
var parent = this.get(path.slice(0, -1));
|
|
11478
|
-
var key = path[path.length - 1];
|
|
11479
|
-
var child = parent.getChild(key);
|
|
11480
|
-
|
|
11481
|
-
if (!child) {
|
|
11482
|
-
if ((false)) {}
|
|
11483
|
-
return
|
|
11484
|
-
}
|
|
11485
|
-
|
|
11486
|
-
if (!child.runtime) {
|
|
11487
|
-
return
|
|
11488
|
-
}
|
|
11489
|
-
|
|
11490
|
-
parent.removeChild(key);
|
|
11491
|
-
};
|
|
11492
|
-
|
|
11493
|
-
ModuleCollection.prototype.isRegistered = function isRegistered (path) {
|
|
11494
|
-
var parent = this.get(path.slice(0, -1));
|
|
11495
|
-
var key = path[path.length - 1];
|
|
11496
|
-
|
|
11497
|
-
if (parent) {
|
|
11498
|
-
return parent.hasChild(key)
|
|
11499
|
-
}
|
|
11500
|
-
|
|
11501
|
-
return false
|
|
11502
|
-
};
|
|
11503
|
-
|
|
11504
|
-
function update (path, targetModule, newModule) {
|
|
11505
|
-
if ((false)) {}
|
|
11506
|
-
|
|
11507
|
-
// update target module
|
|
11508
|
-
targetModule.update(newModule);
|
|
11509
|
-
|
|
11510
|
-
// update nested modules
|
|
11511
|
-
if (newModule.modules) {
|
|
11512
|
-
for (var key in newModule.modules) {
|
|
11513
|
-
if (!targetModule.getChild(key)) {
|
|
11514
|
-
if ((false)) {}
|
|
11515
|
-
return
|
|
11516
|
-
}
|
|
11517
|
-
update(
|
|
11518
|
-
path.concat(key),
|
|
11519
|
-
targetModule.getChild(key),
|
|
11520
|
-
newModule.modules[key]
|
|
11521
|
-
);
|
|
11522
|
-
}
|
|
11523
|
-
}
|
|
11524
|
-
}
|
|
11525
|
-
|
|
11526
|
-
var functionAssert = {
|
|
11527
|
-
assert: function (value) { return typeof value === 'function'; },
|
|
11528
|
-
expected: 'function'
|
|
11529
|
-
};
|
|
11530
|
-
|
|
11531
|
-
var objectAssert = {
|
|
11532
|
-
assert: function (value) { return typeof value === 'function' ||
|
|
11533
|
-
(typeof value === 'object' && typeof value.handler === 'function'); },
|
|
11534
|
-
expected: 'function or object with "handler" function'
|
|
11535
|
-
};
|
|
11536
|
-
|
|
11537
|
-
var assertTypes = {
|
|
11538
|
-
getters: functionAssert,
|
|
11539
|
-
mutations: functionAssert,
|
|
11540
|
-
actions: objectAssert
|
|
11541
|
-
};
|
|
11542
|
-
|
|
11543
|
-
function assertRawModule (path, rawModule) {
|
|
11544
|
-
Object.keys(assertTypes).forEach(function (key) {
|
|
11545
|
-
if (!rawModule[key]) { return }
|
|
11546
|
-
|
|
11547
|
-
var assertOptions = assertTypes[key];
|
|
11548
|
-
|
|
11549
|
-
forEachValue(rawModule[key], function (value, type) {
|
|
11550
|
-
assert(
|
|
11551
|
-
assertOptions.assert(value),
|
|
11552
|
-
makeAssertionMessage(path, key, type, value, assertOptions.expected)
|
|
11553
|
-
);
|
|
11554
|
-
});
|
|
11555
|
-
});
|
|
11556
|
-
}
|
|
11557
|
-
|
|
11558
|
-
function makeAssertionMessage (path, key, type, value, expected) {
|
|
11559
|
-
var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
|
|
11560
|
-
if (path.length > 0) {
|
|
11561
|
-
buf += " in module \"" + (path.join('.')) + "\"";
|
|
11562
|
-
}
|
|
11563
|
-
buf += " is " + (JSON.stringify(value)) + ".";
|
|
11564
|
-
return buf
|
|
11565
|
-
}
|
|
11566
|
-
|
|
11567
|
-
var Vue; // bind on install
|
|
11568
|
-
|
|
11569
|
-
var Store = function Store (options) {
|
|
11570
|
-
var this$1 = this;
|
|
11571
|
-
if ( options === void 0 ) options = {};
|
|
11572
|
-
|
|
11573
|
-
// Auto install if it is not done yet and `window` has `Vue`.
|
|
11574
|
-
// To allow users to avoid auto-installation in some cases,
|
|
11575
|
-
// this code should be placed here. See #731
|
|
11576
|
-
if (!Vue && typeof window !== 'undefined' && window.Vue) {
|
|
11577
|
-
install(window.Vue);
|
|
11578
|
-
}
|
|
11579
|
-
|
|
11580
|
-
if ((false)) {}
|
|
11581
|
-
|
|
11582
|
-
var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
|
|
11583
|
-
var strict = options.strict; if ( strict === void 0 ) strict = false;
|
|
11584
|
-
|
|
11585
|
-
// store internal state
|
|
11586
|
-
this._committing = false;
|
|
11587
|
-
this._actions = Object.create(null);
|
|
11588
|
-
this._actionSubscribers = [];
|
|
11589
|
-
this._mutations = Object.create(null);
|
|
11590
|
-
this._wrappedGetters = Object.create(null);
|
|
11591
|
-
this._modules = new ModuleCollection(options);
|
|
11592
|
-
this._modulesNamespaceMap = Object.create(null);
|
|
11593
|
-
this._subscribers = [];
|
|
11594
|
-
this._watcherVM = new Vue();
|
|
11595
|
-
this._makeLocalGettersCache = Object.create(null);
|
|
11596
|
-
|
|
11597
|
-
// bind commit and dispatch to self
|
|
11598
|
-
var store = this;
|
|
11599
|
-
var ref = this;
|
|
11600
|
-
var dispatch = ref.dispatch;
|
|
11601
|
-
var commit = ref.commit;
|
|
11602
|
-
this.dispatch = function boundDispatch (type, payload) {
|
|
11603
|
-
return dispatch.call(store, type, payload)
|
|
11604
|
-
};
|
|
11605
|
-
this.commit = function boundCommit (type, payload, options) {
|
|
11606
|
-
return commit.call(store, type, payload, options)
|
|
11607
|
-
};
|
|
11608
|
-
|
|
11609
|
-
// strict mode
|
|
11610
|
-
this.strict = strict;
|
|
11611
|
-
|
|
11612
|
-
var state = this._modules.root.state;
|
|
11613
|
-
|
|
11614
|
-
// init root module.
|
|
11615
|
-
// this also recursively registers all sub-modules
|
|
11616
|
-
// and collects all module getters inside this._wrappedGetters
|
|
11617
|
-
installModule(this, state, [], this._modules.root);
|
|
11618
|
-
|
|
11619
|
-
// initialize the store vm, which is responsible for the reactivity
|
|
11620
|
-
// (also registers _wrappedGetters as computed properties)
|
|
11621
|
-
resetStoreVM(this, state);
|
|
11622
|
-
|
|
11623
|
-
// apply plugins
|
|
11624
|
-
plugins.forEach(function (plugin) { return plugin(this$1); });
|
|
11625
|
-
|
|
11626
|
-
var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
|
|
11627
|
-
if (useDevtools) {
|
|
11628
|
-
devtoolPlugin(this);
|
|
11629
|
-
}
|
|
11630
|
-
};
|
|
11631
|
-
|
|
11632
|
-
var prototypeAccessors$1 = { state: { configurable: true } };
|
|
11633
|
-
|
|
11634
|
-
prototypeAccessors$1.state.get = function () {
|
|
11635
|
-
return this._vm._data.$$state
|
|
11636
|
-
};
|
|
11637
|
-
|
|
11638
|
-
prototypeAccessors$1.state.set = function (v) {
|
|
11639
|
-
if ((false)) {}
|
|
11640
|
-
};
|
|
11641
|
-
|
|
11642
|
-
Store.prototype.commit = function commit (_type, _payload, _options) {
|
|
11643
|
-
var this$1 = this;
|
|
11644
|
-
|
|
11645
|
-
// check object-style commit
|
|
11646
|
-
var ref = unifyObjectStyle(_type, _payload, _options);
|
|
11647
|
-
var type = ref.type;
|
|
11648
|
-
var payload = ref.payload;
|
|
11649
|
-
var options = ref.options;
|
|
11650
|
-
|
|
11651
|
-
var mutation = { type: type, payload: payload };
|
|
11652
|
-
var entry = this._mutations[type];
|
|
11653
|
-
if (!entry) {
|
|
11654
|
-
if ((false)) {}
|
|
11655
|
-
return
|
|
11656
|
-
}
|
|
11657
|
-
this._withCommit(function () {
|
|
11658
|
-
entry.forEach(function commitIterator (handler) {
|
|
11659
|
-
handler(payload);
|
|
11660
|
-
});
|
|
11661
|
-
});
|
|
11662
|
-
|
|
11663
|
-
this._subscribers
|
|
11664
|
-
.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
|
|
11665
|
-
.forEach(function (sub) { return sub(mutation, this$1.state); });
|
|
11666
|
-
|
|
11667
|
-
if (
|
|
11668
|
-
false
|
|
11669
|
-
) {}
|
|
11670
|
-
};
|
|
11671
|
-
|
|
11672
|
-
Store.prototype.dispatch = function dispatch (_type, _payload) {
|
|
11673
|
-
var this$1 = this;
|
|
11674
|
-
|
|
11675
|
-
// check object-style dispatch
|
|
11676
|
-
var ref = unifyObjectStyle(_type, _payload);
|
|
11677
|
-
var type = ref.type;
|
|
11678
|
-
var payload = ref.payload;
|
|
11679
|
-
|
|
11680
|
-
var action = { type: type, payload: payload };
|
|
11681
|
-
var entry = this._actions[type];
|
|
11682
|
-
if (!entry) {
|
|
11683
|
-
if ((false)) {}
|
|
11684
|
-
return
|
|
11685
|
-
}
|
|
11686
|
-
|
|
11687
|
-
try {
|
|
11688
|
-
this._actionSubscribers
|
|
11689
|
-
.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
|
|
11690
|
-
.filter(function (sub) { return sub.before; })
|
|
11691
|
-
.forEach(function (sub) { return sub.before(action, this$1.state); });
|
|
11692
|
-
} catch (e) {
|
|
11693
|
-
if ((false)) {}
|
|
11694
|
-
}
|
|
11695
|
-
|
|
11696
|
-
var result = entry.length > 1
|
|
11697
|
-
? Promise.all(entry.map(function (handler) { return handler(payload); }))
|
|
11698
|
-
: entry[0](payload);
|
|
11699
|
-
|
|
11700
|
-
return new Promise(function (resolve, reject) {
|
|
11701
|
-
result.then(function (res) {
|
|
11702
|
-
try {
|
|
11703
|
-
this$1._actionSubscribers
|
|
11704
|
-
.filter(function (sub) { return sub.after; })
|
|
11705
|
-
.forEach(function (sub) { return sub.after(action, this$1.state); });
|
|
11706
|
-
} catch (e) {
|
|
11707
|
-
if ((false)) {}
|
|
11708
|
-
}
|
|
11709
|
-
resolve(res);
|
|
11710
|
-
}, function (error) {
|
|
11711
|
-
try {
|
|
11712
|
-
this$1._actionSubscribers
|
|
11713
|
-
.filter(function (sub) { return sub.error; })
|
|
11714
|
-
.forEach(function (sub) { return sub.error(action, this$1.state, error); });
|
|
11715
|
-
} catch (e) {
|
|
11716
|
-
if ((false)) {}
|
|
11717
|
-
}
|
|
11718
|
-
reject(error);
|
|
11719
|
-
});
|
|
11720
|
-
})
|
|
11721
|
-
};
|
|
11722
|
-
|
|
11723
|
-
Store.prototype.subscribe = function subscribe (fn, options) {
|
|
11724
|
-
return genericSubscribe(fn, this._subscribers, options)
|
|
11725
|
-
};
|
|
11726
|
-
|
|
11727
|
-
Store.prototype.subscribeAction = function subscribeAction (fn, options) {
|
|
11728
|
-
var subs = typeof fn === 'function' ? { before: fn } : fn;
|
|
11729
|
-
return genericSubscribe(subs, this._actionSubscribers, options)
|
|
11730
|
-
};
|
|
11731
|
-
|
|
11732
|
-
Store.prototype.watch = function watch (getter, cb, options) {
|
|
11733
|
-
var this$1 = this;
|
|
11734
|
-
|
|
11735
|
-
if ((false)) {}
|
|
11736
|
-
return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
|
|
11737
|
-
};
|
|
11738
|
-
|
|
11739
|
-
Store.prototype.replaceState = function replaceState (state) {
|
|
11740
|
-
var this$1 = this;
|
|
11741
|
-
|
|
11742
|
-
this._withCommit(function () {
|
|
11743
|
-
this$1._vm._data.$$state = state;
|
|
11744
|
-
});
|
|
11745
|
-
};
|
|
11746
|
-
|
|
11747
|
-
Store.prototype.registerModule = function registerModule (path, rawModule, options) {
|
|
11748
|
-
if ( options === void 0 ) options = {};
|
|
11749
|
-
|
|
11750
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11751
|
-
|
|
11752
|
-
if ((false)) {}
|
|
11753
|
-
|
|
11754
|
-
this._modules.register(path, rawModule);
|
|
11755
|
-
installModule(this, this.state, path, this._modules.get(path), options.preserveState);
|
|
11756
|
-
// reset store to update getters...
|
|
11757
|
-
resetStoreVM(this, this.state);
|
|
11758
|
-
};
|
|
11759
|
-
|
|
11760
|
-
Store.prototype.unregisterModule = function unregisterModule (path) {
|
|
11761
|
-
var this$1 = this;
|
|
11762
|
-
|
|
11763
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11764
|
-
|
|
11765
|
-
if ((false)) {}
|
|
11766
|
-
|
|
11767
|
-
this._modules.unregister(path);
|
|
11768
|
-
this._withCommit(function () {
|
|
11769
|
-
var parentState = getNestedState(this$1.state, path.slice(0, -1));
|
|
11770
|
-
Vue.delete(parentState, path[path.length - 1]);
|
|
11771
|
-
});
|
|
11772
|
-
resetStore(this);
|
|
11773
|
-
};
|
|
11774
|
-
|
|
11775
|
-
Store.prototype.hasModule = function hasModule (path) {
|
|
11776
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11777
|
-
|
|
11778
|
-
if ((false)) {}
|
|
11779
|
-
|
|
11780
|
-
return this._modules.isRegistered(path)
|
|
11781
|
-
};
|
|
11782
|
-
|
|
11783
|
-
Store.prototype.hotUpdate = function hotUpdate (newOptions) {
|
|
11784
|
-
this._modules.update(newOptions);
|
|
11785
|
-
resetStore(this, true);
|
|
11786
|
-
};
|
|
11787
|
-
|
|
11788
|
-
Store.prototype._withCommit = function _withCommit (fn) {
|
|
11789
|
-
var committing = this._committing;
|
|
11790
|
-
this._committing = true;
|
|
11791
|
-
fn();
|
|
11792
|
-
this._committing = committing;
|
|
11793
|
-
};
|
|
11794
|
-
|
|
11795
|
-
Object.defineProperties( Store.prototype, prototypeAccessors$1 );
|
|
11796
|
-
|
|
11797
|
-
function genericSubscribe (fn, subs, options) {
|
|
11798
|
-
if (subs.indexOf(fn) < 0) {
|
|
11799
|
-
options && options.prepend
|
|
11800
|
-
? subs.unshift(fn)
|
|
11801
|
-
: subs.push(fn);
|
|
11802
|
-
}
|
|
11803
|
-
return function () {
|
|
11804
|
-
var i = subs.indexOf(fn);
|
|
11805
|
-
if (i > -1) {
|
|
11806
|
-
subs.splice(i, 1);
|
|
11807
|
-
}
|
|
11808
|
-
}
|
|
11809
|
-
}
|
|
11810
|
-
|
|
11811
|
-
function resetStore (store, hot) {
|
|
11812
|
-
store._actions = Object.create(null);
|
|
11813
|
-
store._mutations = Object.create(null);
|
|
11814
|
-
store._wrappedGetters = Object.create(null);
|
|
11815
|
-
store._modulesNamespaceMap = Object.create(null);
|
|
11816
|
-
var state = store.state;
|
|
11817
|
-
// init all modules
|
|
11818
|
-
installModule(store, state, [], store._modules.root, true);
|
|
11819
|
-
// reset vm
|
|
11820
|
-
resetStoreVM(store, state, hot);
|
|
11821
|
-
}
|
|
11822
|
-
|
|
11823
|
-
function resetStoreVM (store, state, hot) {
|
|
11824
|
-
var oldVm = store._vm;
|
|
11825
|
-
|
|
11826
|
-
// bind store public getters
|
|
11827
|
-
store.getters = {};
|
|
11828
|
-
// reset local getters cache
|
|
11829
|
-
store._makeLocalGettersCache = Object.create(null);
|
|
11830
|
-
var wrappedGetters = store._wrappedGetters;
|
|
11831
|
-
var computed = {};
|
|
11832
|
-
forEachValue(wrappedGetters, function (fn, key) {
|
|
11833
|
-
// use computed to leverage its lazy-caching mechanism
|
|
11834
|
-
// direct inline function use will lead to closure preserving oldVm.
|
|
11835
|
-
// using partial to return function with only arguments preserved in closure environment.
|
|
11836
|
-
computed[key] = partial(fn, store);
|
|
11837
|
-
Object.defineProperty(store.getters, key, {
|
|
11838
|
-
get: function () { return store._vm[key]; },
|
|
11839
|
-
enumerable: true // for local getters
|
|
11840
|
-
});
|
|
11841
|
-
});
|
|
11842
|
-
|
|
11843
|
-
// use a Vue instance to store the state tree
|
|
11844
|
-
// suppress warnings just in case the user has added
|
|
11845
|
-
// some funky global mixins
|
|
11846
|
-
var silent = Vue.config.silent;
|
|
11847
|
-
Vue.config.silent = true;
|
|
11848
|
-
store._vm = new Vue({
|
|
11849
|
-
data: {
|
|
11850
|
-
$$state: state
|
|
11851
|
-
},
|
|
11852
|
-
computed: computed
|
|
11853
|
-
});
|
|
11854
|
-
Vue.config.silent = silent;
|
|
11855
|
-
|
|
11856
|
-
// enable strict mode for new vm
|
|
11857
|
-
if (store.strict) {
|
|
11858
|
-
enableStrictMode(store);
|
|
11859
|
-
}
|
|
11860
|
-
|
|
11861
|
-
if (oldVm) {
|
|
11862
|
-
if (hot) {
|
|
11863
|
-
// dispatch changes in all subscribed watchers
|
|
11864
|
-
// to force getter re-evaluation for hot reloading.
|
|
11865
|
-
store._withCommit(function () {
|
|
11866
|
-
oldVm._data.$$state = null;
|
|
11867
|
-
});
|
|
11868
|
-
}
|
|
11869
|
-
Vue.nextTick(function () { return oldVm.$destroy(); });
|
|
11870
|
-
}
|
|
11871
|
-
}
|
|
11872
|
-
|
|
11873
|
-
function installModule (store, rootState, path, module, hot) {
|
|
11874
|
-
var isRoot = !path.length;
|
|
11875
|
-
var namespace = store._modules.getNamespace(path);
|
|
11876
|
-
|
|
11877
|
-
// register in namespace map
|
|
11878
|
-
if (module.namespaced) {
|
|
11879
|
-
if (store._modulesNamespaceMap[namespace] && ("production" !== 'production')) {
|
|
11880
|
-
console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
|
|
11881
|
-
}
|
|
11882
|
-
store._modulesNamespaceMap[namespace] = module;
|
|
11883
|
-
}
|
|
11884
|
-
|
|
11885
|
-
// set state
|
|
11886
|
-
if (!isRoot && !hot) {
|
|
11887
|
-
var parentState = getNestedState(rootState, path.slice(0, -1));
|
|
11888
|
-
var moduleName = path[path.length - 1];
|
|
11889
|
-
store._withCommit(function () {
|
|
11890
|
-
if ((false)) {}
|
|
11891
|
-
Vue.set(parentState, moduleName, module.state);
|
|
11892
|
-
});
|
|
11893
|
-
}
|
|
11894
|
-
|
|
11895
|
-
var local = module.context = makeLocalContext(store, namespace, path);
|
|
11896
|
-
|
|
11897
|
-
module.forEachMutation(function (mutation, key) {
|
|
11898
|
-
var namespacedType = namespace + key;
|
|
11899
|
-
registerMutation(store, namespacedType, mutation, local);
|
|
11900
|
-
});
|
|
11901
|
-
|
|
11902
|
-
module.forEachAction(function (action, key) {
|
|
11903
|
-
var type = action.root ? key : namespace + key;
|
|
11904
|
-
var handler = action.handler || action;
|
|
11905
|
-
registerAction(store, type, handler, local);
|
|
11906
|
-
});
|
|
11907
|
-
|
|
11908
|
-
module.forEachGetter(function (getter, key) {
|
|
11909
|
-
var namespacedType = namespace + key;
|
|
11910
|
-
registerGetter(store, namespacedType, getter, local);
|
|
11911
|
-
});
|
|
11912
|
-
|
|
11913
|
-
module.forEachChild(function (child, key) {
|
|
11914
|
-
installModule(store, rootState, path.concat(key), child, hot);
|
|
11915
|
-
});
|
|
11916
|
-
}
|
|
11917
|
-
|
|
11918
|
-
/**
|
|
11919
|
-
* make localized dispatch, commit, getters and state
|
|
11920
|
-
* if there is no namespace, just use root ones
|
|
11921
|
-
*/
|
|
11922
|
-
function makeLocalContext (store, namespace, path) {
|
|
11923
|
-
var noNamespace = namespace === '';
|
|
11924
|
-
|
|
11925
|
-
var local = {
|
|
11926
|
-
dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
|
|
11927
|
-
var args = unifyObjectStyle(_type, _payload, _options);
|
|
11928
|
-
var payload = args.payload;
|
|
11929
|
-
var options = args.options;
|
|
11930
|
-
var type = args.type;
|
|
11931
|
-
|
|
11932
|
-
if (!options || !options.root) {
|
|
11933
|
-
type = namespace + type;
|
|
11934
|
-
if (false) {}
|
|
11935
|
-
}
|
|
11936
|
-
|
|
11937
|
-
return store.dispatch(type, payload)
|
|
11938
|
-
},
|
|
11939
|
-
|
|
11940
|
-
commit: noNamespace ? store.commit : function (_type, _payload, _options) {
|
|
11941
|
-
var args = unifyObjectStyle(_type, _payload, _options);
|
|
11942
|
-
var payload = args.payload;
|
|
11943
|
-
var options = args.options;
|
|
11944
|
-
var type = args.type;
|
|
11945
|
-
|
|
11946
|
-
if (!options || !options.root) {
|
|
11947
|
-
type = namespace + type;
|
|
11948
|
-
if (false) {}
|
|
11949
|
-
}
|
|
11950
|
-
|
|
11951
|
-
store.commit(type, payload, options);
|
|
11952
|
-
}
|
|
11953
|
-
};
|
|
11954
|
-
|
|
11955
|
-
// getters and state object must be gotten lazily
|
|
11956
|
-
// because they will be changed by vm update
|
|
11957
|
-
Object.defineProperties(local, {
|
|
11958
|
-
getters: {
|
|
11959
|
-
get: noNamespace
|
|
11960
|
-
? function () { return store.getters; }
|
|
11961
|
-
: function () { return makeLocalGetters(store, namespace); }
|
|
11962
|
-
},
|
|
11963
|
-
state: {
|
|
11964
|
-
get: function () { return getNestedState(store.state, path); }
|
|
11965
|
-
}
|
|
11966
|
-
});
|
|
11967
|
-
|
|
11968
|
-
return local
|
|
11969
|
-
}
|
|
11970
|
-
|
|
11971
|
-
function makeLocalGetters (store, namespace) {
|
|
11972
|
-
if (!store._makeLocalGettersCache[namespace]) {
|
|
11973
|
-
var gettersProxy = {};
|
|
11974
|
-
var splitPos = namespace.length;
|
|
11975
|
-
Object.keys(store.getters).forEach(function (type) {
|
|
11976
|
-
// skip if the target getter is not match this namespace
|
|
11977
|
-
if (type.slice(0, splitPos) !== namespace) { return }
|
|
11978
|
-
|
|
11979
|
-
// extract local getter type
|
|
11980
|
-
var localType = type.slice(splitPos);
|
|
11981
|
-
|
|
11982
|
-
// Add a port to the getters proxy.
|
|
11983
|
-
// Define as getter property because
|
|
11984
|
-
// we do not want to evaluate the getters in this time.
|
|
11985
|
-
Object.defineProperty(gettersProxy, localType, {
|
|
11986
|
-
get: function () { return store.getters[type]; },
|
|
11987
|
-
enumerable: true
|
|
11988
|
-
});
|
|
11989
|
-
});
|
|
11990
|
-
store._makeLocalGettersCache[namespace] = gettersProxy;
|
|
11991
|
-
}
|
|
11992
|
-
|
|
11993
|
-
return store._makeLocalGettersCache[namespace]
|
|
11994
|
-
}
|
|
11995
|
-
|
|
11996
|
-
function registerMutation (store, type, handler, local) {
|
|
11997
|
-
var entry = store._mutations[type] || (store._mutations[type] = []);
|
|
11998
|
-
entry.push(function wrappedMutationHandler (payload) {
|
|
11999
|
-
handler.call(store, local.state, payload);
|
|
12000
|
-
});
|
|
12001
|
-
}
|
|
12002
|
-
|
|
12003
|
-
function registerAction (store, type, handler, local) {
|
|
12004
|
-
var entry = store._actions[type] || (store._actions[type] = []);
|
|
12005
|
-
entry.push(function wrappedActionHandler (payload) {
|
|
12006
|
-
var res = handler.call(store, {
|
|
12007
|
-
dispatch: local.dispatch,
|
|
12008
|
-
commit: local.commit,
|
|
12009
|
-
getters: local.getters,
|
|
12010
|
-
state: local.state,
|
|
12011
|
-
rootGetters: store.getters,
|
|
12012
|
-
rootState: store.state
|
|
12013
|
-
}, payload);
|
|
12014
|
-
if (!isPromise(res)) {
|
|
12015
|
-
res = Promise.resolve(res);
|
|
12016
|
-
}
|
|
12017
|
-
if (store._devtoolHook) {
|
|
12018
|
-
return res.catch(function (err) {
|
|
12019
|
-
store._devtoolHook.emit('vuex:error', err);
|
|
12020
|
-
throw err
|
|
12021
|
-
})
|
|
12022
|
-
} else {
|
|
12023
|
-
return res
|
|
12024
|
-
}
|
|
12025
|
-
});
|
|
12026
|
-
}
|
|
12027
|
-
|
|
12028
|
-
function registerGetter (store, type, rawGetter, local) {
|
|
12029
|
-
if (store._wrappedGetters[type]) {
|
|
12030
|
-
if ((false)) {}
|
|
12031
|
-
return
|
|
12032
|
-
}
|
|
12033
|
-
store._wrappedGetters[type] = function wrappedGetter (store) {
|
|
12034
|
-
return rawGetter(
|
|
12035
|
-
local.state, // local state
|
|
12036
|
-
local.getters, // local getters
|
|
12037
|
-
store.state, // root state
|
|
12038
|
-
store.getters // root getters
|
|
12039
|
-
)
|
|
12040
|
-
};
|
|
12041
|
-
}
|
|
12042
|
-
|
|
12043
|
-
function enableStrictMode (store) {
|
|
12044
|
-
store._vm.$watch(function () { return this._data.$$state }, function () {
|
|
12045
|
-
if ((false)) {}
|
|
12046
|
-
}, { deep: true, sync: true });
|
|
12047
|
-
}
|
|
12048
|
-
|
|
12049
|
-
function getNestedState (state, path) {
|
|
12050
|
-
return path.reduce(function (state, key) { return state[key]; }, state)
|
|
12051
|
-
}
|
|
12052
|
-
|
|
12053
|
-
function unifyObjectStyle (type, payload, options) {
|
|
12054
|
-
if (isObject(type) && type.type) {
|
|
12055
|
-
options = payload;
|
|
12056
|
-
payload = type;
|
|
12057
|
-
type = type.type;
|
|
12058
|
-
}
|
|
12059
|
-
|
|
12060
|
-
if ((false)) {}
|
|
12061
|
-
|
|
12062
|
-
return { type: type, payload: payload, options: options }
|
|
12063
|
-
}
|
|
12064
|
-
|
|
12065
|
-
function install (_Vue) {
|
|
12066
|
-
if (Vue && _Vue === Vue) {
|
|
12067
|
-
if ((false)) {}
|
|
12068
|
-
return
|
|
12069
|
-
}
|
|
12070
|
-
Vue = _Vue;
|
|
12071
|
-
applyMixin(Vue);
|
|
12072
|
-
}
|
|
12073
|
-
|
|
12074
|
-
/**
|
|
12075
|
-
* Reduce the code which written in Vue.js for getting the state.
|
|
12076
|
-
* @param {String} [namespace] - Module's namespace
|
|
12077
|
-
* @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.
|
|
12078
|
-
* @param {Object}
|
|
12079
|
-
*/
|
|
12080
|
-
var mapState = normalizeNamespace(function (namespace, states) {
|
|
12081
|
-
var res = {};
|
|
12082
|
-
if (false) {}
|
|
12083
|
-
normalizeMap(states).forEach(function (ref) {
|
|
12084
|
-
var key = ref.key;
|
|
12085
|
-
var val = ref.val;
|
|
12086
|
-
|
|
12087
|
-
res[key] = function mappedState () {
|
|
12088
|
-
var state = this.$store.state;
|
|
12089
|
-
var getters = this.$store.getters;
|
|
12090
|
-
if (namespace) {
|
|
12091
|
-
var module = getModuleByNamespace(this.$store, 'mapState', namespace);
|
|
12092
|
-
if (!module) {
|
|
12093
|
-
return
|
|
12094
|
-
}
|
|
12095
|
-
state = module.context.state;
|
|
12096
|
-
getters = module.context.getters;
|
|
12097
|
-
}
|
|
12098
|
-
return typeof val === 'function'
|
|
12099
|
-
? val.call(this, state, getters)
|
|
12100
|
-
: state[val]
|
|
12101
|
-
};
|
|
12102
|
-
// mark vuex getter for devtools
|
|
12103
|
-
res[key].vuex = true;
|
|
12104
|
-
});
|
|
12105
|
-
return res
|
|
12106
|
-
});
|
|
12107
|
-
|
|
12108
|
-
/**
|
|
12109
|
-
* Reduce the code which written in Vue.js for committing the mutation
|
|
12110
|
-
* @param {String} [namespace] - Module's namespace
|
|
12111
|
-
* @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.
|
|
12112
|
-
* @return {Object}
|
|
12113
|
-
*/
|
|
12114
|
-
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
|
12115
|
-
var res = {};
|
|
12116
|
-
if (false) {}
|
|
12117
|
-
normalizeMap(mutations).forEach(function (ref) {
|
|
12118
|
-
var key = ref.key;
|
|
12119
|
-
var val = ref.val;
|
|
12120
|
-
|
|
12121
|
-
res[key] = function mappedMutation () {
|
|
12122
|
-
var args = [], len = arguments.length;
|
|
12123
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
12124
|
-
|
|
12125
|
-
// Get the commit method from store
|
|
12126
|
-
var commit = this.$store.commit;
|
|
12127
|
-
if (namespace) {
|
|
12128
|
-
var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
|
|
12129
|
-
if (!module) {
|
|
12130
|
-
return
|
|
12131
|
-
}
|
|
12132
|
-
commit = module.context.commit;
|
|
12133
|
-
}
|
|
12134
|
-
return typeof val === 'function'
|
|
12135
|
-
? val.apply(this, [commit].concat(args))
|
|
12136
|
-
: commit.apply(this.$store, [val].concat(args))
|
|
12137
|
-
};
|
|
12138
|
-
});
|
|
12139
|
-
return res
|
|
12140
|
-
});
|
|
12141
|
-
|
|
12142
|
-
/**
|
|
12143
|
-
* Reduce the code which written in Vue.js for getting the getters
|
|
12144
|
-
* @param {String} [namespace] - Module's namespace
|
|
12145
|
-
* @param {Object|Array} getters
|
|
12146
|
-
* @return {Object}
|
|
12147
|
-
*/
|
|
12148
|
-
var mapGetters = normalizeNamespace(function (namespace, getters) {
|
|
12149
|
-
var res = {};
|
|
12150
|
-
if (false) {}
|
|
12151
|
-
normalizeMap(getters).forEach(function (ref) {
|
|
12152
|
-
var key = ref.key;
|
|
12153
|
-
var val = ref.val;
|
|
12154
|
-
|
|
12155
|
-
// The namespace has been mutated by normalizeNamespace
|
|
12156
|
-
val = namespace + val;
|
|
12157
|
-
res[key] = function mappedGetter () {
|
|
12158
|
-
if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
|
|
12159
|
-
return
|
|
12160
|
-
}
|
|
12161
|
-
if (false) {}
|
|
12162
|
-
return this.$store.getters[val]
|
|
12163
|
-
};
|
|
12164
|
-
// mark vuex getter for devtools
|
|
12165
|
-
res[key].vuex = true;
|
|
12166
|
-
});
|
|
12167
|
-
return res
|
|
12168
|
-
});
|
|
12169
|
-
|
|
12170
|
-
/**
|
|
12171
|
-
* Reduce the code which written in Vue.js for dispatch the action
|
|
12172
|
-
* @param {String} [namespace] - Module's namespace
|
|
12173
|
-
* @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.
|
|
12174
|
-
* @return {Object}
|
|
12175
|
-
*/
|
|
12176
|
-
var mapActions = normalizeNamespace(function (namespace, actions) {
|
|
12177
|
-
var res = {};
|
|
12178
|
-
if (false) {}
|
|
12179
|
-
normalizeMap(actions).forEach(function (ref) {
|
|
12180
|
-
var key = ref.key;
|
|
12181
|
-
var val = ref.val;
|
|
12182
|
-
|
|
12183
|
-
res[key] = function mappedAction () {
|
|
12184
|
-
var args = [], len = arguments.length;
|
|
12185
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
12186
|
-
|
|
12187
|
-
// get dispatch function from store
|
|
12188
|
-
var dispatch = this.$store.dispatch;
|
|
12189
|
-
if (namespace) {
|
|
12190
|
-
var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
|
|
12191
|
-
if (!module) {
|
|
12192
|
-
return
|
|
12193
|
-
}
|
|
12194
|
-
dispatch = module.context.dispatch;
|
|
12195
|
-
}
|
|
12196
|
-
return typeof val === 'function'
|
|
12197
|
-
? val.apply(this, [dispatch].concat(args))
|
|
12198
|
-
: dispatch.apply(this.$store, [val].concat(args))
|
|
12199
|
-
};
|
|
12200
|
-
});
|
|
12201
|
-
return res
|
|
12202
|
-
});
|
|
12203
|
-
|
|
12204
|
-
/**
|
|
12205
|
-
* Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
|
|
12206
|
-
* @param {String} namespace
|
|
12207
|
-
* @return {Object}
|
|
12208
|
-
*/
|
|
12209
|
-
var createNamespacedHelpers = function (namespace) { return ({
|
|
12210
|
-
mapState: mapState.bind(null, namespace),
|
|
12211
|
-
mapGetters: mapGetters.bind(null, namespace),
|
|
12212
|
-
mapMutations: mapMutations.bind(null, namespace),
|
|
12213
|
-
mapActions: mapActions.bind(null, namespace)
|
|
12214
|
-
}); };
|
|
12215
|
-
|
|
12216
|
-
/**
|
|
12217
|
-
* Normalize the map
|
|
12218
|
-
* normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
|
|
12219
|
-
* normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
|
|
12220
|
-
* @param {Array|Object} map
|
|
12221
|
-
* @return {Object}
|
|
12222
|
-
*/
|
|
12223
|
-
function normalizeMap (map) {
|
|
12224
|
-
if (!isValidMap(map)) {
|
|
12225
|
-
return []
|
|
12226
|
-
}
|
|
12227
|
-
return Array.isArray(map)
|
|
12228
|
-
? map.map(function (key) { return ({ key: key, val: key }); })
|
|
12229
|
-
: Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
|
|
12230
|
-
}
|
|
12231
|
-
|
|
12232
|
-
/**
|
|
12233
|
-
* Validate whether given map is valid or not
|
|
12234
|
-
* @param {*} map
|
|
12235
|
-
* @return {Boolean}
|
|
12236
|
-
*/
|
|
12237
|
-
function isValidMap (map) {
|
|
12238
|
-
return Array.isArray(map) || isObject(map)
|
|
12239
|
-
}
|
|
12240
|
-
|
|
12241
|
-
/**
|
|
12242
|
-
* 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.
|
|
12243
|
-
* @param {Function} fn
|
|
12244
|
-
* @return {Function}
|
|
12245
|
-
*/
|
|
12246
|
-
function normalizeNamespace (fn) {
|
|
12247
|
-
return function (namespace, map) {
|
|
12248
|
-
if (typeof namespace !== 'string') {
|
|
12249
|
-
map = namespace;
|
|
12250
|
-
namespace = '';
|
|
12251
|
-
} else if (namespace.charAt(namespace.length - 1) !== '/') {
|
|
12252
|
-
namespace += '/';
|
|
12253
|
-
}
|
|
12254
|
-
return fn(namespace, map)
|
|
12255
|
-
}
|
|
12256
|
-
}
|
|
12257
|
-
|
|
12258
|
-
/**
|
|
12259
|
-
* Search a special module from store by namespace. if module not exist, print error message.
|
|
12260
|
-
* @param {Object} store
|
|
12261
|
-
* @param {String} helper
|
|
12262
|
-
* @param {String} namespace
|
|
12263
|
-
* @return {Object}
|
|
12264
|
-
*/
|
|
12265
|
-
function getModuleByNamespace (store, helper, namespace) {
|
|
12266
|
-
var module = store._modulesNamespaceMap[namespace];
|
|
12267
|
-
if (false) {}
|
|
12268
|
-
return module
|
|
12269
|
-
}
|
|
12270
|
-
|
|
12271
|
-
// Credits: borrowed code from fcomb/redux-logger
|
|
12272
|
-
|
|
12273
|
-
function createLogger (ref) {
|
|
12274
|
-
if ( ref === void 0 ) ref = {};
|
|
12275
|
-
var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
|
|
12276
|
-
var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
|
|
12277
|
-
var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
|
|
12278
|
-
var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
|
|
12279
|
-
var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
|
|
12280
|
-
var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
|
|
12281
|
-
var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
|
|
12282
|
-
var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
|
|
12283
|
-
var logger = ref.logger; if ( logger === void 0 ) logger = console;
|
|
12284
|
-
|
|
12285
|
-
return function (store) {
|
|
12286
|
-
var prevState = deepCopy(store.state);
|
|
12287
|
-
|
|
12288
|
-
if (typeof logger === 'undefined') {
|
|
12289
|
-
return
|
|
12290
|
-
}
|
|
12291
|
-
|
|
12292
|
-
if (logMutations) {
|
|
12293
|
-
store.subscribe(function (mutation, state) {
|
|
12294
|
-
var nextState = deepCopy(state);
|
|
12295
|
-
|
|
12296
|
-
if (filter(mutation, prevState, nextState)) {
|
|
12297
|
-
var formattedTime = getFormattedTime();
|
|
12298
|
-
var formattedMutation = mutationTransformer(mutation);
|
|
12299
|
-
var message = "mutation " + (mutation.type) + formattedTime;
|
|
12300
|
-
|
|
12301
|
-
startMessage(logger, message, collapsed);
|
|
12302
|
-
logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
|
|
12303
|
-
logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
|
|
12304
|
-
logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
|
|
12305
|
-
endMessage(logger);
|
|
12306
|
-
}
|
|
12307
|
-
|
|
12308
|
-
prevState = nextState;
|
|
12309
|
-
});
|
|
12310
|
-
}
|
|
12311
|
-
|
|
12312
|
-
if (logActions) {
|
|
12313
|
-
store.subscribeAction(function (action, state) {
|
|
12314
|
-
if (actionFilter(action, state)) {
|
|
12315
|
-
var formattedTime = getFormattedTime();
|
|
12316
|
-
var formattedAction = actionTransformer(action);
|
|
12317
|
-
var message = "action " + (action.type) + formattedTime;
|
|
12318
|
-
|
|
12319
|
-
startMessage(logger, message, collapsed);
|
|
12320
|
-
logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
|
|
12321
|
-
endMessage(logger);
|
|
12322
|
-
}
|
|
12323
|
-
});
|
|
12324
|
-
}
|
|
12325
|
-
}
|
|
12326
|
-
}
|
|
12327
|
-
|
|
12328
|
-
function startMessage (logger, message, collapsed) {
|
|
12329
|
-
var startMessage = collapsed
|
|
12330
|
-
? logger.groupCollapsed
|
|
12331
|
-
: logger.group;
|
|
12332
|
-
|
|
12333
|
-
// render
|
|
12334
|
-
try {
|
|
12335
|
-
startMessage.call(logger, message);
|
|
12336
|
-
} catch (e) {
|
|
12337
|
-
logger.log(message);
|
|
12338
|
-
}
|
|
12339
|
-
}
|
|
12340
|
-
|
|
12341
|
-
function endMessage (logger) {
|
|
12342
|
-
try {
|
|
12343
|
-
logger.groupEnd();
|
|
12344
|
-
} catch (e) {
|
|
12345
|
-
logger.log('—— log end ——');
|
|
12346
|
-
}
|
|
12347
|
-
}
|
|
12348
|
-
|
|
12349
|
-
function getFormattedTime () {
|
|
12350
|
-
var time = new Date();
|
|
12351
|
-
return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
|
|
12352
|
-
}
|
|
12353
|
-
|
|
12354
|
-
function repeat (str, times) {
|
|
12355
|
-
return (new Array(times + 1)).join(str)
|
|
12356
|
-
}
|
|
12357
|
-
|
|
12358
|
-
function pad (num, maxLength) {
|
|
12359
|
-
return repeat('0', maxLength - num.toString().length) + num
|
|
12360
|
-
}
|
|
12361
|
-
|
|
12362
|
-
var index = {
|
|
12363
|
-
Store: Store,
|
|
12364
|
-
install: install,
|
|
12365
|
-
version: '3.6.2',
|
|
12366
|
-
mapState: mapState,
|
|
12367
|
-
mapMutations: mapMutations,
|
|
12368
|
-
mapGetters: mapGetters,
|
|
12369
|
-
mapActions: mapActions,
|
|
12370
|
-
createNamespacedHelpers: createNamespacedHelpers,
|
|
12371
|
-
createLogger: createLogger
|
|
12372
|
-
};
|
|
12373
|
-
|
|
12374
|
-
/* harmony default export */ __webpack_exports__["a"] = (index);
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
12378
|
-
|
|
12379
11202
|
/***/ }),
|
|
12380
11203
|
|
|
12381
11204
|
/***/ "2f9a":
|
|
@@ -26004,6 +24827,22 @@ var update = add("6a79d46e", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
26004
24827
|
|
|
26005
24828
|
/***/ }),
|
|
26006
24829
|
|
|
24830
|
+
/***/ "5024":
|
|
24831
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24832
|
+
|
|
24833
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
24834
|
+
|
|
24835
|
+
// load the styles
|
|
24836
|
+
var content = __webpack_require__("aeb3");
|
|
24837
|
+
if(content.__esModule) content = content.default;
|
|
24838
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
24839
|
+
if(content.locals) module.exports = content.locals;
|
|
24840
|
+
// add the styles to the DOM
|
|
24841
|
+
var add = __webpack_require__("499e").default
|
|
24842
|
+
var update = add("4b1408cc", content, true, {"sourceMap":false,"shadowMode":false});
|
|
24843
|
+
|
|
24844
|
+
/***/ }),
|
|
24845
|
+
|
|
26007
24846
|
/***/ "50c4":
|
|
26008
24847
|
/***/ (function(module, exports, __webpack_require__) {
|
|
26009
24848
|
|
|
@@ -28148,22 +26987,6 @@ module.exports = function (argument) {
|
|
|
28148
26987
|
};
|
|
28149
26988
|
|
|
28150
26989
|
|
|
28151
|
-
/***/ }),
|
|
28152
|
-
|
|
28153
|
-
/***/ "592c":
|
|
28154
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
28155
|
-
|
|
28156
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
28157
|
-
|
|
28158
|
-
// load the styles
|
|
28159
|
-
var content = __webpack_require__("9f10");
|
|
28160
|
-
if(content.__esModule) content = content.default;
|
|
28161
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
28162
|
-
if(content.locals) module.exports = content.locals;
|
|
28163
|
-
// add the styles to the DOM
|
|
28164
|
-
var add = __webpack_require__("499e").default
|
|
28165
|
-
var update = add("6e34b00e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
28166
|
-
|
|
28167
26990
|
/***/ }),
|
|
28168
26991
|
|
|
28169
26992
|
/***/ "597f":
|
|
@@ -43348,17 +42171,6 @@ function simpleEnd(buf) {
|
|
|
43348
42171
|
return buf && buf.length ? this.write(buf) : '';
|
|
43349
42172
|
}
|
|
43350
42173
|
|
|
43351
|
-
/***/ }),
|
|
43352
|
-
|
|
43353
|
-
/***/ "7d729":
|
|
43354
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
43355
|
-
|
|
43356
|
-
"use strict";
|
|
43357
|
-
/* 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_14b83910_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("592c");
|
|
43358
|
-
/* 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_14b83910_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_14b83910_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
43359
|
-
/* unused harmony reexport * */
|
|
43360
|
-
|
|
43361
|
-
|
|
43362
42174
|
/***/ }),
|
|
43363
42175
|
|
|
43364
42176
|
/***/ "7db9":
|
|
@@ -54857,20 +53669,6 @@ exports.push([module.i, ".table-header{width:100%;height:40px;display:flex;backg
|
|
|
54857
53669
|
module.exports = exports;
|
|
54858
53670
|
|
|
54859
53671
|
|
|
54860
|
-
/***/ }),
|
|
54861
|
-
|
|
54862
|
-
/***/ "9f10":
|
|
54863
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
54864
|
-
|
|
54865
|
-
// Imports
|
|
54866
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
54867
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
54868
|
-
// Module
|
|
54869
|
-
exports.push([module.i, ".dialog-cache-wrap[data-v-14b83910]{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-14b83910]{width:100%;height:auto;display:flex;align-items:center;flex-flow:row nowrap;justify-content:center}", ""]);
|
|
54870
|
-
// Exports
|
|
54871
|
-
module.exports = exports;
|
|
54872
|
-
|
|
54873
|
-
|
|
54874
53672
|
/***/ }),
|
|
54875
53673
|
|
|
54876
53674
|
/***/ "9f8a":
|
|
@@ -58985,6 +57783,17 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
58985
57783
|
/* unused harmony reexport * */
|
|
58986
57784
|
|
|
58987
57785
|
|
|
57786
|
+
/***/ }),
|
|
57787
|
+
|
|
57788
|
+
/***/ "a6ff":
|
|
57789
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
57790
|
+
|
|
57791
|
+
"use strict";
|
|
57792
|
+
/* 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_28874b7a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5024");
|
|
57793
|
+
/* 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_28874b7a_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_28874b7a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
57794
|
+
/* unused harmony reexport * */
|
|
57795
|
+
|
|
57796
|
+
|
|
58988
57797
|
/***/ }),
|
|
58989
57798
|
|
|
58990
57799
|
/***/ "a742":
|
|
@@ -68977,6 +67786,20 @@ function _defineProperty(obj, key, value) {
|
|
|
68977
67786
|
return obj;
|
|
68978
67787
|
}
|
|
68979
67788
|
|
|
67789
|
+
/***/ }),
|
|
67790
|
+
|
|
67791
|
+
/***/ "aeb3":
|
|
67792
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
67793
|
+
|
|
67794
|
+
// Imports
|
|
67795
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
67796
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
67797
|
+
// Module
|
|
67798
|
+
exports.push([module.i, ".dialog-cache-wrap[data-v-28874b7a]{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-28874b7a]{width:100%;height:auto;display:flex;align-items:center;flex-flow:row nowrap;justify-content:center}", ""]);
|
|
67799
|
+
// Exports
|
|
67800
|
+
module.exports = exports;
|
|
67801
|
+
|
|
67802
|
+
|
|
68980
67803
|
/***/ }),
|
|
68981
67804
|
|
|
68982
67805
|
/***/ "aeca":
|
|
@@ -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=14b83910&scoped=true&
|
|
116639
|
-
|
|
116640
|
-
// EXTERNAL MODULE: ./node_modules/vuex/dist/vuex.esm.js
|
|
116641
|
-
var vuex_esm = __webpack_require__("2f62");
|
|
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=28874b7a&scoped=true&
|
|
115457
|
+
var dialogCachevue_type_template_id_28874b7a_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"},[(_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_28874b7a_scoped_true_staticRenderFns = []
|
|
116642
115459
|
|
|
116643
|
-
// CONCATENATED MODULE: ./src/store/index.js
|
|
116644
115460
|
|
|
115461
|
+
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=template&id=28874b7a&scoped=true&
|
|
116645
115462
|
|
|
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
|
//
|
|
@@ -116684,8 +115494,6 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116684
115494
|
//
|
|
116685
115495
|
//
|
|
116686
115496
|
//
|
|
116687
|
-
//
|
|
116688
|
-
|
|
116689
115497
|
|
|
116690
115498
|
/* harmony default export */ var dialogCachevue_type_script_lang_js_ = ({
|
|
116691
115499
|
data() {
|
|
@@ -116698,11 +115506,11 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116698
115506
|
|
|
116699
115507
|
computed: {
|
|
116700
115508
|
getCacheList() {
|
|
116701
|
-
return store.getters['dialogCacheStore/getCacheList'];
|
|
115509
|
+
return this.$store.getters['dialogCacheStore/getCacheList'];
|
|
116702
115510
|
},
|
|
116703
115511
|
|
|
116704
115512
|
getRenderShow() {
|
|
116705
|
-
return store.getters['dialogCacheStore/getRenderShow'];
|
|
115513
|
+
return this.$store.getters['dialogCacheStore/getRenderShow'];
|
|
116706
115514
|
}
|
|
116707
115515
|
|
|
116708
115516
|
},
|
|
@@ -116711,7 +115519,7 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116711
115519
|
},
|
|
116712
115520
|
methods: {
|
|
116713
115521
|
openDialogCache(index) {
|
|
116714
|
-
store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index);
|
|
115522
|
+
this.$store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index);
|
|
116715
115523
|
},
|
|
116716
115524
|
|
|
116717
115525
|
dialogCacheWrapOnBlue() {
|
|
@@ -116721,19 +115529,15 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116721
115529
|
},
|
|
116722
115530
|
watch: {
|
|
116723
115531
|
getRenderShow(newVal, oldVal) {
|
|
116724
|
-
|
|
116725
|
-
this.$nextTick(() => {
|
|
116726
|
-
this.$refs.dialogCacheWrapRef.focus();
|
|
116727
|
-
});
|
|
116728
|
-
}
|
|
115532
|
+
console.log(newVal);
|
|
116729
115533
|
}
|
|
116730
115534
|
|
|
116731
115535
|
}
|
|
116732
115536
|
});
|
|
116733
115537
|
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=script&lang=js&
|
|
116734
115538
|
/* harmony default export */ var components_dialogCachevue_type_script_lang_js_ = (dialogCachevue_type_script_lang_js_);
|
|
116735
|
-
// EXTERNAL MODULE: ./packages/components/dialogCache/index.vue?vue&type=style&index=0&id=
|
|
116736
|
-
var
|
|
115539
|
+
// EXTERNAL MODULE: ./packages/components/dialogCache/index.vue?vue&type=style&index=0&id=28874b7a&lang=less&scoped=true&
|
|
115540
|
+
var dialogCachevue_type_style_index_0_id_28874b7a_lang_less_scoped_true_ = __webpack_require__("a6ff");
|
|
116737
115541
|
|
|
116738
115542
|
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue
|
|
116739
115543
|
|
|
@@ -116746,11 +115550,11 @@ var dialogCachevue_type_style_index_0_id_14b83910_lang_less_scoped_true_ = __web
|
|
|
116746
115550
|
|
|
116747
115551
|
var dialogCache_component = Object(componentNormalizer["a" /* default */])(
|
|
116748
115552
|
components_dialogCachevue_type_script_lang_js_,
|
|
116749
|
-
|
|
116750
|
-
|
|
115553
|
+
dialogCachevue_type_template_id_28874b7a_scoped_true_render,
|
|
115554
|
+
dialogCachevue_type_template_id_28874b7a_scoped_true_staticRenderFns,
|
|
116751
115555
|
false,
|
|
116752
115556
|
null,
|
|
116753
|
-
"
|
|
115557
|
+
"28874b7a",
|
|
116754
115558
|
null
|
|
116755
115559
|
|
|
116756
115560
|
)
|