@opentiny/vue-dropdown-item 3.11.0 → 3.11.1

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
@@ -112,7 +112,7 @@ var DropdownItem = defineComponent({
112
112
  });
113
113
  }
114
114
  });
115
- var version = "3.11.0";
115
+ var version = "3.11.1";
116
116
  DropdownItem.model = {
117
117
  prop: "modelValue",
118
118
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, $prefix, props, setup as _setup } from "@opentiny/vue-common";
2
2
  import { renderless, api } from "@opentiny/vue-renderless/dropdown-item/vue";
3
3
  import { iconDeltaLeft } from "@opentiny/vue-icon";
4
- import Tooltip from "@opentiny/vue-tooltip";
4
+ import TinyTooltip from "@opentiny/vue-tooltip";
5
5
  import "@opentiny/vue-theme/dropdown-item/index.css";
6
6
  import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, renderSlot, toDisplayString, Fragment, renderList } from "vue";
7
7
  function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
@@ -56,7 +56,7 @@ var _sfc_main = defineComponent({
56
56
  props: [].concat(props, ["disabled", "divided", "icon", "itemData", "title", "titleClass", "options", "type", "label", "appendToBody", "textField", "selected", "selectedField", "multiStage", "currentIndex", "tip", "tipPosition"]),
57
57
  components: {
58
58
  IconDeltaLeft: iconDeltaLeft(),
59
- TinyTooltip: Tooltip
59
+ TinyTooltip
60
60
  },
61
61
  setup: function setup(props2, context) {
62
62
  return _setup({
@@ -78,6 +78,9 @@ var _hoisted_3 = {
78
78
  var _hoisted_4 = {
79
79
  class: "tiny-dropdown-item__content tiny-dropdown-menu__item-content"
80
80
  };
81
+ var _hoisted_5 = {
82
+ class: "tiny-dropdown-item__label"
83
+ };
81
84
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
82
85
  var _component_tiny_dropdown_item = resolveComponent("tiny-dropdown-item");
83
86
  var _component_tiny_tooltip = resolveComponent("tiny-tooltip");
@@ -103,7 +106,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
106
  }, [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), {
104
107
  key: 0,
105
108
  class: "tiny-svg-size"
106
- })) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default", {
109
+ })) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_5, [renderSlot(_ctx.$slots, "default", {
107
110
  itemData: _ctx.itemData
108
111
  }, function() {
109
112
  return [createElementVNode(
@@ -113,7 +116,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
113
116
  1
114
117
  /* TEXT */
115
118
  )];
116
- })]), _ctx.itemData.children && _ctx.itemData.children.length ? (openBlock(), createElementBlock(
119
+ })])]), _ctx.itemData.children && _ctx.itemData.children.length ? (openBlock(), createElementBlock(
117
120
  "ul",
118
121
  {
119
122
  key: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
package/src/index.d.ts CHANGED
@@ -229,16 +229,16 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
229
229
  label: string;
230
230
  selected: boolean;
231
231
  disabled: boolean;
232
+ itemData: string | Record<string, any>;
232
233
  tiny_mode_root: boolean;
233
234
  _constants: Record<string, any>;
235
+ textField: string;
234
236
  multiStage: boolean;
235
237
  options: unknown[];
236
- textField: string;
237
- divided: boolean;
238
- itemData: string | Record<string, any>;
239
- selectedField: string;
240
238
  currentIndex: number;
241
239
  appendToBody: boolean;
240
+ divided: boolean;
241
+ selectedField: string;
242
242
  tip: string | Function;
243
243
  tipPosition: string;
244
244
  }, {}>;
@@ -2,6 +2,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
2
  label?: any;
3
3
  selected?: any;
4
4
  disabled?: any;
5
+ itemData?: any;
5
6
  tiny_mode?: any;
6
7
  tiny_mode_root?: any;
7
8
  tiny_template?: any;
@@ -10,13 +11,13 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
10
11
  tiny_theme?: any;
11
12
  tiny_chart_theme?: any;
12
13
  icon?: any;
13
- itemData?: any;
14
14
  level?: any;
15
15
  currentIndex?: any;
16
- }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "update:modelValue" | "close" | "change" | "reset" | "open" | "closed" | "opened")[], "confirm" | "update:modelValue" | "close" | "change" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
16
+ }>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "change" | "update:modelValue" | "closed" | "open" | "opened" | "close" | "reset")[], "confirm" | "change" | "update:modelValue" | "closed" | "open" | "opened" | "close" | "reset", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
17
17
  label?: any;
