@opentinyvue/vue-dialog-box 2.22.0 → 3.22.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/lib/index.js +1 -1
- package/lib/mobile-first.js +192 -186
- package/lib/pc.js +158 -149
- package/package.json +4 -4
- package/src/index.d.ts +270 -1
- package/src/mobile-first.vue.d.ts +119 -1
- package/src/pc.vue.d.ts +118 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -2,38 +2,42 @@ import { renderless, api } from '@opentinyvue/vue-renderless/dialog-box/vue';
|
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import { IconClose, IconFullscreen, IconMinscreen } from '@opentinyvue/vue-icon';
|
|
4
4
|
import ActionSheet from '@opentinyvue/vue-action-sheet';
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, normalizeStyle, renderSlot, toDisplayString, createCommentVNode, vShow, createBlock, mergeProps, createSlots, renderList, normalizeProps, guardReactiveProps } from 'vue';
|
|
5
6
|
|
|
6
|
-
function
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
+
t && (r = t);
|
|
12
|
+
var o = 0;
|
|
13
|
+
return function() {
|
|
14
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var originalRender = options.render;
|
|
21
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
22
|
-
hook.call(context);
|
|
23
|
-
return originalRender(h, context);
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
var existing = options.beforeCreate;
|
|
27
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
28
|
-
}
|
|
17
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
+
}
|
|
19
|
+
function _unsupportedIterableToArray(r, a) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
+
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;
|
|
29
24
|
}
|
|
30
|
-
return {
|
|
31
|
-
exports: scriptExports,
|
|
32
|
-
options
|
|
33
|
-
};
|
|
34
25
|
}
|
|
26
|
+
function _arrayLikeToArray(r, a) {
|
|
27
|
+
(null == a || a > r.length) && (a = r.length);
|
|
28
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
+
var target = sfc.__vccOpts || sfc;
|
|
33
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
35
39
|
|
|
36
|
-
var
|
|
40
|
+
var _sfc_main = defineComponent({
|
|
37
41
|
components: {
|
|
38
42
|
IconClose: IconClose(),
|
|
39
43
|
IconFullscreen: IconFullscreen(),
|
|
@@ -55,167 +59,169 @@ var __vue2_script = defineComponent({
|
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
62
|
+
var _hoisted_1 = {
|
|
63
|
+
key: 0
|
|
64
|
+
};
|
|
65
|
+
var _hoisted_2 = {
|
|
66
|
+
"data-tag": "tiny-dialog-box__title",
|
|
67
|
+
class: "text-sm text-color-text-primary mr-4 flex-1 font-bold"
|
|
68
|
+
};
|
|
69
|
+
var _hoisted_3 = {
|
|
70
|
+
key: 1,
|
|
71
|
+
"data-tag": "tiny-dialog-box__footer",
|
|
72
|
+
class: "pt-4 pr-6 pb-4 pl-6 text-right box-border border-t border-t-color-bg-3 [&_[data-tag=tiny-button]]:mx-1 [&_[data-tag=tiny-button]]:my-0 [&_[data-tag=tiny-toolbar]_[data-tag=tiny-button]]:my-0 [&_[data-tag=tiny-toolbar]_[data-tag=tiny-button]]:mx-1"
|
|
73
|
+
};
|
|
74
|
+
var _hoisted_4 = {
|
|
75
|
+
key: 1
|
|
76
|
+
};
|
|
77
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
78
|
+
var _component_icon_fullscreen = resolveComponent("icon-fullscreen");
|
|
79
|
+
var _component_icon_minscreen = resolveComponent("icon-minscreen");
|
|
80
|
+
var _component_icon_close = resolveComponent("icon-close");
|
|
81
|
+
var _component_tiny_action_sheet = resolveComponent("tiny-action-sheet");
|
|
82
|
+
return openBlock(), createElementBlock("div", null, [_ctx.state.current !== "default" ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(Transition, {
|
|
83
|
+
duration: _ctx.noAnimation ? 0 : void 0,
|
|
84
|
+
name: _ctx.state.animationName,
|
|
85
|
+
onAfterEnter: _ctx.afterEnter,
|
|
86
|
+
onAfterLeave: _ctx.afterLeave,
|
|
87
|
+
persisted: ""
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(function() {
|
|
90
|
+
return [withDirectives(createElementVNode(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
class: normalizeClass(["fixed inset-0 m-0 flex items-center", _ctx.dialogClass]),
|
|
94
|
+
"data-tag": "tiny-dialog-box__wrapper",
|
|
95
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(function() {
|
|
96
|
+
return _ctx.handleWrapperClick && _ctx.handleWrapperClick.apply(_ctx, arguments);
|
|
97
|
+
}, ["self"]))
|
|
98
|
+
},
|
|
99
|
+
[(_ctx.destroyOnClose ? _ctx.visible : true) ? (openBlock(), createElementBlock(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
ref: "dialog",
|
|
103
|
+
"data-tag": "tiny-dialog-box",
|
|
104
|
+
class: normalizeClass([[{
|
|
105
|
+
"left-0 top-0 w-screen h-screen": _ctx.state.isFull,
|
|
106
|
+
"text-center": _ctx.center,
|
|
107
|
+
"flex flex-col rounded-none": _ctx.rightSlide
|
|
108
|
+
}], "absolute bg-color-bg-1 border-none overflow-hidden shadow-xl rounded flex flex-col"]),
|
|
109
|
+
style: normalizeStyle(_ctx.state.style),
|
|
110
|
+
key: _ctx.state.key
|
|
111
|
+
},
|
|
112
|
+
[_ctx.showHeader ? (openBlock(), createElementBlock(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
key: 0,
|
|
116
|
+
"data-tag": "tiny-dialog-box__header",
|
|
117
|
+
class: "px-6 py-4 leading-5.5 bg-color-bg-1 flex justify-between items-center border-b border-b-color-bg-3",
|
|
118
|
+
onMousedown: _cache[3] || (_cache[3] = function() {
|
|
119
|
+
return _ctx.handleDrag && _ctx.handleDrag.apply(_ctx, arguments);
|
|
120
|
+
})
|
|
121
|
+
},
|
|
122
|
+
[renderSlot(_ctx.$slots, "title", {}, function() {
|
|
123
|
+
return [createElementVNode(
|
|
124
|
+
"span",
|
|
125
|
+
_hoisted_2,
|
|
126
|
+
toDisplayString(_ctx.title),
|
|
127
|
+
1
|
|
128
|
+
/* TEXT */
|
|
129
|
+
)];
|
|
130
|
+
}), _ctx.resize && !_ctx.state.isFull ? (openBlock(), createElementBlock("button", {
|
|
131
|
+
key: 0,
|
|
132
|
+
type: "button",
|
|
133
|
+
"data-tag": "tiny-dialog-box__headerbtn",
|
|
134
|
+
class: "border-none p-0 leading-none cursor-pointer focus:outline-0",
|
|
135
|
+
"aria-label": "Resize",
|
|
136
|
+
onClick: _cache[0] || (_cache[0] = function($event) {
|
|
137
|
+
return _ctx.toggleFullScreen(true);
|
|
138
|
+
})
|
|
139
|
+
}, [createVNode(_component_icon_fullscreen, {
|
|
140
|
+
"data-tag": "tiny-svg-size tiny-dialog-box__close",
|
|
141
|
+
class: "fill-color-text-primary text-base hover:fill-color-brand"
|
|
142
|
+
})])) : createCommentVNode("v-if", true), _ctx.resize && _ctx.state.isFull ? (openBlock(), createElementBlock("button", {
|
|
143
|
+
key: 1,
|
|
144
|
+
type: "button",
|
|
145
|
+
"data-tag": "tiny-dialog-box__headerbtn",
|
|
146
|
+
class: "border-none p-0 leading-none cursor-pointer focus:outline-0",
|
|
147
|
+
"aria-label": "Resize",
|
|
148
|
+
onClick: _cache[1] || (_cache[1] = function($event) {
|
|
149
|
+
return _ctx.toggleFullScreen(false);
|
|
150
|
+
})
|
|
151
|
+
}, [createVNode(_component_icon_minscreen, {
|
|
152
|
+
"data-tag": "tiny-svg-size tiny-dialog-box__close",
|
|
153
|
+
class: "fill-color-text-primary text-base hover:fill-color-brand"
|
|
154
|
+
})])) : createCommentVNode("v-if", true), _ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
155
|
+
key: 2,
|
|
156
|
+
type: "button",
|
|
157
|
+
"data-tag": "tiny-dialog-box__headerbtn",
|
|
158
|
+
class: "border-none p-0 leading-none cursor-pointer focus:outline-0",
|
|
159
|
+
"aria-label": "Close",
|
|
160
|
+
onClick: _cache[2] || (_cache[2] = function($event) {
|
|
161
|
+
return _ctx.handleClose("close", $event);
|
|
162
|
+
})
|
|
163
|
+
}, [createVNode(_component_icon_close, {
|
|
164
|
+
"data-tag": "tiny-svg-size tiny-dialog-box__close",
|
|
165
|
+
class: "fill-color-text-primary text-base hover:fill-color-brand"
|
|
166
|
+
})])) : createCommentVNode("v-if", true)],
|
|
167
|
+
32
|
|
168
|
+
/* NEED_HYDRATION */
|
|
169
|
+
)) : createCommentVNode("v-if", true), createElementVNode(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
"data-tag": "tiny-dialog-box__body",
|
|
173
|
+
class: normalizeClass(["text-left pt-0 pr-6 pb-0 pl-6 mb-3 mt-3 text-color-text-primary leading-5.5 text-sm overflow-auto", [_ctx.rightSlide || _ctx.state.isFull ? "max-h-[none] flex-auto" : "max-h-[65vh]"]])
|
|
174
|
+
},
|
|
175
|
+
[renderSlot(_ctx.$slots, "default")],
|
|
176
|
+
2
|
|
177
|
+
/* CLASS */
|
|
178
|
+
), _ctx.slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "footer", {
|
|
179
|
+
beforeClose: _ctx.beforeClose
|
|
180
|
+
})])) : createCommentVNode("v-if", true)],
|
|
181
|
+
6
|
|
182
|
+
/* CLASS, STYLE */
|
|
183
|
+
)) : createCommentVNode("v-if", true)],
|
|
184
|
+
2
|
|
185
|
+
/* CLASS */
|
|
186
|
+
), [[vShow, _ctx.visible]])];
|
|
187
|
+
}),
|
|
188
|
+
_: 3
|
|
189
|
+
/* FORWARDED */
|
|
190
|
+
}, 8, ["duration", "name", "onAfterEnter", "onAfterLeave"])])) : createCommentVNode("v-if", true), _ctx.state.current === "default" ? (openBlock(), createElementBlock("div", _hoisted_4, [(_ctx.destroyOnClose ? _ctx.visible : true) ? (openBlock(), createBlock(_component_tiny_action_sheet, mergeProps({
|
|
191
|
+
key: 0,
|
|
192
|
+
ref: "dialog"
|
|
193
|
+
}, _ctx.$props, {
|
|
194
|
+
"show-footer": true,
|
|
195
|
+
mask: _ctx.modal,
|
|
196
|
+
"mask-closable": _ctx.closeOnClickModal,
|
|
197
|
+
"before-close": _ctx.beforeClose,
|
|
198
|
+
"onUpdate:visible": _cache[5] || (_cache[5] = function($event) {
|
|
199
|
+
return _ctx.$emit("update:visible", $event);
|
|
200
|
+
})
|
|
201
|
+
}), createSlots({
|
|
202
|
+
_: 2
|
|
203
|
+
/* DYNAMIC */
|
|
204
|
+
}, [renderList(_ctx.slots, function(value, name) {
|
|
205
|
+
return {
|
|
206
|
+
name,
|
|
207
|
+
fn: withCtx(function(scopeData) {
|
|
208
|
+
return [(openBlock(), createElementBlock(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
class: normalizeClass({
|
|
200
212
|
"flex w-full justify-between px-4 [&_[data-tag=tiny-button]]:flex-grow [&_[data-tag=tiny-button]:nth-child(2)]:ml-2": name === "footer",
|
|
201
213
|
"px-4 min-h-[250px]": name === "default"
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
function __vue2_injectStyles(context) {
|
|
213
|
-
for (var o in __cssModules) {
|
|
214
|
-
this[o] = __cssModules[o];
|
|
215
|
-
}
|
|
214
|
+
}),
|
|
215
|
+
key: name
|
|
216
|
+
},
|
|
217
|
+
[renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(scopeData)))],
|
|
218
|
+
2
|
|
219
|
+
/* CLASS */
|
|
220
|
+
))];
|
|
221
|
+
})
|
|
222
|
+
};
|
|
223
|
+
})]), 1040, ["mask", "mask-closable", "before-close"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)]);
|
|
216
224
|
}
|
|
217
|
-
var mobileFirst = /* @__PURE__ */
|
|
218
|
-
return __component__.exports;
|
|
219
|
-
}();
|
|
225
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
220
226
|
|
|
221
227
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -2,38 +2,42 @@ import { renderless, api } from '@opentinyvue/vue-renderless/dialog-box/vue';
|
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
3
|
import { iconClose, iconFullscreen, iconMinscreen } from '@opentinyvue/vue-icon';
|
|
4
4
|
import '@opentinyvue/vue-theme/dialog-box/index.css';
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, createVNode, createElementBlock, normalizeStyle, renderSlot, toDisplayString, createCommentVNode, vShow } from 'vue';
|
|
5
6
|
|
|
6
|
-
function
|
|
7
|
-
var
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
hook = injectStyles;
|
|
7
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
8
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
10
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
11
|
+
t && (r = t);
|
|
12
|
+
var o = 0;
|
|
13
|
+
return function() {
|
|
14
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
15
|
+
};
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
} else {
|
|
26
|
-
var existing = options.beforeCreate;
|
|
27
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
28
|
-
}
|
|
17
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
|
+
}
|
|
19
|
+
function _unsupportedIterableToArray(r, a) {
|
|
20
|
+
if (r) {
|
|
21
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
22
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
23
|
+
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;
|
|
29
24
|
}
|
|
30
|
-
return {
|
|
31
|
-
exports: scriptExports,
|
|
32
|
-
options
|
|
33
|
-
};
|
|
34
25
|
}
|
|
26
|
+
function _arrayLikeToArray(r, a) {
|
|
27
|
+
(null == a || a > r.length) && (a = r.length);
|
|
28
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
32
|
+
var target = sfc.__vccOpts || sfc;
|
|
33
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
34
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
35
39
|
|
|
36
|
-
var
|
|
40
|
+
var _sfc_main = defineComponent({
|
|
37
41
|
components: {
|
|
38
42
|
IconClose: iconClose(),
|
|
39
43
|
IconFullscreen: iconFullscreen(),
|
|
@@ -74,129 +78,134 @@ var __vue2_script = defineComponent({
|
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
});
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var _c = _vm._self._c || _h;
|
|
81
|
-
return _c("transition", {
|
|
82
|
-
attrs: {
|
|
83
|
-
"duration": _vm.noAnimation ? 0 : void 0,
|
|
84
|
-
"name": _vm.state.animationName
|
|
85
|
-
},
|
|
86
|
-
on: {
|
|
87
|
-
"after-enter": _vm.afterEnter,
|
|
88
|
-
"after-leave": _vm.afterLeave
|
|
89
|
-
}
|
|
90
|
-
}, [_c("div", {
|
|
91
|
-
directives: [{
|
|
92
|
-
name: "show",
|
|
93
|
-
rawName: "v-show",
|
|
94
|
-
value: _vm.visible,
|
|
95
|
-
expression: "visible"
|
|
96
|
-
}],
|
|
97
|
-
class: ["tiny-dialog-box__wrapper", _vm.dialogClass],
|
|
98
|
-
on: {
|
|
99
|
-
"click": function click($event) {
|
|
100
|
-
if ($event.target !== $event.currentTarget) return null;
|
|
101
|
-
return _vm.handleWrapperClick.apply(null, arguments);
|
|
102
|
-
},
|
|
103
|
-
"mouseup": _vm.useMouseEventUp,
|
|
104
|
-
"mousedown": _vm.useMouseEventDown
|
|
105
|
-
}
|
|
106
|
-
}, [_c("transition", {
|
|
107
|
-
attrs: {
|
|
108
|
-
"name": _vm.dialogTransition
|
|
109
|
-
}
|
|
110
|
-
}, [(_vm.destroyOnClose ? _vm.visible : true) ? _c("div", {
|
|
111
|
-
directives: [{
|
|
112
|
-
name: "show",
|
|
113
|
-
rawName: "v-show",
|
|
114
|
-
value: _vm.visible,
|
|
115
|
-
expression: "visible"
|
|
116
|
-
}],
|
|
117
|
-
key: _vm.state.key,
|
|
118
|
-
ref: "dialog",
|
|
119
|
-
staticClass: "tiny-dialog-box",
|
|
120
|
-
class: [{
|
|
121
|
-
"is-fullscreen": _vm.state.isFull,
|
|
122
|
-
"is-center": _vm.center,
|
|
123
|
-
"is-right-slide": _vm.rightSlide
|
|
124
|
-
}],
|
|
125
|
-
style: _vm.state.style,
|
|
126
|
-
attrs: {
|
|
127
|
-
"data-tag": "tiny-dialog-box",
|
|
128
|
-
"data-dialog-box-draggable": _vm.draggable
|
|
129
|
-
}
|
|
130
|
-
}, [_vm.showHeader ? _c("div", {
|
|
131
|
-
ref: "header",
|
|
132
|
-
staticClass: "tiny-dialog-box__header",
|
|
133
|
-
on: {
|
|
134
|
-
"mousedown": _vm.handleDrag
|
|
135
|
-
}
|
|
136
|
-
}, [_vm._t("title", function() {
|
|
137
|
-
return [_c("span", {
|
|
138
|
-
staticClass: "tiny-dialog-box__title"
|
|
139
|
-
}, [_vm._v(_vm._s(_vm.title))])];
|
|
140
|
-
}), _c("div", {
|
|
141
|
-
staticClass: "tiny-dialog-box__btn-tools"
|
|
142
|
-
}, [_vm.resize && !_vm.state.isFull ? _c("button", {
|
|
143
|
-
staticClass: "tiny-dialog-box__headerbtn",
|
|
144
|
-
attrs: {
|
|
145
|
-
"type": "button",
|
|
146
|
-
"aria-label": "Resize"
|
|
147
|
-
},
|
|
148
|
-
on: {
|
|
149
|
-
"click": function click($event) {
|
|
150
|
-
return _vm.toggleFullScreen(true);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}, [_c("icon-fullscreen", {
|
|
154
|
-
staticClass: "tiny-svg-size tiny-dialog-box__resize"
|
|
155
|
-
})], 1) : _vm._e(), _vm.resize && _vm.state.isFull ? _c("button", {
|
|
156
|
-
staticClass: "tiny-dialog-box__headerbtn",
|
|
157
|
-
attrs: {
|
|
158
|
-
"type": "button",
|
|
159
|
-
"aria-label": "Resize"
|
|
160
|
-
},
|
|
161
|
-
on: {
|
|
162
|
-
"click": function click($event) {
|
|
163
|
-
return _vm.toggleFullScreen(false);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}, [_c("icon-minscreen", {
|
|
167
|
-
staticClass: "tiny-svg-size tiny-dialog-box__resize"
|
|
168
|
-
})], 1) : _vm._e(), _vm.showClose ? _c("button", {
|
|
169
|
-
staticClass: "tiny-dialog-box__headerbtn",
|
|
170
|
-
attrs: {
|
|
171
|
-
"type": "button",
|
|
172
|
-
"aria-label": "Close"
|
|
173
|
-
},
|
|
174
|
-
on: {
|
|
175
|
-
"click": function click($event) {
|
|
176
|
-
return _vm.handleClose("close", $event);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}, [_c("icon-close", {
|
|
180
|
-
staticClass: "tiny-svg-size tiny-dialog-box__close"
|
|
181
|
-
})], 1) : _vm._e()])], 2) : _vm._e(), _c("div", {
|
|
182
|
-
staticClass: "tiny-dialog-box__body"
|
|
183
|
-
}, [_vm._t("default")], 2), _vm.slots.footer ? _c("div", {
|
|
184
|
-
ref: "footer",
|
|
185
|
-
staticClass: "tiny-dialog-box__footer"
|
|
186
|
-
}, [_vm._t("footer", null, {
|
|
187
|
-
"beforeClose": _vm.beforeClose
|
|
188
|
-
})], 2) : _vm._e()]) : _vm._e()])], 1)]);
|
|
81
|
+
var _hoisted_1 = ["data-dialog-box-draggable"];
|
|
82
|
+
var _hoisted_2 = {
|
|
83
|
+
class: "tiny-dialog-box__title"
|
|
189
84
|
};
|
|
190
|
-
var
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
85
|
+
var _hoisted_3 = {
|
|
86
|
+
class: "tiny-dialog-box__btn-tools"
|
|
87
|
+
};
|
|
88
|
+
var _hoisted_4 = {
|
|
89
|
+
class: "tiny-dialog-box__body"
|
|
90
|
+
};
|
|
91
|
+
var _hoisted_5 = {
|
|
92
|
+
key: 1,
|
|
93
|
+
ref: "footer",
|
|
94
|
+
class: "tiny-dialog-box__footer"
|
|
95
|
+
};
|
|
96
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
97
|
+
var _component_icon_fullscreen = resolveComponent("icon-fullscreen");
|
|
98
|
+
var _component_icon_minscreen = resolveComponent("icon-minscreen");
|
|
99
|
+
var _component_icon_close = resolveComponent("icon-close");
|
|
100
|
+
return openBlock(), createBlock(Transition, {
|
|
101
|
+
duration: _ctx.noAnimation ? 0 : void 0,
|
|
102
|
+
name: _ctx.state.animationName,
|
|
103
|
+
onAfterEnter: _ctx.afterEnter,
|
|
104
|
+
onAfterLeave: _ctx.afterLeave,
|
|
105
|
+
persisted: ""
|
|
106
|
+
}, {
|
|
107
|
+
default: withCtx(function() {
|
|
108
|
+
return [withDirectives(createElementVNode(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
class: normalizeClass(["tiny-dialog-box__wrapper", _ctx.dialogClass]),
|
|
112
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(function() {
|
|
113
|
+
return _ctx.handleWrapperClick && _ctx.handleWrapperClick.apply(_ctx, arguments);
|
|
114
|
+
}, ["self"])),
|
|
115
|
+
onMouseup: _cache[5] || (_cache[5] = function() {
|
|
116
|
+
return _ctx.useMouseEventUp && _ctx.useMouseEventUp.apply(_ctx, arguments);
|
|
117
|
+
}),
|
|
118
|
+
onMousedown: _cache[6] || (_cache[6] = function() {
|
|
119
|
+
return _ctx.useMouseEventDown && _ctx.useMouseEventDown.apply(_ctx, arguments);
|
|
120
|
+
})
|
|
121
|
+
},
|
|
122
|
+
[createVNode(Transition, {
|
|
123
|
+
name: _ctx.dialogTransition
|
|
124
|
+
}, {
|
|
125
|
+
default: withCtx(function() {
|
|
126
|
+
return [(_ctx.destroyOnClose ? _ctx.visible : true) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
127
|
+
ref: "dialog",
|
|
128
|
+
class: normalizeClass([[{
|
|
129
|
+
"is-fullscreen": _ctx.state.isFull,
|
|
130
|
+
"is-center": _ctx.center,
|
|
131
|
+
"is-right-slide": _ctx.rightSlide
|
|
132
|
+
}], "tiny-dialog-box"]),
|
|
133
|
+
style: normalizeStyle(_ctx.state.style),
|
|
134
|
+
"data-tag": "tiny-dialog-box",
|
|
135
|
+
"data-dialog-box-draggable": _ctx.draggable,
|
|
136
|
+
key: _ctx.state.key
|
|
137
|
+
}, [_ctx.showHeader ? (openBlock(), createElementBlock(
|
|
138
|
+
"div",
|
|
139
|
+
{
|
|
140
|
+
key: 0,
|
|
141
|
+
ref: "header",
|
|
142
|
+
class: "tiny-dialog-box__header",
|
|
143
|
+
onMousedown: _cache[3] || (_cache[3] = function() {
|
|
144
|
+
return _ctx.handleDrag && _ctx.handleDrag.apply(_ctx, arguments);
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
[renderSlot(_ctx.$slots, "title", {}, function() {
|
|
148
|
+
return [createElementVNode(
|
|
149
|
+
"span",
|
|
150
|
+
_hoisted_2,
|
|
151
|
+
toDisplayString(_ctx.title),
|
|
152
|
+
1
|
|
153
|
+
/* TEXT */
|
|
154
|
+
)];
|
|
155
|
+
}), createElementVNode("div", _hoisted_3, [_ctx.resize && !_ctx.state.isFull ? (openBlock(), createElementBlock("button", {
|
|
156
|
+
key: 0,
|
|
157
|
+
type: "button",
|
|
158
|
+
class: "tiny-dialog-box__headerbtn",
|
|
159
|
+
"aria-label": "Resize",
|
|
160
|
+
onClick: _cache[0] || (_cache[0] = function($event) {
|
|
161
|
+
return _ctx.toggleFullScreen(true);
|
|
162
|
+
})
|
|
163
|
+
}, [createVNode(_component_icon_fullscreen, {
|
|
164
|
+
class: "tiny-svg-size tiny-dialog-box__resize"
|
|
165
|
+
})])) : createCommentVNode("v-if", true), _ctx.resize && _ctx.state.isFull ? (openBlock(), createElementBlock("button", {
|
|
166
|
+
key: 1,
|
|
167
|
+
type: "button",
|
|
168
|
+
class: "tiny-dialog-box__headerbtn",
|
|
169
|
+
"aria-label": "Resize",
|
|
170
|
+
onClick: _cache[1] || (_cache[1] = function($event) {
|
|
171
|
+
return _ctx.toggleFullScreen(false);
|
|
172
|
+
})
|
|
173
|
+
}, [createVNode(_component_icon_minscreen, {
|
|
174
|
+
class: "tiny-svg-size tiny-dialog-box__resize"
|
|
175
|
+
})])) : createCommentVNode("v-if", true), _ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
176
|
+
key: 2,
|
|
177
|
+
type: "button",
|
|
178
|
+
class: "tiny-dialog-box__headerbtn",
|
|
179
|
+
"aria-label": "Close",
|
|
180
|
+
onClick: _cache[2] || (_cache[2] = function($event) {
|
|
181
|
+
return _ctx.handleClose("close", $event);
|
|
182
|
+
})
|
|
183
|
+
}, [createVNode(_component_icon_close, {
|
|
184
|
+
class: "tiny-svg-size tiny-dialog-box__close"
|
|
185
|
+
})])) : createCommentVNode("v-if", true)])],
|
|
186
|
+
544
|
|
187
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
188
|
+
)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")]), _ctx.slots.footer ? (openBlock(), createElementBlock(
|
|
189
|
+
"div",
|
|
190
|
+
_hoisted_5,
|
|
191
|
+
[renderSlot(_ctx.$slots, "footer", {
|
|
192
|
+
beforeClose: _ctx.beforeClose
|
|
193
|
+
})],
|
|
194
|
+
512
|
|
195
|
+
/* NEED_PATCH */
|
|
196
|
+
)) : createCommentVNode("v-if", true)], 14, _hoisted_1)), [[vShow, _ctx.visible]]) : createCommentVNode("v-if", true)];
|
|
197
|
+
}),
|
|
198
|
+
_: 3
|
|
199
|
+
/* FORWARDED */
|
|
200
|
+
}, 8, ["name"])],
|
|
201
|
+
34
|
|
202
|
+
/* CLASS, NEED_HYDRATION */
|
|
203
|
+
), [[vShow, _ctx.visible]])];
|
|
204
|
+
}),
|
|
205
|
+
_: 3
|
|
206
|
+
/* FORWARDED */
|
|
207
|
+
}, 8, ["duration", "name", "onAfterEnter", "onAfterLeave"]);
|
|
197
208
|
}
|
|
198
|
-
var pc = /* @__PURE__ */
|
|
199
|
-
return __component__.exports;
|
|
200
|
-
}();
|
|
209
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
201
210
|
|
|
202
211
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-dialog-box",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.22.0",
|
|
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": "~
|
|
11
|
-
"@opentinyvue/vue-icon": "~
|
|
12
|
-
"@opentinyvue/vue-action-sheet": "~
|
|
10
|
+
"@opentinyvue/vue-common": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-icon": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-action-sheet": "~3.22.0",
|
|
13
13
|
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
14
14
|
"@opentinyvue/vue-theme": "~3.22.0"
|
|
15
15
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -142,5 +142,274 @@ export declare const dialogBoxProps: {
|
|
|
142
142
|
tiny_theme: StringConstructor;
|
|
143
143
|
tiny_chart_theme: ObjectConstructor;
|
|
144
144
|
};
|
|
145
|
-
declare const _default:
|
|
145
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
146
|
+
_constants: {
|
|
147
|
+
type: ObjectConstructor;
|
|
148
|
+
default: () => {
|
|
149
|
+
DIALOG_SLIDER_RIGHT: string;
|
|
150
|
+
DIALOG_FADE: string;
|
|
151
|
+
SELECT_DROPDOWN: string;
|
|
152
|
+
DROPDOWN_MENU: string;
|
|
153
|
+
DIALOG_BOX_CLASS: string;
|
|
154
|
+
PC_SCROLL_LOCK_CLASS: string;
|
|
155
|
+
MOBILE_SCROLL_LOCK_CLASS: string;
|
|
156
|
+
DIALOG_BOX_DATA_TAG: string;
|
|
157
|
+
Mode: string;
|
|
158
|
+
SCROLL_LOCK_CLASS(mode: any): string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
appendToBody: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: () => boolean;
|
|
164
|
+
};
|
|
165
|
+
beforeClose: FunctionConstructor;
|
|
166
|
+
center: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: () => boolean;
|
|
169
|
+
};
|
|
170
|
+
closeOnClickModal: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: () => boolean;
|
|
173
|
+
};
|
|
174
|
+
closeOnPressEscape: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: () => boolean;
|
|
177
|
+
};
|
|
178
|
+
destroyOnClose: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: () => boolean;
|
|
181
|
+
};
|
|
182
|
+
dialogClass: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
default: () => string;
|
|
185
|
+
};
|
|
186
|
+
draggable: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: () => boolean;
|
|
189
|
+
};
|
|
190
|
+
dragOutsideWindow: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: () => boolean;
|
|
193
|
+
};
|
|
194
|
+
fullscreen: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: () => boolean;
|
|
197
|
+
};
|
|
198
|
+
isFormReset: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: () => boolean;
|
|
201
|
+
};
|
|
202
|
+
lockScroll: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
default: () => boolean;
|
|
205
|
+
};
|
|
206
|
+
modal: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: () => boolean;
|
|
209
|
+
};
|
|
210
|
+
modalAppendToBody: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: () => boolean;
|
|
213
|
+
};
|
|
214
|
+
resize: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
default: () => boolean;
|
|
217
|
+
};
|
|
218
|
+
rightSlide: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: () => boolean;
|
|
221
|
+
};
|
|
222
|
+
showClose: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: () => boolean;
|
|
225
|
+
};
|
|
226
|
+
showHeader: {
|
|
227
|
+
type: BooleanConstructor;
|
|
228
|
+
default: () => boolean;
|
|
229
|
+
};
|
|
230
|
+
title: {
|
|
231
|
+
type: StringConstructor;
|
|
232
|
+
default: () => string;
|
|
233
|
+
};
|
|
234
|
+
top: StringConstructor;
|
|
235
|
+
visible: {
|
|
236
|
+
type: BooleanConstructor;
|
|
237
|
+
default: () => boolean;
|
|
238
|
+
};
|
|
239
|
+
width: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
default: () => string;
|
|
242
|
+
};
|
|
243
|
+
maxHeight: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
default: () => string;
|
|
246
|
+
};
|
|
247
|
+
dialogTransition: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
noAnimation: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
255
|
+
customStyle: {
|
|
256
|
+
type: ObjectConstructor;
|
|
257
|
+
default: () => {};
|
|
258
|
+
};
|
|
259
|
+
tiny_mode: StringConstructor;
|
|
260
|
+
tiny_mode_root: BooleanConstructor;
|
|
261
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
262
|
+
tiny_renderless: FunctionConstructor;
|
|
263
|
+
tiny_theme: StringConstructor;
|
|
264
|
+
tiny_chart_theme: ObjectConstructor;
|
|
265
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
266
|
+
[key: string]: any;
|
|
267
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
268
|
+
_constants: {
|
|
269
|
+
type: ObjectConstructor;
|
|
270
|
+
default: () => {
|
|
271
|
+
DIALOG_SLIDER_RIGHT: string;
|
|
272
|
+
DIALOG_FADE: string;
|
|
273
|
+
SELECT_DROPDOWN: string;
|
|
274
|
+
DROPDOWN_MENU: string;
|
|
275
|
+
DIALOG_BOX_CLASS: string;
|
|
276
|
+
PC_SCROLL_LOCK_CLASS: string;
|
|
277
|
+
MOBILE_SCROLL_LOCK_CLASS: string;
|
|
278
|
+
DIALOG_BOX_DATA_TAG: string;
|
|
279
|
+
Mode: string;
|
|
280
|
+
SCROLL_LOCK_CLASS(mode: any): string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
appendToBody: {
|
|
284
|
+
type: BooleanConstructor;
|
|
285
|
+
default: () => boolean;
|
|
286
|
+
};
|
|
287
|
+
beforeClose: FunctionConstructor;
|
|
288
|
+
center: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: () => boolean;
|
|
291
|
+
};
|
|
292
|
+
closeOnClickModal: {
|
|
293
|
+
type: BooleanConstructor;
|
|
294
|
+
default: () => boolean;
|
|
295
|
+
};
|
|
296
|
+
closeOnPressEscape: {
|
|
297
|
+
type: BooleanConstructor;
|
|
298
|
+
default: () => boolean;
|
|
299
|
+
};
|
|
300
|
+
destroyOnClose: {
|
|
301
|
+
type: BooleanConstructor;
|
|
302
|
+
default: () => boolean;
|
|
303
|
+
};
|
|
304
|
+
dialogClass: {
|
|
305
|
+
type: StringConstructor;
|
|
306
|
+
default: () => string;
|
|
307
|
+
};
|
|
308
|
+
draggable: {
|
|
309
|
+
type: BooleanConstructor;
|
|
310
|
+
default: () => boolean;
|
|
311
|
+
};
|
|
312
|
+
dragOutsideWindow: {
|
|
313
|
+
type: BooleanConstructor;
|
|
314
|
+
default: () => boolean;
|
|
315
|
+
};
|
|
316
|
+
fullscreen: {
|
|
317
|
+
type: BooleanConstructor;
|
|
318
|
+
default: () => boolean;
|
|
319
|
+
};
|
|
320
|
+
isFormReset: {
|
|
321
|
+
type: BooleanConstructor;
|
|
322
|
+
default: () => boolean;
|
|
323
|
+
};
|
|
324
|
+
lockScroll: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
default: () => boolean;
|
|
327
|
+
};
|
|
328
|
+
modal: {
|
|
329
|
+
type: BooleanConstructor;
|
|
330
|
+
default: () => boolean;
|
|
331
|
+
};
|
|
332
|
+
modalAppendToBody: {
|
|
333
|
+
type: BooleanConstructor;
|
|
334
|
+
default: () => boolean;
|
|
335
|
+
};
|
|
336
|
+
resize: {
|
|
337
|
+
type: BooleanConstructor;
|
|
338
|
+
default: () => boolean;
|
|
339
|
+
};
|
|
340
|
+
rightSlide: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default: () => boolean;
|
|
343
|
+
};
|
|
344
|
+
showClose: {
|
|
345
|
+
type: BooleanConstructor;
|
|
346
|
+
default: () => boolean;
|
|
347
|
+
};
|
|
348
|
+
showHeader: {
|
|
349
|
+
type: BooleanConstructor;
|
|
350
|
+
default: () => boolean;
|
|
351
|
+
};
|
|
352
|
+
title: {
|
|
353
|
+
type: StringConstructor;
|
|
354
|
+
default: () => string;
|
|
355
|
+
};
|
|
356
|
+
top: StringConstructor;
|
|
357
|
+
visible: {
|
|
358
|
+
type: BooleanConstructor;
|
|
359
|
+
default: () => boolean;
|
|
360
|
+
};
|
|
361
|
+
width: {
|
|
362
|
+
type: StringConstructor;
|
|
363
|
+
default: () => string;
|
|
364
|
+
};
|
|
365
|
+
maxHeight: {
|
|
366
|
+
type: StringConstructor;
|
|
367
|
+
default: () => string;
|
|
368
|
+
};
|
|
369
|
+
dialogTransition: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
default: string;
|
|
372
|
+
};
|
|
373
|
+
noAnimation: {
|
|
374
|
+
type: BooleanConstructor;
|
|
375
|
+
default: boolean;
|
|
376
|
+
};
|
|
377
|
+
customStyle: {
|
|
378
|
+
type: ObjectConstructor;
|
|
379
|
+
default: () => {};
|
|
380
|
+
};
|
|
381
|
+
tiny_mode: StringConstructor;
|
|
382
|
+
tiny_mode_root: BooleanConstructor;
|
|
383
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
384
|
+
tiny_renderless: FunctionConstructor;
|
|
385
|
+
tiny_theme: StringConstructor;
|
|
386
|
+
tiny_chart_theme: ObjectConstructor;
|
|
387
|
+
}>>, {
|
|
388
|
+
width: string;
|
|
389
|
+
resize: boolean;
|
|
390
|
+
title: string;
|
|
391
|
+
fullscreen: boolean;
|
|
392
|
+
visible: boolean;
|
|
393
|
+
center: boolean;
|
|
394
|
+
appendToBody: boolean;
|
|
395
|
+
tiny_mode_root: boolean;
|
|
396
|
+
_constants: Record<string, any>;
|
|
397
|
+
maxHeight: string;
|
|
398
|
+
showClose: boolean;
|
|
399
|
+
showHeader: boolean;
|
|
400
|
+
lockScroll: boolean;
|
|
401
|
+
draggable: boolean;
|
|
402
|
+
closeOnClickModal: boolean;
|
|
403
|
+
closeOnPressEscape: boolean;
|
|
404
|
+
destroyOnClose: boolean;
|
|
405
|
+
dialogClass: string;
|
|
406
|
+
dragOutsideWindow: boolean;
|
|
407
|
+
isFormReset: boolean;
|
|
408
|
+
modal: boolean;
|
|
409
|
+
modalAppendToBody: boolean;
|
|
410
|
+
rightSlide: boolean;
|
|
411
|
+
dialogTransition: string;
|
|
412
|
+
noAnimation: boolean;
|
|
413
|
+
customStyle: Record<string, any>;
|
|
414
|
+
}, {}>;
|
|
146
415
|
export default _default;
|
|
@@ -1,2 +1,120 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
top?: any;
|
|
3
|
+
width?: any;
|
|
4
|
+
resize?: any;
|
|
5
|
+
title?: any;
|
|
6
|
+
fullscreen?: any;
|
|
7
|
+
visible?: any;
|
|
8
|
+
center?: any;
|
|
9
|
+
appendToBody?: any;
|
|
10
|
+
tiny_mode?: any;
|
|
11
|
+
tiny_mode_root?: any;
|
|
12
|
+
tiny_template?: any;
|
|
13
|
+
tiny_renderless?: any;
|
|
14
|
+
_constants?: any;
|
|
15
|
+
tiny_theme?: any;
|
|
16
|
+
tiny_chart_theme?: any;
|
|
17
|
+
maxHeight?: any;
|
|
18
|
+
showClose?: any;
|
|
19
|
+
showHeader?: any;
|
|
20
|
+
lockScroll?: any;
|
|
21
|
+
beforeClose?: any;
|
|
22
|
+
draggable?: any;
|
|
23
|
+
closeOnClickModal?: any;
|
|
24
|
+
closeOnPressEscape?: any;
|
|
25
|
+
destroyOnClose?: any;
|
|
26
|
+
dialogClass?: any;
|
|
27
|
+
isFormReset?: any;
|
|
28
|
+
modal?: any;
|
|
29
|
+
modalAppendToBody?: any;
|
|
30
|
+
rightSlide?: any;
|
|
31
|
+
noAnimation?: any;
|
|
32
|
+
customStyle?: any;
|
|
33
|
+
}>, {
|
|
34
|
+
t: (this: any, path: any, options?: any) => any;
|
|
35
|
+
vm: any;
|
|
36
|
+
f: (props: any, attrs?: {}) => {};
|
|
37
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
38
|
+
d: (props: any) => void;
|
|
39
|
+
dp: (props: any) => void;
|
|
40
|
+
gcls: (key: any) => any;
|
|
41
|
+
m: (...cssClasses: any[]) => string;
|
|
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;
|
|
45
|
+
resize?: any;
|
|
46
|
+
title?: any;
|
|
47
|
+
fullscreen?: any;
|
|
48
|
+
visible?: any;
|
|
49
|
+
center?: any;
|
|
50
|
+
appendToBody?: any;
|
|
51
|
+
tiny_mode?: any;
|
|
52
|
+
tiny_mode_root?: any;
|
|
53
|
+
tiny_template?: any;
|
|
54
|
+
tiny_renderless?: any;
|
|
55
|
+
_constants?: any;
|
|
56
|
+
tiny_theme?: any;
|
|
57
|
+
tiny_chart_theme?: any;
|
|
58
|
+
maxHeight?: any;
|
|
59
|
+
showClose?: any;
|
|
60
|
+
showHeader?: any;
|
|
61
|
+
lockScroll?: any;
|
|
62
|
+
beforeClose?: any;
|
|
63
|
+
draggable?: any;
|
|
64
|
+
closeOnClickModal?: any;
|
|
65
|
+
closeOnPressEscape?: any;
|
|
66
|
+
destroyOnClose?: any;
|
|
67
|
+
dialogClass?: any;
|
|
68
|
+
isFormReset?: any;
|
|
69
|
+
modal?: any;
|
|
70
|
+
modalAppendToBody?: any;
|
|
71
|
+
rightSlide?: any;
|
|
72
|
+
noAnimation?: any;
|
|
73
|
+
customStyle?: any;
|
|
74
|
+
}>>> & {
|
|
75
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
"onDrag-start"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
"onDrag-move"?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
"onDrag-end"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
readonly top?: any;
|
|
89
|
+
readonly width?: any;
|
|
90
|
+
readonly resize?: any;
|
|
91
|
+
readonly title?: any;
|
|
92
|
+
readonly fullscreen?: any;
|
|
93
|
+
readonly visible?: any;
|
|
94
|
+
readonly center?: any;
|
|
95
|
+
readonly appendToBody?: any;
|
|
96
|
+
readonly tiny_mode?: any;
|
|
97
|
+
readonly tiny_mode_root?: any;
|
|
98
|
+
readonly tiny_template?: any;
|
|
99
|
+
readonly tiny_renderless?: any;
|
|
100
|
+
readonly _constants?: any;
|
|
101
|
+
readonly tiny_theme?: any;
|
|
102
|
+
readonly tiny_chart_theme?: any;
|
|
103
|
+
readonly maxHeight?: any;
|
|
104
|
+
readonly showClose?: any;
|
|
105
|
+
readonly showHeader?: any;
|
|
106
|
+
readonly lockScroll?: any;
|
|
107
|
+
readonly beforeClose?: any;
|
|
108
|
+
readonly draggable?: any;
|
|
109
|
+
readonly closeOnClickModal?: any;
|
|
110
|
+
readonly closeOnPressEscape?: any;
|
|
111
|
+
readonly destroyOnClose?: any;
|
|
112
|
+
readonly dialogClass?: any;
|
|
113
|
+
readonly isFormReset?: any;
|
|
114
|
+
readonly modal?: any;
|
|
115
|
+
readonly modalAppendToBody?: any;
|
|
116
|
+
readonly rightSlide?: any;
|
|
117
|
+
readonly noAnimation?: any;
|
|
118
|
+
readonly customStyle?: any;
|
|
119
|
+
}, {}>;
|
|
2
120
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,119 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IDialogBoxApi } from '@opentinyvue/vue-renderless/types/dialog-box.type';
|
|
2
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
3
|
+
top?: any;
|
|
4
|
+
width?: any;
|
|
5
|
+
resize?: any;
|
|
6
|
+
title?: any;
|
|
7
|
+
fullscreen?: any;
|
|
8
|
+
visible?: any;
|
|
9
|
+
center?: any;
|
|
10
|
+
appendToBody?: any;
|
|
11
|
+
tiny_mode?: any;
|
|
12
|
+
tiny_mode_root?: any;
|
|
13
|
+
tiny_template?: any;
|
|
14
|
+
tiny_renderless?: any;
|
|
15
|
+
_constants?: any;
|
|
16
|
+
tiny_theme?: any;
|
|
17
|
+
tiny_chart_theme?: any;
|
|
18
|
+
maxHeight?: any;
|
|
19
|
+
showClose?: any;
|
|
20
|
+
showHeader?: any;
|
|
21
|
+
lockScroll?: any;
|
|
22
|
+
beforeClose?: any;
|
|
23
|
+
draggable?: any;
|
|
24
|
+
closeOnClickModal?: any;
|
|
25
|
+
closeOnPressEscape?: any;
|
|
26
|
+
destroyOnClose?: any;
|
|
27
|
+
dialogClass?: any;
|
|
28
|
+
dragOutsideWindow?: any;
|
|
29
|
+
isFormReset?: any;
|
|
30
|
+
modal?: any;
|
|
31
|
+
modalAppendToBody?: any;
|
|
32
|
+
rightSlide?: any;
|
|
33
|
+
dialogTransition?: any;
|
|
34
|
+
noAnimation?: any;
|
|
35
|
+
customStyle?: any;
|
|
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;
|
|
39
|
+
resize?: any;
|
|
40
|
+
title?: any;
|
|
41
|
+
fullscreen?: any;
|
|
42
|
+
visible?: any;
|
|
43
|
+
center?: any;
|
|
44
|
+
appendToBody?: any;
|
|
45
|
+
tiny_mode?: any;
|
|
46
|
+
tiny_mode_root?: any;
|
|
47
|
+
tiny_template?: any;
|
|
48
|
+
tiny_renderless?: any;
|
|
49
|
+
_constants?: any;
|
|
50
|
+
tiny_theme?: any;
|
|
51
|
+
tiny_chart_theme?: any;
|
|
52
|
+
maxHeight?: any;
|
|
53
|
+
showClose?: any;
|
|
54
|
+
showHeader?: any;
|
|
55
|
+
lockScroll?: any;
|
|
56
|
+
beforeClose?: any;
|
|
57
|
+
draggable?: any;
|
|
58
|
+
closeOnClickModal?: any;
|
|
59
|
+
closeOnPressEscape?: any;
|
|
60
|
+
destroyOnClose?: any;
|
|
61
|
+
dialogClass?: any;
|
|
62
|
+
dragOutsideWindow?: any;
|
|
63
|
+
isFormReset?: any;
|
|
64
|
+
modal?: any;
|
|
65
|
+
modalAppendToBody?: any;
|
|
66
|
+
rightSlide?: any;
|
|
67
|
+
dialogTransition?: any;
|
|
68
|
+
noAnimation?: any;
|
|
69
|
+
customStyle?: any;
|
|
70
|
+
}>>> & {
|
|
71
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
onOpened?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
"onDrag-start"?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
"onDrag-move"?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
"onDrag-end"?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
readonly top?: any;
|
|
86
|
+
readonly width?: any;
|
|
87
|
+
readonly resize?: any;
|
|
88
|
+
readonly title?: any;
|
|
89
|
+
readonly fullscreen?: any;
|
|
90
|
+
readonly visible?: any;
|
|
91
|
+
readonly center?: any;
|
|
92
|
+
readonly appendToBody?: any;
|
|
93
|
+
readonly tiny_mode?: any;
|
|
94
|
+
readonly tiny_mode_root?: any;
|
|
95
|
+
readonly tiny_template?: any;
|
|
96
|
+
readonly tiny_renderless?: any;
|
|
97
|
+
readonly _constants?: any;
|
|
98
|
+
readonly tiny_theme?: any;
|
|
99
|
+
readonly tiny_chart_theme?: any;
|
|
100
|
+
readonly maxHeight?: any;
|
|
101
|
+
readonly showClose?: any;
|
|
102
|
+
readonly showHeader?: any;
|
|
103
|
+
readonly lockScroll?: any;
|
|
104
|
+
readonly beforeClose?: any;
|
|
105
|
+
readonly draggable?: any;
|
|
106
|
+
readonly closeOnClickModal?: any;
|
|
107
|
+
readonly closeOnPressEscape?: any;
|
|
108
|
+
readonly destroyOnClose?: any;
|
|
109
|
+
readonly dialogClass?: any;
|
|
110
|
+
readonly dragOutsideWindow?: any;
|
|
111
|
+
readonly isFormReset?: any;
|
|
112
|
+
readonly modal?: any;
|
|
113
|
+
readonly modalAppendToBody?: any;
|
|
114
|
+
readonly rightSlide?: any;
|
|
115
|
+
readonly dialogTransition?: any;
|
|
116
|
+
readonly noAnimation?: any;
|
|
117
|
+
readonly customStyle?: any;
|
|
118
|
+
}, {}>;
|
|
2
119
|
export default _default;
|