@solar-taro/ui-vant 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index9.js CHANGED
@@ -1,385 +1,66 @@
1
- import { defineComponent as pe, inject as Y, useModel as Z, ref as F, computed as p, effect as I, Fragment as ye, mergeModels as _, openBlock as he, createElementBlock as ke, renderSlot as me, createElementVNode as ge, normalizeClass as be, createTextVNode as Se, toDisplayString as we, renderList as xe, createBlock as Te, unref as Ve, withCtx as $e, withModifiers as Be, createCommentVNode as Le, createVNode as Me, createSlots as Ne, normalizeStyle as ze } from "vue";
2
- import { SUN_ITEM as Ce, SUN_FIELD as Ee, SunTag as qe, SunIcon as E, SunLazyRender as Re, SunSearchbar as We, SunVirtualList as De, SunListPlaceholder as Fe, SunItemDivider as ee, SunItem as le, SunList as Ue, SunButton as Ge } from "@solar-taro/ui-sun";
3
- import { SunModal as je } from "@solar-taro/ui-vant";
4
- import { defaultRangeExtractor as Ae } from "./index22.js";
5
- import { createReusableTemplate as Pe } from "./index23.js";
6
- import { isNil as te } from "lodash-es";
7
- const y = me, b = we, S = Se, g = ye, o = he, c = ke, h = Le, U = xe, s = Ve, r = $e, f = Te, ne = Be, w = Me, G = be, B = ge, L = ze, He = Ne, Je = {
8
- key: 0,
9
- class: "sun-selector-inner"
10
- }, Ke = {
11
- key: 1,
12
- class: "sun-selector-tags"
13
- }, Oe = {
14
- key: 1,
15
- class: "sun-selector-placeholder"
16
- }, Qe = { class: "sun-selector-option-label" }, Xe = { class: "sun-selector-option-label" }, tl = /* @__PURE__ */ pe({
17
- __name: "index",
18
- props: /* @__PURE__ */ _({
19
- mode: { default: "single" },
20
- placeholder: { default: "请选择" },
21
- options: {},
22
- loading: { type: Boolean },
23
- height: { default: "65vh" },
24
- required: { type: Boolean },
25
- disabled: { type: Boolean },
26
- delimiter: { default: ", " },
27
- searchable: { type: Boolean, default: !0 },
28
- clearable: { type: Boolean, default: !0 },
29
- filter: {},
30
- virtual: { type: Boolean },
31
- optionSize: { type: [Number, Function], default: 44 },
32
- refresher: { type: Boolean },
33
- refreshing: { type: Boolean },
34
- compareWith: { type: Function, default: (a, q) => a === q }
35
- }, {
36
- modelValue: {},
37
- modelModifiers: {},
38
- keyword: { default: "" },
39
- keywordModifiers: {}
40
- }),
41
- emits: /* @__PURE__ */ _(["select", "unselect", "clear", "close", "confirm", "refresh"], ["update:modelValue", "update:keyword"]),
42
- setup(a, { expose: q, emit: oe }) {
43
- const [ae, j] = Pe(), x = Y(Ce, void 0), R = Y(Ee, void 0), u = a, k = oe, d = Z(a, "modelValue"), M = F(!1), se = p(() => {
44
- const e = u.optionSize;
45
- return typeof e == "function" ? e : () => e;
46
- }), N = p(() => u.options.flatMap((e) => ve(e) ? e.options.map((t) => ({
47
- ...t,
48
- parent: e
49
- })) : e)), z = Z(a, "keyword"), A = p(() => N.value.filter((e) => {
50
- const t = z.value.toLowerCase();
51
- return re.value(e, t);
52
- })), T = p(() => {
53
- var e;
54
- if (m.value) {
55
- const t = N.value.find(
56
- (l) => u.compareWith(l.value, d.value)
57
- );
58
- return t ? [t] : [];
59
- }
60
- return ((e = d.value) != null ? e : []).map(
61
- (t) => N.value.find((l) => u.compareWith(l.value, t))
62
- ).filter(Boolean);
63
- }), i = p(() => {
64
- const e = A.value, t = /* @__PURE__ */ new Set();
65
- return e.flatMap((l) => {
66
- const n = [];
67
- return l.parent && !t.has(l.parent) && (t.add(l.parent), n.push({ kind: "optionGroup", value: l.parent })), n.push({ kind: "option", value: l }), n;
68
- });
69
- }), P = p(
70
- () => i.value.reduce((e, t, l) => (t.kind === "optionGroup" && e.push(l), e), [])
71
- ), ue = p(() => [...P.value].reverse()), H = F(0), V = F(!1), re = p(() => u.filter || ((e, t) => e.label.toLowerCase().includes(t))), J = p(() => T.value.map((e) => e.label).join(u.delimiter)), K = p(() => !ie(d.value) && u.clearable && !u.disabled), m = p(() => u.mode === "single");
72
- function ie(e) {
73
- return te(e) ? !0 : m.value ? !1 : e.length < 1;
74
- }
75
- function v(e) {
76
- var l;
77
- const t = e.value;
78
- return m.value ? te(d.value) ? !1 : u.compareWith(d.value, t) : ((l = d.value) == null ? void 0 : l.some((n) => u.compareWith(n, t))) || !1;
79
- }
80
- function C() {
81
- u.disabled || (M.value = !0, V.value || setTimeout(() => {
82
- V.value = !0;
83
- }, 300));
84
- }
85
- function O() {
86
- M.value = !1, k("close");
87
- }
88
- function Q() {
89
- var t;
90
- const e = ((t = d.value) == null ? void 0 : t.map(
91
- (l) => N.value.find(
92
- (n) => u.compareWith(n.value, l)
93
- )
94
- )) || [];
95
- k("confirm", e), O();
96
- }
97
- function X(e) {
98
- const t = e.value;
99
- m.value ? (v(e) ? u.required || (k("unselect", e), d.value = null) : (k("select", e), d.value = t), setTimeout(O, 100)) : v(e) ? (k("unselect", e), d.value = d.value.filter(
100
- (l) => !u.compareWith(l, t)
101
- )) : (k("select", e), d.value = (d.value || []).concat(
102
- e.value
103
- ));
104
- }
105
- function W() {
106
- k("clear", d.value), d.value = u.required && !m.value ? [] : null;
107
- }
108
- const de = (e) => H.value === e, ce = (e) => P.value.includes(e);
109
- function ve(e) {
110
- return "options" in e;
111
- }
112
- return q({
113
- present: C,
114
- clear: W,
115
- keyword: z
116
- }), I(() => {
117
- R && (R.required.value = u.required, R.disabled.value = u.disabled);
118
- }), I(() => {
119
- x && (x.clickable.value = !u.disabled);
120
- }), x == null || x.onTap(C), (e, t) => (o(), c(g, null, [
121
- y(e.$slots, "default", {
122
- present: C,
123
- label: J.value,
124
- selectedOptions: T.value
125
- }, () => [
126
- B("view", {
127
- class: G(["sun-selector", {
128
- "sun-selector-required": a.required,
129
- "sun-selector-disabled": a.disabled
130
- }]),
131
- onTap: t[1] || (t[1] = (l) => C())
132
- }, [
133
- T.value.length ? (o(), c("view", Je, [
134
- m.value ? (o(), c(g, { key: 0 }, [
135
- S(b(J.value), 1)
136
- ], 64)) : (o(), c("view", Ke, [
137
- (o(!0), c(g, null, U(T.value, (l) => (o(), f(s(qe), {
138
- color: "medium",
139
- type: "translucent"
140
- }, {
141
- default: r(() => [
142
- S(b(l.label), 1)
143
- ]),
144
- _: 2
145
- }, 1024))), 256))
146
- ]))
147
- ])) : (o(), c("view", Oe, b(a.placeholder), 1)),
148
- K.value ? (o(), f(s(E), {
149
- key: 2,
150
- class: "sun-selector-clear-icon",
151
- name: "close-circle",
152
- onTap: t[0] || (t[0] = ne((l) => W(), ["stop"]))
153
- })) : h("", !0),
154
- w(s(E), {
155
- class: "sun-selector-icon",
156
- name: "chevron-expand-outline"
157
- })
158
- ], 34)
159
- ]),
160
- w(s(Re), { hook: "created" }, {
161
- default: r(() => [
162
- w(s(je), {
163
- show: M.value,
164
- "onUpdate:show": t[7] || (t[7] = (l) => M.value = l),
165
- title: a.placeholder,
166
- "show-buttons": !m.value,
167
- onTap: t[8] || (t[8] = ne(() => {
168
- }, ["stop"]))
169
- }, He({
170
- buttons: r(() => [
171
- y(e.$slots, "buttons", { confirm: Q }, () => [
172
- m.value ? h("", !0) : (o(), f(s(Ge), {
173
- key: 0,
174
- expand: "block",
175
- onTap: t[6] || (t[6] = (l) => Q())
176
- }, {
177
- default: r(() => [...t[10] || (t[10] = [
178
- S("确定", -1)
179
- ])]),
180
- _: 1
181
- }))
182
- ])
183
- ]),
184
- default: r(() => [
185
- y(e.$slots, "filter", { rendered: V.value }, () => [
186
- a.searchable ? (o(), f(s(We), {
187
- key: 0,
188
- modelValue: z.value,
189
- "onUpdate:modelValue": t[3] || (t[3] = (l) => z.value = l),
190
- placeholder: "输入关键字搜索"
191
- }, null, 8, ["modelValue"])) : h("", !0)
192
- ]),
193
- w(s(ae), null, {
194
- default: r(() => [
195
- a.virtual ? (o(), c(g, { key: 0 }, [
196
- V.value ? (o(), f(s(De), {
197
- key: 0,
198
- class: "sun-selector-options",
199
- options: {
200
- estimateSize: (l) => {
201
- const n = i.value[l];
202
- return n.kind === "optionGroup" ? 28 : se.value(n.value);
203
- },
204
- overscan: 3,
205
- count: i.value.length,
206
- rangeExtractor: (l) => {
207
- const n = new Set(s(Ae)(l)), $ = ue.value.find((D) => l.startIndex >= D);
208
- return $ !== void 0 && (n.add($), H.value = $), [...n].sort((D, fe) => D - fe);
209
- }
210
- },
211
- refresher: a.refresher,
212
- refreshing: a.refreshing,
213
- style: L({ height: a.height }),
214
- onRefresh: t[4] || (t[4] = (l) => k("refresh"))
215
- }, {
216
- default: r(({ virtualItems: l }) => [
217
- (o(!0), c(g, null, U(l, (n) => (o(), c(g, {
218
- key: n.index
219
- }, [
220
- i.value[n.index].kind === "optionGroup" ? (o(), f(s(ee), {
221
- key: 0,
222
- class: "sun-selector-option-divider",
223
- style: L({
224
- zIndex: ce(n.index) ? 1 : 0,
225
- ...n.style,
226
- ...de(n.index) ? {
227
- position: "sticky",
228
- transform: "unset"
229
- } : {
230
- position: "absolute"
231
- }
232
- })
233
- }, {
234
- default: r(() => [
235
- S(b(i.value[n.index].value.label), 1)
236
- ]),
237
- _: 2
238
- }, 1032, ["style"])) : h("", !0),
239
- i.value[n.index].kind === "option" ? (o(), f(s(le), {
240
- key: 1,
241
- class: G(["sun-selector-option", { "sun-selector-option-active": v(i.value[n.index].value) }]),
242
- clickable: !0,
243
- style: L(n.style),
244
- onTap: ($) => X(i.value[n.index].value)
245
- }, {
246
- start: r(() => [
247
- y(e.$slots, "option-start", {
248
- option: i.value[n.index].value,
249
- index: n.index,
250
- active: v(i.value[n.index].value)
251
- })
252
- ]),
253
- end: r(() => [
254
- y(e.$slots, "option-end", {
255
- option: i.value[n.index].value,
256
- index: n.index,
257
- active: v(i.value[n.index].value)
258
- }),
259
- v(i.value[n.index].value) ? (o(), f(s(E), {
260
- key: 0,
261
- class: "sun-selector-option-icon",
262
- name: "checkmark"
263
- })) : h("", !0)
264
- ]),
265
- default: r(() => [
266
- y(e.$slots, "option", {
267
- option: i.value[n.index].value,
268
- index: n.index,
269
- active: v(i.value[n.index].value)
270
- }, () => [
271
- B("view", Qe, b(i.value[n.index].value.label), 1)
272
- ])
273
- ]),
274
- _: 2
275
- }, 1032, ["class", "style", "onTap"])) : h("", !0)
276
- ], 64))), 128))
277
- ]),
278
- placeholder: r(() => [
279
- w(s(Fe), { loading: a.loading }, null, 8, ["loading"])
280
- ]),
281
- _: 3
282
- }, 8, ["options", "refresher", "refreshing", "style"])) : (o(), c("view", {
283
- key: 1,
284
- style: L({ height: a.height })
285
- }, null, 4))
286
- ], 64)) : (o(), f(s(Ue), {
287
- key: 1,
288
- class: "sun-selector-options",
289
- refresher: a.refresher,
290
- refreshing: a.refreshing,
291
- data: A.value,
292
- loading: a.loading,
293
- style: L({ height: a.height }),
294
- onRefresh: t[5] || (t[5] = (l) => k("refresh"))
295
- }, {
296
- default: r(() => [
297
- B("view", null, [
298
- (o(!0), c(g, null, U(i.value, (l, n) => (o(), c(g, { key: n }, [
299
- l.kind === "optionGroup" ? (o(), f(s(ee), {
300
- key: 0,
301
- class: "sun-selector-option-divider"
302
- }, {
303
- default: r(() => [
304
- S(b(l.value.label), 1)
305
- ]),
306
- _: 2
307
- }, 1024)) : h("", !0),
308
- l.kind === "option" ? (o(), f(s(le), {
309
- key: 1,
310
- class: G(["sun-selector-option", { "sun-selector-option-active": v(l.value) }]),
311
- clickable: !0,
312
- onTap: ($) => X(l.value)
313
- }, {
314
- start: r(() => [
315
- y(e.$slots, "option-start", {
316
- option: l.value,
317
- index: n,
318
- active: v(l.value)
319
- })
320
- ]),
321
- end: r(() => [
322
- y(e.$slots, "option-end", {
323
- option: l.value,
324
- index: n,
325
- active: v(l.value)
326
- }),
327
- v(l.value) ? (o(), f(s(E), {
328
- key: 0,
329
- class: "sun-selector-option-icon",
330
- name: "checkmark"
331
- })) : h("", !0)
332
- ]),
333
- default: r(() => [
334
- y(e.$slots, "option", {
335
- option: l.value,
336
- index: n,
337
- active: v(l.value)
338
- }, () => [
339
- B("view", Xe, b(l.value.label), 1)
340
- ])
341
- ]),
342
- _: 2
343
- }, 1032, ["class", "onTap"])) : h("", !0)
344
- ], 64))), 128))
345
- ])
346
- ]),
347
- _: 3
348
- }, 8, ["refresher", "refreshing", "data", "loading", "style"]))
349
- ]),
350
- _: 3
351
- }),
352
- y(e.$slots, "list", {
353
- rendered: V.value,
354
- ListTemplate: s(j)
355
- }, () => [
356
- w(s(j))
357
- ])
358
- ]),
359
- _: 2
360
- }, [
361
- K.value ? {
362
- name: "extra",
363
- fn: r(() => [
364
- B("view", {
365
- class: "sun-selector-clear-btn",
366
- onTap: t[2] || (t[2] = (l) => W())
367
- }, [
368
- t[9] || (t[9] = S(" 清除", -1)),
369
- m.value ? h("", !0) : (o(), c(g, { key: 0 }, [
370
- S("(" + b(T.value.length) + ")", 1)
371
- ], 64))
372
- ], 32)
373
- ]),
374
- key: "0"
375
- } : void 0
376
- ]), 1032, ["show", "title", "show-buttons"])
377
- ]),
378
- _: 3
379
- })
380
- ], 64));
1
+ const i = {};
2
+ function e(r) {
3
+ Object.assign(i, r);
4
+ }
5
+ class a {
6
+ constructor() {
7
+ this.duration = 2e3;
381
8
  }
382
- });
9
+ primary(n, t = "#van-notify") {
10
+ return i.notify({ type: "primary", message: n, duration: this.duration, selector: t });
11
+ }
12
+ success(n, t = "#van-notify") {
13
+ return i.notify({ type: "success", message: n, duration: this.duration, selector: t });
14
+ }
15
+ warning(n, t = "#van-notify") {
16
+ return i.notify({ type: "warning", message: n, duration: this.duration, selector: t });
17
+ }
18
+ danger(n, t = "#van-notify") {
19
+ return i.notify({ type: "danger", message: n, duration: this.duration, selector: t });
20
+ }
21
+ dismiss() {
22
+ return i.notify.clear();
23
+ }
24
+ }
25
+ class s {
26
+ /**
27
+ * 展示确认对话框
28
+ * @param title
29
+ * @param message
30
+ * @param options 其他 dialog 选项
31
+ */
32
+ confirm(n, t, o) {
33
+ return i.dialog.confirm({
34
+ title: n,
35
+ message: t,
36
+ ...o
37
+ });
38
+ }
39
+ /**
40
+ * 展示警告对话框
41
+ * @param title
42
+ * @param message
43
+ * @param options 其他 dialog 选项
44
+ */
45
+ alert(n, t, o) {
46
+ return i.dialog.alert({
47
+ title: n,
48
+ message: t,
49
+ ...o
50
+ });
51
+ }
52
+ /**
53
+ * 关闭对话框
54
+ */
55
+ dismiss() {
56
+ return i.dialog.close();
57
+ }
58
+ }
59
+ const u = new s(), c = new a();
383
60
  export {
384
- tl as default
61
+ s as Dialog,
62
+ a as Notify,
63
+ u as dialog,
64
+ c as notify,
65
+ e as setupOverlay
385
66
  };
@@ -12,6 +12,7 @@ export declare class Notify {
12
12
  danger(message: string, selector?: string): any;
13
13
  dismiss(): void;
14
14
  }
15
+ /** @deprecated */
15
16
  export declare class Dialog {
16
17
  /**
17
18
  * 展示确认对话框
@@ -32,5 +33,6 @@ export declare class Dialog {
32
33
  */
33
34
  dismiss(): void;
34
35
  }
36
+ /** @deprecated */
35
37
  export declare const dialog: Dialog;
36
38
  export declare const notify: Notify;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-vant",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -38,11 +38,6 @@
38
38
  padding: 4px;
39
39
  color: var(--color-medium-tint);
40
40
  }
