@opentiny/vue-dropdown-item 3.18.1 → 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, {
@@ -119,7 +119,7 @@ var DropdownItem = defineComponent({
119
119
  });
120
120
  }
121
121
  });
122
- var version = "3.undefined";
122
+ var version = "3.19.0";
123
123
  DropdownItem.model = {
124
124
  prop: "modelValue",
125
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';
@@ -70,7 +70,7 @@ var _sfc_main = defineComponent({
70
70
  "effect"
71
71
  ]),
72
72
  components: {
73
- IconDeltaLeft: iconDeltaLeft()
73
+ IconLeftWardArrow: iconLeftWardArrow()
74
74
  },
75
75
  setup: function setup$1(props2, context) {
76
76
  return setup({
@@ -99,12 +99,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
99
99
  var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
100
100
  var _directive_auto_tip = resolveDirective("auto-tip");
101
101
  return withDirectives((openBlock(), createElementBlock("li", {
102
- class: normalizeClass(["tiny-dropdown-item tiny-dropdown-menu__item", {
103
- "is-disabled": _ctx.disabled,
104
- "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _ctx.divided,
105
- "tiny-dropdown-item--check-status": _ctx.state.checkedStatus && _ctx.selected,
106
- "has-children": _ctx.itemData.children && _ctx.itemData.children.length
107
- }]),
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" : ""]),
108
103
  ref: "dropdownItem",
109
104
  onClick: _cache[0] || (_cache[0] = withModifiers(function() {
110
105
  return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
@@ -115,7 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
110
  tabindex: _ctx.disabled ? null : -1
116
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), {
117
112
  key: 0,
118
- class: "tiny-svg-size"
113
+ class: "tiny-svg-size tiny-dropdown-item__pre-icon"
119
114
  })) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "default", {
120
115
  itemData: _ctx.itemData
121
116
  }, function() {
@@ -160,9 +155,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
160
155
  ))],
161
156
  2
162
157
  /* CLASS */
163
- )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, _ctx.getTip ? {
158
+ )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, _ctx.state.computedTip ? {
164
159
  always: true,
165
- content: _ctx.getTip,
160
+ content: _ctx.state.computedTip,
166
161
  effect: _ctx.effect,
167
162
  placement: _ctx.tipPosition
168
163
  } : false]]);
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.1",
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
@@ -23,11 +23,11 @@ export declare const dropdownItemProps: {
23
23
  };
24
24
  };
25
25
  };
26
- icon: (ObjectConstructor | StringConstructor)[];
26
+ icon: (StringConstructor | ObjectConstructor)[];
27
27
  disabled: BooleanConstructor;
28
28
  divided: BooleanConstructor;
29
29
  itemData: {
30
- type: (ObjectConstructor | StringConstructor)[];
30
+ type: (StringConstructor | ObjectConstructor)[];
31
31
  default: string;
32
32
  };
33
33
  title: StringConstructor;
@@ -98,11 +98,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
98
98
  };
99
99
  };
100
100
  };
101
- icon: (ObjectConstructor | StringConstructor)[];
101
+ icon: (StringConstructor | ObjectConstructor)[];
102
102
  disabled: BooleanConstructor;
103
103
  divided: BooleanConstructor;
104
104
  itemData: {
105
- type: (ObjectConstructor | StringConstructor)[];
105
+ type: (StringConstructor | ObjectConstructor)[];
106
106
  default: string;
107
107
  };
108
108
  title: StringConstructor;
@@ -174,11 +174,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
174
174
  };
175
175
  };
176
176
  };
177
- icon: (ObjectConstructor | StringConstructor)[];
177
+ icon: (StringConstructor | ObjectConstructor)[];
178
178
  disabled: BooleanConstructor;
179
179
  divided: BooleanConstructor;
180
180
  itemData: {
181
- type: (ObjectConstructor | StringConstructor)[];
181
+ type: (StringConstructor | ObjectConstructor)[];
182
182
  default: string;
183
183
  };
184
184
  title: StringConstructor;
@@ -240,21 +240,21 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
240
240
  tiny_theme: StringConstructor;
241
241
  tiny_chart_theme: ObjectConstructor;
242
242
  }>>, {
243
+ disabled: boolean;
244
+ divided: boolean;
243
245
  type: string;
244
246
  selected: boolean;
245
- disabled: boolean;
246
247
  tiny_mode_root: boolean;
247
248
  _constants: Record<string, any>;
248
249
  effect: string;
249
- appendToBody: boolean;
250
- itemData: string | Record<string, any>;
251
- options: unknown[];
252
250
  multiStage: boolean;
251
+ options: unknown[];
252
+ textField: string;
253
+ itemData: string | Record<string, any>;
254
+ selectedField: string;
253
255
  currentIndex: number;
254
256
  tooltipContent: string;
255
- divided: boolean;
256
- selectedField: string;
257
- textField: string;
257
+ appendToBody: boolean;
258
258
  tip: string | Function;
259
259
  tipPosition: string;
260
260
  }, {}>;
@@ -1,7 +1,8 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
2
  label?: any;
