@opentiny/vue-dropdown-item 3.19.0 → 3.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 = "3.19.0";
121
+ var version = "3.21.0";
123
122
  DropdownItem.model = {
124
123
  prop: "modelValue",
125
124
  event: "update:modelValue"
@@ -4,8 +4,7 @@ import { openBlock, createElementBlock, normalizeClass, withModifiers, createEle
4
4
 
5
5
  function _createForOfIteratorHelperLoose(r, e) {
6
6
  var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7
- if (t)
8
- return (t = t.call(r)).next.bind(t);
7
+ if (t) return (t = t.call(r)).next.bind(t);
9
8
  if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
10
9
  t && (r = t);
11
10
  var o = 0;
@@ -17,22 +16,20 @@ function _createForOfIteratorHelperLoose(r, e) {
17
16
  }
18
17
  function _unsupportedIterableToArray(r, a) {
19
18
  if (r) {
20
- if ("string" == typeof r)
21
- return _arrayLikeToArray(r, a);
19
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
22
20
  var t = {}.toString.call(r).slice(8, -1);
23
21
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
24
22
  }
25
23
  }
26
24
  function _arrayLikeToArray(r, a) {
27
25
  (null == a || a > r.length) && (a = r.length);
28
- for (var e = 0, n = Array(a); e < a; e++)
29
- n[e] = r[e];
26
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
30
27
  return n;
31
28
  }
32
29
  var _export_sfc = function _export_sfc2(sfc, props) {
33
30
  var target = sfc.__vccOpts || sfc;
34
31
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
35
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
32
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
36
33
  target[key] = val;
37
34
  }
38
35
  return target;
package/lib/mobile.js CHANGED
@@ -9,8 +9,7 @@ import { resolveComponent, resolveDirective, withDirectives, openBlock, createEl
9
9
 
10
10
  function _createForOfIteratorHelperLoose(r, e) {
11
11
  var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
12
- if (t)
13
- return (t = t.call(r)).next.bind(t);
12
+ if (t) return (t = t.call(r)).next.bind(t);
14
13
  if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
15
14
  t && (r = t);
16
15
  var o = 0;
@@ -22,22 +21,20 @@ function _createForOfIteratorHelperLoose(r, e) {
22
21
  }
23
22
  function _unsupportedIterableToArray(r, a) {
24
23
  if (r) {
25
- if ("string" == typeof r)
26
- return _arrayLikeToArray(r, a);
24
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
27
25
  var t = {}.toString.call(r).slice(8, -1);
28
26
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
29
27
  }
30
28
  }
31
29
  function _arrayLikeToArray(r, a) {
32
30
  (null == a || a > r.length) && (a = r.length);
33
- for (var e = 0, n = Array(a); e < a; e++)
34
- n[e] = r[e];
31
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
35
32
  return n;
36
33
  }
37
34
  var _export_sfc = function _export_sfc2(sfc, props) {
38
35
  var target = sfc.__vccOpts || sfc;
39
36
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
40
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
37
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
41
38
  target[key] = val;
42
39
  }
43
40
  return target;
package/lib/pc.js CHANGED
@@ -7,8 +7,7 @@ import { resolveComponent, resolveDirective, withDirectives, openBlock, createEl
7
7
 
8
8
  function _createForOfIteratorHelperLoose(r, e) {
9
9
  var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
10
- if (t)
11
- return (t = t.call(r)).next.bind(t);
10
+ if (t) return (t = t.call(r)).next.bind(t);
12
11
  if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
13
12
  t && (r = t);
14
13
  var o = 0;
@@ -20,22 +19,20 @@ function _createForOfIteratorHelperLoose(r, e) {
20
19
  }
21
20
  function _unsupportedIterableToArray(r, a) {
22
21
  if (r) {
23
- if ("string" == typeof r)
24
- return _arrayLikeToArray(r, a);
22
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
25
23
  var t = {}.toString.call(r).slice(8, -1);
26
24
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
27
25
  }
28
26
  }
29
27
  function _arrayLikeToArray(r, a) {
30
28
  (null == a || a > r.length) && (a = r.length);
31
- for (var e = 0, n = Array(a); e < a; e++)
32
- n[e] = r[e];
29
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
33
30
  return n;
34
31
  }
35
32
  var _export_sfc = function _export_sfc2(sfc, props) {
36
33
  var target = sfc.__vccOpts || sfc;
37
34
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
38
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
35
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
39
36
  target[key] = val;
40
37
  }
41
38
  return target;
@@ -67,7 +64,8 @@ var _sfc_main = defineComponent({
67
64
  "textField",
68
65
  "tip",
69
66
  "tipPosition",
70
- "effect"
67
+ "effect",
68
+ "isMono"
71
69
  ]),
72
70
  components: {
73
71
  IconLeftWardArrow: iconLeftWardArrow()
@@ -77,7 +75,8 @@ var _sfc_main = defineComponent({
77
75
  props: props2,
78
76
  context,
79
77
  renderless,
80
- api
78
+ api,
79
+ mono: props2.isMono
81
80
  });
82
81
  }
83
82
  });
@@ -135,7 +134,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
134
  key: index,
136
135
  label: item[_ctx.state.textField],
137
136
  "item-data": item,
137
+ _constants: _ctx._constants,
138
138
  icon: item.icon,
139
+ "is-mono": true,
139
140
  disabled: item.disabled,
140
141
  divided: item.divided,
141
142
  tip: item.tip,
@@ -148,7 +149,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
148
149
  }),
149
150
  _: 2
150
151
  /* DYNAMIC */
151
- }, 1032, ["label", "item-data", "icon", "disabled", "divided", "tip", "tip-position"]);
152
+ }, 1032, ["label", "item-data", "_constants", "icon", "disabled", "divided", "tip", "tip-position"]);
152
153
  }),
