@opentiny/vue-drawer 3.15.0 → 3.16.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 +5 -3
- package/lib/pc.js +21 -21
- package/package.json +7 -7
- package/src/index.d.ts +2 -2
- package/src/mobile-first.vue.d.ts +4 -4
- package/src/pc.vue.d.ts +4 -4
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -79,7 +79,7 @@ var _hoisted_3 = {
|
|
|
79
79
|
};
|
|
80
80
|
var _hoisted_4 = {
|
|
81
81
|
key: 0,
|
|
82
|
-
class: "max-w-[80%] pr-4 text-left truncate"
|
|
82
|
+
class: "max-w-[80%] pr-4 text-left truncate text-color-text-primary"
|
|
83
83
|
};
|
|
84
84
|
var _hoisted_5 = {
|
|
85
85
|
class: "flex-1 flex items-center justify-end"
|
|
@@ -139,7 +139,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
139
139
|
"translate-x-0": ["left", "right"].includes(_ctx.placement) && _ctx.state.toggle
|
|
140
140
|
}, _ctx.customClass)),
|
|
141
141
|
style: normalizeStyle({
|
|
142
|
-
width: ["left", "right"].includes(_ctx.placement) ? _ctx.state.computedWidth : null
|
|
142
|
+
width: ["left", "right"].includes(_ctx.placement) ? _ctx.state.computedWidth : null,
|
|
143
|
+
height: ["top", "bottom"].includes(_ctx.placement) && _ctx.dragable && _ctx.state.height ? _ctx.state.height + "px" : null
|
|
143
144
|
})
|
|
144
145
|
},
|
|
145
146
|
[_ctx.dragable ? (openBlock(), createElementBlock(
|
|
@@ -148,7 +149,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
148
149
|
key: 0,
|
|
149
150
|
"data-tag": "drawer-drag-bar",
|
|
150
151
|
ref: "dragBar",
|
|
151
|
-
class: normalizeClass(["h-full
|
|
152
|
+
class: normalizeClass(["absolute", ["left", "right"].includes(_ctx.placement) && "cursor-e-resize h-full top-0 w-2", ["top", "bottom"].includes(_ctx.placement) && "cursor-n-resize w-full h-2 left-0", _ctx.placement === "left" && "-right-1", _ctx.placement === "right" && "-left-1", _ctx.placement === "top" && "-bottom-1", _ctx.placement === "bottom" && "-top-1"])
|
|
152
153
|
},
|
|
153
154
|
null,
|
|
154
155
|
2
|
|
@@ -166,6 +167,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
167
|
)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "header-right", {}, function() {
|
|
167
168
|
return [createVNode(_component_IconClose, {
|
|
168
169
|
"custom-class": "h-5 w-5 cursor-pointer",
|
|
170
|
+
class: "fill-color-icon-primary",
|
|
169
171
|
onClick: _cache[1] || (_cache[1] = function($event) {
|
|
170
172
|
return _ctx.handleClose("close");
|
|
171
173
|
})
|
package/lib/pc.js
CHANGED
|
@@ -73,34 +73,28 @@ var _hoisted_1 = {
|
|
|
73
73
|
class: "tiny-drawer"
|
|
74
74
|
};
|
|
75
75
|
var _hoisted_2 = {
|
|
76
|
-
key: 0,
|
|
77
|
-
"data-tag": "drawer-drag-bar",
|
|
78
|
-
ref: "dragBar",
|
|
79
|
-
class: /* @__PURE__ */ normalizeClass(["tiny-drawer__drag-bar"])
|
|
80
|
-
};
|
|
81
|
-
var _hoisted_3 = {
|
|
82
76
|
class: "tiny-drawer__box"
|
|
83
77
|
};
|
|
84
|
-
var
|
|
78
|
+
var _hoisted_3 = {
|
|
85
79
|
key: 0,
|
|
86
80
|
"data-tag": "drawer-header",
|
|
87
81
|
ref: "header",
|
|
88
82
|
class: "tiny-drawer__header-wrapper"
|
|
89
83
|
};
|
|
90
|
-
var
|
|
84
|
+
var _hoisted_4 = {
|
|
91
85
|
class: "tiny-drawer__header"
|
|
92
86
|
};
|
|
93
|
-
var
|
|
87
|
+
var _hoisted_5 = {
|
|
94
88
|
class: "tiny-drawer__header-left"
|
|
95
89
|
};
|
|
96
|
-
var
|
|
90
|
+
var _hoisted_6 = {
|
|
97
91
|
key: 0,
|
|
98
92
|
class: "tiny-drawer__title"
|
|
99
93
|
};
|
|
100
|
-
var
|
|
94
|
+
var _hoisted_7 = {
|
|
101
95
|
class: "tiny-drawer__header-right"
|
|
102
96
|
};
|
|
103
|
-
var
|
|
97
|
+
var _hoisted_8 = {
|
|
104
98
|
key: 1,
|
|
105
99
|
"data-tag": "drawer-footer",
|
|
106
100
|
ref: "footer",
|
|
@@ -157,22 +151,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
151
|
}, "tiny-drawer-main", _ctx.customClass]),
|
|
158
152
|
style: normalizeStyle({
|
|
159
153
|
width: ["left", "right"].includes(_ctx.placement) ? _ctx.state.computedWidth : null,
|
|
154
|
+
height: ["top", "bottom"].includes(_ctx.placement) && _ctx.dragable && _ctx.state.height ? _ctx.state.height + "px" : null,
|
|
160
155
|
zIndex: _ctx.zIndex
|
|
161
156
|
})
|
|
162
157
|
},
|
|
163
158
|
[_ctx.dragable ? (openBlock(), createElementBlock(
|
|
164
159
|
"div",
|
|
165
|
-
|
|
160
|
+
{
|
|
161
|
+
key: 0,
|
|
162
|
+
"data-tag": "drawer-drag-bar",
|
|
163
|
+
ref: "dragBar",
|
|
164
|
+
class: normalizeClass(["tiny-drawer__drag-bar", ["left", "right"].includes(_ctx.placement) && "p-left-Right", ["top", "bottom"].includes(_ctx.placement) && "p-top-Bottom", _ctx.placement === "left" && "p-left", _ctx.placement === "right" && "p-right", _ctx.placement === "top" && "p-top", _ctx.placement === "bottom" && "p-bottom"])
|
|
165
|
+
},
|
|
166
166
|
null,
|
|
167
|
-
|
|
168
|
-
/*
|
|
169
|
-
)) : createCommentVNode("v-if", true), createElementVNode("div",
|
|
167
|
+
2
|
|
168
|
+
/* CLASS */
|
|
169
|
+
)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_2, [_ctx.showHeader ? (openBlock(), createElementBlock(
|
|
170
170
|
"div",
|
|
171
|
-
|
|
171
|
+
_hoisted_3,
|
|
172
172
|
[renderSlot(_ctx.$slots, "header", {}, function() {
|
|
173
|
-
return [createElementVNode("div",
|
|
173
|
+
return [createElementVNode("div", _hoisted_4, [createElementVNode("div", _hoisted_5, [_ctx.title ? (openBlock(), createElementBlock(
|
|
174
174
|
"div",
|
|
175
|
-
|
|
175
|
+
_hoisted_6,
|
|
176
176
|
toDisplayString(_ctx.title),
|
|
177
177
|
1
|
|
178
178
|
/* TEXT */
|
|
@@ -192,7 +192,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
192
|
},
|
|
193
193
|
16
|
|
194
194
|
/* FULL_PROPS */
|
|
195
|
-
)) : createCommentVNode("v-if", true)]), createElementVNode("div",
|
|
195
|
+
)) : createCommentVNode("v-if", true)]), createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "header-right")])])];
|
|
196
196
|
}), _ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
197
197
|
key: 0,
|
|
198
198
|
type: "button",
|
|
@@ -220,7 +220,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
220
|
/* CLASS */
|
|
221
221
|
), _ctx.showFooter ? (openBlock(), createElementBlock(
|
|
222
222
|
"div",
|
|
223
|
-
|
|
223
|
+
_hoisted_8,
|
|
224
224
|
[renderSlot(_ctx.$slots, "footer", {}, function() {
|
|
225
225
|
return [createVNode(_component_tiny_button, {
|
|
226
226
|
type: "primary",
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-drawer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.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
|
-
"@opentiny/vue-button": "~3.
|
|
11
|
-
"@opentiny/vue-tooltip": "~3.
|
|
12
|
-
"@opentiny/vue-common": "~3.
|
|
13
|
-
"@opentiny/vue-renderless": "~3.
|
|
14
|
-
"@opentiny/vue-icon": "~3.
|
|
15
|
-
"@opentiny/vue-theme": "~3.
|
|
10
|
+
"@opentiny/vue-button": "~3.16.0",
|
|
11
|
+
"@opentiny/vue-tooltip": "~3.16.0",
|
|
12
|
+
"@opentiny/vue-common": "~3.16.0",
|
|
13
|
+
"@opentiny/vue-renderless": "~3.16.0",
|
|
14
|
+
"@opentiny/vue-icon": "~3.16.0",
|
|
15
|
+
"@opentiny/vue-theme": "~3.16.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
125
125
|
tiny_chart_theme: ObjectConstructor;
|
|
126
126
|
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
127
127
|
[key: string]: any;
|
|
128
|
-
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").
|
|
128
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
129
129
|
_constants: {
|
|
130
130
|
type: ObjectConstructor;
|
|
131
131
|
default: () => {
|
|
@@ -192,8 +192,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
192
192
|
_constants: Record<string, any>;
|
|
193
193
|
placement: string;
|
|
194
194
|
zIndex: number;
|
|
195
|
-
visible: boolean;
|
|
196
195
|
mask: boolean;
|
|
196
|
+
visible: boolean;
|
|
197
197
|
showClose: boolean;
|
|
198
198
|
showHeader: boolean;
|
|
199
199
|
showFooter: boolean;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
9
9
|
tiny_chart_theme?: any;
|
|
10
10
|
width?: any;
|
|
11
11
|
placement?: any;
|
|
12
|
-
visible?: any;
|
|
13
12
|
mask?: any;
|
|
13
|
+
visible?: any;
|
|
14
14
|
customClass?: any;
|
|
15
15
|
showHeader?: any;
|
|
16
16
|
showFooter?: any;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
27
27
|
d: (props: any) => void;
|
|
28
28
|
dp: (props: any) => void;
|
|
29
29
|
gcls: (key: any) => any;
|
|
30
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").
|
|
30
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
31
|
title?: any;
|
|
32
32
|
tiny_mode?: any;
|
|
33
33
|
tiny_mode_root?: any;
|
|
@@ -38,8 +38,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
38
38
|
tiny_chart_theme?: any;
|
|
39
39
|
width?: any;
|
|
40
40
|
placement?: any;
|
|
41
|
-
visible?: any;
|
|
42
41
|
mask?: any;
|
|
42
|
+
visible?: any;
|
|
43
43
|
customClass?: any;
|
|
44
44
|
showHeader?: any;
|
|
45
45
|
showFooter?: any;
|
|
@@ -59,8 +59,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
59
59
|
readonly tiny_chart_theme?: any;
|
|
60
60
|
readonly width?: any;
|
|
61
61
|
readonly placement?: any;
|
|
62
|
-
readonly visible?: any;
|
|
63
62
|
readonly mask?: any;
|
|
63
|
+
readonly visible?: any;
|
|
64
64
|
readonly customClass?: any;
|
|
65
65
|
readonly showHeader?: any;
|
|
66
66
|
readonly showFooter?: any;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
10
10
|
width?: any;
|
|
11
11
|
placement?: any;
|
|
12
12
|
zIndex?: any;
|
|
13
|
-
visible?: any;
|
|
14
13
|
mask?: any;
|
|
14
|
+
visible?: any;
|
|
15
15
|
customClass?: any;
|
|
16
16
|
showClose?: any;
|
|
17
17
|
showHeader?: any;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
30
30
|
d: (props: any) => void;
|
|
31
31
|
dp: (props: any) => void;
|
|
32
32
|
gcls: (key: any) => any;
|
|
33
|
-
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").
|
|
33
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
34
34
|
title?: any;
|
|
35
35
|
tiny_mode?: any;
|
|
36
36
|
tiny_mode_root?: any;
|
|
@@ -42,8 +42,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
42
42
|
width?: any;
|
|
43
43
|
placement?: any;
|
|
44
44
|
zIndex?: any;
|
|
45
|
-
visible?: any;
|
|
46
45
|
mask?: any;
|
|
46
|
+
visible?: any;
|
|
47
47
|
customClass?: any;
|
|
48
48
|
showClose?: any;
|
|
49
49
|
showHeader?: any;
|
|
@@ -66,8 +66,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
66
66
|
readonly width?: any;
|
|
67
67
|
readonly placement?: any;
|
|
68
68
|
readonly zIndex?: any;
|
|
69
|
-
readonly visible?: any;
|
|
70
69
|
readonly mask?: any;
|
|
70
|
+
readonly visible?: any;
|
|
71
71
|
readonly customClass?: any;
|
|
72
72
|
readonly showClose?: any;
|
|
73
73
|
readonly showHeader?: any;
|