18
18
  selected?: any;
19
19
  disabled?: any;
20
+ itemData?: any;
20
21
  tiny_mode?: any;
21
22
  tiny_mode_root?: any;
22
23
  tiny_template?: any;
@@ -25,22 +26,22 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
25
26
  tiny_theme?: any;
26
27
  tiny_chart_theme?: any;
27
28
  icon?: any;
28
- itemData?: any;
29
29
  level?: any;
30
30
  currentIndex?: any;
31
31
  }>>> & {
32
32
  onChange?: ((...args: any[]) => any) | undefined;
33
33
  onReset?: ((...args: any[]) => any) | undefined;
34
- onClose?: ((...args: any[]) => any) | undefined;
35
34
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
- onConfirm?: ((...args: any[]) => any) | undefined;
37
- onOpen?: ((...args: any[]) => any) | undefined;
38
35
  onClosed?: ((...args: any[]) => any) | undefined;
36
+ onOpen?: ((...args: any[]) => any) | undefined;
39
37
  onOpened?: ((...args: any[]) => any) | undefined;
38
+ onClose?: ((...args: any[]) => any) | undefined;
39
+ onConfirm?: ((...args: any[]) => any) | undefined;
40
40
  }, {
41
41
  readonly label?: any;
42
42
  readonly selected?: any;
43
43
  readonly disabled?: any;
44
+ readonly itemData?: any;
44
45
  readonly tiny_mode?: any;
45
46
  readonly tiny_mode_root?: any;
46
47
  readonly tiny_template?: any;
@@ -49,7 +50,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
49
50
  readonly tiny_theme?: any;
50
51
  readonly tiny_chart_theme?: any;
51
52
  readonly icon?: any;
52
- readonly itemData?: any;
53
53
  readonly level?: any;
54
54
  readonly currentIndex?: any;
55
55
  }, {}>;
@@ -9,9 +9,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
9
9
  _constants?: any;
10
10
  tiny_theme?: any;
11
11
  tiny_chart_theme?: any;
12
+ icon?: any;
12
13
  modelValue?: any;
13
14
  options?: any;
14
- icon?: any;
15
15
  titleClass?: any;
16
16
  }>, {
17
17
  t: (this: any, path: any, options?: any) => any;
@@ -22,7 +22,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
22
22
  dp: (props: any) => void;
23
23
  gcls: (key: any) => any;
24
24
  m: (...cssClasses: any[]) => string;
25
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "item-click" | "update:modelValue" | "close" | "click" | "change" | "reset" | "open" | "closed" | "opened")[], "confirm" | "item-click" | "update:modelValue" | "close" | "click" | "change" | "reset" | "open" | "closed" | "opened", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
25
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "item-click" | "confirm" | "change" | "update:modelValue" | "closed" | "open" | "opened" | "close" | "reset")[], "click" | "item-click" | "confirm" | "change" | "update:modelValue" | "closed" | "open" | "opened" | "close" | "reset", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
26
26
  type?: any;
27
27
  title?: any;
28
28
  disabled?: any;
@@ -33,21 +33,21 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
33
33
  _constants?: any;
34
34
  tiny_theme?: any;
35
35
  tiny_chart_theme?: any;
36
+ icon?: any;
36
37
  modelValue?: any;
37
38
  options?: any;
38
- icon?: any;
39
39
  titleClass?: any;
