@opentinyvue/vue-dropdown 3.27.0 → 3.29.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/mobile-first.js +1 -1
- package/lib/pc.js +10 -5
- package/package.json +9 -9
package/lib/mobile-first.js
CHANGED
|
@@ -9,7 +9,7 @@ function _extends() {
|
|
|
9
9
|
}
|
|
10
10
|
import { createVNode, resolveComponent, withDirectives, resolveDirective } from "vue";
|
|
11
11
|
import { api, renderless } from "@opentinyvue/vue-renderless/dropdown/vue";
|
|
12
|
-
import { defineComponent, $props,
|
|
12
|
+
import { defineComponent, $props, setup as _setup, h, directive, $prefix } from "@opentinyvue/vue-common";
|
|
13
13
|
import Button from "@opentinyvue/vue-button";
|
|
14
14
|
import ButtonGroup from "@opentinyvue/vue-button-group";
|
|
15
15
|
import { Clickoutside } from "@opentinyvue/vue-directive";
|
package/lib/pc.js
CHANGED
|
@@ -9,7 +9,7 @@ function _extends() {
|
|
|
9
9
|
}
|
|
10
10
|
import { createVNode, resolveComponent, withDirectives, resolveDirective } from "vue";
|
|
11
11
|
import { api, renderless } from "@opentinyvue/vue-renderless/dropdown/vue";
|
|
12
|
-
import { defineComponent, $props,
|
|
12
|
+
import { defineComponent, $props, setup as _setup, h, directive, $prefix } from "@opentinyvue/vue-common";
|
|
13
13
|
import Button from "@opentinyvue/vue-button";
|
|
14
14
|
import ButtonGroup from "@opentinyvue/vue-button-group";
|
|
15
15
|
import { Clickoutside } from "@opentinyvue/vue-directive";
|
|
@@ -151,7 +151,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
151
|
}, {
|
|
152
152
|
default: function _default3() {
|
|
153
153
|
return [createVNode(ButtonIconDown, {
|
|
154
|
-
"class": visibleClass
|
|
154
|
+
"class": visibleClass,
|
|
155
|
+
"aria-label": "down"
|
|
155
156
|
}, null)];
|
|
156
157
|
}
|
|
157
158
|
})];
|
|
@@ -169,7 +170,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
169
170
|
}
|
|
170
171
|
var suffixInner = showIcon ? createVNode("span", {
|
|
171
172
|
"class": "tiny-dropdown__suffix-inner " + visibleClass
|
|
172
|
-
}, [suffixSlot || createVNode(IconDown,
|
|
173
|
+
}, [suffixSlot || createVNode(IconDown, {
|
|
174
|
+
"aria-label": "down"
|
|
175
|
+
}, null)]) : "";
|
|
173
176
|
var prefixInner = prefixIcon || prefixSlot ? createVNode("span", {
|
|
174
177
|
"class": "tiny-dropdown__prefix-inner " + visibleClass
|
|
175
178
|
}, [prefixSlot || createVNode(IconPre, null, null)]) : "";
|
|
@@ -183,14 +186,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
186
|
"disabled": disabled,
|
|
184
187
|
"type": type,
|
|
185
188
|
"class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : "") + " " + triggerClass,
|
|
186
|
-
"reset-time": 0
|
|
189
|
+
"reset-time": 0,
|
|
190
|
+
"aria-label": "down"
|
|
187
191
|
}, {
|
|
188
192
|
default: function _default2() {
|
|
189
193
|
return [prefixInner, defaultTriggerElm, suffixInner];
|
|
190
194
|
}
|
|
191
195
|
}) : createVNode("span", {
|
|
192
196
|
"ref": "trigger",
|
|
193
|
-
"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"
|
|
194
199
|
}, [prefixInner, defaultTriggerElm, suffixInner]);
|
|
195
200
|
}
|
|
196
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.
|
|
4
|
+
"version": "3.29.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.
|
|
12
|
-
"@opentinyvue/vue-button-group": "~3.
|
|
13
|
-
"@opentinyvue/vue-common": "~3.
|
|
14
|
-
"@opentinyvue/vue-directive": "~3.
|
|
15
|
-
"@opentinyvue/vue-dropdown-menu": "~3.
|
|
16
|
-
"@opentinyvue/vue-icon": "~3.
|
|
17
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
18
|
-
"@opentinyvue/vue-theme": "~3.
|
|
11
|
+
"@opentinyvue/vue-button": "~3.29.0",
|
|
12
|
+
"@opentinyvue/vue-button-group": "~3.29.0",
|
|
13
|
+
"@opentinyvue/vue-common": "~3.29.0",
|
|
14
|
+
"@opentinyvue/vue-directive": "~3.29.0",
|
|
15
|
+
"@opentinyvue/vue-dropdown-menu": "~3.29.0",
|
|
16
|
+
"@opentinyvue/vue-icon": "~3.29.0",
|
|
17
|
+
"@opentinyvue/vue-renderless": "~3.29.0",
|
|
18
|
+
"@opentinyvue/vue-theme": "~3.29.0"
|
|
19
19
|
},
|
|
20
20
|
"types": "index.d.ts",
|
|
21
21
|
"scripts": {
|