@varlet/ui 2.13.0 → 2.13.1-alpha.1689610161691
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/Menu.mjs +1 -1
- package/es/menu/props.mjs +3 -0
- package/es/option/Option.mjs +3 -1
- package/es/select/Select.mjs +6 -5
- package/es/select/select.css +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +12 -8
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +14 -8
- package/package.json +6 -6
- package/types/menu.d.ts +1 -0
- package/umd/varlet.js +3 -3
package/lib/varlet.cjs.js
CHANGED
|
@@ -17075,6 +17075,9 @@ var props$s = {
|
|
|
17075
17075
|
type: Boolean,
|
|
17076
17076
|
default: true
|
|
17077
17077
|
},
|
|
17078
|
+
popoverClass: {
|
|
17079
|
+
type: String
|
|
17080
|
+
},
|
|
17078
17081
|
closeOnClickReference: {
|
|
17079
17082
|
type: Boolean,
|
|
17080
17083
|
default: false
|
|
@@ -17122,7 +17125,7 @@ function __render__$x(_ctx, _cache) {
|
|
|
17122
17125
|
zIndex: _ctx.zIndex,
|
|
17123
17126
|
width: _ctx.sameWidth ? _ctx.toSizeUnit(Math.ceil(_ctx.hostSize.width)) : void 0
|
|
17124
17127
|
}),
|
|
17125
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("menu"), _ctx.n("$--box"), [_ctx.defaultStyle, _ctx.n("--menu-background-color")], [_ctx.defaultStyle, _ctx.formatElevation(_ctx.elevation, 3)])),
|
|
17128
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("menu"), _ctx.n("$--box"), _ctx.popoverClass, [_ctx.defaultStyle, _ctx.n("--menu-background-color")], [_ctx.defaultStyle, _ctx.formatElevation(_ctx.elevation, 3)])),
|
|
17126
17129
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
17127
17130
|
}, ["stop"])),
|
|
17128
17131
|
onMouseenter: _cache[1] || (_cache[1] = function() {
|
|
@@ -17306,7 +17309,9 @@ var __sfc__$x = vue.defineComponent({
|
|
|
17306
17309
|
computeLabel
|
|
17307
17310
|
} = select2;
|
|
17308
17311
|
var handleClick = () => {
|
|
17309
|
-
|
|
17312
|
+
if (multiple.value) {
|
|
17313
|
+
optionSelected.value = !optionSelected.value;
|
|
17314
|
+
}
|
|
17310
17315
|
onSelect(optionProvider);
|
|
17311
17316
|
};
|
|
17312
17317
|
var handleSelect = () => onSelect(optionProvider);
|
|
@@ -20237,6 +20242,7 @@ function __render__$f(_ctx, _cache) {
|
|
|
20237
20242
|
show: _ctx.showMenu,
|
|
20238
20243
|
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.showMenu = $event),
|
|
20239
20244
|
class: vue.normalizeClass(_ctx.n("menu")),
|
|
20245
|
+
"popover-class": _ctx.variant === "standard" && _ctx.hint ? _ctx.n("--menu-margin") : void 0,
|
|
20240
20246
|
"offset-y": _ctx.offsetY,
|
|
20241
20247
|
disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled,
|
|
20242
20248
|
placement: _ctx.placement,
|
|
@@ -20247,7 +20253,7 @@ function __render__$f(_ctx, _cache) {
|
|
|
20247
20253
|
"div",
|
|
20248
20254
|
{
|
|
20249
20255
|
ref: "menuEl",
|
|
20250
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("scroller"), _ctx.n("
|
|
20256
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("scroller"), _ctx.n("$-elevation--3")))
|
|
20251
20257
|
},
|
|
20252
20258
|
[vue.renderSlot(_ctx.$slots, "default")],
|
|
20253
20259
|
2
|
|
@@ -20353,7 +20359,7 @@ function __render__$f(_ctx, _cache) {
|
|
|
20353
20359
|
))]) : vue.createCommentVNode("v-if", true)],
|
|
20354
20360
|
2
|
|
20355
20361
|
/* CLASS */
|
|
20356
|
-
), _ctx.
|
|
20362
|
+
), _ctx.enableCustomPlaceholder ? (vue.openBlock(), vue.createElementBlock(
|
|
20357
20363
|
"span",
|
|
20358
20364
|
{
|
|
20359
20365
|
key: 0,
|
|
@@ -20388,7 +20394,7 @@ function __render__$f(_ctx, _cache) {
|
|
|
20388
20394
|
)]),
|
|
20389
20395
|
_: 3
|
|
20390
20396
|
/* FORWARDED */
|
|
20391
|
-
}, 8, ["show", "class", "offset-y", "disabled", "placement", "onClickOutside"]), vue.createVNode(_component_var_form_details, {
|
|
20397
|
+
}, 8, ["show", "class", "popover-class", "offset-y", "disabled", "placement", "onClickOutside"]), vue.createVNode(_component_var_form_details, {
|
|
20392
20398
|
"error-message": _ctx.errorMessage,
|
|
20393
20399
|
onClick: _cache[2] || (_cache[2] = vue.withModifiers(() => {
|
|
20394
20400
|
}, ["stop"]))
|
|
@@ -20452,7 +20458,7 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20452
20458
|
}
|
|
20453
20459
|
return blurColor || "var(--field-decorator-blur-color)";
|
|
20454
20460
|
});
|
|
20455
|
-
var
|
|
20461
|
+
var enableCustomPlaceholder = vue.computed(() => !props2.hint && isEmpty(props2.modelValue));
|
|
20456
20462
|
var computeLabel = () => {
|
|
20457
20463
|
var {
|
|
20458
20464
|
multiple: multiple2,
|
|
@@ -20674,7 +20680,7 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20674
20680
|
placement,
|
|
20675
20681
|
cursor,
|
|
20676
20682
|
placeholderColor,
|
|
20677
|
-
|
|
20683
|
+
enableCustomPlaceholder,
|
|
20678
20684
|
n: n$h,
|
|
20679
20685
|
classes: classes$d,
|
|
20680
20686
|
handleFocus,
|
|
@@ -25201,7 +25207,7 @@ const TimePickerSfc = "";
|
|
|
25201
25207
|
const TooltipSfc = "";
|
|
25202
25208
|
const uploader = "";
|
|
25203
25209
|
const UploaderSfc = "";
|
|
25204
|
-
const version = "2.13.
|
|
25210
|
+
const version = "2.13.1-alpha.1689610161691";
|
|
25205
25211
|
function install(app) {
|
|
25206
25212
|
ActionSheet.install && app.use(ActionSheet);
|
|
25207
25213
|
AppBar.install && app.use(AppBar);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.1-alpha.1689610161691",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@popperjs/core": "^2.11.6",
|
|
47
47
|
"dayjs": "^1.10.4",
|
|
48
48
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/icons": "2.13.
|
|
50
|
-
"@varlet/shared": "2.13.
|
|
51
|
-
"@varlet/use": "2.13.
|
|
49
|
+
"@varlet/icons": "2.13.1-alpha.1689610161691",
|
|
50
|
+
"@varlet/shared": "2.13.1-alpha.1689610161691",
|
|
51
|
+
"@varlet/use": "2.13.1-alpha.1689610161691"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.1.5",
|
|
64
64
|
"vue": "3.3.4",
|
|
65
65
|
"vue-router": "4.2.0",
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
66
|
+
"@varlet/touch-emulator": "2.13.1-alpha.1689610161691",
|
|
67
|
+
"@varlet/cli": "2.13.1-alpha.1689610161691"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|
package/types/menu.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export interface MenuProps extends BasicAttributes {
|
|
|
31
31
|
sameWidth?: boolean
|
|
32
32
|
elevation?: boolean | number | string
|
|
33
33
|
defaultStyle?: boolean
|
|
34
|
+
popoverClass?: string
|
|
34
35
|
closeOnClickReference?: boolean
|
|
35
36
|
onOpen?: ListenerProp<() => void>
|
|
36
37
|
onOpened?: ListenerProp<() => void>
|