40
40
  }>>> & {
41
41
  "onItem-click"?: ((...args: any[]) => any) | undefined;
42
42
  onChange?: ((...args: any[]) => any) | undefined;
43
43
  onReset?: ((...args: any[]) => any) | undefined;
44
44
  onClick?: ((...args: any[]) => any) | undefined;
45
- onClose?: ((...args: any[]) => any) | undefined;
46
45
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
- onConfirm?: ((...args: any[]) => any) | undefined;
48
- onOpen?: ((...args: any[]) => any) | undefined;
49
46
  onClosed?: ((...args: any[]) => any) | undefined;
47
+ onOpen?: ((...args: any[]) => any) | undefined;
50
48
  onOpened?: ((...args: any[]) => any) | undefined;
49
+ onClose?: ((...args: any[]) => any) | undefined;
50
+ onConfirm?: ((...args: any[]) => any) | undefined;
51
51
  }, {
52
52
  readonly type?: any;
53
53
  readonly title?: any;
@@ -59,9 +59,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
59
59
  readonly _constants?: any;
60
60
  readonly tiny_theme?: any;
61
61
  readonly tiny_chart_theme?: any;
62
+ readonly icon?: any;
62
63
  readonly modelValue?: any;
63
64
  readonly options?: any;
64
- readonly icon?: any;
65
65
  readonly titleClass?: any;
66
66
  }, {}>;
67
67
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -5,6 +5,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
5
5
  title?: any;
6
6
  selected?: any;
7
7
  disabled?: any;
8
+ itemData?: any;
8
9
  tiny_mode?: any;
9
10
  tiny_mode_root?: any;
10
11
  tiny_template?: any;
@@ -12,16 +13,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
12
13
  _constants?: any;
13
14
  tiny_theme?: any;
14
15
  tiny_chart_theme?: any;
16
+ icon?: any;
17
+ textField?: any;
15
18
  multiStage?: any;
16
19
  options?: any;
17
- textField?: any;
18
- icon?: any;
19
- divided?: any;
20
- itemData?: any;
21
20
  titleClass?: any;
22
- selectedField?: any;
23
21
  currentIndex?: any;
24
22
  appendToBody?: any;
23
+ divided?: any;
24
+ selectedField?: any;
25
25
  tip?: any;
26
26
  tipPosition?: any;
27
27
  }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "item-click"[], "item-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
@@ -30,6 +30,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
30
30
  title?: any;
31
31
  selected?: any;
32
32
  disabled?: any;
33
+ itemData?: any;
33
34
  tiny_mode?: any;
34
35
  tiny_mode_root?: any;
35
36
  tiny_template?: any;
@@ -37,16 +38,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
37
38
  _constants?: any;
38
39
  tiny_theme?: any;
39
40
  tiny_chart_theme?: any;
41
+ icon?: any;
42
+ textField?: any;
40
43
  multiStage?: any;
41
44
  options?: any;
42
- textField?: any;
43
- icon?: any;
44
- divided?: any;
45
- itemData?: any;
46
45
  titleClass?: any;
47
- selectedField?: any;
48
46
  currentIndex?: any;
49
47
  appendToBody?: any;
48
+ divided?: any;
49
+ selectedField?: any;
50
50
  tip?: any;
51
51
  tipPosition?: any;
52
52
  }>>> & {
@@ -57,6 +57,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
57
57
  readonly title?: any;
58
58
  readonly selected?: any;
59
59
  readonly disabled?: any;
60
+ readonly itemData?: any;
60
61
  readonly tiny_mode?: any;
61
62
  readonly tiny_mode_root?: any;
62
63
  readonly tiny_template?: any;
@@ -64,16 +65,15 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
64
65
  readonly _constants?: any;
65
66
  readonly tiny_theme?: any;
66
67
  readonly tiny_chart_theme?: any;
68
+ readonly icon?: any;
69
+ readonly textField?: any;
67
70
  readonly multiStage?: any;
68
71
  readonly options?: any;
69
- readonly textField?: any;
70
- readonly icon?: any;
71
- readonly divided?: any;
72
- readonly itemData?: any;
73
72
  readonly titleClass?: any;
74
- readonly selectedField?: any;
75
73
  readonly currentIndex?: any;
76
74
  readonly appendToBody?: any;
75
+ readonly divided?: any;
76
+ readonly selectedField?: any;
77
77
  readonly tip?: any;
78
78
  readonly tipPosition?: any;
79
79
  }, {}>;