@opentiny/vue-drawer 3.11.0 → 3.13.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 +5 -3
- package/lib/pc.js +2 -2
- package/package.json +4 -4
- package/src/mobile-first.vue.d.ts +0 -1
- package/src/pc.vue.d.ts +0 -1
package/lib/index.js
CHANGED
|
@@ -16,10 +16,12 @@ import { $prefix, $props, $setup } from "@opentiny/vue-common";
|
|
|
16
16
|
import PcTemplate from "./pc.js";
|
|
17
17
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
18
18
|
var template = function template2(mode) {
|
|
19
|
-
|
|
19
|
+
var _process$env;
|
|
20
|
+
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
21
|
+
if ("pc" === (tinyMode || mode)) {
|
|
20
22
|
return PcTemplate;
|
|
21
23
|
}
|
|
22
|
-
if ("mobile-first" === (
|
|
24
|
+
if ("mobile-first" === (tinyMode || mode)) {
|
|
23
25
|
return MobileFirstTemplate;
|
|
24
26
|
}
|
|
25
27
|
return PcTemplate;
|
|
@@ -97,7 +99,7 @@ var Drawer = {
|
|
|
97
99
|
});
|
|
98
100
|
}
|
|
99
101
|
};
|
|
100
|
-
var version = "3.
|
|
102
|
+
var version = "3.13.0";
|
|
101
103
|
Drawer.model = {
|
|
102
104
|
prop: "modelValue",
|
|
103
105
|
event: "update:modelValue"
|
package/lib/pc.js
CHANGED
|
@@ -129,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
129
|
_: 1
|
|
130
130
|
/* STABLE */
|
|
131
131
|
}), createVNode(Transition, {
|
|
132
|
-
name: "drawer-
|
|
132
|
+
name: "drawer-slide-" + $props.placement,
|
|
133
133
|
persisted: ""
|
|
134
134
|
}, {
|
|
135
135
|
default: withCtx(function() {
|
|
@@ -234,7 +234,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
234
234
|
}),
|
|
235
235
|
_: 3
|
|
236
236
|
/* FORWARDED */
|
|
237
|
-
})]);
|
|
237
|
+
}, 8, ["name"])]);
|
|
238
238
|
}
|
|
239
239
|
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
240
240
|
export {
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-drawer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.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-common": "~3.
|
|
12
|
-
"@opentiny/vue-renderless": "~3.
|
|
10
|
+
"@opentiny/vue-button": "~3.13.0",
|
|
11
|
+
"@opentiny/vue-common": "~3.13.0",
|
|
12
|
+
"@opentiny/vue-renderless": "~3.13.0"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"types": "index.d.ts"
|
|
@@ -26,7 +26,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
26
26
|
d: (props: any) => void;
|
|
27
27
|
dp: (props: any) => void;
|
|
28
28
|
gcls: (key: any) => any;
|
|
29
|
-
m: (...cssClasses: any[]) => string;
|
|
30
29
|
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
30
|
title?: any;
|
|
32
31
|
tiny_mode?: any;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
28
28
|
d: (props: any) => void;
|
|
29
29
|
dp: (props: any) => void;
|
|
30
30
|
gcls: (key: any) => any;
|
|
31
|
-
m: (...cssClasses: any[]) => string;
|
|
32
31
|
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
33
32
|
title?: any;
|
|
34
33
|
tiny_mode?: any;
|