@opentiny/vue-dropdown-item 3.18.0 → 3.18.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
@@ -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.undefined";
119
123
  DropdownItem.model = {
120
124
  prop: "modelValue",
121
125
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -66,7 +66,8 @@ 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
73
  IconDeltaLeft: iconDeltaLeft()
@@ -159,12 +160,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
159
160
  ))],
160
161
  2
161
162
  /* CLASS */
162
- )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, {
163
+ )) : createCommentVNode("v-if", true)])], 42, _hoisted_1)), [[_directive_auto_tip, _ctx.getTip ? {
163
164
  always: true,
164
165
  content: _ctx.getTip,
165
- effect: "dark",
166
+ effect: _ctx.effect,
166
167
  placement: _ctx.tipPosition
167
- }]]);
168
+ } : false]]);
168
169
  }
169
170
  var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
170
171
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
3
  "type": "module",
4
- "version": "3.18.0",
4
+ "version": "3.18.1",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
package/src/index.d.ts CHANGED
@@ -23,11 +23,11 @@ export declare const dropdownItemProps: {
23
23
  };
24
24
  };
25
25
  };
26
- icon: (StringConstructor | ObjectConstructor)[];
26
+ icon: (ObjectConstructor | StringConstructor)[];
27
27
  disabled: BooleanConstructor;
28
28
  divided: BooleanConstructor;
29
29
  itemData: {
30
- type: (StringConstructor | ObjectConstructor)[];
30
+ type: (ObjectConstructor | StringConstructor)[];
31
31
  default: string;
32
32
  };
33
33
  title: StringConstructor;
@@ -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)[];
@@ -94,11 +98,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
94
98
  };
95
99
  };
96
100
  };
97
- icon: (StringConstructor | ObjectConstructor)[];
101
+ icon: (ObjectConstructor | StringConstructor)[];
98
102
  disabled: BooleanConstructor;
99
103
  divided: BooleanConstructor;
100
104
  itemData: {
101
- type: (StringConstructor | ObjectConstructor)[];
105
+ type: (ObjectConstructor | StringConstructor)[];
102
106
  default: string;
103
107
  };
104
108
  title: StringConstructor;
@@ -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)[];
@@ -166,11 +174,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
166
174
  };
167
175
  };
168
176
  };
169
- icon: (StringConstructor | ObjectConstructor)[];
177
+ icon: (ObjectConstructor | StringConstructor)[];
170
178
  disabled: BooleanConstructor;
171
179
  divided: BooleanConstructor;
172
180
  itemData: {
173
- type: (StringConstructor | ObjectConstructor)[];
181
+ type: (ObjectConstructor | StringConstructor)[];
174
182
  default: string;
175
183
  };
176
184
  title: StringConstructor;
@@ -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)[];
@@ -228,20 +240,21 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
228
240
  tiny_theme: StringConstructor;
229
241
  tiny_chart_theme: ObjectConstructor;
230
242
  }>>, {
231
- disabled: boolean;
232
- divided: boolean;
233
243
  type: string;
234
244
  selected: boolean;
245
+ disabled: boolean;
235
246
  tiny_mode_root: boolean;
236
247
  _constants: Record<string, any>;
237
- multiStage: boolean;
238
- options: unknown[];
239
- textField: string;
248
+ effect: string;
249
+ appendToBody: boolean;
240
250
  itemData: string | Record<string, any>;
241
- selectedField: string;
251
+ options: unknown[];
252
+ multiStage: boolean;
242
253
  currentIndex: number;
243
254
  tooltipContent: string;
244
- appendToBody: boolean;
255
+ divided: boolean;
256
+ selectedField: string;
257
+ textField: string;
245
258
  tip: string | Function;
246
259
  tipPosition: string;
247
260
  }, {}>;
@@ -1,8 +1,7 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
2
  label?: any;
3
- disabled?: any;
4
- icon?: any;
5
3
  selected?: any;
4
+ disabled?: any;
6
5
  tiny_mode?: any;
7
6
  tiny_mode_root?: any;
8
7
  tiny_template?: any;
@@ -11,14 +10,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
11
10
  tiny_theme?: any;
12
11
  tiny_chart_theme?: any;
