@mtn-ui/components 1.0.5 → 1.0.7

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,7 +1,7 @@
1
1
  import o from "./action-group.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b8d47218"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-845c43ad"]]);
5
5
  export {
6
- _ as default
6
+ c as default
7
7
  };
@@ -1,207 +1,258 @@
1
- import { defineComponent as ve, useSlots as ke, ref as x, inject as ye, computed as s, createElementBlock as f, openBlock as o, createVNode as R, createElementVNode as F, unref as d, mergeProps as z, withCtx as u, createBlock as l, createCommentVNode as he, Fragment as h, renderList as g, resolveDynamicComponent as m, createSlots as W, createTextVNode as V, toDisplayString as $, cloneVNode as L } from "vue";
2
- import { useElementSize as ge } from "@vueuse/core";
3
- import { MoreOutlined as Ce } from "@ant-design/icons-vue";
1
+ import { defineComponent as Ce, useSlots as be, ref as x, inject as Pe, computed as l, shallowRef as ze, watch as ne, createElementBlock as f, openBlock as o, createVNode as U, createElementVNode as oe, unref as v, mergeProps as I, withCtx as a, createBlock as u, createCommentVNode as Ae, Fragment as g, renderList as _, resolveDynamicComponent as m, createSlots as j, createTextVNode as O, toDisplayString as $, cloneVNode as re } from "vue";
2
+ import { useElementSize as Se, useDebounceFn as Me } from "@vueuse/core";
3
+ import { MoreOutlined as xe } from "@ant-design/icons-vue";
4
4
  import { Menu as K } from "ant-design-vue";
