meixioacomponent 0.3.78 → 0.3.81
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 +52 -1248
- package/lib/meixioacomponent.umd.js +52 -1248
- package/lib/meixioacomponent.umd.min.js +14 -20
- package/package.json +1 -1
- package/packages/components/dialogCache/index.vue +5 -11
- package/src/App.vue +4 -0
- package/src/component/test.vue +5 -4
|
@@ -11208,1183 +11208,6 @@ module.exports = function isCancel(value) {
|
|
|
11208
11208
|
};
|
|
11209
11209
|
|
|
11210
11210
|
|
|
11211
|
-
/***/ }),
|
|
11212
|
-
|
|
11213
|
-
/***/ "2f62":
|
|
11214
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11215
|
-
|
|
11216
|
-
"use strict";
|
|
11217
|
-
/* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export Store */
|
|
11218
|
-
/* unused harmony export createLogger */
|
|
11219
|
-
/* unused harmony export createNamespacedHelpers */
|
|
11220
|
-
/* unused harmony export install */
|
|
11221
|
-
/* unused harmony export mapActions */
|
|
11222
|
-
/* unused harmony export mapGetters */
|
|
11223
|
-
/* unused harmony export mapMutations */
|
|
11224
|
-
/* unused harmony export mapState */
|
|
11225
|
-
/*!
|
|
11226
|
-
* vuex v3.6.2
|
|
11227
|
-
* (c) 2021 Evan You
|
|
11228
|
-
* @license MIT
|
|
11229
|
-
*/
|
|
11230
|
-
function applyMixin (Vue) {
|
|
11231
|
-
var version = Number(Vue.version.split('.')[0]);
|
|
11232
|
-
|
|
11233
|
-
if (version >= 2) {
|
|
11234
|
-
Vue.mixin({ beforeCreate: vuexInit });
|
|
11235
|
-
} else {
|
|
11236
|
-
// override init and inject vuex init procedure
|
|
11237
|
-
// for 1.x backwards compatibility.
|
|
11238
|
-
var _init = Vue.prototype._init;
|
|
11239
|
-
Vue.prototype._init = function (options) {
|
|
11240
|
-
if ( options === void 0 ) options = {};
|
|
11241
|
-
|
|
11242
|
-
options.init = options.init
|
|
11243
|
-
? [vuexInit].concat(options.init)
|
|
11244
|
-
: vuexInit;
|
|
11245
|
-
_init.call(this, options);
|
|
11246
|
-
};
|
|
11247
|
-
}
|
|
11248
|
-
|
|
11249
|
-
/**
|
|
11250
|
-
* Vuex init hook, injected into each instances init hooks list.
|
|
11251
|
-
*/
|
|
11252
|
-
|
|
11253
|
-
function vuexInit () {
|
|
11254
|
-
var options = this.$options;
|
|
11255
|
-
// store injection
|
|
11256
|
-
if (options.store) {
|
|
11257
|
-
this.$store = typeof options.store === 'function'
|
|
11258
|
-
? options.store()
|
|
11259
|
-
: options.store;
|
|
11260
|
-
} else if (options.parent && options.parent.$store) {
|
|
11261
|
-
this.$store = options.parent.$store;
|
|
11262
|
-
}
|
|
11263
|
-
}
|
|
11264
|
-
}
|
|
11265
|
-
|
|
11266
|
-
var target = typeof window !== 'undefined'
|
|
11267
|
-
? window
|
|
11268
|
-
: typeof global !== 'undefined'
|
|
11269
|
-
? global
|
|
11270
|
-
: {};
|
|
11271
|
-
var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
11272
|
-
|
|
11273
|
-
function devtoolPlugin (store) {
|
|
11274
|
-
if (!devtoolHook) { return }
|
|
11275
|
-
|
|
11276
|
-
store._devtoolHook = devtoolHook;
|
|
11277
|
-
|
|
11278
|
-
devtoolHook.emit('vuex:init', store);
|
|
11279
|
-
|
|
11280
|
-
devtoolHook.on('vuex:travel-to-state', function (targetState) {
|
|
11281
|
-
store.replaceState(targetState);
|
|
11282
|
-
});
|
|
11283
|
-
|
|
11284
|
-
store.subscribe(function (mutation, state) {
|
|
11285
|
-
devtoolHook.emit('vuex:mutation', mutation, state);
|
|
11286
|
-
}, { prepend: true });
|
|
11287
|
-
|
|
11288
|
-
store.subscribeAction(function (action, state) {
|
|
11289
|
-
devtoolHook.emit('vuex:action', action, state);
|
|
11290
|
-
}, { prepend: true });
|
|
11291
|
-
}
|
|
11292
|
-
|
|
11293
|
-
/**
|
|
11294
|
-
* Get the first item that pass the test
|
|
11295
|
-
* by second argument function
|
|
11296
|
-
*
|
|
11297
|
-
* @param {Array} list
|
|
11298
|
-
* @param {Function} f
|
|
11299
|
-
* @return {*}
|
|
11300
|
-
*/
|
|
11301
|
-
function find (list, f) {
|
|
11302
|
-
return list.filter(f)[0]
|
|
11303
|
-
}
|
|
11304
|
-
|
|
11305
|
-
/**
|
|
11306
|
-
* Deep copy the given object considering circular structure.
|
|
11307
|
-
* This function caches all nested objects and its copies.
|
|
11308
|
-
* If it detects circular structure, use cached copy to avoid infinite loop.
|
|
11309
|
-
*
|
|
11310
|
-
* @param {*} obj
|
|
11311
|
-
* @param {Array<Object>} cache
|
|
11312
|
-
* @return {*}
|
|
11313
|
-
*/
|
|
11314
|
-
function deepCopy (obj, cache) {
|
|
11315
|
-
if ( cache === void 0 ) cache = [];
|
|
11316
|
-
|
|
11317
|
-
// just return if obj is immutable value
|
|
11318
|
-
if (obj === null || typeof obj !== 'object') {
|
|
11319
|
-
return obj
|
|
11320
|
-
}
|
|
11321
|
-
|
|
11322
|
-
// if obj is hit, it is in circular structure
|
|
11323
|
-
var hit = find(cache, function (c) { return c.original === obj; });
|
|
11324
|
-
if (hit) {
|
|
11325
|
-
return hit.copy
|
|
11326
|
-
}
|
|
11327
|
-
|
|
11328
|
-
var copy = Array.isArray(obj) ? [] : {};
|
|
11329
|
-
// put the copy into cache at first
|
|
11330
|
-
// because we want to refer it in recursive deepCopy
|
|
11331
|
-
cache.push({
|
|
11332
|
-
original: obj,
|
|
11333
|
-
copy: copy
|
|
11334
|
-
});
|
|
11335
|
-
|
|
11336
|
-
Object.keys(obj).forEach(function (key) {
|
|
11337
|
-
copy[key] = deepCopy(obj[key], cache);
|
|
11338
|
-
});
|
|
11339
|
-
|
|
11340
|
-
return copy
|
|
11341
|
-
}
|
|
11342
|
-
|
|
11343
|
-
/**
|
|
11344
|
-
* forEach for object
|
|
11345
|
-
*/
|
|
11346
|
-
function forEachValue (obj, fn) {
|
|
11347
|
-
Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
|
|
11348
|
-
}
|
|
11349
|
-
|
|
11350
|
-
function isObject (obj) {
|
|
11351
|
-
return obj !== null && typeof obj === 'object'
|
|
11352
|
-
}
|
|
11353
|
-
|
|
11354
|
-
function isPromise (val) {
|
|
11355
|
-
return val && typeof val.then === 'function'
|
|
11356
|
-
}
|
|
11357
|
-
|
|
11358
|
-
function assert (condition, msg) {
|
|
11359
|
-
if (!condition) { throw new Error(("[vuex] " + msg)) }
|
|
11360
|
-
}
|
|
11361
|
-
|
|
11362
|
-
function partial (fn, arg) {
|
|
11363
|
-
return function () {
|
|
11364
|
-
return fn(arg)
|
|
11365
|
-
}
|
|
11366
|
-
}
|
|
11367
|
-
|
|
11368
|
-
// Base data struct for store's module, package with some attribute and method
|
|
11369
|
-
var Module = function Module (rawModule, runtime) {
|
|
11370
|
-
this.runtime = runtime;
|
|
11371
|
-
// Store some children item
|
|
11372
|
-
this._children = Object.create(null);
|
|
11373
|
-
// Store the origin module object which passed by programmer
|
|
11374
|
-
this._rawModule = rawModule;
|
|
11375
|
-
var rawState = rawModule.state;
|
|
11376
|
-
|
|
11377
|
-
// Store the origin module's state
|
|
11378
|
-
this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
|
|
11379
|
-
};
|
|
11380
|
-
|
|
11381
|
-
var prototypeAccessors = { namespaced: { configurable: true } };
|
|
11382
|
-
|
|
11383
|
-
prototypeAccessors.namespaced.get = function () {
|
|
11384
|
-
return !!this._rawModule.namespaced
|
|
11385
|
-
};
|
|
11386
|
-
|
|
11387
|
-
Module.prototype.addChild = function addChild (key, module) {
|
|
11388
|
-
this._children[key] = module;
|
|
11389
|
-
};
|
|
11390
|
-
|
|
11391
|
-
Module.prototype.removeChild = function removeChild (key) {
|
|
11392
|
-
delete this._children[key];
|
|
11393
|
-
};
|
|
11394
|
-
|
|
11395
|
-
Module.prototype.getChild = function getChild (key) {
|
|
11396
|
-
return this._children[key]
|
|
11397
|
-
};
|
|
11398
|
-
|
|
11399
|
-
Module.prototype.hasChild = function hasChild (key) {
|
|
11400
|
-
return key in this._children
|
|
11401
|
-
};
|
|
11402
|
-
|
|
11403
|
-
Module.prototype.update = function update (rawModule) {
|
|
11404
|
-
this._rawModule.namespaced = rawModule.namespaced;
|
|
11405
|
-
if (rawModule.actions) {
|
|
11406
|
-
this._rawModule.actions = rawModule.actions;
|
|
11407
|
-
}
|
|
11408
|
-
if (rawModule.mutations) {
|
|
11409
|
-
this._rawModule.mutations = rawModule.mutations;
|
|
11410
|
-
}
|
|
11411
|
-
if (rawModule.getters) {
|
|
11412
|
-
this._rawModule.getters = rawModule.getters;
|
|
11413
|
-
}
|
|
11414
|
-
};
|
|
11415
|
-
|
|
11416
|
-
Module.prototype.forEachChild = function forEachChild (fn) {
|
|
11417
|
-
forEachValue(this._children, fn);
|
|
11418
|
-
};
|
|
11419
|
-
|
|
11420
|
-
Module.prototype.forEachGetter = function forEachGetter (fn) {
|
|
11421
|
-
if (this._rawModule.getters) {
|
|
11422
|
-
forEachValue(this._rawModule.getters, fn);
|
|
11423
|
-
}
|
|
11424
|
-
};
|
|
11425
|
-
|
|
11426
|
-
Module.prototype.forEachAction = function forEachAction (fn) {
|
|
11427
|
-
if (this._rawModule.actions) {
|
|
11428
|
-
forEachValue(this._rawModule.actions, fn);
|
|
11429
|
-
}
|
|
11430
|
-
};
|
|
11431
|
-
|
|
11432
|
-
Module.prototype.forEachMutation = function forEachMutation (fn) {
|
|
11433
|
-
if (this._rawModule.mutations) {
|
|
11434
|
-
forEachValue(this._rawModule.mutations, fn);
|
|
11435
|
-
}
|
|
11436
|
-
};
|
|
11437
|
-
|
|
11438
|
-
Object.defineProperties( Module.prototype, prototypeAccessors );
|
|
11439
|
-
|
|
11440
|
-
var ModuleCollection = function ModuleCollection (rawRootModule) {
|
|
11441
|
-
// register root module (Vuex.Store options)
|
|
11442
|
-
this.register([], rawRootModule, false);
|
|
11443
|
-
};
|
|
11444
|
-
|
|
11445
|
-
ModuleCollection.prototype.get = function get (path) {
|
|
11446
|
-
return path.reduce(function (module, key) {
|
|
11447
|
-
return module.getChild(key)
|
|
11448
|
-
}, this.root)
|
|
11449
|
-
};
|
|
11450
|
-
|
|
11451
|
-
ModuleCollection.prototype.getNamespace = function getNamespace (path) {
|
|
11452
|
-
var module = this.root;
|
|
11453
|
-
return path.reduce(function (namespace, key) {
|
|
11454
|
-
module = module.getChild(key);
|
|
11455
|
-
return namespace + (module.namespaced ? key + '/' : '')
|
|
11456
|
-
}, '')
|
|
11457
|
-
};
|
|
11458
|
-
|
|
11459
|
-
ModuleCollection.prototype.update = function update$1 (rawRootModule) {
|
|
11460
|
-
update([], this.root, rawRootModule);
|
|
11461
|
-
};
|
|
11462
|
-
|
|
11463
|
-
ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
|
|
11464
|
-
var this$1 = this;
|
|
11465
|
-
if ( runtime === void 0 ) runtime = true;
|
|
11466
|
-
|
|
11467
|
-
if ((false)) {}
|
|
11468
|
-
|
|
11469
|
-
var newModule = new Module(rawModule, runtime);
|
|
11470
|
-
if (path.length === 0) {
|
|
11471
|
-
this.root = newModule;
|
|
11472
|
-
} else {
|
|
11473
|
-
var parent = this.get(path.slice(0, -1));
|
|
11474
|
-
parent.addChild(path[path.length - 1], newModule);
|
|
11475
|
-
}
|
|
11476
|
-
|
|
11477
|
-
// register nested modules
|
|
11478
|
-
if (rawModule.modules) {
|
|
11479
|
-
forEachValue(rawModule.modules, function (rawChildModule, key) {
|
|
11480
|
-
this$1.register(path.concat(key), rawChildModule, runtime);
|
|
11481
|
-
});
|
|
11482
|
-
}
|
|
11483
|
-
};
|
|
11484
|
-
|
|
11485
|
-
ModuleCollection.prototype.unregister = function unregister (path) {
|
|
11486
|
-
var parent = this.get(path.slice(0, -1));
|
|
11487
|
-
var key = path[path.length - 1];
|
|
11488
|
-
var child = parent.getChild(key);
|
|
11489
|
-
|
|
11490
|
-
if (!child) {
|
|
11491
|
-
if ((false)) {}
|
|
11492
|
-
return
|
|
11493
|
-
}
|
|
11494
|
-
|
|
11495
|
-
if (!child.runtime) {
|
|
11496
|
-
return
|
|
11497
|
-
}
|
|
11498
|
-
|
|
11499
|
-
parent.removeChild(key);
|
|
11500
|
-
};
|
|
11501
|
-
|
|
11502
|
-
ModuleCollection.prototype.isRegistered = function isRegistered (path) {
|
|
11503
|
-
var parent = this.get(path.slice(0, -1));
|
|
11504
|
-
var key = path[path.length - 1];
|
|
11505
|
-
|
|
11506
|
-
if (parent) {
|
|
11507
|
-
return parent.hasChild(key)
|
|
11508
|
-
}
|
|
11509
|
-
|
|
11510
|
-
return false
|
|
11511
|
-
};
|
|
11512
|
-
|
|
11513
|
-
function update (path, targetModule, newModule) {
|
|
11514
|
-
if ((false)) {}
|
|
11515
|
-
|
|
11516
|
-
// update target module
|
|
11517
|
-
targetModule.update(newModule);
|
|
11518
|
-
|
|
11519
|
-
// update nested modules
|
|
11520
|
-
if (newModule.modules) {
|
|
11521
|
-
for (var key in newModule.modules) {
|
|
11522
|
-
if (!targetModule.getChild(key)) {
|
|
11523
|
-
if ((false)) {}
|
|
11524
|
-
return
|
|
11525
|
-
}
|
|
11526
|
-
update(
|
|
11527
|
-
path.concat(key),
|
|
11528
|
-
targetModule.getChild(key),
|
|
11529
|
-
newModule.modules[key]
|
|
11530
|
-
);
|
|
11531
|
-
}
|
|
11532
|
-
}
|
|
11533
|
-
}
|
|
11534
|
-
|
|
11535
|
-
var functionAssert = {
|
|
11536
|
-
assert: function (value) { return typeof value === 'function'; },
|
|
11537
|
-
expected: 'function'
|
|
11538
|
-
};
|
|
11539
|
-
|
|
11540
|
-
var objectAssert = {
|
|
11541
|
-
assert: function (value) { return typeof value === 'function' ||
|
|
11542
|
-
(typeof value === 'object' && typeof value.handler === 'function'); },
|
|
11543
|
-
expected: 'function or object with "handler" function'
|
|
11544
|
-
};
|
|
11545
|
-
|
|
11546
|
-
var assertTypes = {
|
|
11547
|
-
getters: functionAssert,
|
|
11548
|
-
mutations: functionAssert,
|
|
11549
|
-
actions: objectAssert
|
|
11550
|
-
};
|
|
11551
|
-
|
|
11552
|
-
function assertRawModule (path, rawModule) {
|
|
11553
|
-
Object.keys(assertTypes).forEach(function (key) {
|
|
11554
|
-
if (!rawModule[key]) { return }
|
|
11555
|
-
|
|
11556
|
-
var assertOptions = assertTypes[key];
|
|
11557
|
-
|
|
11558
|
-
forEachValue(rawModule[key], function (value, type) {
|
|
11559
|
-
assert(
|
|
11560
|
-
assertOptions.assert(value),
|
|
11561
|
-
makeAssertionMessage(path, key, type, value, assertOptions.expected)
|
|
11562
|
-
);
|
|
11563
|
-
});
|
|
11564
|
-
});
|
|
11565
|
-
}
|
|
11566
|
-
|
|
11567
|
-
function makeAssertionMessage (path, key, type, value, expected) {
|
|
11568
|
-
var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
|
|
11569
|
-
if (path.length > 0) {
|
|
11570
|
-
buf += " in module \"" + (path.join('.')) + "\"";
|
|
11571
|
-
}
|
|
11572
|
-
buf += " is " + (JSON.stringify(value)) + ".";
|
|
11573
|
-
return buf
|
|
11574
|
-
}
|
|
11575
|
-
|
|
11576
|
-
var Vue; // bind on install
|
|
11577
|
-
|
|
11578
|
-
var Store = function Store (options) {
|
|
11579
|
-
var this$1 = this;
|
|
11580
|
-
if ( options === void 0 ) options = {};
|
|
11581
|
-
|
|
11582
|
-
// Auto install if it is not done yet and `window` has `Vue`.
|
|
11583
|
-
// To allow users to avoid auto-installation in some cases,
|
|
11584
|
-
// this code should be placed here. See #731
|
|
11585
|
-
if (!Vue && typeof window !== 'undefined' && window.Vue) {
|
|
11586
|
-
install(window.Vue);
|
|
11587
|
-
}
|
|
11588
|
-
|
|
11589
|
-
if ((false)) {}
|
|
11590
|
-
|
|
11591
|
-
var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
|
|
11592
|
-
var strict = options.strict; if ( strict === void 0 ) strict = false;
|
|
11593
|
-
|
|
11594
|
-
// store internal state
|
|
11595
|
-
this._committing = false;
|
|
11596
|
-
this._actions = Object.create(null);
|
|
11597
|
-
this._actionSubscribers = [];
|
|
11598
|
-
this._mutations = Object.create(null);
|
|
11599
|
-
this._wrappedGetters = Object.create(null);
|
|
11600
|
-
this._modules = new ModuleCollection(options);
|
|
11601
|
-
this._modulesNamespaceMap = Object.create(null);
|
|
11602
|
-
this._subscribers = [];
|
|
11603
|
-
this._watcherVM = new Vue();
|
|
11604
|
-
this._makeLocalGettersCache = Object.create(null);
|
|
11605
|
-
|
|
11606
|
-
// bind commit and dispatch to self
|
|
11607
|
-
var store = this;
|
|
11608
|
-
var ref = this;
|
|
11609
|
-
var dispatch = ref.dispatch;
|
|
11610
|
-
var commit = ref.commit;
|
|
11611
|
-
this.dispatch = function boundDispatch (type, payload) {
|
|
11612
|
-
return dispatch.call(store, type, payload)
|
|
11613
|
-
};
|
|
11614
|
-
this.commit = function boundCommit (type, payload, options) {
|
|
11615
|
-
return commit.call(store, type, payload, options)
|
|
11616
|
-
};
|
|
11617
|
-
|
|
11618
|
-
// strict mode
|
|
11619
|
-
this.strict = strict;
|
|
11620
|
-
|
|
11621
|
-
var state = this._modules.root.state;
|
|
11622
|
-
|
|
11623
|
-
// init root module.
|
|
11624
|
-
// this also recursively registers all sub-modules
|
|
11625
|
-
// and collects all module getters inside this._wrappedGetters
|
|
11626
|
-
installModule(this, state, [], this._modules.root);
|
|
11627
|
-
|
|
11628
|
-
// initialize the store vm, which is responsible for the reactivity
|
|
11629
|
-
// (also registers _wrappedGetters as computed properties)
|
|
11630
|
-
resetStoreVM(this, state);
|
|
11631
|
-
|
|
11632
|
-
// apply plugins
|
|
11633
|
-
plugins.forEach(function (plugin) { return plugin(this$1); });
|
|
11634
|
-
|
|
11635
|
-
var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
|
|
11636
|
-
if (useDevtools) {
|
|
11637
|
-
devtoolPlugin(this);
|
|
11638
|
-
}
|
|
11639
|
-
};
|
|
11640
|
-
|
|
11641
|
-
var prototypeAccessors$1 = { state: { configurable: true } };
|
|
11642
|
-
|
|
11643
|
-
prototypeAccessors$1.state.get = function () {
|
|
11644
|
-
return this._vm._data.$$state
|
|
11645
|
-
};
|
|
11646
|
-
|
|
11647
|
-
prototypeAccessors$1.state.set = function (v) {
|
|
11648
|
-
if ((false)) {}
|
|
11649
|
-
};
|
|
11650
|
-
|
|
11651
|
-
Store.prototype.commit = function commit (_type, _payload, _options) {
|
|
11652
|
-
var this$1 = this;
|
|
11653
|
-
|
|
11654
|
-
// check object-style commit
|
|
11655
|
-
var ref = unifyObjectStyle(_type, _payload, _options);
|
|
11656
|
-
var type = ref.type;
|
|
11657
|
-
var payload = ref.payload;
|
|
11658
|
-
var options = ref.options;
|
|
11659
|
-
|
|
11660
|
-
var mutation = { type: type, payload: payload };
|
|
11661
|
-
var entry = this._mutations[type];
|
|
11662
|
-
if (!entry) {
|
|
11663
|
-
if ((false)) {}
|
|
11664
|
-
return
|
|
11665
|
-
}
|
|
11666
|
-
this._withCommit(function () {
|
|
11667
|
-
entry.forEach(function commitIterator (handler) {
|
|
11668
|
-
handler(payload);
|
|
11669
|
-
});
|
|
11670
|
-
});
|
|
11671
|
-
|
|
11672
|
-
this._subscribers
|
|
11673
|
-
.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
|
|
11674
|
-
.forEach(function (sub) { return sub(mutation, this$1.state); });
|
|
11675
|
-
|
|
11676
|
-
if (
|
|
11677
|
-
false
|
|
11678
|
-
) {}
|
|
11679
|
-
};
|
|
11680
|
-
|
|
11681
|
-
Store.prototype.dispatch = function dispatch (_type, _payload) {
|
|
11682
|
-
var this$1 = this;
|
|
11683
|
-
|
|
11684
|
-
// check object-style dispatch
|
|
11685
|
-
var ref = unifyObjectStyle(_type, _payload);
|
|
11686
|
-
var type = ref.type;
|
|
11687
|
-
var payload = ref.payload;
|
|
11688
|
-
|
|
11689
|
-
var action = { type: type, payload: payload };
|
|
11690
|
-
var entry = this._actions[type];
|
|
11691
|
-
if (!entry) {
|
|
11692
|
-
if ((false)) {}
|
|
11693
|
-
return
|
|
11694
|
-
}
|
|
11695
|
-
|
|
11696
|
-
try {
|
|
11697
|
-
this._actionSubscribers
|
|
11698
|
-
.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
|
|
11699
|
-
.filter(function (sub) { return sub.before; })
|
|
11700
|
-
.forEach(function (sub) { return sub.before(action, this$1.state); });
|
|
11701
|
-
} catch (e) {
|
|
11702
|
-
if ((false)) {}
|
|
11703
|
-
}
|
|
11704
|
-
|
|
11705
|
-
var result = entry.length > 1
|
|
11706
|
-
? Promise.all(entry.map(function (handler) { return handler(payload); }))
|
|
11707
|
-
: entry[0](payload);
|
|
11708
|
-
|
|
11709
|
-
return new Promise(function (resolve, reject) {
|
|
11710
|
-
result.then(function (res) {
|
|
11711
|
-
try {
|
|
11712
|
-
this$1._actionSubscribers
|
|
11713
|
-
.filter(function (sub) { return sub.after; })
|
|
11714
|
-
.forEach(function (sub) { return sub.after(action, this$1.state); });
|
|
11715
|
-
} catch (e) {
|
|
11716
|
-
if ((false)) {}
|
|
11717
|
-
}
|
|
11718
|
-
resolve(res);
|
|
11719
|
-
}, function (error) {
|
|
11720
|
-
try {
|
|
11721
|
-
this$1._actionSubscribers
|
|
11722
|
-
.filter(function (sub) { return sub.error; })
|
|
11723
|
-
.forEach(function (sub) { return sub.error(action, this$1.state, error); });
|
|
11724
|
-
} catch (e) {
|
|
11725
|
-
if ((false)) {}
|
|
11726
|
-
}
|
|
11727
|
-
reject(error);
|
|
11728
|
-
});
|
|
11729
|
-
})
|
|
11730
|
-
};
|
|
11731
|
-
|
|
11732
|
-
Store.prototype.subscribe = function subscribe (fn, options) {
|
|
11733
|
-
return genericSubscribe(fn, this._subscribers, options)
|
|
11734
|
-
};
|
|
11735
|
-
|
|
11736
|
-
Store.prototype.subscribeAction = function subscribeAction (fn, options) {
|
|
11737
|
-
var subs = typeof fn === 'function' ? { before: fn } : fn;
|
|
11738
|
-
return genericSubscribe(subs, this._actionSubscribers, options)
|
|
11739
|
-
};
|
|
11740
|
-
|
|
11741
|
-
Store.prototype.watch = function watch (getter, cb, options) {
|
|
11742
|
-
var this$1 = this;
|
|
11743
|
-
|
|
11744
|
-
if ((false)) {}
|
|
11745
|
-
return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
|
|
11746
|
-
};
|
|
11747
|
-
|
|
11748
|
-
Store.prototype.replaceState = function replaceState (state) {
|
|
11749
|
-
var this$1 = this;
|
|
11750
|
-
|
|
11751
|
-
this._withCommit(function () {
|
|
11752
|
-
this$1._vm._data.$$state = state;
|
|
11753
|
-
});
|
|
11754
|
-
};
|
|
11755
|
-
|
|
11756
|
-
Store.prototype.registerModule = function registerModule (path, rawModule, options) {
|
|
11757
|
-
if ( options === void 0 ) options = {};
|
|
11758
|
-
|
|
11759
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11760
|
-
|
|
11761
|
-
if ((false)) {}
|
|
11762
|
-
|
|
11763
|
-
this._modules.register(path, rawModule);
|
|
11764
|
-
installModule(this, this.state, path, this._modules.get(path), options.preserveState);
|
|
11765
|
-
// reset store to update getters...
|
|
11766
|
-
resetStoreVM(this, this.state);
|
|
11767
|
-
};
|
|
11768
|
-
|
|
11769
|
-
Store.prototype.unregisterModule = function unregisterModule (path) {
|
|
11770
|
-
var this$1 = this;
|
|
11771
|
-
|
|
11772
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11773
|
-
|
|
11774
|
-
if ((false)) {}
|
|
11775
|
-
|
|
11776
|
-
this._modules.unregister(path);
|
|
11777
|
-
this._withCommit(function () {
|
|
11778
|
-
var parentState = getNestedState(this$1.state, path.slice(0, -1));
|
|
11779
|
-
Vue.delete(parentState, path[path.length - 1]);
|
|
11780
|
-
});
|
|
11781
|
-
resetStore(this);
|
|
11782
|
-
};
|
|
11783
|
-
|
|
11784
|
-
Store.prototype.hasModule = function hasModule (path) {
|
|
11785
|
-
if (typeof path === 'string') { path = [path]; }
|
|
11786
|
-
|
|
11787
|
-
if ((false)) {}
|
|
11788
|
-
|
|
11789
|
-
return this._modules.isRegistered(path)
|
|
11790
|
-
};
|
|
11791
|
-
|
|
11792
|
-
Store.prototype.hotUpdate = function hotUpdate (newOptions) {
|
|
11793
|
-
this._modules.update(newOptions);
|
|
11794
|
-
resetStore(this, true);
|
|
11795
|
-
};
|
|
11796
|
-
|
|
11797
|
-
Store.prototype._withCommit = function _withCommit (fn) {
|
|
11798
|
-
var committing = this._committing;
|
|
11799
|
-
this._committing = true;
|
|
11800
|
-
fn();
|
|
11801
|
-
this._committing = committing;
|
|
11802
|
-
};
|
|
11803
|
-
|
|
11804
|
-
Object.defineProperties( Store.prototype, prototypeAccessors$1 );
|
|
11805
|
-
|
|
11806
|
-
function genericSubscribe (fn, subs, options) {
|
|
11807
|
-
if (subs.indexOf(fn) < 0) {
|
|
11808
|
-
options && options.prepend
|
|
11809
|
-
? subs.unshift(fn)
|
|
11810
|
-
: subs.push(fn);
|
|
11811
|
-
}
|
|
11812
|
-
return function () {
|
|
11813
|
-
var i = subs.indexOf(fn);
|
|
11814
|
-
if (i > -1) {
|
|
11815
|
-
subs.splice(i, 1);
|
|
11816
|
-
}
|
|
11817
|
-
}
|
|
11818
|
-
}
|
|
11819
|
-
|
|
11820
|
-
function resetStore (store, hot) {
|
|
11821
|
-
store._actions = Object.create(null);
|
|
11822
|
-
store._mutations = Object.create(null);
|
|
11823
|
-
store._wrappedGetters = Object.create(null);
|
|
11824
|
-
store._modulesNamespaceMap = Object.create(null);
|
|
11825
|
-
var state = store.state;
|
|
11826
|
-
// init all modules
|
|
11827
|
-
installModule(store, state, [], store._modules.root, true);
|
|
11828
|
-
// reset vm
|
|
11829
|
-
resetStoreVM(store, state, hot);
|
|
11830
|
-
}
|
|
11831
|
-
|
|
11832
|
-
function resetStoreVM (store, state, hot) {
|
|
11833
|
-
var oldVm = store._vm;
|
|
11834
|
-
|
|
11835
|
-
// bind store public getters
|
|
11836
|
-
store.getters = {};
|
|
11837
|
-
// reset local getters cache
|
|
11838
|
-
store._makeLocalGettersCache = Object.create(null);
|
|
11839
|
-
var wrappedGetters = store._wrappedGetters;
|
|
11840
|
-
var computed = {};
|
|
11841
|
-
forEachValue(wrappedGetters, function (fn, key) {
|
|
11842
|
-
// use computed to leverage its lazy-caching mechanism
|
|
11843
|
-
// direct inline function use will lead to closure preserving oldVm.
|
|
11844
|
-
// using partial to return function with only arguments preserved in closure environment.
|
|
11845
|
-
computed[key] = partial(fn, store);
|
|
11846
|
-
Object.defineProperty(store.getters, key, {
|
|
11847
|
-
get: function () { return store._vm[key]; },
|
|
11848
|
-
enumerable: true // for local getters
|
|
11849
|
-
});
|
|
11850
|
-
});
|
|
11851
|
-
|
|
11852
|
-
// use a Vue instance to store the state tree
|
|
11853
|
-
// suppress warnings just in case the user has added
|
|
11854
|
-
// some funky global mixins
|
|
11855
|
-
var silent = Vue.config.silent;
|
|
11856
|
-
Vue.config.silent = true;
|
|
11857
|
-
store._vm = new Vue({
|
|
11858
|
-
data: {
|
|
11859
|
-
$$state: state
|
|
11860
|
-
},
|
|
11861
|
-
computed: computed
|
|
11862
|
-
});
|
|
11863
|
-
Vue.config.silent = silent;
|
|
11864
|
-
|
|
11865
|
-
// enable strict mode for new vm
|
|
11866
|
-
if (store.strict) {
|
|
11867
|
-
enableStrictMode(store);
|
|
11868
|
-
}
|
|
11869
|
-
|
|
11870
|
-
if (oldVm) {
|
|
11871
|
-
if (hot) {
|
|
11872
|
-
// dispatch changes in all subscribed watchers
|
|
11873
|
-
// to force getter re-evaluation for hot reloading.
|
|
11874
|
-
store._withCommit(function () {
|
|
11875
|
-
oldVm._data.$$state = null;
|
|
11876
|
-
});
|
|
11877
|
-
}
|
|
11878
|
-
Vue.nextTick(function () { return oldVm.$destroy(); });
|
|
11879
|
-
}
|
|
11880
|
-
}
|
|
11881
|
-
|
|
11882
|
-
function installModule (store, rootState, path, module, hot) {
|
|
11883
|
-
var isRoot = !path.length;
|
|
11884
|
-
var namespace = store._modules.getNamespace(path);
|
|
11885
|
-
|
|
11886
|
-
// register in namespace map
|
|
11887
|
-
if (module.namespaced) {
|
|
11888
|
-
if (store._modulesNamespaceMap[namespace] && ("production" !== 'production')) {
|
|
11889
|
-
console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
|
|
11890
|
-
}
|
|
11891
|
-
store._modulesNamespaceMap[namespace] = module;
|
|
11892
|
-
}
|
|
11893
|
-
|
|
11894
|
-
// set state
|
|
11895
|
-
if (!isRoot && !hot) {
|
|
11896
|
-
var parentState = getNestedState(rootState, path.slice(0, -1));
|
|
11897
|
-
var moduleName = path[path.length - 1];
|
|
11898
|
-
store._withCommit(function () {
|
|
11899
|
-
if ((false)) {}
|
|
11900
|
-
Vue.set(parentState, moduleName, module.state);
|
|
11901
|
-
});
|
|
11902
|
-
}
|
|
11903
|
-
|
|
11904
|
-
var local = module.context = makeLocalContext(store, namespace, path);
|
|
11905
|
-
|
|
11906
|
-
module.forEachMutation(function (mutation, key) {
|
|
11907
|
-
var namespacedType = namespace + key;
|
|
11908
|
-
registerMutation(store, namespacedType, mutation, local);
|
|
11909
|
-
});
|
|
11910
|
-
|
|
11911
|
-
module.forEachAction(function (action, key) {
|
|
11912
|
-
var type = action.root ? key : namespace + key;
|
|
11913
|
-
var handler = action.handler || action;
|
|
11914
|
-
registerAction(store, type, handler, local);
|
|
11915
|
-
});
|
|
11916
|
-
|
|
11917
|
-
module.forEachGetter(function (getter, key) {
|
|
11918
|
-
var namespacedType = namespace + key;
|
|
11919
|
-
registerGetter(store, namespacedType, getter, local);
|
|
11920
|
-
});
|
|
11921
|
-
|
|
11922
|
-
module.forEachChild(function (child, key) {
|
|
11923
|
-
installModule(store, rootState, path.concat(key), child, hot);
|
|
11924
|
-
});
|
|
11925
|
-
}
|
|
11926
|
-
|
|
11927
|
-
/**
|
|
11928
|
-
* make localized dispatch, commit, getters and state
|
|
11929
|
-
* if there is no namespace, just use root ones
|
|
11930
|
-
*/
|
|
11931
|
-
function makeLocalContext (store, namespace, path) {
|
|
11932
|
-
var noNamespace = namespace === '';
|
|
11933
|
-
|
|
11934
|
-
var local = {
|
|
11935
|
-
dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
|
|
11936
|
-
var args = unifyObjectStyle(_type, _payload, _options);
|
|
11937
|
-
var payload = args.payload;
|
|
11938
|
-
var options = args.options;
|
|
11939
|
-
var type = args.type;
|
|
11940
|
-
|
|
11941
|
-
if (!options || !options.root) {
|
|
11942
|
-
type = namespace + type;
|
|
11943
|
-
if (false) {}
|
|
11944
|
-
}
|
|
11945
|
-
|
|
11946
|
-
return store.dispatch(type, payload)
|
|
11947
|
-
},
|
|
11948
|
-
|
|
11949
|
-
commit: noNamespace ? store.commit : function (_type, _payload, _options) {
|
|
11950
|
-
var args = unifyObjectStyle(_type, _payload, _options);
|
|
11951
|
-
var payload = args.payload;
|
|
11952
|
-
var options = args.options;
|
|
11953
|
-
var type = args.type;
|
|
11954
|
-
|
|
11955
|
-
if (!options || !options.root) {
|
|
11956
|
-
type = namespace + type;
|
|
11957
|
-
if (false) {}
|
|
11958
|
-
}
|
|
11959
|
-
|
|
11960
|
-
store.commit(type, payload, options);
|
|
11961
|
-
}
|
|
11962
|
-
};
|
|
11963
|
-
|
|
11964
|
-
// getters and state object must be gotten lazily
|
|
11965
|
-
// because they will be changed by vm update
|
|
11966
|
-
Object.defineProperties(local, {
|
|
11967
|
-
getters: {
|
|
11968
|
-
get: noNamespace
|
|
11969
|
-
? function () { return store.getters; }
|
|
11970
|
-
: function () { return makeLocalGetters(store, namespace); }
|
|
11971
|
-
},
|
|
11972
|
-
state: {
|
|
11973
|
-
get: function () { return getNestedState(store.state, path); }
|
|
11974
|
-
}
|
|
11975
|
-
});
|
|
11976
|
-
|
|
11977
|
-
return local
|
|
11978
|
-
}
|
|
11979
|
-
|
|
11980
|
-
function makeLocalGetters (store, namespace) {
|
|
11981
|
-
if (!store._makeLocalGettersCache[namespace]) {
|
|
11982
|
-
var gettersProxy = {};
|
|
11983
|
-
var splitPos = namespace.length;
|
|
11984
|
-
Object.keys(store.getters).forEach(function (type) {
|
|
11985
|
-
// skip if the target getter is not match this namespace
|
|
11986
|
-
if (type.slice(0, splitPos) !== namespace) { return }
|
|
11987
|
-
|
|
11988
|
-
// extract local getter type
|
|
11989
|
-
var localType = type.slice(splitPos);
|
|
11990
|
-
|
|
11991
|
-
// Add a port to the getters proxy.
|
|
11992
|
-
// Define as getter property because
|
|
11993
|
-
// we do not want to evaluate the getters in this time.
|
|
11994
|
-
Object.defineProperty(gettersProxy, localType, {
|
|
11995
|
-
get: function () { return store.getters[type]; },
|
|
11996
|
-
enumerable: true
|
|
11997
|
-
});
|
|
11998
|
-
});
|
|
11999
|
-
store._makeLocalGettersCache[namespace] = gettersProxy;
|
|
12000
|
-
}
|
|
12001
|
-
|
|
12002
|
-
return store._makeLocalGettersCache[namespace]
|
|
12003
|
-
}
|
|
12004
|
-
|
|
12005
|
-
function registerMutation (store, type, handler, local) {
|
|
12006
|
-
var entry = store._mutations[type] || (store._mutations[type] = []);
|
|
12007
|
-
entry.push(function wrappedMutationHandler (payload) {
|
|
12008
|
-
handler.call(store, local.state, payload);
|
|
12009
|
-
});
|
|
12010
|
-
}
|
|
12011
|
-
|
|
12012
|
-
function registerAction (store, type, handler, local) {
|
|
12013
|
-
var entry = store._actions[type] || (store._actions[type] = []);
|
|
12014
|
-
entry.push(function wrappedActionHandler (payload) {
|
|
12015
|
-
var res = handler.call(store, {
|
|
12016
|
-
dispatch: local.dispatch,
|
|
12017
|
-
commit: local.commit,
|
|
12018
|
-
getters: local.getters,
|
|
12019
|
-
state: local.state,
|
|
12020
|
-
rootGetters: store.getters,
|
|
12021
|
-
rootState: store.state
|
|
12022
|
-
}, payload);
|
|
12023
|
-
if (!isPromise(res)) {
|
|
12024
|
-
res = Promise.resolve(res);
|
|
12025
|
-
}
|
|
12026
|
-
if (store._devtoolHook) {
|
|
12027
|
-
return res.catch(function (err) {
|
|
12028
|
-
store._devtoolHook.emit('vuex:error', err);
|
|
12029
|
-
throw err
|
|
12030
|
-
})
|
|
12031
|
-
} else {
|
|
12032
|
-
return res
|
|
12033
|
-
}
|
|
12034
|
-
});
|
|
12035
|
-
}
|
|
12036
|
-
|
|
12037
|
-
function registerGetter (store, type, rawGetter, local) {
|
|
12038
|
-
if (store._wrappedGetters[type]) {
|
|
12039
|
-
if ((false)) {}
|
|
12040
|
-
return
|
|
12041
|
-
}
|
|
12042
|
-
store._wrappedGetters[type] = function wrappedGetter (store) {
|
|
12043
|
-
return rawGetter(
|
|
12044
|
-
local.state, // local state
|
|
12045
|
-
local.getters, // local getters
|
|
12046
|
-
store.state, // root state
|
|
12047
|
-
store.getters // root getters
|
|
12048
|
-
)
|
|
12049
|
-
};
|
|
12050
|
-
}
|
|
12051
|
-
|
|
12052
|
-
function enableStrictMode (store) {
|
|
12053
|
-
store._vm.$watch(function () { return this._data.$$state }, function () {
|
|
12054
|
-
if ((false)) {}
|
|
12055
|
-
}, { deep: true, sync: true });
|
|
12056
|
-
}
|
|
12057
|
-
|
|
12058
|
-
function getNestedState (state, path) {
|
|
12059
|
-
return path.reduce(function (state, key) { return state[key]; }, state)
|
|
12060
|
-
}
|
|
12061
|
-
|
|
12062
|
-
function unifyObjectStyle (type, payload, options) {
|
|
12063
|
-
if (isObject(type) && type.type) {
|
|
12064
|
-
options = payload;
|
|
12065
|
-
payload = type;
|
|
12066
|
-
type = type.type;
|
|
12067
|
-
}
|
|
12068
|
-
|
|
12069
|
-
if ((false)) {}
|
|
12070
|
-
|
|
12071
|
-
return { type: type, payload: payload, options: options }
|
|
12072
|
-
}
|
|
12073
|
-
|
|
12074
|
-
function install (_Vue) {
|
|
12075
|
-
if (Vue && _Vue === Vue) {
|
|
12076
|
-
if ((false)) {}
|
|
12077
|
-
return
|
|
12078
|
-
}
|
|
12079
|
-
Vue = _Vue;
|
|
12080
|
-
applyMixin(Vue);
|
|
12081
|
-
}
|
|
12082
|
-
|
|
12083
|
-
/**
|
|
12084
|
-
* Reduce the code which written in Vue.js for getting the state.
|
|
12085
|
-
* @param {String} [namespace] - Module's namespace
|
|
12086
|
-
* @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.
|
|
12087
|
-
* @param {Object}
|
|
12088
|
-
*/
|
|
12089
|
-
var mapState = normalizeNamespace(function (namespace, states) {
|
|
12090
|
-
var res = {};
|
|
12091
|
-
if (false) {}
|
|
12092
|
-
normalizeMap(states).forEach(function (ref) {
|
|
12093
|
-
var key = ref.key;
|
|
12094
|
-
var val = ref.val;
|
|
12095
|
-
|
|
12096
|
-
res[key] = function mappedState () {
|
|
12097
|
-
var state = this.$store.state;
|
|
12098
|
-
var getters = this.$store.getters;
|
|
12099
|
-
if (namespace) {
|
|
12100
|
-
var module = getModuleByNamespace(this.$store, 'mapState', namespace);
|
|
12101
|
-
if (!module) {
|
|
12102
|
-
return
|
|
12103
|
-
}
|
|
12104
|
-
state = module.context.state;
|
|
12105
|
-
getters = module.context.getters;
|
|
12106
|
-
}
|
|
12107
|
-
return typeof val === 'function'
|
|
12108
|
-
? val.call(this, state, getters)
|
|
12109
|
-
: state[val]
|
|
12110
|
-
};
|
|
12111
|
-
// mark vuex getter for devtools
|
|
12112
|
-
res[key].vuex = true;
|
|
12113
|
-
});
|
|
12114
|
-
return res
|
|
12115
|
-
});
|
|
12116
|
-
|
|
12117
|
-
/**
|
|
12118
|
-
* Reduce the code which written in Vue.js for committing the mutation
|
|
12119
|
-
* @param {String} [namespace] - Module's namespace
|
|
12120
|
-
* @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.
|
|
12121
|
-
* @return {Object}
|
|
12122
|
-
*/
|
|
12123
|
-
var mapMutations = normalizeNamespace(function (namespace, mutations) {
|
|
12124
|
-
var res = {};
|
|
12125
|
-
if (false) {}
|
|
12126
|
-
normalizeMap(mutations).forEach(function (ref) {
|
|
12127
|
-
var key = ref.key;
|
|
12128
|
-
var val = ref.val;
|
|
12129
|
-
|
|
12130
|
-
res[key] = function mappedMutation () {
|
|
12131
|
-
var args = [], len = arguments.length;
|
|
12132
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
12133
|
-
|
|
12134
|
-
// Get the commit method from store
|
|
12135
|
-
var commit = this.$store.commit;
|
|
12136
|
-
if (namespace) {
|
|
12137
|
-
var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
|
|
12138
|
-
if (!module) {
|
|
12139
|
-
return
|
|
12140
|
-
}
|
|
12141
|
-
commit = module.context.commit;
|
|
12142
|
-
}
|
|
12143
|
-
return typeof val === 'function'
|
|
12144
|
-
? val.apply(this, [commit].concat(args))
|
|
12145
|
-
: commit.apply(this.$store, [val].concat(args))
|
|
12146
|
-
};
|
|
12147
|
-
});
|
|
12148
|
-
return res
|
|
12149
|
-
});
|
|
12150
|
-
|
|
12151
|
-
/**
|
|
12152
|
-
* Reduce the code which written in Vue.js for getting the getters
|
|
12153
|
-
* @param {String} [namespace] - Module's namespace
|
|
12154
|
-
* @param {Object|Array} getters
|
|
12155
|
-
* @return {Object}
|
|
12156
|
-
*/
|
|
12157
|
-
var mapGetters = normalizeNamespace(function (namespace, getters) {
|
|
12158
|
-
var res = {};
|
|
12159
|
-
if (false) {}
|
|
12160
|
-
normalizeMap(getters).forEach(function (ref) {
|
|
12161
|
-
var key = ref.key;
|
|
12162
|
-
var val = ref.val;
|
|
12163
|
-
|
|
12164
|
-
// The namespace has been mutated by normalizeNamespace
|
|
12165
|
-
val = namespace + val;
|
|
12166
|
-
res[key] = function mappedGetter () {
|
|
12167
|
-
if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
|
|
12168
|
-
return
|
|
12169
|
-
}
|
|
12170
|
-
if (false) {}
|
|
12171
|
-
return this.$store.getters[val]
|
|
12172
|
-
};
|
|
12173
|
-
// mark vuex getter for devtools
|
|
12174
|
-
res[key].vuex = true;
|
|
12175
|
-
});
|
|
12176
|
-
return res
|
|
12177
|
-
});
|
|
12178
|
-
|
|
12179
|
-
/**
|
|
12180
|
-
* Reduce the code which written in Vue.js for dispatch the action
|
|
12181
|
-
* @param {String} [namespace] - Module's namespace
|
|
12182
|
-
* @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.
|
|
12183
|
-
* @return {Object}
|
|
12184
|
-
*/
|
|
12185
|
-
var mapActions = normalizeNamespace(function (namespace, actions) {
|
|
12186
|
-
var res = {};
|
|
12187
|
-
if (false) {}
|
|
12188
|
-
normalizeMap(actions).forEach(function (ref) {
|
|
12189
|
-
var key = ref.key;
|
|
12190
|
-
var val = ref.val;
|
|
12191
|
-
|
|
12192
|
-
res[key] = function mappedAction () {
|
|
12193
|
-
var args = [], len = arguments.length;
|
|
12194
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
12195
|
-
|
|
12196
|
-
// get dispatch function from store
|
|
12197
|
-
var dispatch = this.$store.dispatch;
|
|
12198
|
-
if (namespace) {
|
|
12199
|
-
var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
|
|
12200
|
-
if (!module) {
|
|
12201
|
-
return
|
|
12202
|
-
}
|
|
12203
|
-
dispatch = module.context.dispatch;
|
|
12204
|
-
}
|
|
12205
|
-
return typeof val === 'function'
|
|
12206
|
-
? val.apply(this, [dispatch].concat(args))
|
|
12207
|
-
: dispatch.apply(this.$store, [val].concat(args))
|
|
12208
|
-
};
|
|
12209
|
-
});
|
|
12210
|
-
return res
|
|
12211
|
-
});
|
|
12212
|
-
|
|
12213
|
-
/**
|
|
12214
|
-
* Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
|
|
12215
|
-
* @param {String} namespace
|
|
12216
|
-
* @return {Object}
|
|
12217
|
-
*/
|
|
12218
|
-
var createNamespacedHelpers = function (namespace) { return ({
|
|
12219
|
-
mapState: mapState.bind(null, namespace),
|
|
12220
|
-
mapGetters: mapGetters.bind(null, namespace),
|
|
12221
|
-
mapMutations: mapMutations.bind(null, namespace),
|
|
12222
|
-
mapActions: mapActions.bind(null, namespace)
|
|
12223
|
-
}); };
|
|
12224
|
-
|
|
12225
|
-
/**
|
|
12226
|
-
* Normalize the map
|
|
12227
|
-
* normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
|
|
12228
|
-
* normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
|
|
12229
|
-
* @param {Array|Object} map
|
|
12230
|
-
* @return {Object}
|
|
12231
|
-
*/
|
|
12232
|
-
function normalizeMap (map) {
|
|
12233
|
-
if (!isValidMap(map)) {
|
|
12234
|
-
return []
|
|
12235
|
-
}
|
|
12236
|
-
return Array.isArray(map)
|
|
12237
|
-
? map.map(function (key) { return ({ key: key, val: key }); })
|
|
12238
|
-
: Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
|
|
12239
|
-
}
|
|
12240
|
-
|
|
12241
|
-
/**
|
|
12242
|
-
* Validate whether given map is valid or not
|
|
12243
|
-
* @param {*} map
|
|
12244
|
-
* @return {Boolean}
|
|
12245
|
-
*/
|
|
12246
|
-
function isValidMap (map) {
|
|
12247
|
-
return Array.isArray(map) || isObject(map)
|
|
12248
|
-
}
|
|
12249
|
-
|
|
12250
|
-
/**
|
|
12251
|
-
* 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.
|
|
12252
|
-
* @param {Function} fn
|
|
12253
|
-
* @return {Function}
|
|
12254
|
-
*/
|
|
12255
|
-
function normalizeNamespace (fn) {
|
|
12256
|
-
return function (namespace, map) {
|
|
12257
|
-
if (typeof namespace !== 'string') {
|
|
12258
|
-
map = namespace;
|
|
12259
|
-
namespace = '';
|
|
12260
|
-
} else if (namespace.charAt(namespace.length - 1) !== '/') {
|
|
12261
|
-
namespace += '/';
|
|
12262
|
-
}
|
|
12263
|
-
return fn(namespace, map)
|
|
12264
|
-
}
|
|
12265
|
-
}
|
|
12266
|
-
|
|
12267
|
-
/**
|
|
12268
|
-
* Search a special module from store by namespace. if module not exist, print error message.
|
|
12269
|
-
* @param {Object} store
|
|
12270
|
-
* @param {String} helper
|
|
12271
|
-
* @param {String} namespace
|
|
12272
|
-
* @return {Object}
|
|
12273
|
-
*/
|
|
12274
|
-
function getModuleByNamespace (store, helper, namespace) {
|
|
12275
|
-
var module = store._modulesNamespaceMap[namespace];
|
|
12276
|
-
if (false) {}
|
|
12277
|
-
return module
|
|
12278
|
-
}
|
|
12279
|
-
|
|
12280
|
-
// Credits: borrowed code from fcomb/redux-logger
|
|
12281
|
-
|
|
12282
|
-
function createLogger (ref) {
|
|
12283
|
-
if ( ref === void 0 ) ref = {};
|
|
12284
|
-
var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
|
|
12285
|
-
var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
|
|
12286
|
-
var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
|
|
12287
|
-
var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
|
|
12288
|
-
var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
|
|
12289
|
-
var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
|
|
12290
|
-
var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
|
|
12291
|
-
var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
|
|
12292
|
-
var logger = ref.logger; if ( logger === void 0 ) logger = console;
|
|
12293
|
-
|
|
12294
|
-
return function (store) {
|
|
12295
|
-
var prevState = deepCopy(store.state);
|
|
12296
|
-
|
|
12297
|
-
if (typeof logger === 'undefined') {
|
|
12298
|
-
return
|
|
12299
|
-
}
|
|
12300
|
-
|
|
12301
|
-
if (logMutations) {
|
|
12302
|
-
store.subscribe(function (mutation, state) {
|
|
12303
|
-
var nextState = deepCopy(state);
|
|
12304
|
-
|
|
12305
|
-
if (filter(mutation, prevState, nextState)) {
|
|
12306
|
-
var formattedTime = getFormattedTime();
|
|
12307
|
-
var formattedMutation = mutationTransformer(mutation);
|
|
12308
|
-
var message = "mutation " + (mutation.type) + formattedTime;
|
|
12309
|
-
|
|
12310
|
-
startMessage(logger, message, collapsed);
|
|
12311
|
-
logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
|
|
12312
|
-
logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
|
|
12313
|
-
logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
|
|
12314
|
-
endMessage(logger);
|
|
12315
|
-
}
|
|
12316
|
-
|
|
12317
|
-
prevState = nextState;
|
|
12318
|
-
});
|
|
12319
|
-
}
|
|
12320
|
-
|
|
12321
|
-
if (logActions) {
|
|
12322
|
-
store.subscribeAction(function (action, state) {
|
|
12323
|
-
if (actionFilter(action, state)) {
|
|
12324
|
-
var formattedTime = getFormattedTime();
|
|
12325
|
-
var formattedAction = actionTransformer(action);
|
|
12326
|
-
var message = "action " + (action.type) + formattedTime;
|
|
12327
|
-
|
|
12328
|
-
startMessage(logger, message, collapsed);
|
|
12329
|
-
logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
|
|
12330
|
-
endMessage(logger);
|
|
12331
|
-
}
|
|
12332
|
-
});
|
|
12333
|
-
}
|
|
12334
|
-
}
|
|
12335
|
-
}
|
|
12336
|
-
|
|
12337
|
-
function startMessage (logger, message, collapsed) {
|
|
12338
|
-
var startMessage = collapsed
|
|
12339
|
-
? logger.groupCollapsed
|
|
12340
|
-
: logger.group;
|
|
12341
|
-
|
|
12342
|
-
// render
|
|
12343
|
-
try {
|
|
12344
|
-
startMessage.call(logger, message);
|
|
12345
|
-
} catch (e) {
|
|
12346
|
-
logger.log(message);
|
|
12347
|
-
}
|
|
12348
|
-
}
|
|
12349
|
-
|
|
12350
|
-
function endMessage (logger) {
|
|
12351
|
-
try {
|
|
12352
|
-
logger.groupEnd();
|
|
12353
|
-
} catch (e) {
|
|
12354
|
-
logger.log('—— log end ——');
|
|
12355
|
-
}
|
|
12356
|
-
}
|
|
12357
|
-
|
|
12358
|
-
function getFormattedTime () {
|
|
12359
|
-
var time = new Date();
|
|
12360
|
-
return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
|
|
12361
|
-
}
|
|
12362
|
-
|
|
12363
|
-
function repeat (str, times) {
|
|
12364
|
-
return (new Array(times + 1)).join(str)
|
|
12365
|
-
}
|
|
12366
|
-
|
|
12367
|
-
function pad (num, maxLength) {
|
|
12368
|
-
return repeat('0', maxLength - num.toString().length) + num
|
|
12369
|
-
}
|
|
12370
|
-
|
|
12371
|
-
var index = {
|
|
12372
|
-
Store: Store,
|
|
12373
|
-
install: install,
|
|
12374
|
-
version: '3.6.2',
|
|
12375
|
-
mapState: mapState,
|
|
12376
|
-
mapMutations: mapMutations,
|
|
12377
|
-
mapGetters: mapGetters,
|
|
12378
|
-
mapActions: mapActions,
|
|
12379
|
-
createNamespacedHelpers: createNamespacedHelpers,
|
|
12380
|
-
createLogger: createLogger
|
|
12381
|
-
};
|
|
12382
|
-
|
|
12383
|
-
/* harmony default export */ __webpack_exports__["a"] = (index);
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
12387
|
-
|
|
12388
11211
|
/***/ }),
|
|
12389
11212
|
|
|
12390
11213
|
/***/ "2f9a":
|
|
@@ -26506,20 +25329,6 @@ module.exports = function dispatchRequest(config) {
|
|
|
26506
25329
|
};
|
|
26507
25330
|
|
|
26508
25331
|
|
|
26509
|
-
/***/ }),
|
|
26510
|
-
|
|
26511
|
-
/***/ "538f":
|
|
26512
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
26513
|
-
|
|
26514
|
-
// Imports
|
|
26515
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
26516
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
26517
|
-
// Module
|
|
26518
|
-
exports.push([module.i, ".dialog-cache-wrap[data-v-63063fa8]{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-63063fa8]{width:100%;height:auto;display:flex;align-items:center;flex-flow:row nowrap;justify-content:center}", ""]);
|
|
26519
|
-
// Exports
|
|
26520
|
-
module.exports = exports;
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
25332
|
/***/ }),
|
|
26524
25333
|
|
|
26525
25334
|
/***/ "5402":
|
|
@@ -30827,6 +29636,20 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
|
30827
29636
|
}
|
|
30828
29637
|
|
|
30829
29638
|
|
|
29639
|
+
/***/ }),
|
|
29640
|
+
|
|
29641
|
+
/***/ "660e":
|
|
29642
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29643
|
+
|
|
29644
|
+
// Imports
|
|
29645
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
29646
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
29647
|
+
// Module
|
|
29648
|
+
exports.push([module.i, ".dialog-cache-wrap[data-v-61db6ecc]{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-61db6ecc]{width:100%;height:auto;display:flex;align-items:center;flex-flow:row nowrap;justify-content:center}", ""]);
|
|
29649
|
+
// Exports
|
|
29650
|
+
module.exports = exports;
|
|
29651
|
+
|
|
29652
|
+
|
|
30830
29653
|
/***/ }),
|
|
30831
29654
|
|
|
30832
29655
|
/***/ "6611":
|
|
@@ -47690,6 +46513,17 @@ var UserAgent_DEPRECATED = {
|
|
|
47690
46513
|
module.exports = UserAgent_DEPRECATED;
|
|
47691
46514
|
|
|
47692
46515
|
|
|
46516
|
+
/***/ }),
|
|
46517
|
+
|
|
46518
|
+
/***/ "8edd":
|
|
46519
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
46520
|
+
|
|
46521
|
+
"use strict";
|
|
46522
|
+
/* 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_61db6ecc_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fb22");
|
|
46523
|
+
/* 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_61db6ecc_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_61db6ecc_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
46524
|
+
/* unused harmony reexport * */
|
|
46525
|
+
|
|
46526
|
+
|
|
47693
46527
|
/***/ }),
|
|
47694
46528
|
|
|
47695
46529
|
/***/ "8f24":
|
|
@@ -75435,17 +74269,6 @@ function config (name) {
|
|
|
75435
74269
|
|
|
75436
74270
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
75437
74271
|
|
|
75438
|
-
/***/ }),
|
|
75439
|
-
|
|
75440
|
-
/***/ "b7d3":
|
|
75441
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
75442
|
-
|
|
75443
|
-
"use strict";
|
|
75444
|
-
/* 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_63063fa8_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fce5");
|
|
75445
|
-
/* 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_63063fa8_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_63063fa8_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
75446
|
-
/* unused harmony reexport * */
|
|
75447
|
-
|
|
75448
|
-
|
|
75449
74272
|
/***/ }),
|
|
75450
74273
|
|
|
75451
74274
|
/***/ "b7ff":
|
|
@@ -116623,26 +115446,13 @@ const dialogCacheStore = {
|
|
|
116623
115446
|
}
|
|
116624
115447
|
};
|
|
116625
115448
|
/* harmony default export */ var storeModule_dialogCacheStore = (dialogCacheStore);
|
|
116626
|
-
// 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=
|
|
116627
|
-
var
|
|
116628
|
-
var
|
|
116629
|
-
|
|
115449
|
+
// 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=61db6ecc&scoped=true&
|
|
115450
|
+
var dialogCachevue_type_template_id_61db6ecc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.getRenderShow)?_c('div',{directives:[{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)]):_vm._e()}
|
|
115451
|
+
var dialogCachevue_type_template_id_61db6ecc_scoped_true_staticRenderFns = []
|
|
116630
115452
|
|
|
116631
|
-
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=template&id=63063fa8&scoped=true&
|
|
116632
115453
|
|
|
116633
|
-
//
|
|
116634
|
-
var vuex_esm = __webpack_require__("2f62");
|
|
115454
|
+
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=template&id=61db6ecc&scoped=true&
|
|
116635
115455
|
|
|
116636
|
-
// CONCATENATED MODULE: ./src/store/index.js
|
|
116637
|
-
|
|
116638
|
-
|
|
116639
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* default */]);
|
|
116640
|
-
/* harmony default export */ var store = (new vuex_esm["a" /* default */].Store({
|
|
116641
|
-
state: {},
|
|
116642
|
-
mutations: {},
|
|
116643
|
-
actions: {},
|
|
116644
|
-
modules: {}
|
|
116645
|
-
}));
|
|
116646
115456
|
// 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&
|
|
116647
115457
|
//
|
|
116648
115458
|
//
|
|
@@ -116677,8 +115487,6 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116677
115487
|
//
|
|
116678
115488
|
//
|
|
116679
115489
|
//
|
|
116680
|
-
//
|
|
116681
|
-
|
|
116682
115490
|
|
|
116683
115491
|
/* harmony default export */ var dialogCachevue_type_script_lang_js_ = ({
|
|
116684
115492
|
data() {
|
|
@@ -116704,7 +115512,7 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116704
115512
|
},
|
|
116705
115513
|
methods: {
|
|
116706
115514
|
openDialogCache(index) {
|
|
116707
|
-
this
|
|
115515
|
+
this.$store.commit('dialogCacheStore/OPEN_DIALOG_CACHE', index);
|
|
116708
115516
|
},
|
|
116709
115517
|
|
|
116710
115518
|
dialogCacheWrapOnBlue() {
|
|
@@ -116714,19 +115522,15 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* defau
|
|
|
116714
115522
|
},
|
|
116715
115523
|
watch: {
|
|
116716
115524
|
getRenderShow(newVal, oldVal) {
|
|
116717
|
-
|
|
116718
|
-
this.$nextTick(() => {
|
|
116719
|
-
this.$refs.dialogCacheWrapRef.focus();
|
|
116720
|
-
});
|
|
116721
|
-
}
|
|
115525
|
+
console.log(newVal);
|
|
116722
115526
|
}
|
|
116723
115527
|
|
|
116724
115528
|
}
|
|
116725
115529
|
});
|
|
116726
115530
|
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue?vue&type=script&lang=js&
|
|
116727
115531
|
/* harmony default export */ var components_dialogCachevue_type_script_lang_js_ = (dialogCachevue_type_script_lang_js_);
|
|
116728
|
-
// EXTERNAL MODULE: ./packages/components/dialogCache/index.vue?vue&type=style&index=0&id=
|
|
116729
|
-
var
|
|
115532
|
+
// EXTERNAL MODULE: ./packages/components/dialogCache/index.vue?vue&type=style&index=0&id=61db6ecc&lang=less&scoped=true&
|
|
115533
|
+
var dialogCachevue_type_style_index_0_id_61db6ecc_lang_less_scoped_true_ = __webpack_require__("8edd");
|
|
116730
115534
|
|
|
116731
115535
|
// CONCATENATED MODULE: ./packages/components/dialogCache/index.vue
|
|
116732
115536
|
|
|
@@ -116739,11 +115543,11 @@ var dialogCachevue_type_style_index_0_id_63063fa8_lang_less_scoped_true_ = __web
|
|
|
116739
115543
|
|
|
116740
115544
|
var dialogCache_component = Object(componentNormalizer["a" /* default */])(
|
|
116741
115545
|
components_dialogCachevue_type_script_lang_js_,
|
|
116742
|
-
|
|
116743
|
-
|
|
115546
|
+
dialogCachevue_type_template_id_61db6ecc_scoped_true_render,
|
|
115547
|
+
dialogCachevue_type_template_id_61db6ecc_scoped_true_staticRenderFns,
|
|
116744
115548
|
false,
|
|
116745
115549
|
null,
|
|
116746
|
-
"
|
|
115550
|
+
"61db6ecc",
|
|
116747
115551
|
null
|
|
116748
115552
|
|
|
116749
115553
|
)
|
|
@@ -125348,6 +124152,22 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
125348
124152
|
|
|
125349
124153
|
|
|
125350
124154
|
|
|
124155
|
+
/***/ }),
|
|
124156
|
+
|
|
124157
|
+
/***/ "fb22":
|
|
124158
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
124159
|
+
|
|
124160
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
124161
|
+
|
|
124162
|
+
// load the styles
|
|
124163
|
+
var content = __webpack_require__("660e");
|
|
124164
|
+
if(content.__esModule) content = content.default;
|
|
124165
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
124166
|
+
if(content.locals) module.exports = content.locals;
|
|
124167
|
+
// add the styles to the DOM
|
|
124168
|
+
var add = __webpack_require__("499e").default
|
|
124169
|
+
var update = add("76c3052f", content, true, {"sourceMap":false,"shadowMode":false});
|
|
124170
|
+
|
|
125351
124171
|
/***/ }),
|
|
125352
124172
|
|
|
125353
124173
|
/***/ "fb60":
|
|
@@ -125429,22 +124249,6 @@ module.exports = function (it) {
|
|
|
125429
124249
|
exports.f = __webpack_require__("cc15");
|
|
125430
124250
|
|
|
125431
124251
|
|
|
125432
|
-
/***/ }),
|
|
125433
|
-
|
|
125434
|
-
/***/ "fce5":
|
|
125435
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
125436
|
-
|
|
125437
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
125438
|
-
|
|
125439
|
-
// load the styles
|
|
125440
|
-
var content = __webpack_require__("538f");
|
|
125441
|
-
if(content.__esModule) content = content.default;
|
|
125442
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
125443
|
-
if(content.locals) module.exports = content.locals;
|
|
125444
|
-
// add the styles to the DOM
|
|
125445
|
-
var add = __webpack_require__("499e").default
|
|
125446
|
-
var update = add("319a734a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
125447
|
-
|
|
125448
124252
|
/***/ }),
|
|
125449
124253
|
|
|
125450
124254
|
/***/ "fdbf":
|