@opentiny/vue-dropdown-item 3.19.0 → 3.20.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
@@ -119,7 +119,7 @@ var DropdownItem = defineComponent({
119
119
  });
120
120
  }
121
121
  });
122
- var version = "3.19.0";
122
+ var version = "3.20.0";
123
123
  DropdownItem.model = {
124
124
  prop: "modelValue",
125
125
  event: "update:modelValue"
@@ -32,7 +32,7 @@ function _arrayLikeToArray(r, a) {
32
32
  var _export_sfc = function _export_sfc2(sfc, props) {
33
33
  var target = sfc.__vccOpts || sfc;
34
34
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
35
- 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];
36
36
  target[key] = val;
37
37
  }
38
38
  return target;
package/lib/mobile.js CHANGED
@@ -37,7 +37,7 @@ function _arrayLikeToArray(r, a) {
37
37
  var _export_sfc = function _export_sfc2(sfc, props) {
38
38
  var target = sfc.__vccOpts || sfc;
39
39
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
40
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
40
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
41
41
  target[key] = val;
42
42
  }
43
43
  return target;
package/lib/pc.js CHANGED
@@ -35,7 +35,7 @@ function _arrayLikeToArray(r, a) {
35
35
  var _export_sfc = function _export_sfc2(sfc, props) {
36
36
  var target = sfc.__vccOpts || sfc;
37
37
  for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
38
- var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1];
38
+ var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
39
39
  target[key] = val;
40
40
  }
41
41
  return target;
@@ -67,7 +67,8 @@ var _sfc_main = defineComponent({
67
67
  "textField",
68
68
  "tip",
69
69
  "tipPosition",
70
- "effect"
70
+ "effect",
71
+ "isMono"
71
72
  ]),
72
73
  components: {
73
74
  IconLeftWardArrow: iconLeftWardArrow()
@@ -77,7 +78,8 @@ var _sfc_main = defineComponent({
77
78
  props: props2,
78
79
  context,
79
80
  renderless,
80
- api
81
+ api,
82
+ mono: props2.isMono
81
83
  });
82
84
  }
83
85
  });
@@ -135,7 +137,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
135
137
  key: index,
136
138
  label: item[_ctx.state.textField],
137
139
  "item-data": item,
140
+ _constants: _ctx._constants,
138
141
  icon: item.icon,
142
+ "is-mono": true,
139
143
  disabled: item.disabled,
140
144
  divided: item.divided,
141
145
  tip: item.tip,
@@ -148,7 +152,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
148
152
  }),
149
153
  _: 2
150
154
  /* DYNAMIC */
151
- }, 1032, ["label", "item-data", "icon", "disabled", "divided", "tip", "tip-position"]);
155
+ }, 1032, ["label", "item-data", "_constants", "icon", "disabled", "divided", "tip", "tip-position"]);
152
156
  }),
153
157
  128
154
158
  /* 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.20.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.20.0",
12
+ "@opentiny/vue-common": "~3.20.0",
13
+ "@opentiny/vue-directive": "~3.20.0",
14
+ "@opentiny/vue-icon": "~3.20.0",
15
+ "@opentiny/vue-popup": "~3.20.0",
16
+ "@opentiny/vue-renderless": "~3.20.0",
17
+ "@opentiny/vue-theme": "~3.20.0",
18
+ "@opentiny/vue-theme-mobile": "~3.20.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;