5
- import _e from "../button/button.js";
6
- import be from "../button-group/button-group.js";
7
- import Z from "../dropdown-button/dropdown-button.js";
8
- import { actionGroupProps as Ae } from "./props.js";
9
- import { PERMISSION_CHECKER_KEY as ze, defaultPermissionChecker as Pe } from "@mtn-ui/shared";
10
- import { filterValidChildren as Be, getButtonKey as J } from "./utils.js";
11
- const Q = "link", X = "small", $e = /* @__PURE__ */ ve({
5
+ import Ie from "../button/button.js";
6
+ import Be from "../button-group/button-group.js";
7
+ import ie from "../dropdown-button/dropdown-button.js";
8
+ import { actionGroupProps as Ee } from "./props.js";
9
+ import { PERMISSION_CHECKER_KEY as Ne, defaultPermissionChecker as Te } from "@mtn-ui/shared";
10
+ import { filterValidChildren as Re, getButtonKey as se } from "./utils.js";
11
+ const w = "link", le = "small", Ve = 150, Fe = /* @__PURE__ */ Ce({
12
12
  name: "MActionGroup",
13
13
  inheritAttrs: !1,
14
14
  __name: "action-group",
15
- props: Ae,
15
+ props: Ee,
16
16
  emits: ["action-click"],
17
- setup(ee, { emit: te }) {
18
- const n = ee, ne = te, I = ke(), O = x(), P = x(), B = x(), { width: E } = ge(O), oe = ye(ze, x(Pe)), M = s(() => n.mode === "table"), C = s(
19
- () => M.value ? "small" : n.size
20
- ), T = s(
21
- () => M.value ? "link" : "default"
22
- ), U = s(
23
- () => M.value ? "" : n.moreText
24
- ), w = s(() => n.moreIcon || Ce);
25
- function _(e) {
26
- return e ? oe.value(e) : !0;
17
+ setup(ue, { emit: ae }) {
18
+ const n = ue, ce = ae, G = be(), Y = x(), C = x(), b = x(), { width: P } = Se(Y), me = Pe(Ne, x(Te));
19
+ function F(e) {
20
+ if (!e) return;
21
+ const r = e;
22
+ return r.name || r.__name || r.displayName;
27
23
  }
28
- const v = s(() => {
29
- var e;
30
- return Be((e = I.default) == null ? void 0 : e.call(I));
31
- }), k = s(() => n.actions ? n.actions.filter((e) => _(e.permission)) : []), y = s(() => {
32
- if (n.disableCollapse)
33
- return n.actions ? k.value.length : v.value.length;
34
- const e = n.actions ? k.value.length : v.value.length;
35
- return e <= 1 ? e : P.value && B.value && E.value ? re() : Math.min(n.maxItems, e);
36
- });
37
- function re() {
38
- if (!P.value || !B.value || !E.value)
39
- return n.maxItems;
40
- const e = B.value.offsetWidth, i = Array.from(
41
- P.value.querySelectorAll(".measure-item")
24
+ const z = l(() => n.mode === "table"), A = l(
25
+ () => z.value ? "small" : n.size
26
+ ), B = l(
27
+ () => z.value ? "link" : "default"
28
+ ), H = l(
29
+ () => z.value ? "" : n.moreText
30
+ ), L = l(() => n.moreIcon || xe);
31
+ function E(e) {
32
+ return e ? me.value(e) : !0;
33
+ }
34
+ const N = l(() => Re(G.default ? G.default() : void 0)), d = ze([]);
35
+ function q(e) {
36
+ var t, i, s;
37
+ return [
38
+ e.key ?? "",
39
+ e.label ?? "",
40
+ F(e.icon) ?? "",
41
+ F(e.component) ?? "",
42
+ Array.isArray(e.permission) ? e.permission.join(",") : e.permission ?? "",
43
+ e.permissionAction ?? "",
44
+ String(e.disabled ?? !1),
45
+ String(((t = e.componentProps) == null ? void 0 : t.confirm) ?? ""),
46
+ String(((i = e.componentProps) == null ? void 0 : i.showSuccess) ?? ""),
47
+ String(((s = e.componentProps) == null ? void 0 : s.danger) ?? "")
48
+ ].join("|");
49
+ }
50
+ ne(
51
+ () => n.actions,
52
+ (e) => {
53
+ if (!e) {
54
+ d.value = [];
55
+ return;
56
+ }
57
+ if (d.value.length !== e.length) {
58
+ d.value = e;
59
+ return;
60
+ }
61
+ const r = e.map(q).join("||"), t = d.value.map(q).join("||");
62
+ r !== t && (d.value = e);
63
+ },
64
+ { immediate: !0, deep: !1 }
65
+ );
66
+ const T = l(() => d.value.length ? d.value.filter((e) => E(e.permission)) : []), c = l(() => n.actions ? T.value.length : N.value.length);
67
+ function pe() {
68
+ if (!C.value || !b.value || !P.value)
69
+ return Math.min(n.maxItems, c.value);
70
+ const e = b.value.offsetWidth, r = Array.from(
71
+ C.value.querySelectorAll(".measure-item")
42
72
  );
43
- if (i.length === 0) return n.maxItems;
44
- let t = e, r = 0;
45
- for (let c = 0; c < i.length - 1; c++) {
46
- const p = i[c].offsetWidth + n.gap;
47
- if (t + p <= E.value)
48
- t += p, r++;
73
+ if (r.length === 0) return Math.min(n.maxItems, c.value);
74
+ let t = e, i = 0;
75
+ for (let s = 0; s < r.length - 1; s++) {
76
+ const y = r[s].offsetWidth + n.gap;
77
+ if (t + y <= P.value)
78
+ t += y, i++;
49
79
  else
50
80
  break;
51
81
  }
52
- const a = n.actions ? k.value.length : v.value.length;
53
- return Math.max(0, Math.min(r, n.maxItems, a));
82
+ return Math.max(0, Math.min(i, n.maxItems, c.value));
54
83
  }
55
- const ie = s(() => n.actions ? k.value.slice(0, y.value) : []), D = s(() => n.actions ? k.value.slice(y.value) : []), se = s(() => {
84
+ const S = x(n.maxItems), fe = Me(() => {
85
+ S.value = pe();
86
+ }, Ve);
87
+ ne(
88
+ [P, c, () => n.maxItems, () => n.gap],
89
+ () => {
90
+ if (n.disableCollapse) {
91
+ S.value = c.value;
92
+ return;
93
+ }
94
+ if (c.value <= 1) {
95
+ S.value = c.value;
96
+ return;
97
+ }
98
+ C.value && b.value && P.value ? fe() : S.value = Math.min(n.maxItems, c.value);
99
+ },
100
+ { immediate: !0 }
101
+ );
102
+ const k = l(() => n.disableCollapse || c.value <= 1 ? c.value : C.value && b.value && P.value ? S.value : Math.min(n.maxItems, c.value)), ve = l(() => n.actions ? T.value.slice(0, k.value) : []), Z = l(() => n.actions ? T.value.slice(k.value) : []), de = l(() => {
56
103
  if (n.actions) return [];
57
- const e = v.value;
58
- return y.value >= e.length ? e : e.slice(0, y.value);
59
- }), G = s(() => {
104
+ const e = N.value;
105
+ return k.value >= e.length ? e : e.slice(0, k.value);
106
+ }), J = l(() => {
60
107
  if (n.actions) return [];
61
- const e = v.value;
62
- return y.value >= e.length ? [] : e.slice(y.value);
63
- }), le = s(() => n.actions ? D.value.filter((e) => _(e.permission)) : []), ue = s(() => n.actions ? [] : G.value.filter((e) => {
64
- const i = e.props || {};
65
- return i.permission && i.permissionAction === "hide" ? _(i.permission) : !0;
66
- })), ae = s(() => n.disableCollapse ? !1 : (n.actions ? D.value.length : G.value.length) > 0);
67
- function N(e) {
68
- return e.component || _e;
108
+ const e = N.value;
109
+ return k.value >= e.length ? [] : e.slice(k.value);
110
+ }), ye = l(() => n.actions ? [] : J.value.filter((e) => {
111
+ const r = e.props || {};
112
+ return r.permission && r.permissionAction === "hide" ? E(r.permission) : !0;
113
+ })), ke = l(() => n.disableCollapse ? !1 : (n.actions ? Z.value.length : J.value.length) > 0);
114
+ function W(e) {
115
+ return e.component || Ie;
69
116
  }
70
- function H(e, i) {
71
- return e.key || e.label || `action-${i}`;
117
+ function Q(e, r) {
118
+ return e.key || e.label || `action-${r}`;
72
119
  }
73
- function Y(e) {
120
+ function X(e) {
74
121
  const {
75
- label: i,
122
+ label: r,
76
123
  key: t,
77
- onClick: r,
78
- permission: a,
79
- permissionAction: c,
80
- icon: b,
81
- component: p,
82
- componentProps: A,
83
- slot: me,
84
- type: S,
85
- size: pe,
86
- disabled: fe,
87
- ...de
124
+ onClick: i,
125
+ permission: s,
126
+ permissionAction: p,
127
+ icon: y,
128
+ component: h,
129
+ componentProps: M,
130
+ slot: R,
131
+ type: D,
132
+ size: V,
133
+ disabled: ge,
134
+ ..._e
88
135
  } = e;
89
136
  return {
90
- component: p,
91
- componentProps: A,
92
- type: S,
93
- size: pe,
94
- rest: de,
95
- permission: a,
96
- permissionAction: c,
97
- disabled: fe
137
+ component: h,
138
+ componentProps: M,
139
+ type: D,
140
+ size: V,
141
+ rest: _e,
142
+ permission: s,
143
+ permissionAction: p,
144
+ disabled: ge
98
145
  };
99
146
  }
100
- function j(e) {
101
- const { component: i, componentProps: t, type: r, rest: a, permission: c, permissionAction: b, disabled: p } = Y(e), A = {
102
- type: r || T.value,
103
- size: C.value,
104
- disabled: p || !_(c) && b === "disable",
105
- ...a
147
+ function ee(e) {
148
+ const { component: r, componentProps: t, type: i, rest: s, permission: p, permissionAction: y, disabled: h } = X(e), M = {
149
+ type: i || B.value,
150
+ size: A.value,
151
+ disabled: h || !E(p) && y === "disable",
152
+ ...s
106
153
  };
107
- return i && t ? { ...A, ...t } : A;
154
+ if (r && t) {
155
+ const R = { ...M, ...t };
156
+ return z.value && (R.type = "link"), R;
157
+ }
158
+ return M;
108
159
  }
109
- function ce(e) {
110
- const { component: i, componentProps: t, rest: r, permission: a, permissionAction: c, disabled: b } = Y(e), p = {
111
- type: Q,
112
- size: X,
113
- disabled: b || !_(a) && c === "disable",
114
- ...r
160
+ function he(e) {
161
+ const { component: r, componentProps: t, rest: i, permission: s, permissionAction: p, disabled: y } = X(e), h = {
162
+ type: w,
163
+ size: le,
164
+ disabled: y || !E(s) && p === "disable",
165
+ ...i
115
166
  };
116
- if (i && t) {
117
- const { type: A, size: me, ...S } = t;
118
- return { ...p, ...S };
167
+ if (r && t) {
168
+ const { type: M, size: R, ...D } = t, V = { ...h, ...D };
169
+ return V.type = w, V;
119
170
  }
120
- return p;
171
+ return h;
121
172
  }
122
- function q(e) {
123
- e.onClick && e.onClick(e), ne("action-click", e);
173
+ function te(e) {
174
+ e.onClick && e.onClick(e), ce("action-click", e);
124
175
  }
125
- return (e, i) => (o(), f("div", {
176
+ return (e, r) => (o(), f("div", {
126
177
  ref_key: "containerRef",
127
- ref: O,
178
+ ref: Y,
128
179
  class: "mtn-action-group"
129
180
  }, [
130
- R(d(be), z({
131
- size: C.value,
181
+ U(v(Be), I({
182
+ size: A.value,
132
183
  compact: e.compact,
133
184
  vertical: e.vertical,
134
185
  block: e.block
135
186
  }, e.$attrs), {
136
- default: u(() => [
137
- n.actions ? (o(!0), f(h, { key: 0 }, g(ie.value, (t, r) => (o(), l(m(N(t)), z({
138
- key: H(t, r)
139
- }, { ref_for: !0 }, j(t), {
140
- onClick: (a) => q(t)
141
- }), W({
142
- default: u(() => [
143
- V(" " + $(t.label), 1)
187
+ default: a(() => [
188
+ n.actions ? (o(!0), f(g, { key: 0 }, _(ve.value, (t, i) => (o(), u(m(W(t)), I({
189
+ key: Q(t, i)
190
+ }, { ref_for: !0 }, ee(t), {
191
+ onClick: (s) => te(t)
192
+ }), j({
193
+ default: a(() => [
194
+ O(" " + $(t.label), 1)
144
195
  ]),
145
196
  _: 2
146
197
  }, [
147
- t.icon && !t.component ? {
198
+ t.icon ? {
148
199
  name: "icon",
149
- fn: u(() => [
150
- (o(), l(m(t.icon)))
200
+ fn: a(() => [
201
+ (o(), u(m(t.icon)))
151
202
  ]),
152
203
  key: "0"
153
204
  } : void 0
154
- ]), 1040, ["onClick"]))), 128)) : (o(!0), f(h, { key: 1 }, g(se.value, (t, r) => {
155
- var a, c;
156
- return o(), l(m(L(t, {
157
- type: ((a = t.props) == null ? void 0 : a.type) ?? (M.value ? T.value : void 0),
158
- size: ((c = t.props) == null ? void 0 : c.size) ?? C.value
205
+ ]), 1040, ["onClick"]))), 128)) : (o(!0), f(g, { key: 1 }, _(de.value, (t, i) => {
206
+ var s, p;
207
+ return o(), u(m(re(t, {
208
+ type: ((s = t.props) == null ? void 0 : s.type) ?? (z.value ? B.value : void 0),
209
+ size: ((p = t.props) == null ? void 0 : p.size) ?? A.value
159
210
  })), {
160
- key: d(J)(t, r)
211
+ key: v(se)(t, i)
161
212
  });
162
213
  }), 128)),
163
- ae.value ? (o(), l(d(Z), z({
214
+ ke.value ? (o(), u(v(ie), I({
164
215
  key: 2,
165
- text: U.value,
166
- size: C.value,
167
- type: T.value
216
+ text: H.value,
217
+ size: A.value,
218
+ type: B.value
168
219
  }, n.moreProps), {
169
- icon: u(() => [
170
- (o(), l(m(w.value)))
220
+ icon: a(() => [
221
+ (o(), u(m(L.value)))
171
222
  ]),
172
- overlay: u(() => [
173
- R(d(K), null, {
174
- default: u(() => [
175
- n.actions ? (o(!0), f(h, { key: 0 }, g(le.value, (t, r) => (o(), l(d(K).Item, {
176
- key: H(t, r)
223
+ overlay: a(() => [
224
+ U(v(K), null, {
225
+ default: a(() => [
226
+ n.actions ? (o(!0), f(g, { key: 0 }, _(Z.value, (t, i) => (o(), u(v(K).Item, {
227
+ key: Q(t, i)
177
228
  }, {
178
- default: u(() => [
179
- (o(), l(m(N(t)), z({ ref_for: !0 }, ce(t), {
180
- onClick: (a) => q(t)
181
- }), W({
182
- default: u(() => [
183
- V(" " + $(t.label), 1)
229
+ default: a(() => [
230
+ (o(), u(m(W(t)), I({ ref_for: !0 }, he(t), {
231
+ onClick: (s) => te(t)
232
+ }), j({
233
+ default: a(() => [
234
+ O(" " + $(t.label), 1)
184
235
  ]),
185
236
  _: 2
186
237
  }, [
187
- t.icon && !t.component ? {
238
+ t.icon ? {
188
239
  name: "icon",
189
- fn: u(() => [
190
- (o(), l(m(t.icon)))
240
+ fn: a(() => [
241
+ (o(), u(m(t.icon)))
191
242
  ]),
192
243
  key: "0"
193
244
  } : void 0
194
245
  ]), 1040, ["onClick"]))
195
246
  ]),
196
247
  _: 2
197
- }, 1024))), 128)) : (o(!0), f(h, { key: 1 }, g(ue.value, (t, r) => (o(), l(d(K).Item, {
198
- key: d(J)(t, r)
248
+ }, 1024))), 128)) : (o(!0), f(g, { key: 1 }, _(ye.value, (t, i) => (o(), u(v(K).Item, {
249
+ key: v(se)(t, i)
199
250
  }, {
200
- default: u(() => [
201
- (o(), l(m(L(t, {
251
+ default: a(() => [
252
+ (o(), u(m(re(t, {
202
253
  ...t.props,
203
- type: Q,
204
- size: X
254
+ type: w,
255
+ size: le
205
256
  }))))
206
257
  ]),
207
258
  _: 2
@@ -211,51 +262,51 @@ const Q = "link", X = "small", $e = /* @__PURE__ */ ve({
211
262
  })
212
263
  ]),
213
264
  _: 1
214
- }, 16, ["text", "size", "type"])) : he("", !0)
265
+ }, 16, ["text", "size", "type"])) : Ae("", !0)
215
266
  ]),
216
267
  _: 1
217
268
  }, 16, ["size", "compact", "vertical", "block"]),
218
- F("div", {
269
+ oe("div", {
219
270
  ref_key: "measureRef",
220
- ref: P,
271
+ ref: C,
221
272
  class: "mtn-action-group-measure"
222
273
  }, [
223
- n.actions ? (o(!0), f(h, { key: 0 }, g(k.value, (t, r) => (o(), f("span", {
224
- key: r,
274
+ n.actions ? (o(!0), f(g, { key: 0 }, _(T.value, (t, i) => (o(), f("span", {
275
+ key: i,
225
276
  class: "measure-item"
226
277
  }, [
227
- (o(), l(m(N(t)), z({ ref_for: !0 }, j(t)), W({
228
- default: u(() => [
229
- V(" " + $(t.label), 1)
278
+ (o(), u(m(W(t)), I({ ref_for: !0 }, ee(t)), j({
279
+ default: a(() => [
280
+ O(" " + $(t.label), 1)
230
281
  ]),
231
282
  _: 2
232
283
  }, [
233
- t.icon && !t.component ? {
284
+ t.icon ? {
234
285
  name: "icon",
235
- fn: u(() => [
236
- (o(), l(m(t.icon)))
286
+ fn: a(() => [
287
+ (o(), u(m(t.icon)))
237
288
  ]),
238
289
  key: "0"
239
290
  } : void 0
240
291
  ]), 1040))
241
- ]))), 128)) : (o(!0), f(h, { key: 1 }, g(v.value, (t, r) => (o(), f("span", {
242
- key: r,
292
+ ]))), 128)) : (o(!0), f(g, { key: 1 }, _(N.value, (t, i) => (o(), f("span", {
293
+ key: i,
243
294
  class: "measure-item"
244
295
  }, [
245
- (o(), l(m(t)))
296
+ (o(), u(m(t)))
246
297
  ]))), 128)),
247
- F("span", {
298
+ oe("span", {
248
299
  ref_key: "moreTriggerRef",
249
- ref: B,
300
+ ref: b,
250
301
  class: "measure-item"
251
302
  }, [
252
- R(d(Z), {
253
- text: U.value,
254
- size: C.value,
255
- type: T.value
303
+ U(v(ie), {
304
+ text: H.value,
305
+ size: A.value,
306
+ type: B.value
256
307
  }, {
257
- icon: u(() => [
258
- (o(), l(m(w.value)))
308
+ icon: a(() => [
309
+ (o(), u(m(L.value)))
259
310
  ]),
260
311
  _: 1
261
312
  }, 8, ["text", "size", "type"])
@@ -265,5 +316,5 @@ const Q = "link", X = "small", $e = /* @__PURE__ */ ve({
265
316
  }
266
317
  });
267
318
  export {
268
- $e as default
319
+ Fe as default
269
320
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as u, createVNode as c, mergeProps as d } from "vue";
2
- import { Button as s } from "ant-design-vue";
3
- import { buttonProps as r } from "./props.js";
4
- import { usePermission as f } from "../../_utils/usePermission.js";
1
+ import { defineComponent as u, createVNode as d, mergeProps as l } from "vue";
2
+ import { Button as r } from "ant-design-vue";
3
+ import { buttonProps as f } from "./props.js";
4
+ import { usePermission as h } from "../../_utils/usePermission.js";
5
5
  const y = /* @__PURE__ */ u({
6
6
  name: "MButton",
7
- props: r,
7
+ props: f,
8
8
  emits: ["click"],
9
9
  setup(e, {
10
10
  slots: n,
@@ -12,19 +12,19 @@ const y = /* @__PURE__ */ u({
12
12
  emit: o
13
13
  }) {
14
14
  const {
15
- shouldHide: l,
16
- shouldDisable: a
17
- } = f({
15
+ shouldHide: a,
16
+ shouldDisable: c
17
+ } = h({
18
18
  permission: e.permission,
19
19
  permissionAction: e.permissionAction
20
20
  }), m = (i) => {
21
21
  o("click", i);
22
22
  };
23
- return () => l.value ? null : c(s, d({
23
+ return () => a.value ? null : d(r, l({
24
24
  type: e.type,
25
25
  size: e.size,
26
26
  loading: e.loading,
27
- disabled: e.disabled || a.value,
27
+ disabled: e.disabled || c.value,
28
28
  danger: e.danger,
29
29
  block: e.block,
30
30
  ghost: e.ghost,
@@ -37,7 +37,11 @@ const y = /* @__PURE__ */ u({
37
37
  }), {
38
38
  default: () => {
39
39
  var i;
40
- return [(i = n.default) == null ? void 0 : i.call(n)];
40
+ return (i = n.default) == null ? void 0 : i.call(n);
41
+ },
42
+ icon: () => {
43
+ var i;
44
+ return (i = n.icon) == null ? void 0 : i.call(n);
41
45
  }
42
46
  });
43
47
  }
@@ -1 +1 @@
1
- .mtn-action-group[data-v-b8d47218]{width:100%;container-type:inline-size}.mtn-action-group-measure[data-v-b8d47218]{position:absolute;display:flex;visibility:hidden;align-items:center;height:0;overflow:hidden;pointer-events:none;white-space:nowrap}.measure-item[data-v-b8d47218]{display:inline-flex}[data-v-a943bc19] .ant-btn-dangerous{transition:transform .1s ease}[data-v-a943bc19] .ant-btn-dangerous:active{transform:scale(.95)}
1
+ .mtn-action-group[data-v-845c43ad]{width:100%;container-type:inline-size}.mtn-action-group-measure[data-v-845c43ad]{position:absolute;display:flex;visibility:hidden;align-items:center;height:0;overflow:hidden;pointer-events:none;white-space:nowrap}.measure-item[data-v-845c43ad]{display:inline-flex}[data-v-a943bc19] .ant-btn-dangerous{transition:transform .1s ease}[data-v-a943bc19] .ant-btn-dangerous:active{transform:scale(.95)}