gds-plus-design-vue 1.0.1 → 1.0.2

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.
@@ -1,819 +1,15 @@
1
- import D from "vue";
2
- /*!
3
- * vuex v3.6.2
4
- * (c) 2021 Evan You
5
- * @license MIT
6
- */
7
- function I(e) {
8
- var t = Number(e.version.split(".")[0]);
9
- if (t >= 2)
10
- e.mixin({ beforeCreate: r });
11
- else {
12
- var n = e.prototype._init;
13
- e.prototype._init = function(o) {
14
- o === void 0 && (o = {}), o.init = o.init ? [r].concat(o.init) : r, n.call(this, o);
15
- };
16
- }
17
- function r() {
18
- var o = this.$options;
19
- o.store ? this.$store = typeof o.store == "function" ? o.store() : o.store : o.parent && o.parent.$store && (this.$store = o.parent.$store);
20
- }
21
- }
22
- var U = typeof window < "u" ? window : typeof global < "u" ? global : {}, y = U.__VUE_DEVTOOLS_GLOBAL_HOOK__;
23
- function B(e) {
24
- !y || (e._devtoolHook = y, y.emit("vuex:init", e), y.on("vuex:travel-to-state", function(t) {
25
- e.replaceState(t);
26
- }), e.subscribe(function(t, n) {
27
- y.emit("vuex:mutation", t, n);
28
- }, { prepend: !0 }), e.subscribeAction(function(t, n) {
29
- y.emit("vuex:action", t, n);
30
- }, { prepend: !0 }));
31
- }
32
- function _(e, t) {
33
- Object.keys(e).forEach(function(n) {
34
- return t(e[n], n);
35
- });
36
- }
37
- function j(e) {
38
- return e !== null && typeof e == "object";
39
- }
40
- function q(e) {
41
- return e && typeof e.then == "function";
42
- }
43
- function m(e, t) {
44
- if (!e)
45
- throw new Error("[vuex] " + t);
46
- }
47
- function X(e, t) {
48
- return function() {
49
- return e(t);
50
- };
51
- }
52
- var g = function(t, n) {
53
- this.runtime = n, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
54
- var r = t.state;
55
- this.state = (typeof r == "function" ? r() : r) || {};
56
- }, z = { namespaced: { configurable: !0 } };
57
- z.namespaced.get = function() {
58
- return !!this._rawModule.namespaced;
59
- };
60
- g.prototype.addChild = function(t, n) {
61
- this._children[t] = n;
62
- };
63
- g.prototype.removeChild = function(t) {
64
- delete this._children[t];
65
- };
66
- g.prototype.getChild = function(t) {
67
- return this._children[t];
68
- };
69
- g.prototype.hasChild = function(t) {
70
- return t in this._children;
71
- };
72
- g.prototype.update = function(t) {
73
- this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
74
- };
75
- g.prototype.forEachChild = function(t) {
76
- _(this._children, t);
77
- };
78
- g.prototype.forEachGetter = function(t) {
79
- this._rawModule.getters && _(this._rawModule.getters, t);
80
- };
81
- g.prototype.forEachAction = function(t) {
82
- this._rawModule.actions && _(this._rawModule.actions, t);
83
- };
84
- g.prototype.forEachMutation = function(t) {
85
- this._rawModule.mutations && _(this._rawModule.mutations, t);
86
- };
87
- Object.defineProperties(g.prototype, z);
88
- var b = function(t) {
89
- this.register([], t, !1);
90
- };
91
- b.prototype.get = function(t) {
92
- return t.reduce(function(n, r) {
93
- return n.getChild(r);
94
- }, this.root);
95
- };
96
- b.prototype.getNamespace = function(t) {
97
- var n = this.root;
98
- return t.reduce(function(r, o) {
99
- return n = n.getChild(o), r + (n.namespaced ? o + "/" : "");
100
- }, "");
101
- };
102
- b.prototype.update = function(t) {
103
- G([], this.root, t);
104
- };
105
- b.prototype.register = function(t, n, r) {
106
- var o = this;
107
- r === void 0 && (r = !0), process.env.NODE_ENV !== "production" && T(t, n);
108
- var s = new g(n, r);
109
- if (t.length === 0)
110
- this.root = s;
111
- else {
112
- var a = this.get(t.slice(0, -1));
113
- a.addChild(t[t.length - 1], s);
114
- }
115
- n.modules && _(n.modules, function(c, i) {
116
- o.register(t.concat(i), c, r);
117
- });
118
- };
119
- b.prototype.unregister = function(t) {
120
- var n = this.get(t.slice(0, -1)), r = t[t.length - 1], o = n.getChild(r);
121
- if (!o) {
122
- process.env.NODE_ENV !== "production" && console.warn(
123
- "[vuex] trying to unregister module '" + r + "', which is not registered"
124
- );
125
- return;
126
- }
127
- !o.runtime || n.removeChild(r);
128
- };
129
- b.prototype.isRegistered = function(t) {
130
- var n = this.get(t.slice(0, -1)), r = t[t.length - 1];
131
- return n ? n.hasChild(r) : !1;
132
- };
133
- function G(e, t, n) {
134
- if (process.env.NODE_ENV !== "production" && T(e, n), t.update(n), n.modules)
135
- for (var r in n.modules) {
136
- if (!t.getChild(r)) {
137
- process.env.NODE_ENV !== "production" && console.warn(
138
- "[vuex] trying to add a new module '" + r + "' on hot reloading, manual reload is needed"
139
- );
140
- return;
141
- }
142
- G(
143
- e.concat(r),
144
- t.getChild(r),
145
- n.modules[r]
146
- );
147
- }
148
- }
149
- var V = {
150
- assert: function(e) {
151
- return typeof e == "function";
152
- },
153
- expected: "function"
154
- }, J = {
155
- assert: function(e) {
156
- return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
157
- },
158
- expected: 'function or object with "handler" function'
159
- }, A = {
160
- getters: V,
161
- mutations: V,
162
- actions: J
163
- };
164
- function T(e, t) {
165
- Object.keys(A).forEach(function(n) {
166
- if (!!t[n]) {
167
- var r = A[n];
168
- _(t[n], function(o, s) {
169
- m(
170
- r.assert(o),
171
- K(e, n, s, o, r.expected)
172
- );
173
- });
174
- }
175
- });
176
- }
177
- function K(e, t, n, r, o) {
178
- var s = t + " should be " + o + ' but "' + t + "." + n + '"';
179
- return e.length > 0 && (s += ' in module "' + e.join(".") + '"'), s += " is " + JSON.stringify(r) + ".", s;
180
- }
181
- var h, v = function e(t) {
182
- var n = this;
183
- t === void 0 && (t = {}), !h && typeof window < "u" && window.Vue && nt(window.Vue), process.env.NODE_ENV !== "production" && (m(h, "must call Vue.use(Vuex) before creating a store instance."), m(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), m(this instanceof e, "store must be called with the new operator."));
184
- var r = t.plugins;
185
- r === void 0 && (r = []);
186
- var o = t.strict;
187
- o === void 0 && (o = !1), this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new b(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._watcherVM = new h(), this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
188
- var s = this, a = this, c = a.dispatch, i = a.commit;
189
- this.dispatch = function(d, p) {
190
- return c.call(s, d, p);
191
- }, this.commit = function(d, p, C) {
192
- return i.call(s, d, p, C);
193
- }, this.strict = o;
194
- var f = this._modules.root.state;
195
- k(this, f, [], this._modules.root), S(this, f), r.forEach(function(l) {
196
- return l(n);
197
- });
198
- var u = t.devtools !== void 0 ? t.devtools : h.config.devtools;
199
- u && B(this);
200
- }, O = { state: { configurable: !0 } };
201
- O.state.get = function() {
202
- return this._vm._data.$$state;
203
- };
204
- O.state.set = function(e) {
205
- process.env.NODE_ENV !== "production" && m(!1, "use store.replaceState() to explicit replace store state.");
206
- };
207
- v.prototype.commit = function(t, n, r) {
208
- var o = this, s = N(t, n, r), a = s.type, c = s.payload, i = s.options, f = { type: a, payload: c }, u = this._mutations[a];
209
- if (!u) {
210
- process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + a);
211
- return;
212
- }
213
- this._withCommit(function() {
214
- u.forEach(function(d) {
215
- d(c);
216
- });
217
- }), this._subscribers.slice().forEach(function(l) {
218
- return l(f, o.state);
219
- }), process.env.NODE_ENV !== "production" && i && i.silent && console.warn(
220
- "[vuex] mutation type: " + a + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
221
- );
222
- };
223
- v.prototype.dispatch = function(t, n) {
224
- var r = this, o = N(t, n), s = o.type, a = o.payload, c = { type: s, payload: a }, i = this._actions[s];
225
- if (!i) {
226
- process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + s);
227
- return;
228
- }
229
- try {
230
- this._actionSubscribers.slice().filter(function(u) {
231
- return u.before;
232
- }).forEach(function(u) {
233
- return u.before(c, r.state);
234
- });
235
- } catch (u) {
236
- process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(u));
237
- }
238
- var f = i.length > 1 ? Promise.all(i.map(function(u) {
239
- return u(a);
240
- })) : i[0](a);
241
- return new Promise(function(u, l) {
242
- f.then(function(d) {
243
- try {
244
- r._actionSubscribers.filter(function(p) {
245
- return p.after;
246
- }).forEach(function(p) {
247
- return p.after(c, r.state);
248
- });
249
- } catch (p) {
250
- process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(p));
251
- }
252
- u(d);
253
- }, function(d) {
254
- try {
255
- r._actionSubscribers.filter(function(p) {
256
- return p.error;
257
- }).forEach(function(p) {
258
- return p.error(c, r.state, d);
259
- });
260
- } catch (p) {
261
- process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(p));
262
- }
263
- l(d);
264
- });
265
- });
266
- };
267
- v.prototype.subscribe = function(t, n) {
268
- return R(t, this._subscribers, n);
269
- };
270
- v.prototype.subscribeAction = function(t, n) {
271
- var r = typeof t == "function" ? { before: t } : t;
272
- return R(r, this._actionSubscribers, n);
273
- };
274
- v.prototype.watch = function(t, n, r) {
275
- var o = this;
276
- return process.env.NODE_ENV !== "production" && m(typeof t == "function", "store.watch only accepts a function."), this._watcherVM.$watch(function() {
277
- return t(o.state, o.getters);
278
- }, n, r);
279
- };
280
- v.prototype.replaceState = function(t) {
281
- var n = this;
282
- this._withCommit(function() {
283
- n._vm._data.$$state = t;
284
- });
285
- };
286
- v.prototype.registerModule = function(t, n, r) {
287
- r === void 0 && (r = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (m(Array.isArray(t), "module path must be a string or an Array."), m(t.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(t, n), k(this, this.state, t, this._modules.get(t), r.preserveState), S(this, this.state);
288
- };
289
- v.prototype.unregisterModule = function(t) {
290
- var n = this;
291
- typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && m(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
292
- var r = x(n.state, t.slice(0, -1));
293
- h.delete(r, t[t.length - 1]);
294
- }), P(this);
295
- };
296
- v.prototype.hasModule = function(t) {
297
- return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && m(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
298
- };
299
- v.prototype.hotUpdate = function(t) {
300
- this._modules.update(t), P(this, !0);
301
- };
302
- v.prototype._withCommit = function(t) {
303
- var n = this._committing;
304
- this._committing = !0, t(), this._committing = n;
305
- };
306
- Object.defineProperties(v.prototype, O);
307
- function R(e, t, n) {
308
- return t.indexOf(e) < 0 && (n && n.prepend ? t.unshift(e) : t.push(e)), function() {
309
- var r = t.indexOf(e);
310
- r > -1 && t.splice(r, 1);
311
- };
312
- }
313
- function P(e, t) {
314
- e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
315
- var n = e.state;
316
- k(e, n, [], e._modules.root, !0), S(e, n, t);
317
- }
318
- function S(e, t, n) {
319
- var r = e._vm;
320
- e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
321
- var o = e._wrappedGetters, s = {};
322
- _(o, function(c, i) {
323
- s[i] = X(c, e), Object.defineProperty(e.getters, i, {
324
- get: function() {
325
- return e._vm[i];
326
- },
327
- enumerable: !0
328
- });
329
- });
330
- var a = h.config.silent;
331
- h.config.silent = !0, e._vm = new h({
332
- data: {
333
- $$state: t
334
- },
335
- computed: s
336
- }), h.config.silent = a, e.strict && et(e), r && (n && e._withCommit(function() {
337
- r._data.$$state = null;
338
- }), h.nextTick(function() {
339
- return r.$destroy();
340
- }));
341
- }
342
- function k(e, t, n, r, o) {
343
- var s = !n.length, a = e._modules.getNamespace(n);
344
- if (r.namespaced && (e._modulesNamespaceMap[a] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + a + " for the namespaced module " + n.join("/")), e._modulesNamespaceMap[a] = r), !s && !o) {
345
- var c = x(t, n.slice(0, -1)), i = n[n.length - 1];
346
- e._withCommit(function() {
347
- process.env.NODE_ENV !== "production" && i in c && console.warn(
348
- '[vuex] state field "' + i + '" was overridden by a module with the same name at "' + n.join(".") + '"'
349
- ), h.set(c, i, r.state);
350
- });
351
- }
352
- var f = r.context = W(e, a, n);
353
- r.forEachMutation(function(u, l) {
354
- var d = a + l;
355
- Y(e, d, u, f);
356
- }), r.forEachAction(function(u, l) {
357
- var d = u.root ? l : a + l, p = u.handler || u;
358
- Z(e, d, p, f);
359
- }), r.forEachGetter(function(u, l) {
360
- var d = a + l;
361
- tt(e, d, u, f);
362
- }), r.forEachChild(function(u, l) {
363
- k(e, t, n.concat(l), u, o);
364
- });
365
- }
366
- function W(e, t, n) {
367
- var r = t === "", o = {
368
- dispatch: r ? e.dispatch : function(s, a, c) {
369
- var i = N(s, a, c), f = i.payload, u = i.options, l = i.type;
370
- if ((!u || !u.root) && (l = t + l, process.env.NODE_ENV !== "production" && !e._actions[l])) {
371
- console.error("[vuex] unknown local action type: " + i.type + ", global type: " + l);
372
- return;
373
- }
374
- return e.dispatch(l, f);
375
- },
376
- commit: r ? e.commit : function(s, a, c) {
377
- var i = N(s, a, c), f = i.payload, u = i.options, l = i.type;
378
- if ((!u || !u.root) && (l = t + l, process.env.NODE_ENV !== "production" && !e._mutations[l])) {
379
- console.error("[vuex] unknown local mutation type: " + i.type + ", global type: " + l);
380
- return;
381
- }
382
- e.commit(l, f, u);
383
- }
384
- };
385
- return Object.defineProperties(o, {
386
- getters: {
387
- get: r ? function() {
388
- return e.getters;
389
- } : function() {
390
- return Q(e, t);
391
- }
392
- },
393
- state: {
394
- get: function() {
395
- return x(e.state, n);
396
- }
397
- }
398
- }), o;
399
- }
400
- function Q(e, t) {
401
- if (!e._makeLocalGettersCache[t]) {
402
- var n = {}, r = t.length;
403
- Object.keys(e.getters).forEach(function(o) {
404
- if (o.slice(0, r) === t) {
405
- var s = o.slice(r);
406
- Object.defineProperty(n, s, {
407
- get: function() {
408
- return e.getters[o];
409
- },
410
- enumerable: !0
411
- });
412
- }
413
- }), e._makeLocalGettersCache[t] = n;
414
- }
415
- return e._makeLocalGettersCache[t];
416
- }
417
- function Y(e, t, n, r) {
418
- var o = e._mutations[t] || (e._mutations[t] = []);
419
- o.push(function(a) {
420
- n.call(e, r.state, a);
421
- });
422
- }
423
- function Z(e, t, n, r) {
424
- var o = e._actions[t] || (e._actions[t] = []);
425
- o.push(function(a) {
426
- var c = n.call(e, {
427
- dispatch: r.dispatch,
428
- commit: r.commit,
429
- getters: r.getters,
430
- state: r.state,
431
- rootGetters: e.getters,
432
- rootState: e.state
433
- }, a);
434
- return q(c) || (c = Promise.resolve(c)), e._devtoolHook ? c.catch(function(i) {
435
- throw e._devtoolHook.emit("vuex:error", i), i;
436
- }) : c;
437
- });
438
- }
439
- function tt(e, t, n, r) {
440
- if (e._wrappedGetters[t]) {
441
- process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
442
- return;
443
- }
444
- e._wrappedGetters[t] = function(s) {
445
- return n(
446
- r.state,
447
- r.getters,
448
- s.state,
449
- s.getters
450
- );
451
- };
452
- }
453
- function et(e) {
454
- e._vm.$watch(function() {
455
- return this._data.$$state;
456
- }, function() {
457
- process.env.NODE_ENV !== "production" && m(e._committing, "do not mutate vuex store state outside mutation handlers.");
458
- }, { deep: !0, sync: !0 });
459
- }
460
- function x(e, t) {
461
- return t.reduce(function(n, r) {
462
- return n[r];
463
- }, e);
464
- }
465
- function N(e, t, n) {
466
- return j(e) && e.type && (n = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && m(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: n };
467
- }
468
- function nt(e) {
469
- if (h && e === h) {
470
- process.env.NODE_ENV !== "production" && console.error(
471
- "[vuex] already installed. Vue.use(Vuex) should be called only once."
472
- );
473
- return;
474
- }
475
- h = e, I(h);
476
- }
477
- var L = ot(function(e, t) {
478
- var n = {};
479
- return process.env.NODE_ENV !== "production" && !F(t) && console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"), rt(t).forEach(function(r) {
480
- var o = r.key, s = r.val;
481
- s = e + s, n[o] = function() {
482
- if (!(e && !it(this.$store, "mapGetters", e))) {
483
- if (process.env.NODE_ENV !== "production" && !(s in this.$store.getters)) {
484
- console.error("[vuex] unknown getter: " + s);
485
- return;
486
- }
487
- return this.$store.getters[s];
488
- }
489
- }, n[o].vuex = !0;
490
- }), n;
491
- });
492
- function rt(e) {
493
- return F(e) ? Array.isArray(e) ? e.map(function(t) {
494
- return { key: t, val: t };
495
- }) : Object.keys(e).map(function(t) {
496
- return { key: t, val: e[t] };
497
- }) : [];
498
- }
499
- function F(e) {
500
- return Array.isArray(e) || j(e);
501
- }
502
- function ot(e) {
503
- return function(t, n) {
504
- return typeof t != "string" ? (n = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, n);
505
- };
506
- }
507
- function it(e, t, n) {
508
- var r = e._modulesNamespaceMap[n];
509
- return process.env.NODE_ENV !== "production" && !r && console.error("[vuex] module namespace not found in " + t + "(): " + n), r;
510
- }
511
- function H(e, t, n, r, o, s, a, c) {
512
- var i = typeof e == "function" ? e.options : e;
513
- t && (i.render = t, i.staticRenderFns = n, i._compiled = !0), r && (i.functional = !0), s && (i._scopeId = "data-v-" + s);
514
- var f;
515
- if (a ? (f = function(d) {
516
- d = d || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !d && typeof __VUE_SSR_CONTEXT__ < "u" && (d = __VUE_SSR_CONTEXT__), o && o.call(this, d), d && d._registeredComponents && d._registeredComponents.add(a);
517
- }, i._ssrRegister = f) : o && (f = c ? function() {
518
- o.call(
519
- this,
520
- (i.functional ? this.parent : this).$root.$options.shadowRoot
521
- );
522
- } : o), f)
523
- if (i.functional) {
524
- i._injectStyles = f;
525
- var u = i.render;
526
- i.render = function(p, C) {
527
- return f.call(C), u(p, C);
528
- };
529
- } else {
530
- var l = i.beforeCreate;
531
- i.beforeCreate = l ? [].concat(l, f) : [f];
532
- }
533
- return {
534
- exports: e,
535
- options: i
536
- };
537
- }
538
- const M = "#409EFF", st = {
539
- name: "GdButtons",
540
- props: {
541
- record: {
542
- type: Object,
543
- default: () => ({})
544
- }
545
- },
546
- computed: {
547
- ...L(["theme"])
548
- },
549
- data() {
550
- return {
551
- showColorPicker: !1,
552
- value1: "",
553
- svalue: !0,
554
- currentRow: null,
555
- radio: "0",
556
- themes: "",
557
- chalk: "",
558
- tableData: [{
559
- date: "2016-05-03",
560
- name: "\u738B\u5C0F\u864E",
561
- province: "\u4E0A\u6D77",
562
- city: "\u666E\u9640\u533A",
563
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
564
- zip: 200333
565
- }, {
566
- date: "2016-05-02",
567
- name: "\u738B\u5C0F\u864E",
568
- province: "\u4E0A\u6D77",
569
- city: "\u666E\u9640\u533A",
570
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
571
- zip: 200334
572
- }, {
573
- date: "2016-05-04",
574
- name: "\u738B\u5C0F\u864E",
575
- province: "\u4E0A\u6D77",
576
- city: "\u666E\u9640\u533A",
577
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
578
- zip: 200335
579
- }, {
580
- date: "2016-05-01",
581
- name: "\u738B\u5C0F\u864E",
582
- province: "\u4E0A\u6D77",
583
- city: "\u666E\u9640\u533A",
584
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
585
- zip: 200336
586
- }, {
587
- date: "2016-05-08",
588
- name: "\u738B\u5C0F\u864E",
589
- province: "\u4E0A\u6D77",
590
- city: "\u666E\u9640\u533A",
591
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
592
- zip: 200337
593
- }, {
594
- date: "2016-05-06",
595
- name: "\u738B\u5C0F\u864E",
596
- province: "\u4E0A\u6D77",
597
- city: "\u666E\u9640\u533A",
598
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
599
- zip: 200338
600
- }, {
601
- date: "2016-05-07",
602
- name: "\u738B\u5C0F\u864E",
603
- province: "\u4E0A\u6D77",
604
- city: "\u666E\u9640\u533A",
605
- address: "\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04",
606
- zip: 200339
607
- }]
608
- };
609
- },
610
- methods: {
611
- hideColorPicker(e) {
612
- console.log(e);
613
- },
614
- lange(e) {
615
- console.log(e, this.$i18n, this.$i18n.locale), this.$i18n.locale = e, e === "en_US" && (this.showColorPicker = !0, this.$refs.colorPicker.showPicker = !0, console.log(this.$refs.colorPicker));
616
- },
617
- dateD(e) {
618
- console.log(e);
619
- },
620
- async changeTheme(e) {
621
- console.log(e);
622
- const t = this.chalk ? this.theme : M;
623
- if (typeof e != "string")
624
- return;
625
- const n = this.getThemeCluster(e.replace("#", "")), r = this.getThemeCluster(t.replace("#", "")), o = (c, i) => () => {
626
- const f = this.getThemeCluster(M.replace("#", "")), u = this.updateStyle(this[c], f, n);
627
- let l = document.getElementById(i);
628
- l || (l = document.createElement("style"), l.setAttribute("id", i), document.head.appendChild(l)), l.innerText = u;
629
- };
630
- this.chalk || await import("./element-theme-chalk.fbb1a631.mjs").then((c) => {
631
- this.chalk = c.default;
632
- }), o("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((c) => {
633
- const i = c.innerText;
634
- return new RegExp(t, "i").test(i) && !/Chalk Variables/.test(i);
635
- }).forEach((c) => {
636
- const {
637
- innerText: i
638
- } = c;
639
- typeof i == "string" && (c.innerText = this.updateStyle(i, r, n));
640
- }), this.$store.dispatch("app/ToggleTheme", e);
641
- },
642
- updateStyle(e, t, n) {
643
- let r = e;
644
- return t.forEach((o, s) => {
645
- r = r.replace(new RegExp(o, "ig"), n[s]);
646
- }), r;
647
- },
648
- getThemeCluster(e) {
649
- const t = (o, s) => {
650
- let a = parseInt(o.slice(0, 2), 16), c = parseInt(o.slice(2, 4), 16), i = parseInt(o.slice(4, 6), 16);
651
- return s === 0 ? [a, c, i].join(",") : (a += Math.round(s * (255 - a)), c += Math.round(s * (255 - c)), i += Math.round(s * (255 - i)), a = a.toString(16), c = c.toString(16), i = i.toString(16), `#${a}${c}${i}`);
652
- }, n = (o, s) => {
653
- let a = parseInt(o.slice(0, 2), 16), c = parseInt(o.slice(2, 4), 16), i = parseInt(o.slice(4, 6), 16);
654
- return a = Math.round((1 - s) * a), c = Math.round((1 - s) * c), i = Math.round((1 - s) * i), a = a.toString(16), c = c.toString(16), i = i.toString(16), `#${a}${c}${i}`;
655
- }, r = [e];
656
- for (let o = 0; o <= 9; o++)
657
- r.push(t(e, Number((o / 10).toFixed(2))));
658
- return r.push(n(e, 0.1)), r;
659
- },
660
- rowClick(e) {
661
- this.currentRow = e.zip;
662
- },
663
- selectionChange(e) {
664
- console.log(e);
665
- },
666
- sortChange({
667
- prop: e,
668
- order: t
669
- }) {
670
- console.log(e, t);
671
- },
672
- primary() {
673
- console.log(this.record), this.$emit("changeComponent", "\u6211\u662F\u81EA\u5B9A\u4E49\u7EC4\u4EF6\u8FD4\u56DE");
674
- },
675
- tableRowClassName({
676
- row: e,
677
- rowIndex: t
678
- }) {
679
- return t === 1 ? "warning-row" : t === 3 ? "success-row" : "";
680
- }
681
- },
682
- created() {
683
- this.changeTheme(D.ls.get("DEFAULT_COLOR") || this.theme), this.themes = D.ls.get("DEFAULT_COLOR") || this.theme;
684
- }
685
- };
686
- var at = function() {
687
- var t = this, n = t._self._c;
688
- return n("div", { staticClass: "gd-buts" }, [n("el-row", [n("el-button", [t._v("\u9ED8\u8BA4\u6309\u94AE77")]), n("el-button", { attrs: { type: "primary", loading: !0 } }, [t._v("\u4E3B\u8981\u6309\u94AE1")]), n("el-button", { attrs: { type: "success" }, on: { click: function(r) {
689
- return t.lange("en_US");
690
- } } }, [t._v("\u6210\u529F\u6309\u94AE2 en_US " + t._s(t.$t("el.cascader.loading")))]), n("el-button", { attrs: { type: "info" }, on: { click: function(r) {
691
- return t.lange("zh-CN");
692
- } } }, [t._v("\u4FE1\u606F\u6309\u94AE3 zh-CN")]), n("el-button", { attrs: { type: "warning" } }, [t._v("\u8B66\u544A\u6309\u94AE4")]), n("el-button", { attrs: { type: "danger" } }, [t._v("\u5371\u9669\u6309\u94AE5")]), n("el-button", { attrs: { type: "warning" } }, [t._v("\u8B66\u544A\u6309\u94AE6")]), n("el-radio", { attrs: { label: "1", size: "medium", border: "" }, model: { value: t.radio, callback: function(r) {
693
- t.radio = r;
694
- }, expression: "radio" } }, [t._v("\u5907\u9009\u9879")]), n("el-color-picker", { directives: [{ name: "show", rawName: "v-show", value: t.showColorPicker, expression: "showColorPicker" }], ref: "colorPicker", staticClass: "theme-picker", attrs: { predefine: ["#13c2c2", "#FB5E13", "#409EFF", "#1F65F9", "#11a983", "#6959CD", "#f5222d"], "popper-class": "theme-picker-dropdown" }, on: { change: t.changeTheme, show: t.hideColorPicker, hide: t.hideColorPicker }, model: { value: t.themes, callback: function(r) {
695
- t.themes = r;
696
- }, expression: "themes" } }), n("el-button", { attrs: { type: "text" } }, [t._v("\u70B9\u51FB\u6253\u5F00 Dialog")]), n("a", [t._v("\u8B66\u544A\u6309\u94AE")]), n("el-switch", { model: { value: t.svalue, callback: function(r) {
697
- t.svalue = r;
698
- }, expression: "svalue" } })], 1), n("i", { staticClass: "el-icon-edit" }), n("i", { staticClass: "el-icon-share" }), n("i", { staticClass: "el-icon-delete-solid" }), n("el-button", { attrs: { type: "primary", icon: "el-icon-search" } }, [t._v("\u641C\u7D22")]), n("el-table", { staticStyle: { width: "100%" }, attrs: { data: t.tableData, "row-class-name": t.tableRowClassName, border: "", height: "250", stripe: "", "show-overflow-tooltip": "", "highlight-current-row": "", size: "small" }, on: { "sort-change": t.sortChange, "selection-change": t.selectionChange, "row-click": t.rowClick } }, [n("el-table-column", { attrs: { label: "", width: "50", align: "center", fixed: "" }, scopedSlots: t._u([{ key: "default", fn: function(r) {
699
- return [n("el-radio", { attrs: { label: r.row.zip, size: "small" }, model: { value: t.currentRow, callback: function(o) {
700
- t.currentRow = o;
701
- }, expression: "currentRow" } }, [t._v(" " + t._s("") + " ")])];
702
- } }]) }), n("el-table-column", { attrs: { fixed: "", prop: "date", label: "\u65E5\u671F", width: "150", sortable: "custom" }, scopedSlots: t._u([{ key: "default", fn: function({ $index: r, row: o, column: s }) {
703
- return [n("span", { on: { click: function(a) {
704
- return a.stopPropagation(), t.dateD({ $index: r, row: o, column: s });
705
- } } }, [t._v(t._s(o.date) + "-" + t._s(r))])];
706
- } }]) }), n("el-table-column", { attrs: { prop: "name", label: "\u59D3\u540D", width: "120" } }), n("el-table-column", { attrs: { prop: "province", label: "\u7701\u4EFD", width: "120" } }), n("el-table-column", { attrs: { prop: "city", label: "\u5E02\u533A", width: "120" } }), n("el-table-column", { attrs: { prop: "address", label: "\u5730\u5740", "min-width": "250" } }), n("el-table-column", { attrs: { prop: "zip", label: "\u90AE\u7F16", width: "120" } })], 1), n("div", { staticClass: "block" }, [n("span", { staticClass: "demonstration" }, [t._v("Default")]), n("el-date-picker", { attrs: { type: "date", placeholder: "Pick a day", size: "medium" }, model: { value: t.value1, callback: function(r) {
707
- t.value1 = r;
708
- }, expression: "value1" } })], 1), n("div", { staticClass: "block", staticStyle: { "background-color": "#fff", padding: "20px" } }, [n("span", { staticClass: "demonstration" }, [t._v("\u5B8C\u6574\u529F\u80FD")]), n("el-pagination", { attrs: { "page-sizes": [100, 200, 300, 400], "page-size": 100, layout: "total, sizes, prev, pager, next, jumper", background: "", total: 1e3 } })], 1)], 1);
709
- }, ct = [], lt = /* @__PURE__ */ H(
710
- st,
711
- at,
712
- ct,
713
- !1,
714
- null,
715
- "bd6a7c42",
716
- null,
717
- null
718
- );
719
- const E = lt.exports;
720
- E.install = function(e) {
721
- e.component(E.name, E);
722
- };
723
- const ut = {
724
- name: "GdTables",
725
- props: Object.assign({}, {
726
- record: {
727
- type: Object,
728
- default: () => ({})
729
- },
730
- dataSource: {
731
- type: Function,
732
- required: !0
733
- },
734
- size: {
735
- type: String,
736
- default: "small"
737
- }
738
- }),
739
- computed: {
740
- dropdownActive() {
741
- return `background-color: ${this.fadeColor(this.theme, 0.1)};color:${this.theme}`;
742
- },
743
- ...L(["theme"])
744
- },
745
- data() {
746
- return {
747
- tableData: [],
748
- loading: !1,
749
- customSize: this.size
750
- };
751
- },
752
- methods: {
753
- changColumnHeight(e) {
754
- this.customSize = e, console.log(e);
755
- },
756
- selectionChange(e) {
757
- console.log(e);
758
- },
759
- sortChange({
760
- prop: e,
761
- order: t
762
- }) {
763
- console.log(e, t), this.loadData();
764
- },
765
- loadData() {
766
- this.loading = !0;
767
- const e = this.dataSource({
768
- aa: 33
769
- });
770
- (typeof e == "object" || typeof e == "function") && typeof e.then == "function" ? e.then((t) => {
771
- this.tableData = [...t], this.loading = !1;
772
- }) : this.loading = !1;
773
- },
774
- refresh(e = !1) {
775
- this.loadData();
776
- },
777
- fadeColor(e, t) {
778
- let n = parseInt(e.substring(1, 3), 16), r = parseInt(e.substring(3, 5), 16), o = parseInt(e.substring(5, 7), 16);
779
- return console.log(n, r, o), `rgba(${n},${r},${o},${t})`;
780
- }
781
- },
782
- created() {
783
- this.loadData();
784
- }
785
- };
786
- var dt = function() {
787
- var t = this, n = t._self._c;
788
- return n("div", { staticClass: "gd-tables", style: { "--theme": t.theme } }, [n("div", { staticClass: "tables-tool" }, [n("div", { staticClass: "tables-tool-l" }, [t._t("operator")], 2), n("div", { staticClass: "tables-tool-r" }, [n("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "\u5237\u65B0", placement: "top" } }, [n("i", { staticClass: "el-icon-refresh", on: { click: t.refresh } })]), n("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "\u5BC6\u5EA6", placement: "top" } }, [n("el-dropdown", { attrs: { trigger: "click", placement: "bottom" }, on: { command: t.changColumnHeight } }, [n("span", { staticClass: "el-dropdown-link" }, [n("i", { staticClass: "el-icon-s-operation" })]), n("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [n("el-dropdown-item", { style: t.customSize === "medium" ? t.dropdownActive : "", attrs: { command: "medium" } }, [t._v("\u9ED8\u8BA4")]), n("el-dropdown-item", { style: t.customSize === "small" ? t.dropdownActive : "", attrs: { command: "small" } }, [t._v("\u4E2D\u7B49")]), n("el-dropdown-item", { style: t.customSize === "mini" ? t.dropdownActive : "", attrs: { command: "mini" } }, [t._v("\u7D27\u51D1")])], 1)], 1)], 1), n("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "\u5217\u8BBE\u7F6E", placement: "top" } }, [n("el-dropdown", { attrs: { trigger: "click", placement: "bottom" } }, [n("span", { staticClass: "el-dropdown-link" }, [n("i", { staticClass: "el-icon-setting" })]), n("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [n("el-dropdown-item", [t._v("\u9ED8\u8BA4")]), n("el-dropdown-item", [t._v("\u4E2D\u7B49")]), n("el-dropdown-item", [t._v("\u7D27\u51D1")])], 1)], 1)], 1)], 1)]), n("el-table", t._g(t._b({ directives: [{ name: "loading", rawName: "v-loading", value: t.loading, expression: "loading" }], staticStyle: { width: "100%" }, attrs: { data: t.tableData, stripe: "", size: t.customSize, border: "", scopedSlots: { $scopedSlots: t.$scopedSlots }, "element-loading-background": "rgba(255, 255, 255, 0.8)", "element-loading-spinner": "el-icon-loading" }, on: { "sort-change": t.sortChange, "selection-change": t.selectionChange }, scopedSlots: t._u([t._l(t.$scopedSlots, function(r, o) {
789
- return { key: o, fn: function(s) {
790
- return [t._t(o, null, null, s)];
791
- } };
792
- })], null, !0) }, "el-table", t.$attrs, !1), t.$listeners))], 1);
793
- }, ft = [], pt = /* @__PURE__ */ H(
794
- ut,
795
- dt,
796
- ft,
797
- !1,
798
- null,
799
- "eeff55f0",
800
- null,
801
- null
802
- );
803
- const $ = pt.exports;
804
- $.install = function(e) {
805
- e.component($.name, $);
806
- };
807
- const ht = [
808
- E,
809
- $
810
- ], w = function(e, t, n) {
811
- t && (window.axios = t, w.axios = t), n && (window.$i18nt = n, w.$i18nt = n), !w.installed && (w.installed = !0, ht.map((r) => {
812
- e.component(r.name, r);
813
- }));
814
- }, vt = {
815
- install: w
816
- };
1
+ import { b as e, e as o, h as r, c as p, G as n, f as u, p as c, r as m, g as f, s as l, d as M } from "./index.10b2543c.mjs";
2
+ import "vue";
817
3
  export {
818
- vt as default
4
+ e as bootstrap,
5
+ o as camelCase,
6
+ r as constantRouterComponent,
7
+ p as constantRouterMaps,
8
+ n as default,
9
+ u as menuEscape,
10
+ c as platformMenus,
11
+ m as routerMetas,
12
+ f as routerUserAccounts,
13
+ l as storeApp,
14
+ M as storeGetter
819
15
  };