153
154
  128
154
155
  /* KEYED_FRAGMENT */
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "3.19.0",
4
+ "version": "3.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": "~3.19.0",
12
- "@opentiny/vue-common": "~3.19.0",
13
- "@opentiny/vue-directive": "~3.19.0",
14
- "@opentiny/vue-icon": "~3.19.0",
15
- "@opentiny/vue-popup": "~3.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": "~3.21.0",
12
+ "@opentiny/vue-common": "~3.21.0",
13
+ "@opentiny/vue-directive": "~3.21.0",
14
+ "@opentiny/vue-icon": "~3.21.0",
15
+ "@opentiny/vue-popup": "~3.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": {
@@ -14,7 +14,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
14
14
  level?: any;
15
15
  currentIndex?: any;
16
16
  tooltipContent?: any;
17
- }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened")[], "change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
17
+ }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
18
18
  label?: any;
19
19
  disabled?: any;
20
20
  icon?: any;
@@ -21,7 +21,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
21
21
  d: (props: any) => void;
22
22
  dp: (props: any) => void;
23
23
  gcls: (key: any) => any;
24
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "click" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened")[], "item-click" | "change" | "click" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
24
+ m: (...cssClasses: any[]) => string;
25
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "click" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "item-click" | "change" | "click" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
25
26
  disabled?: any;
26
27
  icon?: any;
27
28
  type?: any;
package/src/pc.vue.d.ts CHANGED
@@ -25,7 +25,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
25
25
  appendToBody?: any;
26
26
  tip?: any;
27
27
  tipPosition?: any;
28
- }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened")[], "item-click" | "change" | "close" | "reset" | "confirm" | "update:modelValue" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
28
+ isMono?: any;
29
+ }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "item-click" | "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
29
30
  label?: any;
30
31
  disabled?: any;
31
32
  divided?: any;
@@ -51,6 +52,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
51
52
  appendToBody?: any;
52
53
  tip?: any;
53
54
  tipPosition?: any;
55
+ isMono?: any;
54
56
  }>>> & {
55
57
  onChange?: ((...args: any[]) => any) | undefined;
56
58
  onClose?: ((...args: any[]) => any) | undefined;
@@ -87,5 +89,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
87
89
  readonly appendToBody?: any;
88
90
  readonly tip?: any;
89
91
  readonly tipPosition?: any;
92
+ readonly isMono?: any;
90
93
  }, {}>;
91
94
  export default _default;