13
12
  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, ("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, ("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<{
18
18
  label?: any;
19
- disabled?: any;
20
- icon?: any;
21
19
  selected?: any;
20
+ disabled?: any;
22
21
  tiny_mode?: any;
23
22
  tiny_mode_root?: any;
24
23
  tiny_template?: any;
@@ -27,6 +26,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
27
26
  tiny_theme?: any;
28
27
  tiny_chart_theme?: any;
29
28
  itemData?: any;
29
+ icon?: any;
30
30
  level?: any;
31
31
  currentIndex?: any;
32
32
  tooltipContent?: any;
@@ -35,15 +35,14 @@ 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
- onConfirm?: ((...args: any[]) => any) | undefined;
39
- onOpen?: ((...args: any[]) => any) | undefined;
40
38
  onClosed?: ((...args: any[]) => any) | undefined;
39
+ onOpen?: ((...args: any[]) => any) | undefined;
41
40
  onOpened?: ((...args: any[]) => any) | undefined;
41
+ onConfirm?: ((...args: any[]) => any) | undefined;
42
42
  }, {
43
43
  readonly label?: any;
44
- readonly disabled?: any;
45
- readonly icon?: any;
46
44
  readonly selected?: any;
45
+ readonly disabled?: any;
47
46
  readonly tiny_mode?: any;
48
47
  readonly tiny_mode_root?: any;
49
48
  readonly tiny_template?: any;
@@ -52,6 +51,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
52
51
  readonly tiny_theme?: any;
53
52
  readonly tiny_chart_theme?: any;
54
53
  readonly itemData?: any;
54
+ readonly icon?: any;
55
55
  readonly level?: any;
56
56
  readonly currentIndex?: any;
57
57
  readonly tooltipContent?: any;
@@ -1,8 +1,7 @@
1
1
  declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
2
- disabled?: any;
3
- icon?: any;
4
2
  type?: any;
5
3
  title?: any;
4
+ disabled?: any;
6
5
  tiny_mode?: any;
7
6
  tiny_mode_root?: any;
8
7
  tiny_template?: any;
@@ -11,8 +10,9 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
11
10
  tiny_theme?: any;
12
11
  tiny_chart_theme?: any;
13
12
  modelValue?: any;
14
- options?: any;
13
+ icon?: any;
15
14
  titleClass?: any;
15
+ options?: any;
16
16
  }>, {
17
17
  t: (this: any, path: any, options?: any) => any;
18
18
  vm: any;
@@ -21,11 +21,10 @@ 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<{
25
- disabled?: any;
26
- icon?: 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<{
27
25
  type?: any;
28
26
  title?: any;
27
+ disabled?: any;
29
28
  tiny_mode?: any;
30
29
  tiny_mode_root?: any;
31
30
  tiny_template?: any;
@@ -34,24 +33,24 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
34
33
  tiny_theme?: any;
35
34
  tiny_chart_theme?: any;
36
35
  modelValue?: any;
37
- options?: any;
36
+ icon?: any;
38
37
  titleClass?: any;
38
+ options?: any;
39
39
  }>>> & {
40
40
  onChange?: ((...args: any[]) => any) | undefined;
41
- onClick?: ((...args: any[]) => any) | undefined;
42
41
  onClose?: ((...args: any[]) => any) | undefined;
43
42
  onReset?: ((...args: any[]) => any) | undefined;
44
- "onItem-click"?: ((...args: any[]) => any) | undefined;
43
+ onClick?: ((...args: any[]) => any) | undefined;
45
44
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
46
- onConfirm?: ((...args: any[]) => any) | undefined;
47
- onOpen?: ((...args: any[]) => any) | undefined;
48
45
  onClosed?: ((...args: any[]) => any) | undefined;
46
+ onOpen?: ((...args: any[]) => any) | undefined;
49
47
  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;
53
51
  readonly type?: any;
54
52
  readonly title?: any;
53
+ readonly disabled?: any;
55
54
  readonly tiny_mode?: any;
56
55
  readonly tiny_mode_root?: any;
57
56
  readonly tiny_template?: any;
@@ -60,7 +59,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
60
59
  readonly tiny_theme?: any;
61
60
  readonly tiny_chart_theme?: any;
62
61
  readonly modelValue?: any;
63
- readonly options?: any;
62
+ readonly icon?: any;
64
63
  readonly titleClass?: any;
64
+ readonly options?: any;
65
65
  }, {}>;
66
66
  export default _default;
package/src/pc.vue.d.ts CHANGED
@@ -1,12 +1,10 @@
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
- label?: any;
4
- disabled?: any;
5
- divided?: any;
6
- icon?: any;
7
3
  type?: any;
4
+ label?: any;
8
5
  title?: any;
9
6
  selected?: any;
7
+ disabled?: any;
10
8
  tiny_mode?: any;
11
9
  tiny_mode_root?: any;
12
10
  tiny_template?: any;
@@ -14,24 +12,25 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
14
12
  _constants?: any;
15
13
  tiny_theme?: any;
16
14
  tiny_chart_theme?: any;
17
- multiStage?: any;
18
- options?: any;
19
- textField?: any;
15
+ effect?: any;
16
+ appendToBody?: any;
20
17
  itemData?: any;
18
+ icon?: any;
21
19
  titleClass?: any;
22
- selectedField?: any;
20
+ options?: any;
21
+ multiStage?: any;
23
22
  currentIndex?: any;
24
- appendToBody?: any;
23
+ divided?: any;
24
+ selectedField?: any;
25
+ textField?: any;
25
26
  tip?: any;
26
27
  tipPosition?: any;
27
- }>, 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
- label?: any;
29
- disabled?: any;
30
- divided?: any;
31
- icon?: 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<{
32
29
  type?: any;
30
+ label?: any;
33
31
  title?: any;
34
32
  selected?: any;
33
+ disabled?: any;
35
34
  tiny_mode?: any;
36
35
  tiny_mode_root?: any;
37
36
  tiny_template?: any;
@@ -39,34 +38,35 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
39
38
  _constants?: any;
40
39
  tiny_theme?: any;
41
40
  tiny_chart_theme?: any;
42
- multiStage?: any;
43
- options?: any;
44
- textField?: any;
41
+ effect?: any;
42
+ appendToBody?: any;
45
43
  itemData?: any;
44
+ icon?: any;
46
45
  titleClass?: any;
47
- selectedField?: any;
46
+ options?: any;
47
+ multiStage?: any;
48
48
  currentIndex?: any;
49
- appendToBody?: any;
49
+ divided?: any;
50
+ selectedField?: any;
51
+ textField?: any;
50
52
  tip?: any;
51
53
  tipPosition?: any;
52
54
  }>>> & {
53
55
  onChange?: ((...args: any[]) => any) | undefined;
54
56
  onClose?: ((...args: any[]) => any) | undefined;
55
57
  onReset?: ((...args: any[]) => any) | undefined;
56
- "onItem-click"?: ((...args: any[]) => any) | undefined;
57
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
58
- onConfirm?: ((...args: any[]) => any) | undefined;
59
- onOpen?: ((...args: any[]) => any) | undefined;
60
59
  onClosed?: ((...args: any[]) => any) | undefined;
60
+ onOpen?: ((...args: any[]) => any) | undefined;
61
61
  onOpened?: ((...args: any[]) => any) | undefined;
62
+ onConfirm?: ((...args: any[]) => any) | undefined;
63
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
62
64
  }, {
63
- readonly label?: any;
64
- readonly disabled?: any;
65
- readonly divided?: any;
66
- readonly icon?: any;
67
65
  readonly type?: any;
66
+ readonly label?: any;
68
67
  readonly title?: any;
69
68
  readonly selected?: any;
69
+ readonly disabled?: any;
70
70
  readonly tiny_mode?: any;
71
71
  readonly tiny_mode_root?: any;
72
72
  readonly tiny_template?: any;
@@ -74,14 +74,17 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
74
74
  readonly _constants?: any;
75
75
  readonly tiny_theme?: any;
76
76
  readonly tiny_chart_theme?: any;
77
- readonly multiStage?: any;
78
- readonly options?: any;
79
- readonly textField?: any;
77
+ readonly effect?: any;
78
+ readonly appendToBody?: any;
80
79
  readonly itemData?: any;
80
+ readonly icon?: any;
81
81
  readonly titleClass?: any;
82
- readonly selectedField?: any;
82
+ readonly options?: any;
83
+ readonly multiStage?: any;
83
84
  readonly currentIndex?: any;
84
- readonly appendToBody?: any;
85
+ readonly divided?: any;
86
+ readonly selectedField?: any;
87
+ readonly textField?: any;
85
88
  readonly tip?: any;
86
89
  readonly tipPosition?: any;
87
90
  }, {}>;