@opentiny/vue-dropdown-item 2.13.0 → 2.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 = "2.13.0";
118
+ var version = "2.14.0";
118
119
  DropdownItem.model = {
119
120
  prop: "modelValue",
120
121
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -60,8 +60,27 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
60
60
  var __vue2_script = defineComponent({
61
61
  name: $prefix + "DropdownItem",
62
62
  componentName: $prefix + "DropdownItem",
63
- emits: ["item-click"],
64
- props: [].concat(props, ["disabled", "divided", "icon", "itemData", "title", "titleClass", "options", "type", "label", "appendToBody", "textField", "selected", "selectedField", "multiStage", "currentIndex", "tip", "tipPosition"]),
63
+ emits: ["item-click", "update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
64
+ props: [].concat(props, [
65
+ "disabled",
66
+ "divided",
67
+ "icon",
68
+ "itemData",
69
+ "selected",
70
+ "currentIndex",
71
+ "title",
72
+ "titleClass",
73
+ "options",
74
+ "type",
75
+ "label",
76
+ "selectedField",
77
+ "multiStage",
78
+ // tiny新增
79
+ "appendToBody",
80
+ "textField",
81
+ "tip",
82
+ "tipPosition"
83
+ ]),
65
84
  components: {
66
85
  IconDeltaLeft: iconDeltaLeft(),
67
86
  TinyTooltip: Tooltip
@@ -90,6 +109,7 @@ var render = function render2() {
90
109
  class: {
91
110
  "is-disabled": _vm.disabled,
92
111
  "tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _vm.divided,
112
+ "tiny-dropdown-item--check-status": _vm.state.checkedStatus && _vm.selected,
93
113
  "has-children": _vm.itemData.children && _vm.itemData.children.length
94
114
  },
95
115
  attrs: {
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@opentiny/vue-dropdown-item",
3
- "version": "2.13.0",
3
+ "version": "2.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": "~2.13.0",
11
- "@opentiny/vue-icon": "~2.13.0",
12
- "@opentiny/vue-renderless": "~3.13.0",
13
- "@opentiny/vue-popup": "~2.13.0",
14
- "@opentiny/vue-button": "~2.13.0",
15
- "@opentiny/vue-tooltip": "~2.13.0"
10
+ "@opentiny/vue-common": "~2.14.0",
11
+ "@opentiny/vue-icon": "~2.14.0",
12
+ "@opentiny/vue-renderless": "~3.14.0",
13
+ "@opentiny/vue-popup": "~2.14.0",
14
+ "@opentiny/vue-button": "~2.14.0",
15
+ "@opentiny/vue-tooltip": "~2.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: {