@opentinyvue/vue-dropdown-item 3.24.0 → 3.26.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 +4 -4
- package/package.json +6 -6
- package/src/mobile-first.vue.d.ts +2 -1
package/lib/mobile-first.js
CHANGED
|
@@ -36,7 +36,7 @@ var _export_sfc = function _export_sfc2(sfc, props) {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
var _sfc_main = defineComponent({
|
|
39
|
-
emits: ["update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset"],
|
|
39
|
+
emits: ["update:modelValue", "change", "closed", "open", "opened", "close", "confirm", "reset", "click"],
|
|
40
40
|
props: [].concat(props, ["disabled", "icon", "itemData", "selected", "label", "level", "currentIndex", "tooltipContent"]),
|
|
41
41
|
setup: function setup$1(props2, context) {
|
|
42
42
|
return setup({
|
|
@@ -57,9 +57,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57
57
|
onMouseleave: _cache[1] || (_cache[1] = function() {
|
|
58
58
|
return _ctx.mouseLeave && _ctx.mouseLeave.apply(_ctx, arguments);
|
|
59
59
|
}),
|
|
60
|
-
class: normalizeClass(_ctx.m("mb-1 rounded-sm list-none leading-10 sm:leading-5.5 outline-0 min-w-[theme(spacing.18)] max-w-[theme(spacing.52)] w-full [&_svg]:sm:w-3.5 [&_svg]:sm:h-3.5 [&_svg]:sm:mr-1.5 [&_svg]:mr-2 [&_svg]:align-text-bottom", _ctx.disabled ? "cursor-not-allowed text-color-text-disabled [&_svg]:fill-color-text-disabled" : "text-color-text-primary active:bg-color-bg-4 visited:text-color-brand hover:bg-color-bg-2 focus:bg-color-bg-4 cursor-pointer", {
|
|
60
|
+
class: normalizeClass(_ctx.m("!mb-1 rounded-sm list-none leading-10 sm:leading-5.5 outline-0 min-w-[theme(spacing.18)] max-w-[theme(spacing.52)] w-full [&_svg]:sm:w-3.5 [&_svg]:sm:h-3.5 [&_svg]:sm:mr-1.5 [&_svg]:mr-2 [&_svg]:align-text-bottom", _ctx.disabled ? "cursor-not-allowed text-color-text-disabled [&_svg]:fill-color-text-disabled" : "text-color-text-primary active:bg-color-bg-4 visited:text-color-brand hover:bg-color-bg-2 focus:bg-color-bg-4 cursor-pointer", {
|
|
61
61
|
"text-color-brand-focus bg-color-fill-6": _ctx.dataStore.checkedStatus && _ctx.selected
|
|
62
|
-
}, _ctx.dataStore.multiStage ? "!px-0" : "[&:not(:last-of-type)]
|
|
62
|
+
}, _ctx.dataStore.multiStage ? "!px-0" : "[&:not(:last-of-type)]:!mb-1")),
|
|
63
63
|
onClick: _cache[2] || (_cache[2] = withModifiers(function() {
|
|
64
64
|
return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
|
|
65
65
|
}, ["stop"])),
|
|
@@ -70,7 +70,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
70
70
|
{
|
|
71
71
|
"data-tag": "tiny-dropdown-level",
|
|
72
72
|
ref: "level",
|
|
73
|
-
class: normalizeClass(["text-
|
|
73
|
+
class: normalizeClass(["text-sm", _ctx.level === "2" ? "mx-6 overflow-hidden text-ellipsis whitespace-nowrap" : "mx-4 sm:mx-3 overflow-hidden text-ellipsis whitespace-nowrap"])
|
|
74
74
|
},
|
|
75
75
|
[_ctx.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
76
76
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-dropdown-item",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.26.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-common": "~3.
|
|
12
|
-
"@opentinyvue/vue-directive": "~3.
|
|
13
|
-
"@opentinyvue/vue-icon": "~3.
|
|
14
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.
|
|
11
|
+
"@opentinyvue/vue-common": "~3.26.0",
|
|
12
|
+
"@opentinyvue/vue-directive": "~3.26.0",
|
|
13
|
+
"@opentinyvue/vue-icon": "~3.26.0",
|
|
14
|
+
"@opentinyvue/vue-renderless": "~3.26.0",
|
|
15
|
+
"@opentinyvue/vue-theme": "~3.26.0"
|
|
16
16
|
},
|
|
17
17
|
"types": "index.d.ts",
|
|
18
18
|
"scripts": {
|
|
@@ -15,7 +15,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
15
15
|
itemData?: any;
|
|
16
16
|
currentIndex?: any;
|
|
17
17
|
tooltipContent?: any;
|
|
18
|
-
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "change" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
18
|
+
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "click" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened")[], "change" | "click" | "close" | "reset" | "update:modelValue" | "confirm" | "open" | "closed" | "opened", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
19
19
|
label?: any;
|
|
20
20
|
disabled?: any;
|
|
21
21
|
icon?: any;
|
|
@@ -34,6 +34,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
34
34
|
tooltipContent?: any;
|
|
35
35
|
}>>> & {
|
|
36
36
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
37
38
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
38
39
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
39
40
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|