41
-
42
- &-btn {
43
- color: var(--color-primary);
44
- font-size: 14px;
45
- }
46
41
  }
47
42
 
48
43
  &-option {
@@ -9,7 +9,7 @@ declare const _default: <TValue, TOption extends SelectorOption<TValue>>(__VLS_p
9
9
  readonly onRefresh?: (() => any) | undefined;
10
10
  readonly "onUpdate:keyword"?: ((value: string) => any) | undefined;
11
11
  readonly onUnselect?: ((args_0: TOption) => any) | undefined;
12
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onSelect" | "onRefresh" | "onClose" | "onClear" | "onConfirm" | "onUpdate:keyword" | "onUnselect"> & ({
12
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onSelect" | "onConfirm" | "onRefresh" | "onClose" | "onClear" | "onUpdate:keyword" | "onUnselect"> & ({
13
13
  modelValue?: TValue | TValue[] | null;
14
14
  keyword?: string;
15
15
  } & {
@@ -43,9 +43,7 @@ declare const _default: <TValue, TOption extends SelectorOption<TValue>>(__VLS_p
43
43
  label: string;
44
44
  selectedOptions: TOption[];
45
45
  }): any;
46
- filter?(_: {
47
- rendered: boolean;
48
- }): any;
46
+ filter?(_: {}): any;
49
47
  'option-start'?(_: {
50
48
  option: TOption | SelectorOptionGroup<TOption>;
51
49
  index: number;
@@ -77,10 +75,9 @@ declare const _default: <TValue, TOption extends SelectorOption<TValue>>(__VLS_p
77
75
  active: boolean;
78
76
  }): any;
79
77
  list?(_: {
80
- rendered: boolean;
81
78
  ListTemplate: import('@vueuse/core').ReuseTemplateComponent<Record<string, any>, Record<"default", undefined>>;
82
79
  }): any;
83
- buttons?(_: {
80
+ actions?(_: {
84
81
  confirm: () => void;
85
82
  }): any;
86
83
  };
package/index23.js DELETED
@@ -1,42 +0,0 @@
1
- import { makeDestructurable as m, camelize as c } from "./index24.js";
2
- import { shallowRef as p, defineComponent as d } from "vue";
3
- // @__NO_SIDE_EFFECTS__
4
- function w(e = {}) {
5
- const { inheritAttrs: r = !0, name: t = "ReusableTemplate" } = e, o = p(), a = d({
6
- name: `${t}.define`,
7
- setup(i, { slots: l }) {
8
- return () => {
9
- o.value = l.default;
10
- };
11
- }
12
- }), s = d({
13
- inheritAttrs: r,
14
- name: `${t}.reuse`,
15
- props: e.props,
16
- setup(i, { attrs: l, slots: f }) {
17
- return () => {
18
- var u;
19
- if (!o.value) throw new Error("[VueUse] Failed to find the definition of reusable template");
20
- const n = (u = o.value) === null || u === void 0 ? void 0 : u.call(o, {
21
- ...e.props == null ? v(l) : i,
22
- $slots: f
23
- });
24
- return r && (n == null ? void 0 : n.length) === 1 ? n[0] : n;
25
- };
26
- }
27
- });
28
- return m({
29
- define: a,
30
- reuse: s
31
- }, [a, s]);
32
- }
33
- function v(e) {
34
- const r = {};
35
- for (const t in e) r[c(t)] = e[t];
36
- return r;
37
- }
38
- export {
39
- c as camelize,
40
- w as createReusableTemplate,
41
- m as makeDestructurable
42
- };
package/index24.js DELETED
@@ -1,27 +0,0 @@
1
- import "vue";
2
- typeof WorkerGlobalScope != "undefined" && globalThis instanceof WorkerGlobalScope;
3
- function r(t) {
4
- const n = /* @__PURE__ */ Object.create(null);
5
- return (e) => n[e] || (n[e] = t(e));
6
- }
7
- const c = /-(\w)/g, a = r((t) => t.replace(c, (n, e) => e ? e.toUpperCase() : ""));
8
- // @__NO_SIDE_EFFECTS__
9
- function u(t, n) {
10
- if (typeof Symbol != "undefined") {
11
- const e = { ...t };
12
- return Object.defineProperty(e, Symbol.iterator, {
13
- enumerable: !1,
14
- value() {
15
- let o = 0;
16
- return { next: () => ({
17
- value: n[o++],
18
- done: o > n.length
19
- }) };
20
- }
21
- }), e;
22
- } else return Object.assign([...n], t);
23
- }
24
- export {
25
- a as camelize,
26
- u as makeDestructurable
27
- };
package/modal/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { default as SunModal } from './index.vue';
package/modal/index.scss DELETED
@@ -1,14 +0,0 @@
1
- .sun-modal {
2
- &-extra {
3
- position: absolute;
4
- top: 0;
5
- left: 16px;
6
- display: flex;
7
- align-items: center;
8
- height: 48px;
9
- }
10
-
11
- &-buttons {
12
- padding: 12px 16px;
13
- }
14
- }
@@ -1,37 +0,0 @@
1
- type __VLS_Props = {
2
- show: boolean;
3
- title: string;
4
- showButtons?: boolean;
5
- confirmText?: string;
6
- confirmDisabled?: boolean;
7
- };
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- extra?(_: {}): any;
12
- default?(_: {}): any;
13
- buttons?(_: {}): any;
14
- };
15
- refs: {};
16
- rootEl: any;
17
- };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- close: () => any;
21
- confirm: () => any;
22
- "update:show": (args_0: boolean) => any;
23
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onClose?: (() => any) | undefined;
25
- onConfirm?: (() => any) | undefined;
26
- "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
27
- }>, {
28
- showButtons: boolean;
29
- confirmText: string;
30
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
- export default _default;
33
- type __VLS_WithTemplateSlots<T, S> = T & {
34
- new (): {
35
- $slots: S;
36
- };
37
- };