@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.
@@ -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.1697472019506'
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.1697472019506'
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": _ctx.defaultStyle,
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("scroller"), [_ctx.scrollable, _ctx.n("--scrollable")]))
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", "default-style", "popover-class", "close-on-click-reference", "show", "onOpen", "onOpened", "onClose", "onClosed", "onClickOutside"]);
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-scroller-max-height: 278px; --menu-select-scroller-padding: 4px 0; --menu-select-scroller-border-radius: 2px;}.var-menu-select__scroller { padding: var(--menu-select-scroller-padding); border-radius: var(--menu-select-scroller-border-radius);}.var-menu-select--scrollable { overflow-y: auto; max-height: var(--menu-select-scroller-max-height);}
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);}
@@ -43,7 +43,6 @@ const props = __spreadValues({
43
43
  "teleport",
44
44
  "sameWidth",
45
45
  "elevation",
46
- "defaultStyle",
47
46
  "popoverClass",
48
47
  "closeOnClickReference",
49
48
  "onOpen",