3
- selected?: any;
4
3
  disabled?: any;
4
+ icon?: any;
5
+ selected?: any;
5
6
  tiny_mode?: any;
6
7
  tiny_mode_root?: any;
7
8
  tiny_template?: any;
@@ -10,14 +11,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
10
11
  tiny_theme?: any;
11
12
  tiny_chart_theme?: any;
12
13
  itemData?: any;
13
- icon?: any;
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, ("update:modelValue" | "change" | "closed" | "open" | "opened" | "close" | "confirm" | "reset")[], "update:modelValue" | "change" | "closed" | "open" | "opened" | "close" | "confirm" | "reset", 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" | "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<{
18
18
  label?: any;
19
- selected?: any;
20
19
  disabled?: any;
20
+ icon?: any;
21
+ selected?: any;
21
22
  tiny_mode?: any;
22
23
  tiny_mode_root?: any;
23
24
  tiny_template?: any;
@@ -26,7 +27,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
26
27
  tiny_theme?: any;
27
28
  tiny_chart_theme?: any;
28
29
  itemData?: any;
29
- icon?: any;
30
30
  level?: any;
31
31
  currentIndex?: any;
32
32
  tooltipContent?: any;
@@ -35,14 +35,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
35
35
  onClose?: ((...args: any[]) => any) | undefined;
36
36
  onReset?: ((...args: any[]) => any) | undefined;
37
37
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
- onClosed?: ((...args: any[]) => any) | undefined;
38
+ onConfirm?: ((...args: any[]) => any) | undefined;
39
39
  onOpen?: ((...args: any[]) => any) | undefined;
40
+ onClosed?: ((...args: any[]) => any) | undefined;
40
41
  onOpened?: ((...args: any[]) => any) | undefined;
41
- onConfirm?: ((...args: any[]) => any) | undefined;
42
42
  }, {
43
43
  readonly label?: any;
44
- readonly selected?: any;
45
44
  readonly disabled?: any;
45
+ readonly icon?: any;
46
+ readonly selected?: any;
46
47
  readonly tiny_mode?: any;
47
48
  readonly tiny_mode_root?: any;
48
49
  readonly tiny_template?: any;
@@ -51,7 +52,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
51
52
  readonly tiny_theme?: any;
52
53
  readonly tiny_chart_theme?: any;
53
54
  readonly itemData?: any;
54
- readonly icon?: any;
55
55
  readonly level?: any;
56
56
  readonly currentIndex?: any;
57
57
  readonly tooltipContent?: any;
@@ -1,7 +1,8 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
+ disabled?: any;
3
+ icon?: any;
2
4
  type?: any;
3
5
  title?: any;
4
- disabled?: any;
5
6
  tiny_mode?: any;
6
7
  tiny_mode_root?: any;
7
8
  tiny_template?: any;
@@ -10,9 +11,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
10
11
  tiny_theme?: any;
11
12
  tiny_chart_theme?: any;
12
13
  modelValue?: any;
13
- icon?: any;
14
- titleClass?: any;
15
14
  options?: any;
15
+ titleClass?: any;
16
16
  }>, {
17
17
  t: (this: any, path: any, options?: any) => any;
18
18
  vm: any;
@@ -21,10 +21,11 @@ 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, ("update:modelValue" | "change" | "closed" | "open" | "opened" | "close" | "confirm" | "reset" | "item-click" | "click")[], "update:modelValue" | "change" | "closed" | "open" | "opened" | "close" | "confirm" | "reset" | "item-click" | "click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
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<{
25
+ disabled?: any;
26
+ icon?: any;
25
27
  type?: any;
26
28
  title?: any;
27
- disabled?: any;
28
29
  tiny_mode?: any;
29
30
  tiny_mode_root?: any;
30
31
  tiny_template?: any;
@@ -33,24 +34,24 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
33
34
  tiny_theme?: any;
34
35
  tiny_chart_theme?: any;
35
36
  modelValue?: any;
36
- icon?: any;
37
- titleClass?: any;
38
37
  options?: any;
38
+ titleClass?: any;
39
39
  }>>> & {
40
40
  onChange?: ((...args: any[]) => any) | undefined;
41
+ onClick?: ((...args: any[]) => any) | undefined;
41
42
  onClose?: ((...args: any[]) => any) | undefined;
42
43
  onReset?: ((...args: any[]) => any) | undefined;
43
- onClick?: ((...args: any[]) => any) | undefined;
44
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
44
45
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
45
- onClosed?: ((...args: any[]) => any) | undefined;
46
+ onConfirm?: ((...args: any[]) => any) | undefined;
46
47
  onOpen?: ((...args: any[]) => any) | undefined;
48
+ onClosed?: ((...args: any[]) => any) | undefined;
47
49
  onOpened?: ((...args: any[]) => any) | undefined;
48
- onConfirm?: ((...args: any[]) => any) | undefined;
49
- "onItem-click"?: ((...args: any[]) => any) | undefined;
50
50
  }, {
51
+ readonly disabled?: any;
52
+ readonly icon?: any;
51
53
  readonly type?: any;
52
54
  readonly title?: any;
53
- readonly disabled?: any;
54
55
  readonly tiny_mode?: any;
55
56
  readonly tiny_mode_root?: any;
56
57
  readonly tiny_template?: any;
@@ -59,8 +60,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
59
60
  readonly tiny_theme?: any;
60
61
  readonly tiny_chart_theme?: any;
61
62
  readonly modelValue?: any;
62
- readonly icon?: any;
63
- readonly titleClass?: any;
64
63
  readonly options?: any;
64
+ readonly titleClass?: any;
65
65
  }, {}>;
66
66
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  import type { IDropdownItemApi } from '@opentiny/vue-renderless/types/dropdown-item.type';
2
2
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
3
- type?: any;
4
3
  label?: any;
4
+ disabled?: any;
5
+ divided?: any;
6
+ icon?: any;
7
+ type?: any;
5
8
  title?: any;
6
9
  selected?: any;
7
- disabled?: any;
8
10
  tiny_mode?: any;
9
11
  tiny_mode_root?: any;
10
12
  tiny_template?: any;
@@ -13,24 +15,24 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
13
15
  tiny_theme?: any;
14
16
  tiny_chart_theme?: any;
15
17
  effect?: any;
16
- appendToBody?: any;
18
+ multiStage?: any;
19
+ options?: any;
20
+ textField?: any;
17
21
  itemData?: any;
18
- icon?: any;
19
22
  titleClass?: any;
20
- options?: any;
21
- multiStage?: any;
22
- currentIndex?: any;
23
- divided?: any;
24
23
  selectedField?: any;
25
- textField?: any;
24
+ currentIndex?: any;
25
+ appendToBody?: any;
26
26
  tip?: any;
27
27
  tipPosition?: any;
28
- }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "change" | "closed" | "open" | "opened" | "close" | "confirm" | "reset" | "item-click")[], "update:modelValue" | "change" | "closed" | "open" | "opened" | "close" | "confirm" | "reset" | "item-click", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
29
- type?: 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<{
30
29
  label?: any;
30
+ disabled?: any;
31
+ divided?: any;
32
+ icon?: any;
33
+ type?: any;
31
34
  title?: any;
32
35
  selected?: any;
33
- disabled?: any;
34
36
  tiny_mode?: any;
35
37
  tiny_mode_root?: any;
36
38
  tiny_template?: any;
@@ -39,34 +41,34 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
39
41
  tiny_theme?: any;
40
42
  tiny_chart_theme?: any;
41
43
  effect?: any;
42
- appendToBody?: any;
44
+ multiStage?: any;
45
+ options?: any;
46
+ textField?: any;
43
47
  itemData?: any;
44
- icon?: any;
45
48
  titleClass?: any;
46
- options?: any;
47
- multiStage?: any;
48
- currentIndex?: any;
49
- divided?: any;
50
49
  selectedField?: any;
51
- textField?: any;
50
+ currentIndex?: any;
51
+ appendToBody?: any;
52
52
  tip?: any;
53
53
  tipPosition?: any;
54
54
  }>>> & {
55
55
  onChange?: ((...args: any[]) => any) | undefined;
56
56
  onClose?: ((...args: any[]) => any) | undefined;
57
57
  onReset?: ((...args: any[]) => any) | undefined;
58
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
58
59
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
- onClosed?: ((...args: any[]) => any) | undefined;
60
+ onConfirm?: ((...args: any[]) => any) | undefined;
60
61
  onOpen?: ((...args: any[]) => any) | undefined;
62
+ onClosed?: ((...args: any[]) => any) | undefined;
61
63
  onOpened?: ((...args: any[]) => any) | undefined;
62
- onConfirm?: ((...args: any[]) => any) | undefined;
63
- "onItem-click"?: ((...args: any[]) => any) | undefined;
64
64
  }, {
65
- readonly type?: any;
66
65
  readonly label?: any;
66
+ readonly disabled?: any;
67
+ readonly divided?: any;
68
+ readonly icon?: any;
69
+ readonly type?: any;
67
70
  readonly title?: any;
68
71
  readonly selected?: any;
69
- readonly disabled?: any;
70
72
  readonly tiny_mode?: any;
71
73
  readonly tiny_mode_root?: any;
72
74
  readonly tiny_template?: any;
@@ -75,16 +77,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
75
77
  readonly tiny_theme?: any;
76
78
  readonly tiny_chart_theme?: any;
77
79
  readonly effect?: any;
78
- readonly appendToBody?: any;
80
+ readonly multiStage?: any;
81
+ readonly options?: any;
82
+ readonly textField?: any;
79
83
  readonly itemData?: any;
80
- readonly icon?: any;
81
84
  readonly titleClass?: any;
82
- readonly options?: any;
83
- readonly multiStage?: any;
84
- readonly currentIndex?: any;
85
- readonly divided?: any;
86
85
  readonly selectedField?: any;
87
- readonly textField?: any;
86
+ readonly currentIndex?: any;
87
+ readonly appendToBody?: any;
88
88
  readonly tip?: any;
89
89
  readonly tipPosition?: any;
90
90
  }, {}>;