@varlet/ui 2.18.0-alpha.1697472019506 → 2.18.0-alpha.1697511280107
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/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/menu-select/MenuSelect.mjs +5 -4
- package/es/menu-select/menuSelect.css +1 -1
- package/es/menu-select/props.mjs +0 -1
- package/es/style.css +1 -1
- package/es/themes/dark/index.mjs +3 -2
- package/es/themes/dark/menuSelect.mjs +6 -0
- package/es/varlet.esm.js +323 -321
- package/highlight/web-types.en-US.json +1 -10
- package/highlight/web-types.zh-CN.json +1 -10
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +766 -763
- package/package.json +7 -7
- package/types/menuSelect.d.ts +0 -1
- package/umd/varlet.js +6 -6
package/es/index.bundle.mjs
CHANGED
|
@@ -256,7 +256,7 @@ import './tooltip/style/index.mjs'
|
|
|
256
256
|
import './uploader/style/index.mjs'
|
|
257
257
|
import './watermark/style/index.mjs'
|
|
258
258
|
|
|
259
|
-
const version = '2.18.0-alpha.
|
|
259
|
+
const version = '2.18.0-alpha.1697511280107'
|
|
260
260
|
|
|
261
261
|
function install(app) {
|
|
262
262
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -170,7 +170,7 @@ export * from './tooltip/index.mjs'
|
|
|
170
170
|
export * from './uploader/index.mjs'
|
|
171
171
|
export * from './watermark/index.mjs'
|
|
172
172
|
|
|
173
|
-
const version = '2.18.0-alpha.
|
|
173
|
+
const version = '2.18.0-alpha.1697511280107'
|
|
174
174
|
|
|
175
175
|
function install(app) {
|
|
176
176
|
ActionSheet.install && app.use(ActionSheet)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import VarMenu from "../menu/index.mjs";
|
|
2
2
|
import { defineComponent, computed, ref } from "vue";
|
|
3
3
|
import { props } from "./props.mjs";
|
|
4
|
-
import { createNamespace, call, useVModel } from "../utils/components.mjs";
|
|
4
|
+
import { createNamespace, call, useVModel, formatElevation } from "../utils/components.mjs";
|
|
5
5
|
import { useMenuOptions } from "./provide.mjs";
|
|
6
6
|
import { useSelectController } from "../select/useSelectController.mjs";
|
|
7
7
|
const { name, n, classes } = createNamespace("menu-select");
|
|
@@ -21,7 +21,7 @@ function __render__(_ctx, _cache) {
|
|
|
21
21
|
teleport: _ctx.teleport,
|
|
22
22
|
"same-width": _ctx.sameWidth,
|
|
23
23
|
elevation: _ctx.elevation,
|
|
24
|
-
"default-style":
|
|
24
|
+
"default-style": false,
|
|
25
25
|
"popover-class": _ctx.popoverClass,
|
|
26
26
|
"close-on-click-reference": _ctx.closeOnClickReference,
|
|
27
27
|
show: _ctx.show,
|
|
@@ -36,7 +36,7 @@ function __render__(_ctx, _cache) {
|
|
|
36
36
|
_createElementVNode(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
|
-
class: _normalizeClass(_ctx.classes(_ctx.n("
|
|
39
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("menu"), _ctx.formatElevation(_ctx.elevation, 3), [_ctx.scrollable, _ctx.n("--scrollable")]))
|
|
40
40
|
},
|
|
41
41
|
[
|
|
42
42
|
_renderSlot(_ctx.$slots, "options")
|
|
@@ -50,7 +50,7 @@ function __render__(_ctx, _cache) {
|
|
|
50
50
|
]),
|
|
51
51
|
_: 3
|
|
52
52
|
/* FORWARDED */
|
|
53
|
-
}, 8, ["class", "disabled", "trigger", "reference", "placement", "strategy", "offset-x", "offset-y", "teleport", "same-width", "elevation", "
|
|
53
|
+
}, 8, ["class", "disabled", "trigger", "reference", "placement", "strategy", "offset-x", "offset-y", "teleport", "same-width", "elevation", "popover-class", "close-on-click-reference", "show", "onOpen", "onOpened", "onClose", "onClosed", "onClickOutside"]);
|
|
54
54
|
}
|
|
55
55
|
const __sfc__ = defineComponent({
|
|
56
56
|
name,
|
|
@@ -97,6 +97,7 @@ const __sfc__ = defineComponent({
|
|
|
97
97
|
menu,
|
|
98
98
|
n,
|
|
99
99
|
classes,
|
|
100
|
+
formatElevation,
|
|
100
101
|
open,
|
|
101
102
|
close,
|
|
102
103
|
resize
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --menu-select-
|
|
1
|
+
:root { --menu-select-menu-max-height: 278px; --menu-select-menu-padding: 0; --menu-select-menu-border-radius: 2px; --menu-select-menu-background-color: #fff;}.var-menu-select__menu { padding: var(--menu-select-menu-padding); border-radius: var(--menu-select-menu-border-radius); background-color: var(--menu-select-menu-background-color);}.var-menu-select--scrollable { overflow-y: auto; max-height: var(--menu-select-menu-max-height);}
|