@opentinyvue/vue-dropdown 2.26.0 → 2.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
@@ -48,6 +48,10 @@ function _extends() {
48
48
  var __vue2_script = defineComponent({
49
49
  name: $prefix + "Dropdown",
50
50
  componentName: "TinyDropdown",
51
+ model: {
52
+ prop: "visible",
53
+ event: "update:visible"
54
+ },
51
55
  components: {
52
56
  TinyButton: Button,
53
57
  TinyButtonGroup: ButtonGroup,
@@ -176,7 +180,10 @@ var __vue2_script = defineComponent({
176
180
  },
177
181
  "class": "tiny-dropdown__caret-button " + triggerClass
178
182
  }, [h2(ButtonIconDown, {
179
- "class": visibleClass
183
+ "class": visibleClass,
184
+ "attrs": {
185
+ "aria-label": "down"
186
+ }
180
187
  })])]);
181
188
  } else {
182
189
  var _defaultSlot$;
@@ -190,7 +197,11 @@ var __vue2_script = defineComponent({
190
197
  }
191
198
  var suffixInner = showIcon ? h2("span", {
192
199
  "class": "tiny-dropdown__suffix-inner " + visibleClass
193
- }, [suffixSlot || h2(IconDown)]) : "";
200
+ }, [suffixSlot || h2(IconDown, {
201
+ "attrs": {
202
+ "aria-label": "down"
203
+ }
204
+ })]) : "";
194
205
  var prefixInner = prefixIcon || prefixSlot ? h2("span", {
195
206
  "class": "tiny-dropdown__prefix-inner " + visibleClass
196
207
  }, [prefixSlot || h2(IconPre)]) : "";
@@ -204,12 +215,16 @@ var __vue2_script = defineComponent({
204
215
  "size": size,
205
216
  "disabled": disabled,
206
217
  "type": type,
207
- "reset-time": 0
218
+ "reset-time": 0,
219
+ "aria-label": "down"
208
220
  },
209
221
  "class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : "") + " " + triggerClass
210
222
  }, [prefixInner, defaultTriggerElm, suffixInner]) : h2("span", {
211
223
  "ref": "trigger",
212
- "class": "is-text" + (state.visible ? " is-expand" : " is-hide") + (disabled ? " is-disabled" : "") + " " + triggerClass
224
+ "class": "is-text" + (state.visible ? " is-expand" : " is-hide") + (disabled ? " is-disabled" : "") + " " + triggerClass,
225
+ "attrs": {
226
+ "aria-label": "down"
227
+ }
213
228
  }, [prefixInner, defaultTriggerElm, suffixInner]);
214
229
  }
215
230
  var defaulMenuElm = h2("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": "2.26.0",
4
+ "version": "2.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": "~2.26.0",
12
- "@opentinyvue/vue-button-group": "~2.26.0",
13
- "@opentinyvue/vue-common": "~2.26.0",
14
- "@opentinyvue/vue-directive": "~2.26.0",
15
- "@opentinyvue/vue-dropdown-menu": "~2.26.0",
16
- "@opentinyvue/vue-icon": "~2.26.0",
17
- "@opentinyvue/vue-renderless": "~3.26.0",
18
- "@opentinyvue/vue-theme": "~3.26.0"
11
+ "@opentinyvue/vue-button": "~2.28.0",
12
+ "@opentinyvue/vue-button-group": "~2.28.0",
13
+ "@opentinyvue/vue-common": "~2.28.0",
14
+ "@opentinyvue/vue-directive": "~2.28.0",
15
+ "@opentinyvue/vue-dropdown-menu": "~2.28.0",
16
+ "@opentinyvue/vue-icon": "~2.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": {