@opentinyvue/vue-dialog-box 3.21.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -6
- package/package.json +6 -7
- package/src/index.d.ts +5 -5
- package/src/mobile-first.vue.d.ts +20 -20
- package/src/pc.vue.d.ts +21 -21
- package/lib/mobile.js +0 -139
- package/src/mobile.vue.d.ts +0 -75
package/lib/index.js
CHANGED
|
@@ -7,9 +7,8 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import PcTemplate from "./pc.js";
|
|
12
|
-
import MobileTemplate from "./mobile.js";
|
|
13
12
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
14
13
|
var template = function template2(mode) {
|
|
15
14
|
var _process$env;
|
|
@@ -17,9 +16,6 @@ var template = function template2(mode) {
|
|
|
17
16
|
if ("pc" === (tinyMode || mode)) {
|
|
18
17
|
return PcTemplate;
|
|
19
18
|
}
|
|
20
|
-
if ("mobile" === (tinyMode || mode)) {
|
|
21
|
-
return MobileTemplate;
|
|
22
|
-
}
|
|
23
19
|
if ("mobile-first" === (tinyMode || mode)) {
|
|
24
20
|
return MobileFirstTemplate;
|
|
25
21
|
}
|
|
@@ -204,7 +200,7 @@ var DialogBox = defineComponent({
|
|
|
204
200
|
});
|
|
205
201
|
}
|
|
206
202
|
});
|
|
207
|
-
var version = "3.
|
|
203
|
+
var version = "3.undefined";
|
|
208
204
|
DialogBox.install = function(Vue) {
|
|
209
205
|
Vue.component(DialogBox.name, DialogBox);
|
|
210
206
|
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-dialog-box",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~3.
|
|
11
|
-
"@opentinyvue/vue-icon": "~3.
|
|
12
|
-
"@opentinyvue/vue-action-sheet": "~3.
|
|
13
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
14
|
-
"@opentinyvue/vue-theme
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.21.0"
|
|
10
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-action-sheet": "~3.22.0",
|
|
13
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
16
15
|
},
|
|
17
16
|
"license": "MIT",
|
|
18
17
|
"types": "index.d.ts",
|
package/src/index.d.ts
CHANGED
|
@@ -385,19 +385,19 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
385
385
|
tiny_theme: StringConstructor;
|
|
386
386
|
tiny_chart_theme: ObjectConstructor;
|
|
387
387
|
}>>, {
|
|
388
|
-
|
|
388
|
+
width: string;
|
|
389
389
|
resize: boolean;
|
|
390
|
+
title: string;
|
|
391
|
+
fullscreen: boolean;
|
|
392
|
+
visible: boolean;
|
|
390
393
|
center: boolean;
|
|
394
|
+
appendToBody: boolean;
|
|
391
395
|
tiny_mode_root: boolean;
|
|
392
396
|
_constants: Record<string, any>;
|
|
393
|
-
width: string;
|
|
394
397
|
maxHeight: string;
|
|
395
|
-
appendToBody: boolean;
|
|
396
|
-
visible: boolean;
|
|
397
398
|
showClose: boolean;
|
|
398
399
|
showHeader: boolean;
|
|
399
400
|
lockScroll: boolean;
|
|
400
|
-
fullscreen: boolean;
|
|
401
401
|
draggable: boolean;
|
|
402
402
|
closeOnClickModal: boolean;
|
|
403
403
|
closeOnPressEscape: boolean;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
-
|
|
2
|
+
top?: any;
|
|
3
|
+
width?: any;
|
|
3
4
|
resize?: any;
|
|
5
|
+
title?: any;
|
|
6
|
+
fullscreen?: any;
|
|
7
|
+
visible?: any;
|
|
4
8
|
center?: any;
|
|
5
|
-
|
|
9
|
+
appendToBody?: any;
|
|
6
10
|
tiny_mode?: any;
|
|
7
11
|
tiny_mode_root?: any;
|
|
8
12
|
tiny_template?: any;
|
|
@@ -10,15 +14,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
10
14
|
_constants?: any;
|
|
11
15
|
tiny_theme?: any;
|
|
12
16
|
tiny_chart_theme?: any;
|
|
13
|
-
width?: any;
|
|
14
17
|
maxHeight?: any;
|
|
15
|
-
appendToBody?: any;
|
|
16
|
-
visible?: any;
|
|
17
18
|
showClose?: any;
|
|
18
19
|
showHeader?: any;
|
|
19
20
|
lockScroll?: any;
|
|
20
21
|
beforeClose?: any;
|
|
21
|
-
fullscreen?: any;
|
|
22
22
|
draggable?: any;
|
|
23
23
|
closeOnClickModal?: any;
|
|
24
24
|
closeOnPressEscape?: any;
|
|
@@ -39,11 +39,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
39
39
|
dp: (props: any) => void;
|
|
40
40
|
gcls: (key: any) => any;
|
|
41
41
|
m: (...cssClasses: any[]) => string;
|
|
42
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("
|
|
43
|
-
|
|
42
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "cancel" | "close" | "update:visible" | "confirm" | "open" | "closed" | "opened" | "before-close" | "drag-start" | "drag-move" | "drag-end")[], "change" | "cancel" | "close" | "update:visible" | "confirm" | "open" | "closed" | "opened" | "before-close" | "drag-start" | "drag-move" | "drag-end", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
43
|
+
top?: any;
|
|
44
|
+
width?: any;
|
|
44
45
|
resize?: any;
|
|
46
|
+
title?: any;
|
|
47
|
+
fullscreen?: any;
|
|
48
|
+
visible?: any;
|
|
45
49
|
center?: any;
|
|
46
|
-
|
|
50
|
+
appendToBody?: any;
|
|
47
51
|
tiny_mode?: any;
|
|
48
52
|
tiny_mode_root?: any;
|
|
49
53
|
tiny_template?: any;
|
|
@@ -51,15 +55,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
51
55
|
_constants?: any;
|
|
52
56
|
tiny_theme?: any;
|
|
53
57
|
tiny_chart_theme?: any;
|
|
54
|
-
width?: any;
|
|
55
58
|
maxHeight?: any;
|
|
56
|
-
appendToBody?: any;
|
|
57
|
-
visible?: any;
|
|
58
59
|
showClose?: any;
|
|
59
60
|
showHeader?: any;
|
|
60
61
|
lockScroll?: any;
|
|
61
62
|
beforeClose?: any;
|
|
62
|
-
fullscreen?: any;
|
|
63
63
|
draggable?: any;
|
|
64
64
|
closeOnClickModal?: any;
|
|
65
65
|
closeOnPressEscape?: any;
|
|
@@ -72,8 +72,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
72
72
|
noAnimation?: any;
|
|
73
73
|
customStyle?: any;
|
|
74
74
|
}>>> & {
|
|
75
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
76
75
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
78
78
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
79
79
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
@@ -85,10 +85,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
85
85
|
"onDrag-move"?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
"onDrag-end"?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
readonly
|
|
88
|
+
readonly top?: any;
|
|
89
|
+
readonly width?: any;
|
|
89
90
|
readonly resize?: any;
|
|
91
|
+
readonly title?: any;
|
|
92
|
+
readonly fullscreen?: any;
|
|
93
|
+
readonly visible?: any;
|
|
90
94
|
readonly center?: any;
|
|
91
|
-
readonly
|
|
95
|
+
readonly appendToBody?: any;
|
|
92
96
|
readonly tiny_mode?: any;
|
|
93
97
|
readonly tiny_mode_root?: any;
|
|
94
98
|
readonly tiny_template?: any;
|
|
@@ -96,15 +100,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
96
100
|
readonly _constants?: any;
|
|
97
101
|
readonly tiny_theme?: any;
|
|
98
102
|
readonly tiny_chart_theme?: any;
|
|
99
|
-
readonly width?: any;
|
|
100
103
|
readonly maxHeight?: any;
|
|
101
|
-
readonly appendToBody?: any;
|
|
102
|
-
readonly visible?: any;
|
|
103
104
|
readonly showClose?: any;
|
|
104
105
|
readonly showHeader?: any;
|
|
105
106
|
readonly lockScroll?: any;
|
|
106
107
|
readonly beforeClose?: any;
|
|
107
|
-
readonly fullscreen?: any;
|
|
108
108
|
readonly draggable?: any;
|
|
109
109
|
readonly closeOnClickModal?: any;
|
|
110
110
|
readonly closeOnPressEscape?: any;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { IDialogBoxApi } from '@opentinyvue/vue-renderless/types/dialog-box.type';
|
|
2
2
|
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
|
-
|
|
3
|
+
top?: any;
|
|
4
|
+
width?: any;
|
|
4
5
|
resize?: any;
|
|
6
|
+
title?: any;
|
|
7
|
+
fullscreen?: any;
|
|
8
|
+
visible?: any;
|
|
5
9
|
center?: any;
|
|
6
|
-
|
|
10
|
+
appendToBody?: any;
|
|
7
11
|
tiny_mode?: any;
|
|
8
12
|
tiny_mode_root?: any;
|
|
9
13
|
tiny_template?: any;
|
|
@@ -11,15 +15,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
11
15
|
_constants?: any;
|
|
12
16
|
tiny_theme?: any;
|
|
13
17
|
tiny_chart_theme?: any;
|
|
14
|
-
width?: any;
|
|
15
18
|
maxHeight?: any;
|
|
16
|
-
appendToBody?: any;
|
|
17
|
-
visible?: any;
|
|
18
19
|
showClose?: any;
|
|
19
20
|
showHeader?: any;
|
|
20
21
|
lockScroll?: any;
|
|
21
22
|
beforeClose?: any;
|
|
22
|
-
fullscreen?: any;
|
|
23
23
|
draggable?: any;
|
|
24
24
|
closeOnClickModal?: any;
|
|
25
25
|
closeOnPressEscape?: any;
|
|
@@ -33,11 +33,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
33
33
|
dialogTransition?: any;
|
|
34
34
|
noAnimation?: any;
|
|
35
35
|
customStyle?: any;
|
|
36
|
-
}>, IDialogBoxApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("
|
|
37
|
-
|
|
36
|
+
}>, IDialogBoxApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("resize" | "change" | "cancel" | "close" | "update:visible" | "confirm" | "open" | "closed" | "opened" | "before-close" | "drag-start" | "drag-move" | "drag-end")[], "resize" | "change" | "cancel" | "close" | "update:visible" | "confirm" | "open" | "closed" | "opened" | "before-close" | "drag-start" | "drag-move" | "drag-end", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
37
|
+
top?: any;
|
|
38
|
+
width?: any;
|
|
38
39
|
resize?: any;
|
|
40
|
+
title?: any;
|
|
41
|
+
fullscreen?: any;
|
|
42
|
+
visible?: any;
|
|
39
43
|
center?: any;
|
|
40
|
-
|
|
44
|
+
appendToBody?: any;
|
|
41
45
|
tiny_mode?: any;
|
|
42
46
|
tiny_mode_root?: any;
|
|
43
47
|
tiny_template?: any;
|
|
@@ -45,15 +49,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
45
49
|
_constants?: any;
|
|
46
50
|
tiny_theme?: any;
|
|
47
51
|
tiny_chart_theme?: any;
|
|
48
|
-
width?: any;
|
|
49
52
|
maxHeight?: any;
|
|
50
|
-
appendToBody?: any;
|
|
51
|
-
visible?: any;
|
|
52
53
|
showClose?: any;
|
|
53
54
|
showHeader?: any;
|
|
54
55
|
lockScroll?: any;
|
|
55
56
|
beforeClose?: any;
|
|
56
|
-
fullscreen?: any;
|
|
57
57
|
draggable?: any;
|
|
58
58
|
closeOnClickModal?: any;
|
|
59
59
|
closeOnPressEscape?: any;
|
|
@@ -68,10 +68,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
68
68
|
noAnimation?: any;
|
|
69
69
|
customStyle?: any;
|
|
70
70
|
}>>> & {
|
|
71
|
-
|
|
71
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
72
72
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
73
74
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
74
|
-
onResize?: ((...args: any[]) => any) | undefined;
|
|
75
75
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
76
76
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
@@ -82,10 +82,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
82
82
|
"onDrag-move"?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
"onDrag-end"?: ((...args: any[]) => any) | undefined;
|
|
84
84
|
}, {
|
|
85
|
-
readonly
|
|
85
|
+
readonly top?: any;
|
|
86
|
+
readonly width?: any;
|
|
86
87
|
readonly resize?: any;
|
|
88
|
+
readonly title?: any;
|
|
89
|
+
readonly fullscreen?: any;
|
|
90
|
+
readonly visible?: any;
|
|
87
91
|
readonly center?: any;
|
|
88
|
-
readonly
|
|
92
|
+
readonly appendToBody?: any;
|
|
89
93
|
readonly tiny_mode?: any;
|
|
90
94
|
readonly tiny_mode_root?: any;
|
|
91
95
|
readonly tiny_template?: any;
|
|
@@ -93,15 +97,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
93
97
|
readonly _constants?: any;
|
|
94
98
|
readonly tiny_theme?: any;
|
|
95
99
|
readonly tiny_chart_theme?: any;
|
|
96
|
-
readonly width?: any;
|
|
97
100
|
readonly maxHeight?: any;
|
|
98
|
-
readonly appendToBody?: any;
|
|
99
|
-
readonly visible?: any;
|
|
100
101
|
readonly showClose?: any;
|
|
101
102
|
readonly showHeader?: any;
|
|
102
103
|
readonly lockScroll?: any;
|
|
103
104
|
readonly beforeClose?: any;
|
|
104
|
-
readonly fullscreen?: any;
|
|
105
105
|
readonly draggable?: any;
|
|
106
106
|
readonly closeOnClickModal?: any;
|
|
107
107
|
readonly closeOnPressEscape?: any;
|
package/lib/mobile.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/dialog-box/vue';
|
|
2
|
-
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
-
import '@opentinyvue/vue-theme-mobile/dialog-box/index.css';
|
|
4
|
-
import { openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, withModifiers, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, vShow } from 'vue';
|
|
5
|
-
|
|
6
|
-
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
-
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
-
t && (r = t);
|
|
11
|
-
var o = 0;
|
|
12
|
-
return function() {
|
|
13
|
-
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
-
}
|
|
18
|
-
function _unsupportedIterableToArray(r, a) {
|
|
19
|
-
if (r) {
|
|
20
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function _arrayLikeToArray(r, a) {
|
|
26
|
-
(null == a || a > r.length) && (a = r.length);
|
|
27
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
-
return n;
|
|
29
|
-
}
|
|
30
|
-
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
-
var target = sfc.__vccOpts || sfc;
|
|
32
|
-
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
-
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
-
target[key] = val;
|
|
35
|
-
}
|
|
36
|
-
return target;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var _sfc_main = defineComponent({
|
|
40
|
-
emits: ["update:visible", "change", "before-close", "open", "close", "opened", "confirm", "cancel", "closed"],
|
|
41
|
-
props: [].concat(props, ["visible", "title", "modal", "closeOnClickModal", "modalAppendToBody", "appendToBody", "width", "top", "showHeader", "destroyOnClose"]),
|
|
42
|
-
model: {
|
|
43
|
-
prop: "visible",
|
|
44
|
-
event: "update:visible"
|
|
45
|
-
},
|
|
46
|
-
setup: function setup$1(props2, context) {
|
|
47
|
-
return setup({
|
|
48
|
-
props: props2,
|
|
49
|
-
context,
|
|
50
|
-
renderless,
|
|
51
|
-
api
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
var _hoisted_1 = {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "tiny-mobile-dialog-box__header"
|
|
58
|
-
};
|
|
59
|
-
var _hoisted_2 = {
|
|
60
|
-
class: "tiny-mobile-dialog-box__title"
|
|
61
|
-
};
|
|
62
|
-
var _hoisted_3 = {
|
|
63
|
-
class: "tiny-mobile-dialog-box__body"
|
|
64
|
-
};
|
|
65
|
-
var _hoisted_4 = {
|
|
66
|
-
class: "tiny-mobile-dialog-box__footer"
|
|
67
|
-
};
|
|
68
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
69
|
-
return openBlock(), createBlock(Transition, {
|
|
70
|
-
name: "dialog-fade",
|
|
71
|
-
persisted: ""
|
|
72
|
-
}, {
|
|
73
|
-
default: withCtx(function() {
|
|
74
|
-
return [withDirectives(createElementVNode(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
class: "tiny-mobile-dialog-box__wrapper",
|
|
78
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(function() {
|
|
79
|
-
return _ctx.handleWrapperClick && _ctx.handleWrapperClick.apply(_ctx, arguments);
|
|
80
|
-
}, ["self"]))
|
|
81
|
-
},
|
|
82
|
-
[(openBlock(), createElementBlock(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
ref: "dialog",
|
|
86
|
-
class: normalizeClass([{
|
|
87
|
-
"is-hide-header": !_ctx.showHeader
|
|
88
|
-
}, "tiny-mobile-dialog-box"]),
|
|
89
|
-
key: _ctx.state.key
|
|
90
|
-
},
|
|
91
|
-
[_ctx.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "title", {}, function() {
|
|
92
|
-
return [createElementVNode(
|
|
93
|
-
"span",
|
|
94
|
-
_hoisted_2,
|
|
95
|
-
toDisplayString(_ctx.title),
|
|
96
|
-
1
|
|
97
|
-
/* TEXT */
|
|
98
|
-
)];
|
|
99
|
-
})])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")]), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "footer", {}, function() {
|
|
100
|
-
return [createElementVNode(
|
|
101
|
-
"button",
|
|
102
|
-
{
|
|
103
|
-
type: "button",
|
|
104
|
-
onClick: _cache[0] || (_cache[0] = function() {
|
|
105
|
-
return _ctx.handleCancel && _ctx.handleCancel.apply(_ctx, arguments);
|
|
106
|
-
}),
|
|
107
|
-
class: "tiny-mobile-dialog-box__button cancel-button"
|
|
108
|
-
},
|
|
109
|
-
toDisplayString(_ctx.t("ui.dialogBox.cancel")),
|
|
110
|
-
1
|
|
111
|
-
/* TEXT */
|
|
112
|
-
), createElementVNode(
|
|
113
|
-
"button",
|
|
114
|
-
{
|
|
115
|
-
type: "button",
|
|
116
|
-
onClick: _cache[1] || (_cache[1] = function() {
|
|
117
|
-
return _ctx.handleConfirm && _ctx.handleConfirm.apply(_ctx, arguments);
|
|
118
|
-
}),
|
|
119
|
-
class: "tiny-mobile-dialog-box__button confirm-button"
|
|
120
|
-
},
|
|
121
|
-
toDisplayString(_ctx.t("ui.dialogBox.confirm")),
|
|
122
|
-
1
|
|
123
|
-
/* TEXT */
|
|
124
|
-
)];
|
|
125
|
-
})])],
|
|
126
|
-
2
|
|
127
|
-
/* CLASS */
|
|
128
|
-
))],
|
|
129
|
-
512
|
|
130
|
-
/* NEED_PATCH */
|
|
131
|
-
), [[vShow, _ctx.visible]])];
|
|
132
|
-
}),
|
|
133
|
-
_: 3
|
|
134
|
-
/* FORWARDED */
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
138
|
-
|
|
139
|
-
export { mobile as default };
|
package/src/mobile.vue.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
-
title?: any;
|
|
3
|
-
top?: any;
|
|
4
|
-
tiny_mode?: any;
|
|
5
|
-
tiny_mode_root?: any;
|
|
6
|
-
tiny_template?: any;
|
|
7
|
-
tiny_renderless?: any;
|
|
8
|
-
_constants?: any;
|
|
9
|
-
tiny_theme?: any;
|
|
10
|
-
tiny_chart_theme?: any;
|
|
11
|
-
width?: any;
|
|
12
|
-
appendToBody?: any;
|
|
13
|
-
visible?: any;
|
|
14
|
-
showHeader?: any;
|
|
15
|
-
closeOnClickModal?: any;
|
|
16
|
-
destroyOnClose?: any;
|
|
17
|
-
modal?: any;
|
|
18
|
-
modalAppendToBody?: any;
|
|
19
|
-
}>, {
|
|
20
|
-
t: (this: any, path: any, options?: any) => any;
|
|
21
|
-
vm: any;
|
|
22
|
-
f: (props: any, attrs?: {}) => {};
|
|
23
|
-
a: (attrs: any, filters: any, include: any) => {};
|
|
24
|
-
d: (props: any) => void;
|
|
25
|
-
dp: (props: any) => void;
|
|
26
|
-
gcls: (key: any) => any;
|
|
27
|
-
m: (...cssClasses: any[]) => string;
|
|
28
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("cancel" | "change" | "close" | "update:visible" | "confirm" | "open" | "closed" | "opened" | "before-close")[], "cancel" | "change" | "close" | "update:visible" | "confirm" | "open" | "closed" | "opened" | "before-close", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
29
|
-
title?: any;
|
|
30
|
-
top?: any;
|
|
31
|
-
tiny_mode?: any;
|
|
32
|
-
tiny_mode_root?: any;
|
|
33
|
-
tiny_template?: any;
|
|
34
|
-
tiny_renderless?: any;
|
|
35
|
-
_constants?: any;
|
|
36
|
-
tiny_theme?: any;
|
|
37
|
-
tiny_chart_theme?: any;
|
|
38
|
-
width?: any;
|
|
39
|
-
appendToBody?: any;
|
|
40
|
-
visible?: any;
|
|
41
|
-
showHeader?: any;
|
|
42
|
-
closeOnClickModal?: any;
|
|
43
|
-
destroyOnClose?: any;
|
|
44
|
-
modal?: any;
|
|
45
|
-
modalAppendToBody?: any;
|
|
46
|
-
}>>> & {
|
|
47
|
-
onCancel?: ((...args: any[]) => any) | undefined;
|
|
48
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
51
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
52
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
|
53
|
-
onClosed?: ((...args: any[]) => any) | undefined;
|
|
54
|
-
onOpened?: ((...args: any[]) => any) | undefined;
|
|
55
|
-
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
readonly title?: any;
|
|
58
|
-
readonly top?: any;
|
|
59
|
-
readonly tiny_mode?: any;
|
|
60
|
-
readonly tiny_mode_root?: any;
|
|
61
|
-
readonly tiny_template?: any;
|
|
62
|
-
readonly tiny_renderless?: any;
|
|
63
|
-
readonly _constants?: any;
|
|
64
|
-
readonly tiny_theme?: any;
|
|
65
|
-
readonly tiny_chart_theme?: any;
|
|
66
|
-
readonly width?: any;
|
|
67
|
-
readonly appendToBody?: any;
|
|
68
|
-
readonly visible?: any;
|
|
69
|
-
readonly showHeader?: any;
|
|
70
|
-
readonly closeOnClickModal?: any;
|
|
71
|
-
readonly destroyOnClose?: any;
|
|
72
|
-
readonly modal?: any;
|
|
73
|
-
readonly modalAppendToBody?: any;
|
|
74
|
-
}, {}>;
|
|
75
|
-
export default _default;
|