@opentinyvue/vue-dropdown 3.26.0 → 3.28.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
@@ -106,6 +106,10 @@ var dropdownProps = _extends({}, $props, {
106
106
  var Dropdown = defineComponent({
107
107
  name: $prefix + "Dropdown",
108
108
  componentName: "TinyDropdown",
109
+ model: {
110
+ prop: "visible",
111
+ event: "update:visible"
112
+ },
109
113
  props: dropdownProps,
110
114
  setup: function setup(props, context) {
111
115
  return $setup({
package/lib/pc.js CHANGED
@@ -18,6 +18,10 @@ import { iconDownWard } from "@opentinyvue/vue-icon";
18
18
  var _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  name: $prefix + "Dropdown",
20
20
  componentName: "TinyDropdown",
21
+ model: {
22
+ prop: "visible",
23
+ event: "update:visible"
24
+ },
21
25
  components: {
22
26
  TinyButton: Button,
23
27
  TinyButtonGroup: ButtonGroup,
@@ -147,7 +151,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
147
151
  }, {
148
152
  default: function _default3() {
149
153
  return [createVNode(ButtonIconDown, {
150
- "class": visibleClass
154
+ "class": visibleClass,
155
+ "aria-label": "down"
151
156
  }, null)];
152
157
  }
153
158
  })];
@@ -165,7 +170,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
165
170
  }
166
171
  var suffixInner = showIcon ? createVNode("span", {
167
172
  "class": "tiny-dropdown__suffix-inner " + visibleClass
168
- }, [suffixSlot || createVNode(IconDown, null, null)]) : "";
173
+ }, [suffixSlot || createVNode(IconDown, {
174
+ "aria-label": "down"
175
+ }, null)]) : "";
169
176
  var prefixInner = prefixIcon || prefixSlot ? createVNode("span", {
170
177
  "class": "tiny-dropdown__prefix-inner " + visibleClass
171
178
  }, [prefixSlot || createVNode(IconPre, null, null)]) : "";
@@ -179,14 +186,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
179
186
  "disabled": disabled,
180
187
  "type": type,
181
188
  "class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : "") + " " + triggerClass,
182
- "reset-time": 0
189
+ "reset-time": 0,
190
+ "aria-label": "down"
183
191
  }, {
184
192
  default: function _default2() {
185
193
  return [prefixInner, defaultTriggerElm, suffixInner];
186
194
  }
187
195
  }) : createVNode("span", {
188
196
  "ref": "trigger",
189
- "class": "is-text" + (state.visible ? " is-expand" : " is-hide") + (disabled ? " is-disabled" : "") + " " + triggerClass
197
+ "class": "is-text" + (state.visible ? " is-expand" : " is-hide") + (disabled ? " is-disabled" : "") + " " + triggerClass,
198
+ "aria-label": "down"
190
199
  }, [prefixInner, defaultTriggerElm, suffixInner]);
191
200
  }
192
201
  var defaulMenuElm = createVNode(resolveComponent("tiny-dropdown-menu"), {
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dropdown",
3
3
  "type": "module",
4
- "version": "3.26.0",
4
+ "version": "3.28.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
- "@opentinyvue/vue-button": "~3.26.0",
12
- "@opentinyvue/vue-button-group": "~3.26.0",
13
- "@opentinyvue/vue-common": "~3.26.0",
14
- "@opentinyvue/vue-directive": "~3.26.0",
15
- "@opentinyvue/vue-dropdown-menu": "~3.26.0",
16
- "@opentinyvue/vue-icon": "~3.26.0",
17
- "@opentinyvue/vue-renderless": "~3.26.0",
18
- "@opentinyvue/vue-theme": "~3.26.0"
11
+ "@opentinyvue/vue-button": "~3.28.0",
12
+ "@opentinyvue/vue-button-group": "~3.28.0",
13
+ "@opentinyvue/vue-common": "~3.28.0",
14
+ "@opentinyvue/vue-directive": "~3.28.0",
15
+ "@opentinyvue/vue-dropdown-menu": "~3.28.0",
16
+ "@opentinyvue/vue-icon": "~3.28.0",
17
+ "@opentinyvue/vue-renderless": "~3.28.0",
18
+ "@opentinyvue/vue-theme": "~3.28.0"
19
19
  },
20
20
  "types": "index.d.ts",
21
21
  "scripts": {