@opentiny/vue-dropdown-item 2.19.0 → 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 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);
@@ -119,7 +118,7 @@ var DropdownItem = defineComponent({
119
118
  });
120
119
  }
121
120
  });
122
- var version = "2.19.0";
121
+ var version = "2.21.0";
123
122
  DropdownItem.model = {
124
123
  prop: "modelValue",
125
124
  event: "update:modelValue"
@@ -8,33 +8,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
8
8
  options.staticRenderFns = staticRenderFns;
9
9
  options._compiled = true;
10
10
  }
11
- if (functionalTemplate) {
12
- options.functional = true;
13
- }
14
- if (scopeId) {
15
- options._scopeId = "data-v-" + scopeId;
16
- }
17
11
  var hook;
18
- if (moduleIdentifier) {
19
- hook = function hook2(context) {
20
- context = context || // cached call
21
- this.$vnode && this.$vnode.ssrContext || // stateful
22
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
23
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
24
- context = __VUE_SSR_CONTEXT__;
25
- }
26
- if (injectStyles) {
27
- injectStyles.call(this, context);
28
- }
29
- if (context && context._registeredComponents) {
30
- context._registeredComponents.add(moduleIdentifier);
31
- }
32
- };
33
- options._ssrRegister = hook;
34
- } else if (injectStyles) {
35
- hook = shadowMode ? function() {
36
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
37
- } : injectStyles;
12
+ if (injectStyles) {
13
+ hook = injectStyles;
38
14
  }
39
15
  if (hook) {
40
16
  if (options.functional) {
@@ -101,7 +77,7 @@ var render = function render2() {
101
77
  };
102
78
  var staticRenderFns = [];
103
79
  var __cssModules = {};
104
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
80
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
105
81
  function __vue2_injectStyles(context) {
106
82
  for (var o in __cssModules) {
107
83
  this[o] = __cssModules[o];
package/lib/mobile.js CHANGED
@@ -13,33 +13,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
13
13
  options.staticRenderFns = staticRenderFns;
14
14
  options._compiled = true;
15
15
  }
16
- if (functionalTemplate) {
17
- options.functional = true;
18
- }
19
- if (scopeId) {
20
- options._scopeId = "data-v-" + scopeId;
21
- }
22
16
  var hook;
23
- if (moduleIdentifier) {
24
- hook = function hook2(context) {
25
- context = context || // cached call
26
- this.$vnode && this.$vnode.ssrContext || // stateful
27
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
28
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
29
- context = __VUE_SSR_CONTEXT__;
30
- }
31
- if (injectStyles) {
32
- injectStyles.call(this, context);
33
- }
34
- if (context && context._registeredComponents) {
35
- context._registeredComponents.add(moduleIdentifier);
36
- }
37
- };
38
- options._ssrRegister = hook;
39
- } else if (injectStyles) {
40
- hook = shadowMode ? function() {
41
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
42
- } : injectStyles;
17
+ if (injectStyles) {
18
+ hook = injectStyles;
43
19
  }
44
20
  if (hook) {
45
21
  if (options.functional) {
@@ -206,7 +182,7 @@ var render = function render2() {
206
182
  };
207
183
  var staticRenderFns = [];
208
184
  var __cssModules = {};
209
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
185
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
210
186
  function __vue2_injectStyles(context) {
211
187
  for (var o in __cssModules) {
212
188
  this[o] = __cssModules[o];
package/lib/pc.js CHANGED
@@ -11,33 +11,9 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
11
11
  options.staticRenderFns = staticRenderFns;
12
12
  options._compiled = true;
13
13
  }
14
- if (functionalTemplate) {
15
- options.functional = true;
16
- }
17
- if (scopeId) {
18
- options._scopeId = "data-v-" + scopeId;
19
- }
20
14
  var hook;
21
- if (moduleIdentifier) {
22
- hook = function hook2(context) {
23
- context = context || // cached call
24
- this.$vnode && this.$vnode.ssrContext || // stateful
25
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
26
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
27
- context = __VUE_SSR_CONTEXT__;
28
- }
29
- if (injectStyles) {
30
- injectStyles.call(this, context);
31
- }
32
- if (context && context._registeredComponents) {
33
- context._registeredComponents.add(moduleIdentifier);
34
- }
35
- };
36
- options._ssrRegister = hook;
37
- } else if (injectStyles) {
38
- hook = shadowMode ? function() {
39
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
40
- } : injectStyles;
15
+ if (injectStyles) {
16
+ hook = injectStyles;
41
17
  }
42
18
  if (hook) {
43
19
  if (options.functional) {
@@ -84,7 +60,8 @@ var __vue2_script = defineComponent({
84
60
  "textField",
85
61
  "tip",
86
62
  "tipPosition",
87
- "effect"
63
+ "effect",
64
+ "isMono"
88
65
  ]),
89
66
  components: {
90
67
  IconLeftWardArrow: iconLeftWardArrow()
@@ -94,7 +71,8 @@ var __vue2_script = defineComponent({
94
71
  props: props2,
95
72
  context,
96
73
  renderless,
97
- api
74
+ api,
75
+ mono: props2.isMono
98
76
  });
99
77
  }
100
78
  });
@@ -154,7 +132,9 @@ var render = function render2() {
154
132
  attrs: {
155
133
  "label": item[_vm.state.textField],
156
134
  "item-data": item,
135
+ "_constants": _vm._constants,
157
136
  "icon": item.icon,
137
+ "is-mono": true,
158
138
  "disabled": item.disabled,
159
139
  "divided": item.divided,
160
140
  "tip": item.tip,
@@ -167,7 +147,7 @@ var render = function render2() {
167
147
  };
168
148
  var staticRenderFns = [];
169
149
  var __cssModules = {};
170
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
150
+ var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
171
151
  function __vue2_injectStyles(context) {
172
152
  for (var o in __cssModules) {
173
153
  this[o] = __cssModules[o];
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "2.19.0",
4
+ "version": "2.21.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentiny/vue-button": "~2.19.0",
12
- "@opentiny/vue-common": "~2.19.0",
13
- "@opentiny/vue-directive": "~2.19.0",
14
- "@opentiny/vue-icon": "~2.19.0",
15
- "@opentiny/vue-popup": "~2.19.0",
16
- "@opentiny/vue-renderless": "~3.19.0",
17
- "@opentiny/vue-theme": "~3.19.0",
18
- "@opentiny/vue-theme-mobile": "~3.19.0"
11
+ "@opentiny/vue-button": "~2.21.0",
12
+ "@opentiny/vue-common": "~2.21.0",
13
+ "@opentiny/vue-directive": "~2.21.0",
14
+ "@opentiny/vue-icon": "~2.21.0",
15
+ "@opentiny/vue-popup": "~2.21.0",
16
+ "@opentiny/vue-renderless": "~3.21.0",
17
+ "@opentiny/vue-theme": "~3.21.0",
18
+ "@opentiny/vue-theme-mobile": "~3.21.0"
19
19
  },
20
20
  "types": "index.d.ts",
21
21
  "scripts": {