@opentiny/vue-drawer 2.20.0 → 2.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 CHANGED
@@ -2,13 +2,12 @@ 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);
10
9
  }
11
- import { defineComponent, $prefix, $setup, $props, createComponent, appProperties, hooks, setupComponent } from "@opentiny/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix, createComponent, appProperties, hooks, setupComponent } from "@opentiny/vue-common";
12
11
  import PcTemplate from "./pc.js";
13
12
  import MobileFirstTemplate from "./mobile-first.js";
14
13
  var template = function template2(mode) {
@@ -164,7 +163,7 @@ var service = function service2(configs) {
164
163
  });
165
164
  return instance;
166
165
  };
167
- var version = "2.20.0";
166
+ var version = "2.undefined";
168
167
  Drawer.model = {
169
168
  prop: "visible",
170
169
  event: "update:visible"
@@ -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 (moduleIdentifier) {
21
- hook = function hook2(context) {
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, null, null, null);
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 (moduleIdentifier) {
23
- hook = function hook2(context) {
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) {
@@ -221,9 +197,6 @@ var render2 = function render3() {
221
197
  }
222
198
  }) : [_c("tiny-button", {
223
199
  staticClass: "tiny-drawer__cancel-btn",
224
- attrs: {
225
- "plain": ""
226
- },
227
200
  on: {
228
201
  "click": function click($event) {
229
202
  return _vm.handleClose("cancel");
@@ -244,7 +217,7 @@ var render2 = function render3() {
244
217
  };
245
218
  var staticRenderFns = [];
246
219
  var __cssModules = {};
247
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render2, staticRenderFns, false, __vue2_injectStyles, null, null, null);
220
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render2, staticRenderFns, false, __vue2_injectStyles);
248
221
  function __vue2_injectStyles(context) {
249
222
  for (var o in __cssModules) {
250
223
  this[o] = __cssModules[o];
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentiny/vue-drawer",
3
- "version": "2.20.0",
3
+ "version": "2.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
- "@opentiny/vue-button": "~2.20.0",
11
- "@opentiny/vue-tooltip": "~2.20.0",
12
- "@opentiny/vue-common": "~2.20.0",
13
- "@opentiny/vue-renderless": "~3.20.0",
14
- "@opentiny/vue-icon": "~2.20.0",
15
- "@opentiny/vue-theme": "~3.20.0"
10
+ "@opentiny/vue-button": "~2.22.0",
11
+ "@opentiny/vue-tooltip": "~2.22.0",
12
+ "@opentiny/vue-common": "~2.22.0",
13
+ "@opentiny/vue-renderless": "~3.22.0",
14
+ "@opentiny/vue-icon": "~2.22.0",
15
+ "@opentiny/vue-theme": "~3.22.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"