@opentiny/vue-dropdown-item 3.13.0 → 3.14.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
@@ -50,10 +50,7 @@ var dropdownItemProps = _extends({}, $props, {
50
50
  default: ""
51
51
  },
52
52
  title: String,
53
- label: {
54
- type: String,
55
- default: ""
56
- },
53
+ label: String,
57
54
  level: String,
58
55
  titleClass: String,
59
56
  options: {
@@ -62,18 +59,22 @@ var dropdownItemProps = _extends({}, $props, {
62
59
  return [];
63
60
  }
64
61
  },
62
+ // mobile 属性,可选值 selection | filter | sort
65
63
  type: {
66
64
  type: String,
67
65
  default: "selection"
68
66
  },
67
+ // 是否选中,勾选状态功能
69
68
  selected: {
70
69
  type: Boolean,
71
70
  default: false
72
71
  },
72
+ // 暂没找到使用的地方
73
73
  selectedField: {
74
74
  type: String,
75
75
  default: "selected"
76
76
  },
77
+ // 暂没找到使用的地方
77
78
  multiStage: {
78
79
  type: Boolean,
79
80
  default: false
@@ -84,7 +85,7 @@ var dropdownItemProps = _extends({}, $props, {
84
85
  return -1;
85
86
  }
86
87
  },
87
- // tiny新增
88
+ // 以下为 tiny 新增
88
89
  appendToBody: {
89
90
  type: Boolean,
90
91
  default: true
@@ -114,7 +115,7 @@ var DropdownItem = defineComponent({
114
115
  });
115
116
  }
116
117
  });
117
- var version = "3.13.0";
118
+ var version = "3.14.0";
118
119
  DropdownItem.model = {
119
120
  prop: "modelValue",
120
121
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -52,8 +52,27 @@ var _export_sfc = function _export_sfc2(sfc, props) {
52
52
  var _sfc_main = defineComponent({
53
53
  name: $prefix + "DropdownItem",
54
54
  componentName: $prefix + "DropdownItem",
55
- emits: ["item-click"],
56
- props: [].concat(props, ["disabled", "divided", "icon", "itemData", "title", "titleClass", "options", "type", "label", "appendToBody", "textField", "selected", "selectedField", "multiStage", "currentIndex", "tip", "tipPosition"]),
55
+ emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
56
+ props: [].concat(props, [
57
+ "disabled",
58
+ "divided",
59
+ "icon",
60
+ "itemData",
61
+ "selected",
62
+ "currentIndex",
63
+ "title",
64
+ "titleClass",
65
+ "options",
66
+ "type",
67
+ "label",
68
+ "selectedField",
69
+ "multiStage",
70
+ // tiny新增
71
+ "appendToBody",
72
+ "textField",
73
+ "tip",
74
+ "tipPosition"
75
+ ]),
57
76
  components: {
58
77
  IconDeltaLeft: iconDeltaLeft(),
59
78
  TinyTooltip: Tooltip
@@ -93,6 +112,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
93
112
  class: normalizeClass(["tiny-dropdown-item tiny-dropdown-menu__item", {
94
113
  "is-disabled": _ctx.disabled,
95
114
  "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _ctx.divided,
115
+ "tiny-dropdown-item--check-status": _ctx.state.checkedStatus && _ctx.selected,
96
116
  "has-children": _ctx.itemData.children && _ctx.itemData.children.length
97
117
  }]),
98
118
  ref: "dropdownItem",
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentiny/vue-common": "~3.13.0",
11
- "@opentiny/vue-icon": "~3.13.0",
12
- "@opentiny/vue-renderless": "~3.13.0",
13
- "@opentiny/vue-popup": "~3.13.0",
14
- "@opentiny/vue-button": "~3.13.0",
15
- "@opentiny/vue-tooltip": "~3.13.0"
10
+ "@opentiny/vue-common": "~3.14.0",
11
+ "@opentiny/vue-icon": "~3.14.0",
12
+ "@opentiny/vue-renderless": "~3.14.0",
13
+ "@opentiny/vue-popup": "~3.14.0",
14
+ "@opentiny/vue-button": "~3.14.0",
15
+ "@opentiny/vue-tooltip": "~3.14.0",
16
+ "@opentiny/vue-theme-mobile": "~3.14.0",
17
+ "@opentiny/vue-theme": "~3.14.0"
16
18
  },
17
19
  "license": "MIT",
18
20
  "types": "index.d.ts",
package/src/index.d.ts CHANGED
@@ -31,10 +31,7 @@ export declare const dropdownItemProps: {
31
31
  default: string;
32
32
  };
33
33
  title: StringConstructor;
34
- label: {
35
- type: StringConstructor;
36
- default: string;
37
- };
34
+ label: StringConstructor;
38
35
  level: StringConstructor;
39
36
  titleClass: StringConstructor;
40
37
  options: {
@@ -101,10 +98,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
101
98
  default: string;
102
99
  };
103
100
  title: StringConstructor;
104
- label: {
105
- type: StringConstructor;
106
- default: string;
107
- };
101
+ label: StringConstructor;
108
102
  level: StringConstructor;
109
103
  titleClass: StringConstructor;
110
104
  options: {
@@ -172,10 +166,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
172
166
  default: string;
173
167
  };
174
168
  title: StringConstructor;
175
- label: {
176
- type: StringConstructor;
177
- default: string;
178
- };
169
+ label: StringConstructor;
179
170
  level: StringConstructor;
180
171
  titleClass: StringConstructor;
181
172
  options: {
@@ -226,7 +217,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
226
217
  tiny_chart_theme: ObjectConstructor;
227
218
  }>>, {
228
219
  type: string;
229
- label: string;
230
220
  selected: boolean;
231
221
  disabled: boolean;
232
222
  tiny_mode_root: boolean;
@@ -13,7 +13,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
13
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" | "close" | "reset" | "open" | "closed" | "opened")[], "confirm" | "change" | "update:modelValue" | "close" | "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<{
17
17
  label?: any;
18
18
  selected?: any;
19
19
  disabled?: any;
@@ -31,8 +31,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
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;
35
+ onClose?: ((...args: any[]) => any) | undefined;
36
36
  onConfirm?: ((...args: any[]) => any) | undefined;
37
37
  onOpen?: ((...args: any[]) => any) | undefined;
38
38
  onClosed?: ((...args: any[]) => any) | undefined;
@@ -21,7 +21,7 @@ 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, ("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<{
24
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "change" | "item-click" | "update:modelValue" | "close" | "click" | "reset" | "open" | "closed" | "opened")[], "confirm" | "change" | "item-click" | "update:modelValue" | "close" | "click" | "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
25
  type?: any;
26
26
  title?: any;
27
27
  disabled?: any;
@@ -41,8 +41,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
41
41
  onChange?: ((...args: any[]) => any) | undefined;
42
42
  onReset?: ((...args: any[]) => any) | undefined;
43
43
  onClick?: ((...args: any[]) => any) | undefined;
44
- onClose?: ((...args: any[]) => any) | undefined;
45
44
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
45
+ onClose?: ((...args: any[]) => any) | undefined;
46
46
  onConfirm?: ((...args: any[]) => any) | undefined;
47
47
  onOpen?: ((...args: any[]) => any) | undefined;
48
48
  onClosed?: ((...args: any[]) => any) | undefined;
package/src/pc.vue.d.ts CHANGED
@@ -24,7 +24,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
24
24
  appendToBody?: any;
25
25
  tip?: any;
26
26
  tipPosition?: any;
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<{
27
+ }>, IDropdownItemApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("confirm" | "change" | "item-click" | "update:modelValue" | "close" | "reset" | "open" | "closed" | "opened")[], "confirm" | "change" | "item-click" | "update:modelValue" | "close" | "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<{
28
28
  type?: any;
29
29
  label?: any;
30
30
  title?: any;
@@ -51,6 +51,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
51
51
  tipPosition?: any;
52
52
  }>>> & {
53
53
  "onItem-click"?: ((...args: any[]) => any) | undefined;
54
+ onChange?: ((...args: any[]) => any) | undefined;
55
+ onReset?: ((...args: any[]) => any) | undefined;
56
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
+ onClose?: ((...args: any[]) => any) | undefined;
58
+ onConfirm?: ((...args: any[]) => any) | undefined;
59
+ onOpen?: ((...args: any[]) => any) | undefined;
60
+ onClosed?: ((...args: any[]) => any) | undefined;
61
+ onOpened?: ((...args: any[]) => any) | undefined;
54
62
  }, {
55
63
  readonly type?: any;
56
64
  readonly label?: any;