@opentinyvue/vue-dropdown-item 3.27.0 → 3.29.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
@@ -97,7 +97,7 @@ var dropdownItemProps = _extends({}, $props, {
97
97
  type: String,
98
98
  default: "right"
99
99
  },
100
- effect: {
100
+ tipEffect: {
101
101
  type: String,
102
102
  default: "light"
103
103
  }
package/lib/pc.js CHANGED
@@ -64,7 +64,7 @@ var _sfc_main = defineComponent({
64
64
  "textField",
65
65
  "tip",
66
66
  "tipPosition",
67
- "effect",
67
+ "tipEffect",
68
68
  "isMono"
69
69
  ]),
70
70
  components: {
@@ -106,7 +106,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
106
106
  onMousedown: _cache[1] || (_cache[1] = withModifiers(function() {
107
107
  }, ["stop"])),
108
108
  "aria-disabled": _ctx.disabled,
109
- tabindex: _ctx.disabled ? null : -1
109
+ tabindex: _ctx.disabled ? null : -1,
110
+ role: "menuitem"
110
111
  }, [createElementVNode("div", _hoisted_2, [_ctx.itemData.children && _ctx.itemData.children.length ? (openBlock(), createElementBlock("span", _hoisted_3, [(openBlock(), createBlock(resolveDynamicComponent(_ctx.state.getIcon)))])) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_4, [_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
111
112
  key: 0,
112
113
  class: "tiny-svg-size tiny-dropdown-item__pre-icon"
@@ -140,7 +141,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
140
141
  disabled: item.disabled,
141
142
  divided: item.divided,
142
143
  tip: item.tip,
143
- "tip-position": item.tipPosition
144
+ "tip-position": item.tipPosition,
145
+ "tip-effect": item.tipEffect
144
146
  }, {
145
147
  default: withCtx(function() {
146
148
  return [renderSlot(_ctx.$slots, "default", {
@@ -149,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
149
151
  }),
150
152
  _: 2
151
153
  /* DYNAMIC */
152
- }, 1032, ["label", "item-data", "_constants", "icon", "disabled", "divided", "tip", "tip-position"]);
154
+ }, 1032, ["label", "item-data", "_constants", "icon", "disabled", "divided", "tip", "tip-position", "tip-effect"]);
153
155
  }),
154
156
  128
155
157
  /* KEYED_FRAGMENT */
@@ -159,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
161
  )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, _ctx.state.computedTip ? {
160
162
  always: true,
161
163
  content: _ctx.state.computedTip,
162
- effect: _ctx.effect,
164
+ effect: _ctx.tipEffect,
163
165
  placement: _ctx.tipPosition
164
166
  } : false]]);
165
167
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "3.27.0",
4
+ "version": "3.29.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
- "@opentinyvue/vue-common": "~3.27.0",
12
- "@opentinyvue/vue-directive": "~3.27.0",
13
- "@opentinyvue/vue-icon": "~3.27.0",
14
- "@opentinyvue/vue-renderless": "~3.27.0",
15
- "@opentinyvue/vue-theme": "~3.27.0"
11
+ "@opentinyvue/vue-common": "~3.29.0",
12
+ "@opentinyvue/vue-directive": "~3.29.0",
13
+ "@opentinyvue/vue-icon": "~3.29.0",
14
+ "@opentinyvue/vue-renderless": "~3.29.0",
15
+ "@opentinyvue/vue-theme": "~3.29.0"
16
16
  },
17
17
  "types": "index.d.ts",
18
18
  "scripts": {
package/src/index.d.ts CHANGED
@@ -78,7 +78,7 @@ export declare const dropdownItemProps: {
78
78
  type: StringConstructor;
79
79
  default: string;
80
80
  };
81
- effect: {
81
+ tipEffect: {
82
82
  type: StringConstructor;
83
83
  default: string;
84
84
  };
@@ -154,7 +154,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
154
154
  type: StringConstructor;
155
155
  default: string;
156
156
  };
157
- effect: {
157
+ tipEffect: {
158
158
  type: StringConstructor;
159
159
  default: string;
160
160
  };
@@ -231,7 +231,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
231
231
  type: StringConstructor;
232
232
  default: string;
233
233
  };
234
- effect: {
234
+ tipEffect: {
235
235
  type: StringConstructor;
236
236
  default: string;
237
237
  };
@@ -251,7 +251,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
251
251
  appendToBody: boolean;
252
252
  tiny_mode_root: boolean;
253
253
  _constants: Record<string, any>;
254
- effect: string;
255
254
  multiStage: boolean;
256
255
  textField: string;
257
256
  itemData: string | Record<string, any>;
@@ -260,5 +259,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
260
259
  tooltipContent: string;
261
260
  tip: string | Function;
262
261
  tipPosition: string;
262
+ tipEffect: string;
263
263
  }, {}>;
264
264
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -17,7 +17,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
17
17
  tiny_theme?: any;
18
18
  tiny_chart_theme?: any;
19
19
  tiny_mcp_config?: any;
20
- effect?: any;
21
20
  multiStage?: any;
22
21
  textField?: any;
23
22
  itemData?: any;
@@ -26,6 +25,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
26
25
  currentIndex?: any;
27
26
  tip?: any;
28
27
  tipPosition?: any;
28
+ tipEffect?: any;
29
29
  isMono?: any;
30
30
  }>, 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<{
31
31
  label?: any;
@@ -45,7 +45,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
45
45
  tiny_theme?: any;
46
46
  tiny_chart_theme?: any;
47
47
  tiny_mcp_config?: any;
48
- effect?: any;
49
48
  multiStage?: any;
50
49
  textField?: any;
51
50
  itemData?: any;
@@ -54,6 +53,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
54
53
  currentIndex?: any;
55
54
  tip?: any;
56
55
  tipPosition?: any;
56
+ tipEffect?: any;
57
57
  isMono?: any;
58
58
  }>>> & {
59
59
  onChange?: ((...args: any[]) => any) | undefined;
@@ -83,7 +83,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
83
83
  readonly tiny_theme?: any;
84
84
  readonly tiny_chart_theme?: any;
85
85
  readonly tiny_mcp_config?: any;
86
- readonly effect?: any;
87
86
  readonly multiStage?: any;
88
87
  readonly textField?: any;
89
88
  readonly itemData?: any;
@@ -92,6 +91,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
92
91
  readonly currentIndex?: any;
93
92
  readonly tip?: any;
94
93
  readonly tipPosition?: any;
94
+ readonly tipEffect?: any;
95
95
  readonly isMono?: any;
96
96
  }, {}>;
97
97
  export default _default;