sinosoft-common-button 1.3.4 → 1.3.6

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,16 +1,16 @@
1
- import { openBlock as n, createElementBlock as f, createElementVNode as u, defineComponent as $, resolveComponent as g, createBlock as C, normalizeClass as v, normalizeStyle as a, withCtx as y, createCommentVNode as S, renderSlot as z, createVNode as w } from "vue";
1
+ import { openBlock as c, createElementBlock as y, createElementVNode as m, defineComponent as ee, onUnmounted as te, resolveComponent as w, createBlock as T, normalizeClass as ie, normalizeStyle as u, withCtx as z, createCommentVNode as C, renderSlot as B, createVNode as R } from "vue";
2
2
  /*! Element Plus Icons Vue v2.1.0 */
3
- var _ = (t, e) => {
4
- let r = t.__vccOpts || t;
5
- for (let [o, i] of e)
6
- r[o] = i;
7
- return r;
8
- }, k = {
3
+ var re = (e, t) => {
4
+ let i = e.__vccOpts || e;
5
+ for (let [r, o] of t)
6
+ i[r] = o;
7
+ return i;
8
+ }, oe = {
9
9
  name: "Loading"
10
- }, x = {
10
+ }, ne = {
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  viewBox: "0 0 1024 1024"
13
- }, F = /* @__PURE__ */ u(
13
+ }, le = /* @__PURE__ */ m(
14
14
  "path",
15
15
  {
16
16
  fill: "currentColor",
@@ -19,109 +19,221 @@ var _ = (t, e) => {
19
19
  null,
20
20
  -1
21
21
  /* HOISTED */
22
- ), A = [
23
- F
22
+ ), se = [
23
+ le
24
24
  ];
25
- function B(t, e, r, o, i, l) {
26
- return n(), f("svg", x, A);
25
+ function ae(e, t, i, r, o, l) {
26
+ return c(), y("svg", ne, se);
27
27
  }
28
- var L = /* @__PURE__ */ _(k, [["render", B], ["__file", "loading.vue"]]);
29
- function b(t, e, r) {
30
- for (var o = [], i = Math.max(t.length, e.length), l = 0, s = 0; s < i || l; ) {
31
- var h = s < t.length ? t[s] : 0, c = s < e.length ? e[s] : 0, d = l + h + c;
32
- o.push(d % r), l = Math.floor(d / r), s++;
28
+ var de = /* @__PURE__ */ re(oe, [["render", ae], ["__file", "loading.vue"]]);
29
+ function W(e, t, i) {
30
+ for (var r = [], o = Math.max(e.length, t.length), l = 0, n = 0; n < o || l; ) {
31
+ var s = n < e.length ? e[n] : 0, d = n < t.length ? t[n] : 0, f = l + s + d;
32
+ r.push(f % i), l = Math.floor(f / i), n++;
33
33
  }
34
- return o;
34
+ return r;
35
35
  }
36
- function m(t, e, r) {
37
- if (t < 0)
36
+ function F(e, t, i) {
37
+ if (e < 0)
38
38
  return null;
39
- if (t == 0)
39
+ if (e == 0)
40
40
  return [];
41
- for (var o = [], i = e; t & 1 && (o = b(o, i, r)), t = t >> 1, t !== 0; )
42
- i = b(i, i, r);
43
- return o;
41
+ for (var r = [], o = t; e & 1 && (r = W(r, o, i)), e = e >> 1, e !== 0; )
42
+ o = W(o, o, i);
43
+ return r;
44
44
  }
45
- function O(t, e) {
46
- for (var r = t.split(""), o = [], i = r.length - 1; i >= 0; i--) {
47
- var l = parseInt(r[i], e);
45
+ function fe(e, t) {
46
+ for (var i = e.split(""), r = [], o = i.length - 1; o >= 0; o--) {
47
+ var l = parseInt(i[o], t);
48
48
  if (isNaN(l))
49
49
  return null;
50
- o.push(l);
50
+ r.push(l);
51
51
  }
52
- return o;
52
+ return r;
53
53
  }
54
- function R(t, e, r) {
55
- var o = O(t, e);
56
- if (o === null)
54
+ function he(e, t, i) {
55
+ var r = fe(e, t);
56
+ if (r === null)
57
57
  return null;
58
- for (var i = [], l = [1], s = 0; s < o.length; s++)
59
- o[s] && (i = b(
60
- i,
61
- m(o[s], l, r),
62
- r
63
- )), l = m(e, l, r);
64
- for (var h = "", s = i.length - 1; s >= 0; s--)
65
- h += i[s].toString(r);
66
- return h;
58
+ for (var o = [], l = [1], n = 0; n < r.length; n++)
59
+ r[n] && (o = W(
60
+ o,
61
+ F(r[n], l, i),
62
+ i
63
+ )), l = F(t, l, i);
64
+ for (var s = "", n = o.length - 1; n >= 0; n--)
65
+ s += o[n].toString(i);
66
+ return s;
67
67
  }
68
- function q(t) {
69
- return t.substring(0, 2) === "0x" && (t = t.substring(2)), t = t.toLowerCase(), R(t, 16, 10);
68
+ function ce(e) {
69
+ return e.substring(0, 2) === "0x" && (e = e.substring(2)), e = e.toLowerCase(), he(e, 16, 10);
70
70
  }
71
- class D {
72
- constructor(e) {
73
- e = e || {}, this.seq = 0, this.mid = (e.mid || 1) % 1023, this.offset = e.offset || 0, this.lastTime = 0;
71
+ class ue {
72
+ constructor(t) {
73
+ t = t || {}, this.seq = 0, this.mid = (t.mid || 1) % 1023, this.offset = t.offset || 0, this.lastTime = 0;
74
74
  }
75
75
  generate() {
76
- const e = Date.now(), r = (e - this.offset).toString(2);
77
- this.lastTime == e ? (this.seq++, this.seq > 4095 && (this.seq = 0)) : this.seq = 0, this.lastTime = e;
78
- let o = this.seq.toString(2), i = this.mid.toString(2);
79
- for (; o.length < 12; )
76
+ const t = Date.now(), i = (t - this.offset).toString(2);
77
+ this.lastTime == t ? (this.seq++, this.seq > 4095 && (this.seq = 0)) : this.seq = 0, this.lastTime = t;
78
+ let r = this.seq.toString(2), o = this.mid.toString(2);
79
+ for (; r.length < 12; )
80
+ r = "0" + r;
81
+ for (; o.length < 10; )
80
82
  o = "0" + o;
81
- for (; i.length < 10; )
82
- i = "0" + i;
83
- const l = r + i + o;
84
- let s = "";
85
- for (let h = l.length; h > 0; h -= 4)
86
- s = parseInt(l.substring(h - 4, h), 2).toString(16) + s;
87
- return q(s);
83
+ const l = i + o + r;
84
+ let n = "";
85
+ for (let s = l.length; s > 0; s -= 4)
86
+ n = parseInt(l.substring(s - 4, s), 2).toString(16) + n;
87
+ return ce(n);
88
+ }
89
+ }
90
+ var S = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
91
+ function ge(e) {
92
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
93
+ }
94
+ function be(e) {
95
+ var t = typeof e;
96
+ return e != null && (t == "object" || t == "function");
97
+ }
98
+ var P = be, pe = typeof S == "object" && S && S.Object === Object && S, ye = pe, me = ye, ve = typeof self == "object" && self && self.Object === Object && self, Ce = me || ve || Function("return this")(), V = Ce, Se = V, _e = function() {
99
+ return Se.Date.now();
100
+ }, $e = _e, ke = /\s/;
101
+ function we(e) {
102
+ for (var t = e.length; t-- && ke.test(e.charAt(t)); )
103
+ ;
104
+ return t;
105
+ }
106
+ var Te = we, ze = Te, je = /^\s+/;
107
+ function We(e) {
108
+ return e && e.slice(0, ze(e) + 1).replace(je, "");
109
+ }
110
+ var Oe = We, Ie = V, Le = Ie.Symbol, U = Le, H = U, X = Object.prototype, Ee = X.hasOwnProperty, Ae = X.toString, p = H ? H.toStringTag : void 0;
111
+ function Ne(e) {
112
+ var t = Ee.call(e, p), i = e[p];
113
+ try {
114
+ e[p] = void 0;
115
+ var r = !0;
116
+ } catch {
117
+ }
118
+ var o = Ae.call(e);
119
+ return r && (t ? e[p] = i : delete e[p]), o;
120
+ }
121
+ var Be = Ne, Re = Object.prototype, Fe = Re.toString;
122
+ function He(e) {
123
+ return Fe.call(e);
124
+ }
125
+ var Me = He, M = U, xe = Be, qe = Me, De = "[object Null]", Ge = "[object Undefined]", x = M ? M.toStringTag : void 0;
126
+ function Pe(e) {
127
+ return e == null ? e === void 0 ? Ge : De : x && x in Object(e) ? xe(e) : qe(e);
128
+ }
129
+ var Ve = Pe;
130
+ function Ue(e) {
131
+ return e != null && typeof e == "object";
132
+ }
133
+ var Xe = Ue, Je = Ve, Ke = Xe, Qe = "[object Symbol]";
134
+ function Ye(e) {
135
+ return typeof e == "symbol" || Ke(e) && Je(e) == Qe;
136
+ }
137
+ var Ze = Ye, et = Oe, q = P, tt = Ze, D = 0 / 0, it = /^[-+]0x[0-9a-f]+$/i, rt = /^0b[01]+$/i, ot = /^0o[0-7]+$/i, nt = parseInt;
138
+ function lt(e) {
139
+ if (typeof e == "number")
140
+ return e;
141
+ if (tt(e))
142
+ return D;
143
+ if (q(e)) {
144
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
145
+ e = q(t) ? t + "" : t;
146
+ }
147
+ if (typeof e != "string")
148
+ return e === 0 ? e : +e;
149
+ e = et(e);
150
+ var i = rt.test(e);
151
+ return i || ot.test(e) ? nt(e.slice(2), i ? 2 : 8) : it.test(e) ? D : +e;
152
+ }
153
+ var st = lt, at = P, j = $e, G = st, dt = "Expected a function", ft = Math.max, ht = Math.min;
154
+ function ct(e, t, i) {
155
+ var r, o, l, n, s, d, f = 0, L = !1, g = !1, _ = !0;
156
+ if (typeof e != "function")
157
+ throw new TypeError(dt);
158
+ t = G(t) || 0, at(i) && (L = !!i.leading, g = "maxWait" in i, l = g ? ft(G(i.maxWait) || 0, t) : l, _ = "trailing" in i ? !!i.trailing : _);
159
+ function $(a) {
160
+ var h = r, b = o;
161
+ return r = o = void 0, f = a, n = e.apply(b, h), n;
162
+ }
163
+ function K(a) {
164
+ return f = a, s = setTimeout(v, t), L ? $(a) : n;
165
+ }
166
+ function Q(a) {
167
+ var h = a - d, b = a - f, N = t - h;
168
+ return g ? ht(N, l - b) : N;
88
169
  }
170
+ function E(a) {
171
+ var h = a - d, b = a - f;
172
+ return d === void 0 || h >= t || h < 0 || g && b >= l;
173
+ }
174
+ function v() {
175
+ var a = j();
176
+ if (E(a))
177
+ return A(a);
178
+ s = setTimeout(v, Q(a));
179
+ }
180
+ function A(a) {
181
+ return s = void 0, _ && r ? $(a) : (r = o = void 0, n);
182
+ }
183
+ function Y() {
184
+ s !== void 0 && clearTimeout(s), f = 0, r = d = o = s = void 0;
185
+ }
186
+ function Z() {
187
+ return s === void 0 ? n : A(j());
188
+ }
189
+ function k() {
190
+ var a = j(), h = E(a);
191
+ if (r = arguments, o = this, d = a, h) {
192
+ if (s === void 0)
193
+ return K(d);
194
+ if (g)
195
+ return clearTimeout(s), s = setTimeout(v, t), $(d);
196
+ }
197
+ return s === void 0 && (s = setTimeout(v, t)), n;
198
+ }
199
+ return k.cancel = Y, k.flush = Z, k;
89
200
  }
90
- const N = new D({
201
+ var ut = ct;
202
+ const gt = /* @__PURE__ */ ge(ut);
203
+ var O;
204
+ ((e) => {
205
+ e.debouncedFun = (t, i) => gt(t, i, {
206
+ leading: !0,
207
+ // 延长开始后调用
208
+ trailing: !1
209
+ // 延长结束前调用
210
+ });
211
+ })(O || (O = {}));
212
+ const bt = new ue({
91
213
  mid: 42,
92
214
  offset: (2019 - 1970) * 31536e3 * 1e3
93
- }), H = $({
215
+ }), pt = ee({
94
216
  components: {
95
- Loading: L
217
+ Loading: de
96
218
  },
97
219
  props: {
98
220
  disabled: {
99
221
  type: Boolean,
100
222
  default: !1
101
223
  },
102
- // debounced: {
103
- // type: Boolean,
104
- // default: false,
105
- // },
106
- plain: {
107
- type: Boolean,
108
- default: !1
109
- },
110
- primary: {
224
+ debounced: {
111
225
  type: Boolean,
112
226
  default: !1
113
227
  },
114
- default: {
228
+ plain: {
115
229
  type: Boolean,
116
230
  default: !1
117
231
  },
118
- // 弹窗提交按钮
119
- primaryDialog: {
232
+ primary: {
120
233
  type: Boolean,
121
234
  default: !1
122
235
  },
123
- // 普通提交
124
- primaryOrdinary: {
236
+ default: {
125
237
  type: Boolean,
126
238
  default: !1
127
239
  },
@@ -129,14 +241,6 @@ const N = new D({
129
241
  type: Boolean,
130
242
  default: !1
131
243
  },
132
- infoDialog: {
133
- type: Boolean,
134
- default: !1
135
- },
136
- infoOrdinary: {
137
- type: Boolean,
138
- default: !1
139
- },
140
244
  text: {
141
245
  type: Boolean,
142
246
  default: !1
@@ -235,30 +339,6 @@ const N = new D({
235
339
  borderRadius: this.circle,
236
340
  fontWeight: this.fontWeight || 500,
237
341
  size: this.size
238
- } : this.primaryOrdinary ? {
239
- background: this.bgColor || "#99004A",
240
- borderWidth: this.borderWidth || "1px",
241
- borderStyle: `${this.borderStyle}`,
242
- borderColor: `${this.borderColor || this.color || "#99004A"}`,
243
- color: this.color || "#ffffff",
244
- width: `${this.width || "190px"}`,
245
- height: `${this.height || "52px"}`,
246
- borderRadius: this.circle,
247
- fontSize: this.fontSize || "16px",
248
- fontWeight: this.fontWeight || 600,
249
- size: this.size
250
- } : this.primaryDialog ? {
251
- minWidth: `${this.width || "250px"}`,
252
- height: `${this.height || "60px"}`,
253
- background: this.bgColor || "#99004A",
254
- borderWidth: this.borderWidth || "1px",
255
- borderStyle: `${this.borderStyle}`,
256
- borderColor: `${this.borderColor || this.color || "#99004A"}`,
257
- color: this.color || "#ffffff",
258
- borderRadius: this.circle || "8px",
259
- fontSize: this.fontSize || "16px",
260
- fontWeight: this.fontWeight || 560,
261
- size: this.size
262
342
  } : this.default ? {
263
343
  background: this.bgColor || "#ffffff",
264
344
  borderWidth: this.borderWidth || "1px",
@@ -281,30 +361,6 @@ const N = new D({
281
361
  borderRadius: this.circle,
282
362
  fontWeight: this.fontWeight || 500,
283
363
  size: this.size
284
- } : this.infoDialog ? {
285
- minWidth: `${this.width || "250px"}`,
286
- height: `${this.height || "60px"}`,
287
- background: this.bgColor || "#C4C4C4",
288
- borderWidth: this.borderWidth || "1px",
289
- borderStyle: `${this.borderStyle}`,
290
- borderColor: `${this.borderColor || this.color || "#C4C4C4"}`,
291
- color: this.color || "#FFFFFF",
292
- borderRadius: this.circle || "8px",
293
- fontSize: this.fontSize || "16px",
294
- fontWeight: this.fontWeight || 600,
295
- size: this.size
296
- } : this.infoOrdinary ? {
297
- width: `${this.width || "190px"}`,
298
- height: `${this.height || "52px"}`,
299
- background: this.bgColor || "#C4C4C4",
300
- borderWidth: this.borderWidth || "1px",
301
- borderStyle: `${this.borderStyle}`,
302
- borderColor: `${this.borderColor || this.color || "#C4C4C4"}`,
303
- color: this.color || "#FFFFFF",
304
- borderRadius: this.circle || "8px",
305
- fontSize: this.fontSize || "16px",
306
- fontWeight: this.fontWeight || 600,
307
- size: this.size
308
364
  } : this.text ? {
309
365
  width: `${this.width || "41px"}`,
310
366
  height: `${this.height || "24px"}`,
@@ -338,7 +394,7 @@ const N = new D({
338
394
  borderStyle: `${this.borderStyle}`,
339
395
  borderColor: `${this.borderColor || this.color || "#99004A"}`,
340
396
  borderRadius: this.circle || "8px",
341
- fontSize: this.fontSize || "16px",
397
+ fontSize: this.fontSize || "14px",
342
398
  fontWeight: this.fontWeight || 500,
343
399
  size: this.size || "20",
344
400
  borderWidth: this.borderWidth || "0px"
@@ -362,81 +418,113 @@ const N = new D({
362
418
  }
363
419
  },
364
420
  emits: ["handleClick"],
365
- setup(t, e) {
366
- return {
367
- handleClick: (o) => {
368
- let i = N.generate(), l = `${t.btnCode}_${i}`;
369
- console.log(
370
- "按钮组件点击事件获取到事件对象及事件唯一标识符",
371
- o,
372
- l
373
- ), t.btnCode ? e.emit("handleClick", l) : e.emit("handleClick", "");
374
- }
421
+ setup(e, t) {
422
+ const i = (l) => {
423
+ let n = bt.generate(), s = `${e.btnCode}_${n}`;
424
+ console.log(
425
+ "按钮组件点击事件获取到事件对象及事件唯一标识符",
426
+ l,
427
+ s
428
+ ), e.btnCode ? t.emit("handleClick", s) : t.emit("handleClick", "");
429
+ }, r = O.debouncedFun((l) => {
430
+ i(l);
431
+ }, 3e3), o = (l) => {
432
+ e.debounced ? r(l) : i(l);
433
+ };
434
+ return te(() => {
435
+ r.cancel();
436
+ }), {
437
+ getHandleClick: o,
438
+ handleClick: i
375
439
  };
376
440
  }
377
441
  });
378
- const E = (t, e) => {
379
- const r = t.__vccOpts || t;
380
- for (const [o, i] of e)
381
- r[o] = i;
382
- return r;
383
- }, M = { class: "common-button" }, T = {
442
+ const yt = (e, t) => {
443
+ const i = e.__vccOpts || e;
444
+ for (const [r, o] of t)
445
+ i[r] = o;
446
+ return i;
447
+ }, mt = { class: "common-button" }, vt = {
384
448
  key: 0,
385
449
  class: "s-icon"
386
- }, j = ["src"], V = ["btnCode"];
387
- function I(t, e, r, o, i, l) {
388
- const s = g("Loading"), h = g("el-icon"), c = g("el-button");
389
- return n(), f("div", M, [
390
- t.link ? (n(), f("span", {
450
+ }, Ct = ["src"], St = ["btnCode"], _t = {
451
+ key: 0,
452
+ class: "s-icon padding-icon"
453
+ }, $t = ["src"];
454
+ function kt(e, t, i, r, o, l) {
455
+ const n = w("Loading"), s = w("el-icon"), d = w("el-button");
456
+ return c(), y("div", mt, [
457
+ e.link ? (c(), y("span", {
391
458
  key: 1,
392
459
  class: "link",
393
- style: a(t.styleOjb),
394
- btnCode: t.btnCode,
395
- onClick: e[0] || (e[0] = (...d) => t.handleClick && t.handleClick(...d))
460
+ style: u(e.styleOjb),
461
+ btnCode: e.btnCode,
462
+ onClick: t[0] || (t[0] = (...f) => e.getHandleClick && e.getHandleClick(...f))
396
463
  }, [
397
- z(t.$slots, "default", {}, void 0, !0)
398
- ], 12, V)) : (n(), C(c, {
464
+ e.icon ? (c(), y("i", _t, [
465
+ m("img", {
466
+ src: e.geturl,
467
+ alt: "",
468
+ style: u(e.styleObject)
469
+ }, null, 12, $t)
470
+ ])) : C("", !0),
471
+ m("span", {
472
+ style: u({ color: e.color })
473
+ }, [
474
+ B(e.$slots, "default", {}, void 0, !0)
475
+ ], 4),
476
+ e.loading ? (c(), T(s, {
477
+ key: 1,
478
+ class: "is-loading",
479
+ color: e.loadingColor
480
+ }, {
481
+ default: z(() => [
482
+ R(n)
483
+ ]),
484
+ _: 1
485
+ }, 8, ["color"])) : C("", !0)
486
+ ], 12, St)) : (c(), T(d, {
399
487
  key: 0,
400
- class: v(["s-button", { plain: t.plain, btnhover: !t.plain, loading: t.loading }]),
401
- disabled: t.disabled,
402
- loading: t.loading,
403
- style: a(t.styleOjb),
404
- onClick: t.handleClick,
405
- btnCode: t.btnCode
488
+ class: ie(["s-button", { plain: e.plain, btnhover: !e.plain, loading: e.loading }]),
489
+ disabled: e.disabled,
490
+ loading: e.loading,
491
+ style: u(e.styleOjb),
492
+ onClick: e.getHandleClick,
493
+ btnCode: e.btnCode
406
494
  }, {
407
- default: y(() => [
408
- t.icon ? (n(), f("i", T, [
409
- u("img", {
410
- src: t.geturl,
495
+ default: z(() => [
496
+ e.icon ? (c(), y("i", vt, [
497
+ m("img", {
498
+ src: e.geturl,
411
499
  alt: "",
412
- style: a(t.styleObject)
413
- }, null, 12, j)
414
- ])) : S("", !0),
415
- u("span", {
416
- style: a({ color: t.color })
500
+ style: u(e.styleObject)
501
+ }, null, 12, Ct)
502
+ ])) : C("", !0),
503
+ m("span", {
504
+ style: u({ color: e.color })
417
505
  }, [
418
- z(t.$slots, "default", {}, void 0, !0)
506
+ B(e.$slots, "default", {}, void 0, !0)
419
507
  ], 4),
420
- t.loading ? (n(), C(h, {
508
+ e.loading ? (c(), T(s, {
421
509
  key: 1,
422
510
  class: "is-loading",
423
- color: t.loadingColor
511
+ color: e.loadingColor
424
512
  }, {
425
- default: y(() => [
426
- w(s)
513
+ default: z(() => [
514
+ R(n)
427
515
  ]),
428
516
  _: 1
429
- }, 8, ["color"])) : S("", !0)
517
+ }, 8, ["color"])) : C("", !0)
430
518
  ]),
431
519
  _: 3
432
520
  }, 8, ["class", "disabled", "loading", "style", "onClick", "btnCode"]))
433
521
  ]);
434
522
  }
435
- const W = /* @__PURE__ */ E(H, [["render", I], ["__scopeId", "data-v-b134af24"]]);
436
- function p(t, e = {}) {
437
- p.installed || (p.installed = !0, t.component("common-button", W));
523
+ const J = /* @__PURE__ */ yt(pt, [["render", kt], ["__scopeId", "data-v-48a301cd"]]);
524
+ function I(e, t = {}) {
525
+ I.installed || (I.installed = !0, e.component("common-button", J));
438
526
  }
439
- W.install = p;
527
+ J.install = I;
440
528
  export {
441
- W as default
529
+ J as default
442
530
  };
@@ -1 +1 @@
1
- (function(e,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("vue")):typeof define=="function"&&define.amd?define(["vue"],d):(e=typeof globalThis<"u"?globalThis:e||self,e.button=d(e.Vue))})(this,function(e){"use strict";/*! Element Plus Icons Vue v2.1.0 */var d=(t,i)=>{let l=t.__vccOpts||t;for(let[r,o]of i)l[r]=o;return l},u={name:"Loading"},C={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},y=e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),m=[y];function S(t,i,l,r,o,n){return e.openBlock(),e.createElementBlock("svg",C,m)}var z=d(u,[["render",S],["__file","loading.vue"]]);function f(t,i,l){for(var r=[],o=Math.max(t.length,i.length),n=0,s=0;s<o||n;){var h=s<t.length?t[s]:0,b=s<i.length?i[s]:0,a=n+h+b;r.push(a%l),n=Math.floor(a/l),s++}return r}function p(t,i,l){if(t<0)return null;if(t==0)return[];for(var r=[],o=i;t&1&&(r=f(r,o,l)),t=t>>1,t!==0;)o=f(o,o,l);return r}function W(t,i){for(var l=t.split(""),r=[],o=l.length-1;o>=0;o--){var n=parseInt(l[o],i);if(isNaN(n))return null;r.push(n)}return r}function k(t,i,l){var r=W(t,i);if(r===null)return null;for(var o=[],n=[1],s=0;s<r.length;s++)r[s]&&(o=f(o,p(r[s],n,l),l)),n=p(i,n,l);for(var h="",s=o.length-1;s>=0;s--)h+=o[s].toString(l);return h}function $(t){return t.substring(0,2)==="0x"&&(t=t.substring(2)),t=t.toLowerCase(),k(t,16,10)}class w{constructor(i){i=i||{},this.seq=0,this.mid=(i.mid||1)%1023,this.offset=i.offset||0,this.lastTime=0}generate(){const i=Date.now(),l=(i-this.offset).toString(2);this.lastTime==i?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=i;let r=this.seq.toString(2),o=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;o.length<10;)o="0"+o;const n=l+o+r;let s="";for(let h=n.length;h>0;h-=4)s=parseInt(n.substring(h-4,h),2).toString(16)+s;return $(s)}}const _=new w({mid:42,offset:(2019-1970)*31536e3*1e3}),x=e.defineComponent({components:{Loading:z},props:{disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},default:{type:Boolean,default:!1},primaryDialog:{type:Boolean,default:!1},primaryOrdinary:{type:Boolean,default:!1},info:{type:Boolean,default:!1},infoDialog:{type:Boolean,default:!1},infoOrdinary:{type:Boolean,default:!1},text:{type:Boolean,default:!1},link:{type:Boolean,default:!1},fontSize:{type:String,default:""},btnCode:{type:String,default:""},circle:{type:String,default:""},height:{type:String,default:""},width:{type:String,default:""},color:{type:String,default:""},loadingColor:{type:String,default:"#333333"},bgColor:{type:String,default:""},borderColor:{type:String,default:""},loading:{type:Boolean,default:!1},borderStyle:{type:String,default:"solid"},icon:{type:String,required:!1},size:{type:[Number,String],default:"auto"},fontWeight:{type:Number,default:500},lineHeight:{type:String,default:""},borderWidth:{type:String,default:""}},computed:{styleOjb(){return this.plain?{background:this.bgColor||"#fff",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,color:this.color||"#99004A",width:this.width,height:this.height,borderRadius:this.circle,fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||500,size:this.size}:this.primary?{background:this.bgColor||"#99004A",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,color:this.color||"#ffffff",width:this.width,height:this.height,borderRadius:this.circle,fontWeight:this.fontWeight||500,size:this.size}:this.primaryOrdinary?{background:this.bgColor||"#99004A",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,color:this.color||"#ffffff",width:`${this.width||"190px"}`,height:`${this.height||"52px"}`,borderRadius:this.circle,fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||600,size:this.size}:this.primaryDialog?{minWidth:`${this.width||"250px"}`,height:`${this.height||"60px"}`,background:this.bgColor||"#99004A",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,color:this.color||"#ffffff",borderRadius:this.circle||"8px",fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||560,size:this.size}:this.default?{background:this.bgColor||"#ffffff",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#DDE2E6"}`,color:this.color||"#99004A",width:this.width,height:this.height,borderRadius:this.circle,fontWeight:this.fontWeight||500,size:this.size}:this.info?{background:this.bgColor||"#C4C4C4",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",width:this.width,height:this.height,borderRadius:this.circle,fontWeight:this.fontWeight||500,size:this.size}:this.infoDialog?{minWidth:`${this.width||"250px"}`,height:`${this.height||"60px"}`,background:this.bgColor||"#C4C4C4",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",borderRadius:this.circle||"8px",fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||600,size:this.size}:this.infoOrdinary?{width:`${this.width||"190px"}`,height:`${this.height||"52px"}`,background:this.bgColor||"#C4C4C4",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",borderRadius:this.circle||"8px",fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||600,size:this.size}:this.text?{width:`${this.width||"41px"}`,height:`${this.height||"24px"}`,background:this.bgColor||"#ffffff",borderWidth:this.borderWidth||"0px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#E2A650",borderRadius:this.circle||"8px",fontSize:this.fontSize||"14px",fontWeight:this.fontWeight||500,size:this.size,lineHeight:this.lineHeight||"24px"}:this.link?{width:this.width,height:this.height,borderWidth:this.borderWidth||"0px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#E2A650",borderRadius:this.circle||"8px",fontSize:this.fontSize||"14px",fontWeight:this.fontWeight||500,size:this.size,lineHeight:this.lineHeight||"24px"}:{width:this.width,height:this.height,color:this.color||"#ffffff",background:this.bgColor||"#99004A",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,borderRadius:this.circle||"8px",fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||500,size:this.size||"20",borderWidth:this.borderWidth||"0px"}},geturl(){if(this.icon){if(this.icon.includes("/")||this.icon.includes("base64"))return this.icon;if(this.icon.includes("svg"))return`${this.icon}`}else return"";return`${this.icon}`},styleObject:function(){return{width:typeof this.size=="string"?this.size:this.size+"px",height:typeof this.size=="string"?this.size:this.size+"px"}}},emits:["handleClick"],setup(t,i){return{handleClick:r=>{let o=_.generate(),n=`${t.btnCode}_${o}`;console.log("按钮组件点击事件获取到事件对象及事件唯一标识符",r,n),t.btnCode?i.emit("handleClick",n):i.emit("handleClick","")}}}}),N="",B=(t,i)=>{const l=t.__vccOpts||t;for(const[r,o]of i)l[r]=o;return l},v={class:"common-button"},F={key:0,class:"s-icon"},A=["src"],E=["btnCode"];function L(t,i,l,r,o,n){const s=e.resolveComponent("Loading"),h=e.resolveComponent("el-icon"),b=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",v,[t.link?(e.openBlock(),e.createElementBlock("span",{key:1,class:"link",style:e.normalizeStyle(t.styleOjb),btnCode:t.btnCode,onClick:i[0]||(i[0]=(...a)=>t.handleClick&&t.handleClick(...a))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],12,E)):(e.openBlock(),e.createBlock(b,{key:0,class:e.normalizeClass(["s-button",{plain:t.plain,btnhover:!t.plain,loading:t.loading}]),disabled:t.disabled,loading:t.loading,style:e.normalizeStyle(t.styleOjb),onClick:t.handleClick,btnCode:t.btnCode},{default:e.withCtx(()=>[t.icon?(e.openBlock(),e.createElementBlock("i",F,[e.createElementVNode("img",{src:t.geturl,alt:"",style:e.normalizeStyle(t.styleObject)},null,12,A)])):e.createCommentVNode("",!0),e.createElementVNode("span",{style:e.normalizeStyle({color:t.color})},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4),t.loading?(e.openBlock(),e.createBlock(h,{key:1,class:"is-loading",color:t.loadingColor},{default:e.withCtx(()=>[e.createVNode(s)]),_:1},8,["color"])):e.createCommentVNode("",!0)]),_:3},8,["class","disabled","loading","style","onClick","btnCode"]))])}const c=B(x,[["render",L],["__scopeId","data-v-b134af24"]]);function g(t,i={}){g.installed||(g.installed=!0,t.component("common-button",c))}return c.install=g,c});
1
+ (function(i,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("vue")):typeof define=="function"&&define.amd?define(["vue"],u):(i=typeof globalThis<"u"?globalThis:i||self,i.button=u(i.Vue))})(this,function(i){"use strict";/*! Element Plus Icons Vue v2.1.0 */var u=(e,t)=>{let o=e.__vccOpts||e;for(let[r,n]of t)o[r]=n;return o},M={name:"Loading"},q={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D=i.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),G=[D];function P(e,t,o,r,n,s){return i.openBlock(),i.createElementBlock("svg",q,G)}var U=u(M,[["render",P],["__file","loading.vue"]]);function C(e,t,o){for(var r=[],n=Math.max(e.length,t.length),s=0,l=0;l<n||s;){var a=l<e.length?e[l]:0,f=l<t.length?t[l]:0,c=s+a+f;r.push(c%o),s=Math.floor(c/o),l++}return r}function z(e,t,o){if(e<0)return null;if(e==0)return[];for(var r=[],n=t;e&1&&(r=C(r,n,o)),e=e>>1,e!==0;)n=C(n,n,o);return r}function X(e,t){for(var o=e.split(""),r=[],n=o.length-1;n>=0;n--){var s=parseInt(o[n],t);if(isNaN(s))return null;r.push(s)}return r}function J(e,t,o){var r=X(e,t);if(r===null)return null;for(var n=[],s=[1],l=0;l<r.length;l++)r[l]&&(n=C(n,z(r[l],s,o),o)),s=z(t,s,o);for(var a="",l=n.length-1;l>=0;l--)a+=n[l].toString(o);return a}function K(e){return e.substring(0,2)==="0x"&&(e=e.substring(2)),e=e.toLowerCase(),J(e,16,10)}class Q{constructor(t){t=t||{},this.seq=0,this.mid=(t.mid||1)%1023,this.offset=t.offset||0,this.lastTime=0}generate(){const t=Date.now(),o=(t-this.offset).toString(2);this.lastTime==t?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=t;let r=this.seq.toString(2),n=this.mid.toString(2);for(;r.length<12;)r="0"+r;for(;n.length<10;)n="0"+n;const s=o+n+r;let l="";for(let a=s.length;a>0;a-=4)l=parseInt(s.substring(a-4,a),2).toString(16)+l;return K(l)}}var m=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var j=Z,ee=typeof m=="object"&&m&&m.Object===Object&&m,te=ee,ie=te,oe=typeof self=="object"&&self&&self.Object===Object&&self,re=ie||oe||Function("return this")(),W=re,ne=W,le=function(){return ne.Date.now()},se=le,ae=/\s/;function de(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var fe=de,ce=fe,he=/^\s+/;function ue(e){return e&&e.slice(0,ce(e)+1).replace(he,"")}var ge=ue,be=W,pe=be.Symbol,O=pe,B=O,E=Object.prototype,me=E.hasOwnProperty,ye=E.toString,g=B?B.toStringTag:void 0;function Ce(e){var t=me.call(e,g),o=e[g];try{e[g]=void 0;var r=!0}catch{}var n=ye.call(e);return r&&(t?e[g]=o:delete e[g]),n}var Se=Ce,ke=Object.prototype,_e=ke.toString;function $e(e){return _e.call(e)}var ve=$e,N=O,we=Se,Te=ve,ze="[object Null]",je="[object Undefined]",I=N?N.toStringTag:void 0;function We(e){return e==null?e===void 0?je:ze:I&&I in Object(e)?we(e):Te(e)}var Oe=We;function Be(e){return e!=null&&typeof e=="object"}var Ee=Be,Ne=Oe,Ie=Ee,Le="[object Symbol]";function Ae(e){return typeof e=="symbol"||Ie(e)&&Ne(e)==Le}var Ve=Ae,xe=ge,L=j,Re=Ve,A=0/0,Fe=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Me=/^0o[0-7]+$/i,qe=parseInt;function De(e){if(typeof e=="number")return e;if(Re(e))return A;if(L(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=L(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xe(e);var o=He.test(e);return o||Me.test(e)?qe(e.slice(2),o?2:8):Fe.test(e)?A:+e}var Ge=De,Pe=j,S=se,V=Ge,Ue="Expected a function",Xe=Math.max,Je=Math.min;function Ke(e,t,o){var r,n,s,l,a,f,c=0,x=!1,b=!1,v=!0;if(typeof e!="function")throw new TypeError(Ue);t=V(t)||0,Pe(o)&&(x=!!o.leading,b="maxWait"in o,s=b?Xe(V(o.maxWait)||0,t):s,v="trailing"in o?!!o.trailing:v);function w(d){var h=r,p=n;return r=n=void 0,c=d,l=e.apply(p,h),l}function dt(d){return c=d,a=setTimeout(y,t),x?w(d):l}function ft(d){var h=d-f,p=d-c,H=t-h;return b?Je(H,s-p):H}function R(d){var h=d-f,p=d-c;return f===void 0||h>=t||h<0||b&&p>=s}function y(){var d=S();if(R(d))return F(d);a=setTimeout(y,ft(d))}function F(d){return a=void 0,v&&r?w(d):(r=n=void 0,l)}function ct(){a!==void 0&&clearTimeout(a),c=0,r=f=n=a=void 0}function ht(){return a===void 0?l:F(S())}function T(){var d=S(),h=R(d);if(r=arguments,n=this,f=d,h){if(a===void 0)return dt(f);if(b)return clearTimeout(a),a=setTimeout(y,t),w(f)}return a===void 0&&(a=setTimeout(y,t)),l}return T.cancel=ct,T.flush=ht,T}var Qe=Ke;const Ye=Y(Qe);var k;(e=>{e.debouncedFun=(t,o)=>Ye(t,o,{leading:!0,trailing:!1})})(k||(k={}));const Ze=new Q({mid:42,offset:(2019-1970)*31536e3*1e3}),et=i.defineComponent({components:{Loading:U},props:{disabled:{type:Boolean,default:!1},debounced:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},default:{type:Boolean,default:!1},info:{type:Boolean,default:!1},text:{type:Boolean,default:!1},link:{type:Boolean,default:!1},fontSize:{type:String,default:""},btnCode:{type:String,default:""},circle:{type:String,default:""},height:{type:String,default:""},width:{type:String,default:""},color:{type:String,default:""},loadingColor:{type:String,default:"#333333"},bgColor:{type:String,default:""},borderColor:{type:String,default:""},loading:{type:Boolean,default:!1},borderStyle:{type:String,default:"solid"},icon:{type:String,required:!1},size:{type:[Number,String],default:"auto"},fontWeight:{type:Number,default:500},lineHeight:{type:String,default:""},borderWidth:{type:String,default:""}},computed:{styleOjb(){return this.plain?{background:this.bgColor||"#fff",borderWidth:"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,color:this.color||"#99004A",width:this.width,height:this.height,borderRadius:this.circle,fontSize:this.fontSize||"16px",fontWeight:this.fontWeight||500,size:this.size}:this.primary?{background:this.bgColor||"#99004A",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,color:this.color||"#ffffff",width:this.width,height:this.height,borderRadius:this.circle,fontWeight:this.fontWeight||500,size:this.size}:this.default?{background:this.bgColor||"#ffffff",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#DDE2E6"}`,color:this.color||"#99004A",width:this.width,height:this.height,borderRadius:this.circle,fontWeight:this.fontWeight||500,size:this.size}:this.info?{background:this.bgColor||"#C4C4C4",borderWidth:this.borderWidth||"1px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#FFFFFF",width:this.width,height:this.height,borderRadius:this.circle,fontWeight:this.fontWeight||500,size:this.size}:this.text?{width:`${this.width||"41px"}`,height:`${this.height||"24px"}`,background:this.bgColor||"#ffffff",borderWidth:this.borderWidth||"0px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#E2A650",borderRadius:this.circle||"8px",fontSize:this.fontSize||"14px",fontWeight:this.fontWeight||500,size:this.size,lineHeight:this.lineHeight||"24px"}:this.link?{width:this.width,height:this.height,borderWidth:this.borderWidth||"0px",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#C4C4C4"}`,color:this.color||"#E2A650",borderRadius:this.circle||"8px",fontSize:this.fontSize||"14px",fontWeight:this.fontWeight||500,size:this.size,lineHeight:this.lineHeight||"24px"}:{width:this.width,height:this.height,color:this.color||"#ffffff",background:this.bgColor||"#99004A",borderStyle:`${this.borderStyle}`,borderColor:`${this.borderColor||this.color||"#99004A"}`,borderRadius:this.circle||"8px",fontSize:this.fontSize||"14px",fontWeight:this.fontWeight||500,size:this.size||"20",borderWidth:this.borderWidth||"0px"}},geturl(){if(this.icon){if(this.icon.includes("/")||this.icon.includes("base64"))return this.icon;if(this.icon.includes("svg"))return`${this.icon}`}else return"";return`${this.icon}`},styleObject:function(){return{width:typeof this.size=="string"?this.size:this.size+"px",height:typeof this.size=="string"?this.size:this.size+"px"}}},emits:["handleClick"],setup(e,t){const o=s=>{let l=Ze.generate(),a=`${e.btnCode}_${l}`;console.log("按钮组件点击事件获取到事件对象及事件唯一标识符",s,a),e.btnCode?t.emit("handleClick",a):t.emit("handleClick","")},r=k.debouncedFun(s=>{o(s)},3e3),n=s=>{e.debounced?r(s):o(s)};return i.onUnmounted(()=>{r.cancel()}),{getHandleClick:n,handleClick:o}}}),ut="",tt=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o},it={class:"common-button"},ot={key:0,class:"s-icon"},rt=["src"],nt=["btnCode"],lt={key:0,class:"s-icon padding-icon"},st=["src"];function at(e,t,o,r,n,s){const l=i.resolveComponent("Loading"),a=i.resolveComponent("el-icon"),f=i.resolveComponent("el-button");return i.openBlock(),i.createElementBlock("div",it,[e.link?(i.openBlock(),i.createElementBlock("span",{key:1,class:"link",style:i.normalizeStyle(e.styleOjb),btnCode:e.btnCode,onClick:t[0]||(t[0]=(...c)=>e.getHandleClick&&e.getHandleClick(...c))},[e.icon?(i.openBlock(),i.createElementBlock("i",lt,[i.createElementVNode("img",{src:e.geturl,alt:"",style:i.normalizeStyle(e.styleObject)},null,12,st)])):i.createCommentVNode("",!0),i.createElementVNode("span",{style:i.normalizeStyle({color:e.color})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4),e.loading?(i.openBlock(),i.createBlock(a,{key:1,class:"is-loading",color:e.loadingColor},{default:i.withCtx(()=>[i.createVNode(l)]),_:1},8,["color"])):i.createCommentVNode("",!0)],12,nt)):(i.openBlock(),i.createBlock(f,{key:0,class:i.normalizeClass(["s-button",{plain:e.plain,btnhover:!e.plain,loading:e.loading}]),disabled:e.disabled,loading:e.loading,style:i.normalizeStyle(e.styleOjb),onClick:e.getHandleClick,btnCode:e.btnCode},{default:i.withCtx(()=>[e.icon?(i.openBlock(),i.createElementBlock("i",ot,[i.createElementVNode("img",{src:e.geturl,alt:"",style:i.normalizeStyle(e.styleObject)},null,12,rt)])):i.createCommentVNode("",!0),i.createElementVNode("span",{style:i.normalizeStyle({color:e.color})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4),e.loading?(i.openBlock(),i.createBlock(a,{key:1,class:"is-loading",color:e.loadingColor},{default:i.withCtx(()=>[i.createVNode(l)]),_:1},8,["color"])):i.createCommentVNode("",!0)]),_:3},8,["class","disabled","loading","style","onClick","btnCode"]))])}const _=tt(et,[["render",at],["__scopeId","data-v-48a301cd"]]);function $(e,t={}){$.installed||($.installed=!0,e.component("common-button",_))}return _.install=$,_});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinosoft-common-button",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "main": "common-button.es.js",
6
6
  "scripts": {
package/style.css CHANGED
@@ -1 +1 @@
1
- .s-button[data-v-b134af24]{display:inline-block;height:36px;line-height:1;border:none;background:#99004A;padding:0 19px;border-radius:7px;cursor:pointer;white-space:nowrap;text-align:center;transition:all .5s ease-in-out;user-select:none}.s-button+.s-button[data-v-b134af24]{margin-left:15px}.s-button span[data-v-b134af24]{display:inline-block;margin:0 4px;text-justify:auto;line-height:1}.s-button>*[data-v-b134af24]{vertical-align:middle}.link[data-v-b134af24]:hover{cursor:pointer;color:red}.plain[data-v-b134af24]{background:#fff}.plain-icon[data-v-b134af24]{margin-right:4px}.loading[data-v-b134af24]{opacity:.8}.s-icon[data-v-b134af24]{display:inline-block;line-height:1;flex-shrink:0;overflow:hidden}.s-icon img[data-v-b134af24]{float:left;width:25px;height:25px}
1
+ .s-button[data-v-48a301cd]{height:36px;line-height:1;border:none;background:#99004A;padding:0 19px;border-radius:7px;cursor:pointer;white-space:nowrap;text-align:center;transition:all .5s ease-in-out;user-select:none}.s-button+.s-button[data-v-48a301cd]{margin-left:15px}.s-button span[data-v-48a301cd]{display:inline-block;margin:0 4px;text-justify:auto;line-height:1}.s-button>*[data-v-48a301cd]{vertical-align:middle}.link[data-v-48a301cd]{align-items:center;display:inline-flex}.link[data-v-48a301cd]:hover{cursor:pointer;color:red}.plain[data-v-48a301cd]{background:#fff}.plain-icon[data-v-48a301cd]{margin-right:4px}.loading[data-v-48a301cd]{opacity:.8}.s-icon[data-v-48a301cd]{display:inline-block;line-height:1;flex-shrink:0;overflow:hidden;vertical-align:middle}.s-icon img[data-v-48a301cd]{float:left;width:25px;height:25px}.padding-icon[data-v-48a301cd]{padding-right:5px}