@opentiny/vue-drawer 2.19.1 → 2.21.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 +2 -3
- package/lib/mobile-first.js +3 -27
- package/lib/pc.js +3 -27
- package/package.json +7 -7
- package/src/index.d.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -2,8 +2,7 @@ function _extends() {
|
|
|
2
2
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
3
|
for (var e = 1; e < arguments.length; e++) {
|
|
4
4
|
var t = arguments[e];
|
|
5
|
-
for (var r in t)
|
|
6
|
-
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
5
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
7
6
|
}
|
|
8
7
|
return n;
|
|
9
8
|
}, _extends.apply(null, arguments);
|
|
@@ -164,7 +163,7 @@ var service = function service2(configs) {
|
|
|
164
163
|
});
|
|
165
164
|
return instance;
|
|
166
165
|
};
|
|
167
|
-
var version = "2.
|
|
166
|
+
var version = "2.21.0";
|
|
168
167
|
Drawer.model = {
|
|
169
168
|
prop: "visible",
|
|
170
169
|
event: "update:visible"
|
package/lib/mobile-first.js
CHANGED
|
@@ -10,33 +10,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
10
10
|
options.staticRenderFns = staticRenderFns;
|
|
11
11
|
options._compiled = true;
|
|
12
12
|
}
|
|
13
|
-
if (functionalTemplate) {
|
|
14
|
-
options.functional = true;
|
|
15
|
-
}
|
|
16
|
-
if (scopeId) {
|
|
17
|
-
options._scopeId = "data-v-" + scopeId;
|
|
18
|
-
}
|
|
19
13
|
var hook;
|
|
20
|
-
if (
|
|
21
|
-
hook =
|
|
22
|
-
context = context || // cached call
|
|
23
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
24
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
25
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
26
|
-
context = __VUE_SSR_CONTEXT__;
|
|
27
|
-
}
|
|
28
|
-
if (injectStyles) {
|
|
29
|
-
injectStyles.call(this, context);
|
|
30
|
-
}
|
|
31
|
-
if (context && context._registeredComponents) {
|
|
32
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
options._ssrRegister = hook;
|
|
36
|
-
} else if (injectStyles) {
|
|
37
|
-
hook = shadowMode ? function() {
|
|
38
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
39
|
-
} : injectStyles;
|
|
14
|
+
if (injectStyles) {
|
|
15
|
+
hook = injectStyles;
|
|
40
16
|
}
|
|
41
17
|
if (hook) {
|
|
42
18
|
if (options.functional) {
|
|
@@ -200,7 +176,7 @@ var render = function render2() {
|
|
|
200
176
|
};
|
|
201
177
|
var staticRenderFns = [];
|
|
202
178
|
var __cssModules = {};
|
|
203
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles
|
|
179
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
204
180
|
function __vue2_injectStyles(context) {
|
|
205
181
|
for (var o in __cssModules) {
|
|
206
182
|
this[o] = __cssModules[o];
|
package/lib/pc.js
CHANGED
|
@@ -12,33 +12,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
12
12
|
options.staticRenderFns = staticRenderFns;
|
|
13
13
|
options._compiled = true;
|
|
14
14
|
}
|
|
15
|
-
if (functionalTemplate) {
|
|
16
|
-
options.functional = true;
|
|
17
|
-
}
|
|
18
|
-
if (scopeId) {
|
|
19
|
-
options._scopeId = "data-v-" + scopeId;
|
|
20
|
-
}
|
|
21
15
|
var hook;
|
|
22
|
-
if (
|
|
23
|
-
hook =
|
|
24
|
-
context = context || // cached call
|
|
25
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
26
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
27
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
28
|
-
context = __VUE_SSR_CONTEXT__;
|
|
29
|
-
}
|
|
30
|
-
if (injectStyles) {
|
|
31
|
-
injectStyles.call(this, context);
|
|
32
|
-
}
|
|
33
|
-
if (context && context._registeredComponents) {
|
|
34
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
options._ssrRegister = hook;
|
|
38
|
-
} else if (injectStyles) {
|
|
39
|
-
hook = shadowMode ? function() {
|
|
40
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
41
|
-
} : injectStyles;
|
|
16
|
+
if (injectStyles) {
|
|
17
|
+
hook = injectStyles;
|
|
42
18
|
}
|
|
43
19
|
if (hook) {
|
|
44
20
|
if (options.functional) {
|
|
@@ -244,7 +220,7 @@ var render2 = function render3() {
|
|
|
244
220
|
};
|
|
245
221
|
var staticRenderFns = [];
|
|
246
222
|
var __cssModules = {};
|
|
247
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render2, staticRenderFns, false, __vue2_injectStyles
|
|
223
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render2, staticRenderFns, false, __vue2_injectStyles);
|
|
248
224
|
function __vue2_injectStyles(context) {
|
|
249
225
|
for (var o in __cssModules) {
|
|
250
226
|
this[o] = __cssModules[o];
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-drawer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.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": "~2.
|
|
11
|
-
"@opentiny/vue-tooltip": "~2.
|
|
12
|
-
"@opentiny/vue-common": "~2.
|
|
13
|
-
"@opentiny/vue-renderless": "~3.
|
|
14
|
-
"@opentiny/vue-icon": "~2.
|
|
15
|
-
"@opentiny/vue-theme": "~3.
|
|
10
|
+
"@opentiny/vue-button": "~2.21.0",
|
|
11
|
+
"@opentiny/vue-tooltip": "~2.21.0",
|
|
12
|
+
"@opentiny/vue-common": "~2.21.0",
|
|
13
|
+
"@opentiny/vue-renderless": "~3.21.0",
|
|
14
|
+
"@opentiny/vue-icon": "~2.21.0",
|
|
15
|
+
"@opentiny/vue-theme": "~3.21.0"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"types": "index.d.ts"
|
package/src/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const drawerProps: {
|
|
|
16
16
|
type: BooleanConstructor;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
|
-
customClass: (
|
|
19
|
+
customClass: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
20
20
|
placement: {
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
default: string;
|