@opentiny/vue-dropdown-item 3.18.0 → 3.19.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
@@ -28,7 +28,7 @@ var template = function template2(mode) {
28
28
  };
29
29
  var $constants = {
30
30
  ICON_MAP: {
31
- leftWardArrow: "icon-delta-left"
31
+ leftWardArrow: "icon-left-ward-arrow"
32
32
  }
33
33
  };
34
34
  var dropdownItemProps = _extends({}, $props, {
@@ -101,6 +101,10 @@ var dropdownItemProps = _extends({}, $props, {
101
101
  tipPosition: {
102
102
  type: String,
103
103
  default: "right"
104
+ },
105
+ effect: {
106
+ type: String,
107
+ default: "light"
104
108
  }
105
109
  });
106
110
  var DropdownItem = defineComponent({
@@ -115,7 +119,7 @@ var DropdownItem = defineComponent({
115
119
  });
116
120
  }
117
121
  });
118
- var version = "3.18.0";
122
+ var version = "3.19.0";
119
123
  DropdownItem.model = {
120
124
  prop: "modelValue",
121
125
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, $prefix, props, setup } from '@opentiny/vue-common';
2
2
  import { renderless, api } from '@opentiny/vue-renderless/dropdown-item/vue';
3
- import { iconDeltaLeft } from '@opentiny/vue-icon';
3
+ import { iconLeftWardArrow } from '@opentiny/vue-icon';
4
4
  import '@opentiny/vue-theme/dropdown-item/index.css';
5
5
  import { AutoTip } from '@opentiny/vue-directive';
6
6
  import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList, withCtx } from 'vue';
@@ -66,10 +66,11 @@ var _sfc_main = defineComponent({
66
66
  "appendToBody",
67
67
  "textField",
68
68
  "tip",
69
- "tipPosition"
69
+ "tipPosition",
70
+ "effect"
70
71
  ]),
71
72
  components: {
72
- IconDeltaLeft: iconDeltaLeft()
73
+ IconLeftWardArrow: iconLeftWardArrow()
73
74
  },
74
75
  setup: function setup$1(props2, context) {
75
76
  return setup({
@@ -98,12 +99,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98
99
  var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
99
100
  var _directive_auto_tip = resolveDirective("auto-tip");
100
101
  return withDirectives((openBlock(), createElementBlock("li", {
101
- class: normalizeClass(["tiny-dropdown-item tiny-dropdown-menu__item", {
102
- "is-disabled": _ctx.disabled,
103
- "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _ctx.divided,
104
- "tiny-dropdown-item--check-status": _ctx.state.checkedStatus && _ctx.selected,
105
- "has-children": _ctx.itemData.children && _ctx.itemData.children.length
106
- }]),
102
+ class: normalizeClass(["tiny-dropdown-item", "tiny-dropdown-menu__item", _ctx.state.sizeClass, _ctx.disabled ? "is-disabled" : "", _ctx.divided ? "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided" : "", _ctx.state.checkedStatus && _ctx.selected ? "tiny-dropdown-item--check-status" : "", _ctx.itemData.children && _ctx.itemData.children.length ? "has-children" : ""]),
107
103
  ref: "dropdownItem",
108
104
  onClick: _cache[0] || (_cache[0] = withModifiers(function() {
109
105
  return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
@@ -114,7 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
114
110
  tabindex: _ctx.disabled ? null : -1
115
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), {
116
112
  key: 0,
117
- class: "tiny-svg-size"
113
+ class: "tiny-svg-size tiny-dropdown-item__pre-icon"
118
114
  })) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "default", {
119
115
  itemData: _ctx.itemData
120
116
  }, function() {
@@ -159,12 +155,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
155
  ))],
160
156
  2
161
157
  /* CLASS */
162
- )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, {
158
+ )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, _ctx.state.computedTip ? {
163
159
  always: true,
164
- content: _ctx.getTip,
165
- effect: "dark",
160
+ content: _ctx.state.computedTip,
161
+ effect: _ctx.effect,
166
162
  placement: _ctx.tipPosition
167
- }]]);
163
+ } : false]]);
168
164
  }
169
165
  var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
170
166
 
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "3.18.0",
4
+ "version": "3.19.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.18.0",
12
- "@opentiny/vue-common": "~3.18.0",
13
- "@opentiny/vue-directive": "~3.18.0",
14
- "@opentiny/vue-icon": "~3.18.0",
15
- "@opentiny/vue-popup": "~3.18.0",
16
- "@opentiny/vue-renderless": "~3.18.0",
17
- "@opentiny/vue-theme": "~3.18.0",
18
- "@opentiny/vue-theme-mobile": "~3.18.0"
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"
19
19
  },
20
20
  "types": "index.d.ts",
21
21
  "scripts": {
package/src/index.d.ts CHANGED
@@ -78,6 +78,10 @@ export declare const dropdownItemProps: {
78
78
  type: StringConstructor;
79
79
  default: string;
80
80
  };
81
+ effect: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
81
85
  tiny_mode: StringConstructor;
82
86
  tiny_mode_root: BooleanConstructor;
83
87
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
@@ -149,6 +153,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
149
153
  type: StringConstructor;
150
154
  default: string;
151
155
  };
156
+ effect: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
152
160
  tiny_mode: StringConstructor;
153
161
  tiny_mode_root: BooleanConstructor;
154
162
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
@@ -221,6 +229,10 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
221
229
  type: StringConstructor;
222
230
  default: string;
223
231
  };
232
+ effect: {
233
+ type: StringConstructor;
234
+ default: string;
235
+ };
224
236
  tiny_mode: StringConstructor;
225
237
  tiny_mode_root: BooleanConstructor;
226
238
  tiny_template: (ObjectConstructor | FunctionConstructor)[];
@@ -234,6 +246,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
234
246
  selected: boolean;
235
247
  tiny_mode_root: boolean;
236
248
  _constants: Record<string, any>;
249
+ effect: string;
237
250
  multiStage: boolean;
238
251
  options: unknown[];
239
252
  textField: string;
package/src/pc.vue.d.ts CHANGED
@@ -14,6 +14,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
14
14
  _constants?: any;
15
15
  tiny_theme?: any;
16
16
  tiny_chart_theme?: any;
17
+ effect?: any;
17
18
  multiStage?: any;
18
19
  options?: any;
19
20
  textField?: any;
@@ -39,6 +40,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
39
40
  _constants?: any;
40
41
  tiny_theme?: any;
41
42
  tiny_chart_theme?: any;
43
+ effect?: any;
42
44
  multiStage?: any;
43
45
  options?: any;
44
46
  textField?: any;
@@ -74,6 +76,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
74
76
  readonly _constants?: any;
75
77
  readonly tiny_theme?: any;
76
78
  readonly tiny_chart_theme?: any;
79
+ readonly effect?: any;
77
80
  readonly multiStage?: any;
78
81
  readonly options?: any;
79
82
  readonly textField?: any;