@varlet/ui 2.11.7 → 2.11.9-alpha.1687881786307
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/README.md +48 -1
- package/README.zh-CN.md +49 -1
- package/es/checkbox/checkbox.css +1 -1
- package/es/chip/chip.css +1 -1
- package/es/countdown/countdown.css +1 -0
- package/es/countdown/style/index.mjs +1 -0
- package/es/date-picker/date-picker.css +1 -1
- package/es/field-decorator/FieldDecorator.mjs +3 -0
- package/es/field-decorator/fieldDecorator.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/input.css +1 -1
- package/es/menu/Menu.mjs +2 -2
- package/es/menu/props.mjs +5 -0
- package/es/menu/usePopover.mjs +14 -9
- package/es/option/option.css +1 -1
- package/es/radio/radio.css +1 -1
- package/es/select/Select.mjs +17 -8
- package/es/select/select.css +1 -1
- package/es/style.css +1 -1
- package/es/themes/dark/checkbox.mjs +2 -1
- package/es/themes/dark/chip.mjs +2 -1
- package/es/themes/dark/countdown.mjs +3 -0
- package/es/themes/dark/datePicker.mjs +3 -1
- package/es/themes/dark/index.mjs +3 -1
- package/es/themes/dark/option.mjs +3 -0
- package/es/themes/dark/radio.mjs +2 -1
- package/es/themes/dark/timePicker.mjs +2 -1
- package/es/time-picker/timePicker.css +1 -1
- package/es/tooltip/Tooltip.mjs +2 -2
- package/es/tooltip/props.mjs +5 -0
- package/es/varlet.esm.js +5510 -5485
- package/highlight/web-types.en-US.json +27 -1
- package/highlight/web-types.zh-CN.json +23 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +70 -32
- package/package.json +6 -6
- package/types/bottomNavigation.d.ts +5 -5
- package/types/bottomNavigationItem.d.ts +2 -2
- package/types/menu.d.ts +1 -0
- package/types/picker.d.ts +1 -1
- package/types/tooltip.d.ts +1 -0
- package/umd/varlet.js +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -493,7 +493,7 @@ function useClickOutside(target, type, listener) {
|
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
const handler = (event) => {
|
|
496
|
-
const element = vue.unref(target);
|
|
496
|
+
const element = isFunction(target) ? target() : vue.unref(target);
|
|
497
497
|
if (element && !element.contains(event.target)) {
|
|
498
498
|
listener(event);
|
|
499
499
|
}
|
|
@@ -6232,7 +6232,7 @@ var __sfc__$V = vue.defineComponent({
|
|
|
6232
6232
|
call(props2.onChange, timeData.value);
|
|
6233
6233
|
showTime.value = parseFormat(props2.format, time);
|
|
6234
6234
|
};
|
|
6235
|
-
var
|
|
6235
|
+
var countdown2 = () => {
|
|
6236
6236
|
var {
|
|
6237
6237
|
time,
|
|
6238
6238
|
onEnd
|
|
@@ -6251,7 +6251,7 @@ var __sfc__$V = vue.defineComponent({
|
|
|
6251
6251
|
return;
|
|
6252
6252
|
}
|
|
6253
6253
|
if (isStart) {
|
|
6254
|
-
handle = requestAnimationFrame(
|
|
6254
|
+
handle = requestAnimationFrame(countdown2);
|
|
6255
6255
|
}
|
|
6256
6256
|
};
|
|
6257
6257
|
var start2 = function(resume) {
|
|
@@ -6263,7 +6263,7 @@ var __sfc__$V = vue.defineComponent({
|
|
|
6263
6263
|
}
|
|
6264
6264
|
isStart = true;
|
|
6265
6265
|
endTime = performance.now() + (remainingTime || toNumber(props2.time));
|
|
6266
|
-
|
|
6266
|
+
countdown2();
|
|
6267
6267
|
};
|
|
6268
6268
|
var pause = () => {
|
|
6269
6269
|
isStart = false;
|
|
@@ -6273,7 +6273,7 @@ var __sfc__$V = vue.defineComponent({
|
|
|
6273
6273
|
endTime = 0;
|
|
6274
6274
|
isStart = false;
|
|
6275
6275
|
cancelAnimationFrame(handle);
|
|
6276
|
-
|
|
6276
|
+
countdown2();
|
|
6277
6277
|
};
|
|
6278
6278
|
vue.watch(() => props2.time, () => {
|
|
6279
6279
|
reset();
|
|
@@ -13036,17 +13036,21 @@ function usePopover(options) {
|
|
|
13036
13036
|
};
|
|
13037
13037
|
}();
|
|
13038
13038
|
var handleHostClick = () => {
|
|
13039
|
-
|
|
13039
|
+
if (options.closeOnClickReference && show.value) {
|
|
13040
|
+
close();
|
|
13041
|
+
} else {
|
|
13042
|
+
open();
|
|
13043
|
+
}
|
|
13040
13044
|
};
|
|
13041
13045
|
var handlePopoverClose = () => {
|
|
13042
|
-
|
|
13043
|
-
call(options["onUpdate:show"], false);
|
|
13046
|
+
close();
|
|
13044
13047
|
};
|
|
13045
|
-
var handleClickOutside = () => {
|
|
13048
|
+
var handleClickOutside = (e) => {
|
|
13046
13049
|
if (options.trigger !== "click") {
|
|
13047
13050
|
return;
|
|
13048
13051
|
}
|
|
13049
13052
|
handlePopoverClose();
|
|
13053
|
+
call(options.onClickOutside, e);
|
|
13050
13054
|
};
|
|
13051
13055
|
var getPosition = () => {
|
|
13052
13056
|
computeHostSize();
|
|
@@ -13155,6 +13159,7 @@ function usePopover(options) {
|
|
|
13155
13159
|
modifiers
|
|
13156
13160
|
};
|
|
13157
13161
|
};
|
|
13162
|
+
var getReference = () => options.reference ? host.value.querySelector(options.reference) : host.value;
|
|
13158
13163
|
var resize = () => {
|
|
13159
13164
|
popoverInstance.setOptions(getPopperOptions());
|
|
13160
13165
|
};
|
|
@@ -13172,15 +13177,14 @@ function usePopover(options) {
|
|
|
13172
13177
|
show.value = false;
|
|
13173
13178
|
call(options["onUpdate:show"], false);
|
|
13174
13179
|
};
|
|
13175
|
-
useClickOutside(
|
|
13180
|
+
useClickOutside(getReference, "click", handleClickOutside);
|
|
13176
13181
|
vue.watch(() => options.offsetX, resize);
|
|
13177
13182
|
vue.watch(() => options.offsetY, resize);
|
|
13178
13183
|
vue.watch(() => options.placement, resize);
|
|
13179
13184
|
vue.watch(() => options.disabled, close);
|
|
13180
13185
|
vue.onMounted(() => {
|
|
13181
|
-
var
|
|
13182
|
-
|
|
13183
|
-
popoverInstance = createPopper(reference2 != null ? reference2 : host.value, popover.value, getPopperOptions());
|
|
13186
|
+
var _getReference;
|
|
13187
|
+
popoverInstance = createPopper((_getReference = getReference()) != null ? _getReference : host.value, popover.value, getPopperOptions());
|
|
13184
13188
|
});
|
|
13185
13189
|
vue.onUnmounted(() => {
|
|
13186
13190
|
popoverInstance.destroy();
|
|
@@ -13260,10 +13264,15 @@ var props$I = {
|
|
|
13260
13264
|
type: Boolean,
|
|
13261
13265
|
default: false
|
|
13262
13266
|
},
|
|
13267
|
+
closeOnClickReference: {
|
|
13268
|
+
type: Boolean,
|
|
13269
|
+
default: false
|
|
13270
|
+
},
|
|
13263
13271
|
onOpen: defineListenerProp(),
|
|
13264
13272
|
onOpened: defineListenerProp(),
|
|
13265
13273
|
onClose: defineListenerProp(),
|
|
13266
13274
|
onClosed: defineListenerProp(),
|
|
13275
|
+
onClickOutside: defineListenerProp(),
|
|
13267
13276
|
"onUpdate:show": defineListenerProp()
|
|
13268
13277
|
};
|
|
13269
13278
|
var {
|
|
@@ -13275,7 +13284,7 @@ function __render__$L(_ctx, _cache) {
|
|
|
13275
13284
|
"div",
|
|
13276
13285
|
{
|
|
13277
13286
|
ref: "host",
|
|
13278
|
-
class: vue.normalizeClass(_ctx.n()),
|
|
13287
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"))),
|
|
13279
13288
|
onClick: _cache[3] || (_cache[3] = function() {
|
|
13280
13289
|
return _ctx.handleHostClick && _ctx.handleHostClick(...arguments);
|
|
13281
13290
|
}),
|
|
@@ -13304,7 +13313,7 @@ function __render__$L(_ctx, _cache) {
|
|
|
13304
13313
|
"div",
|
|
13305
13314
|
{
|
|
13306
13315
|
ref: "popover",
|
|
13307
|
-
class: vue.normalizeClass(_ctx.n("tooltip")),
|
|
13316
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("tooltip"), _ctx.n("$--box"))),
|
|
13308
13317
|
style: vue.normalizeStyle({
|
|
13309
13318
|
zIndex: _ctx.zIndex
|
|
13310
13319
|
}),
|
|
@@ -15977,6 +15986,9 @@ function __render__$B(_ctx, _cache) {
|
|
|
15977
15986
|
"span",
|
|
15978
15987
|
{
|
|
15979
15988
|
ref: "placeholderTextEl",
|
|
15989
|
+
style: {
|
|
15990
|
+
"font-size": "var(--field-decorator-placeholder-size)"
|
|
15991
|
+
},
|
|
15980
15992
|
class: vue.normalizeClass(_ctx.classes(_ctx.n("placeholder-text"), _ctx.n("$--ellipsis"), [_ctx.size === "small", _ctx.n("placeholder-text--small")]))
|
|
15981
15993
|
},
|
|
15982
15994
|
vue.toDisplayString(_ctx.placeholder),
|
|
@@ -17162,10 +17174,15 @@ var props$s = {
|
|
|
17162
17174
|
type: Boolean,
|
|
17163
17175
|
default: true
|
|
17164
17176
|
},
|
|
17177
|
+
closeOnClickReference: {
|
|
17178
|
+
type: Boolean,
|
|
17179
|
+
default: false
|
|
17180
|
+
},
|
|
17165
17181
|
onOpen: defineListenerProp(),
|
|
17166
17182
|
onOpened: defineListenerProp(),
|
|
17167
17183
|
onClose: defineListenerProp(),
|
|
17168
17184
|
onClosed: defineListenerProp(),
|
|
17185
|
+
onClickOutside: defineListenerProp(),
|
|
17169
17186
|
"onUpdate:show": defineListenerProp()
|
|
17170
17187
|
};
|
|
17171
17188
|
var {
|
|
@@ -17177,7 +17194,7 @@ function __render__$x(_ctx, _cache) {
|
|
|
17177
17194
|
"div",
|
|
17178
17195
|
{
|
|
17179
17196
|
ref: "host",
|
|
17180
|
-
class: vue.normalizeClass(_ctx.n()),
|
|
17197
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(), _ctx.n("$--box"))),
|
|
17181
17198
|
onClick: _cache[3] || (_cache[3] = function() {
|
|
17182
17199
|
return _ctx.handleHostClick && _ctx.handleHostClick(...arguments);
|
|
17183
17200
|
}),
|
|
@@ -17210,7 +17227,7 @@ function __render__$x(_ctx, _cache) {
|
|
|
17210
17227
|
zIndex: _ctx.zIndex,
|
|
17211
17228
|
width: _ctx.sameWidth ? _ctx.toSizeUnit(Math.ceil(_ctx.hostSize.width)) : void 0
|
|
17212
17229
|
}),
|
|
17213
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("menu"), [_ctx.defaultStyle, _ctx.n("--menu-background-color")], [_ctx.defaultStyle, _ctx.formatElevation(_ctx.elevation, 3)])),
|
|
17230
|
+
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)])),
|
|
17214
17231
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
17215
17232
|
}, ["stop"])),
|
|
17216
17233
|
onMouseenter: _cache[1] || (_cache[1] = function() {
|
|
@@ -20444,16 +20461,17 @@ function __render__$f(_ctx, _cache) {
|
|
|
20444
20461
|
[vue.createVNode(
|
|
20445
20462
|
_component_var_menu,
|
|
20446
20463
|
{
|
|
20447
|
-
class: vue.normalizeClass(_ctx.n("menu")),
|
|
20448
20464
|
"var-select-cover": "",
|
|
20449
20465
|
"same-width": "",
|
|
20466
|
+
"close-on-click-reference": "",
|
|
20467
|
+
show: _ctx.showMenu,
|
|
20468
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.showMenu = $event),
|
|
20469
|
+
class: vue.normalizeClass(_ctx.n("menu")),
|
|
20450
20470
|
"offset-y": _ctx.offsetY,
|
|
20451
20471
|
disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled,
|
|
20452
20472
|
placement: _ctx.placement,
|
|
20453
20473
|
"default-style": false,
|
|
20454
|
-
|
|
20455
|
-
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.isFocus = $event),
|
|
20456
|
-
onClose: _ctx.handleBlur
|
|
20474
|
+
onClickOutside: _ctx.handleBlur
|
|
20457
20475
|
},
|
|
20458
20476
|
{
|
|
20459
20477
|
menu: vue.withCtx(() => [vue.createElementVNode(
|
|
@@ -20585,11 +20603,11 @@ function __render__$f(_ctx, _cache) {
|
|
|
20585
20603
|
7
|
|
20586
20604
|
/* TEXT, CLASS, STYLE */
|
|
20587
20605
|
)) : vue.createCommentVNode("v-if", true), vue.renderSlot(_ctx.$slots, "arrow-icon", {
|
|
20588
|
-
focus: _ctx.
|
|
20606
|
+
focus: _ctx.showMenu
|
|
20589
20607
|
}, () => [vue.createVNode(
|
|
20590
20608
|
_component_var_icon,
|
|
20591
20609
|
{
|
|
20592
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("arrow"), [_ctx.
|
|
20610
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("arrow"), [_ctx.showMenu, _ctx.n("--arrow-rotate")])),
|
|
20593
20611
|
"var-select-cover": "",
|
|
20594
20612
|
name: "menu-down",
|
|
20595
20613
|
transition: 300
|
|
@@ -20615,7 +20633,7 @@ function __render__$f(_ctx, _cache) {
|
|
|
20615
20633
|
/* FORWARDED */
|
|
20616
20634
|
},
|
|
20617
20635
|
8,
|
|
20618
|
-
["class", "offset-y", "disabled", "placement", "
|
|
20636
|
+
["show", "class", "offset-y", "disabled", "placement", "onClickOutside"]
|
|
20619
20637
|
), vue.createVNode(
|
|
20620
20638
|
_component_var_form_details,
|
|
20621
20639
|
{
|
|
@@ -20643,6 +20661,7 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20643
20661
|
props: props$f,
|
|
20644
20662
|
setup(props2) {
|
|
20645
20663
|
var isFocus = vue.ref(false);
|
|
20664
|
+
var showMenu = vue.ref(false);
|
|
20646
20665
|
var multiple = vue.computed(() => props2.multiple);
|
|
20647
20666
|
var focusColor = vue.computed(() => props2.focusColor);
|
|
20648
20667
|
var label = vue.ref("");
|
|
@@ -20763,6 +20782,7 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20763
20782
|
if (form != null && form.disabled.value || form != null && form.readonly.value || disabled || readonly) {
|
|
20764
20783
|
return;
|
|
20765
20784
|
}
|
|
20785
|
+
blur();
|
|
20766
20786
|
call(onBlur);
|
|
20767
20787
|
validateWithTrigger("onBlur");
|
|
20768
20788
|
};
|
|
@@ -20785,7 +20805,9 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20785
20805
|
call(props2["onUpdate:modelValue"], selectedValue);
|
|
20786
20806
|
call(onChange, selectedValue);
|
|
20787
20807
|
validateWithTrigger("onChange");
|
|
20788
|
-
!multiple2
|
|
20808
|
+
if (!multiple2) {
|
|
20809
|
+
blur();
|
|
20810
|
+
}
|
|
20789
20811
|
};
|
|
20790
20812
|
var handleClear = () => {
|
|
20791
20813
|
var {
|
|
@@ -20855,9 +20877,11 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20855
20877
|
var focus = () => {
|
|
20856
20878
|
offsetY.value = toPxNum(props2.offsetY);
|
|
20857
20879
|
isFocus.value = true;
|
|
20880
|
+
showMenu.value = true;
|
|
20858
20881
|
};
|
|
20859
20882
|
var blur = () => {
|
|
20860
20883
|
isFocus.value = false;
|
|
20884
|
+
showMenu.value = false;
|
|
20861
20885
|
};
|
|
20862
20886
|
var validate = () => v(props2.rules, props2.modelValue);
|
|
20863
20887
|
var reset = () => {
|
|
@@ -20891,6 +20915,7 @@ var __sfc__$g = vue.defineComponent({
|
|
|
20891
20915
|
return {
|
|
20892
20916
|
offsetY,
|
|
20893
20917
|
isFocus,
|
|
20918
|
+
showMenu,
|
|
20894
20919
|
errorMessage,
|
|
20895
20920
|
formDisabled: form == null ? void 0 : form.disabled,
|
|
20896
20921
|
formReadonly: form == null ? void 0 : form.readonly,
|
|
@@ -23749,10 +23774,12 @@ const cell$1 = {
|
|
|
23749
23774
|
"--cell-border-color": "#545454"
|
|
23750
23775
|
};
|
|
23751
23776
|
const checkbox$1 = {
|
|
23752
|
-
"--checkbox-unchecked-color": "#fff"
|
|
23777
|
+
"--checkbox-unchecked-color": "#fff",
|
|
23778
|
+
"--checkbox-text-color": "#fff"
|
|
23753
23779
|
};
|
|
23754
23780
|
const chip$1 = {
|
|
23755
|
-
"--chip-default-color": "#555"
|
|
23781
|
+
"--chip-default-color": "#555",
|
|
23782
|
+
"--chip-default-text-color": "#fff"
|
|
23756
23783
|
};
|
|
23757
23784
|
const collapse = {
|
|
23758
23785
|
"--collapse-background": "#303030",
|
|
@@ -23762,7 +23789,9 @@ const collapse = {
|
|
|
23762
23789
|
const datePicker$1 = {
|
|
23763
23790
|
"--date-picker-main-color": "#fff",
|
|
23764
23791
|
"--date-picker-body-background-color": "#303030",
|
|
23765
|
-
"--day-picker-head-item-color": "#aaaaaa"
|
|
23792
|
+
"--day-picker-head-item-color": "#aaaaaa",
|
|
23793
|
+
"--year-picker-item-color": "#fff",
|
|
23794
|
+
"--picker-header-color": "#fff"
|
|
23766
23795
|
};
|
|
23767
23796
|
const dialog$1 = {
|
|
23768
23797
|
"--dialog-background": "#1e1e1e",
|
|
@@ -23800,7 +23829,8 @@ const pullRefresh$1 = {
|
|
|
23800
23829
|
"--pull-refresh-background": "#303030"
|
|
23801
23830
|
};
|
|
23802
23831
|
const radio$1 = {
|
|
23803
|
-
"--radio-unchecked-color": "#fff"
|
|
23832
|
+
"--radio-unchecked-color": "#fff",
|
|
23833
|
+
"--radio-text-color": "#fff"
|
|
23804
23834
|
};
|
|
23805
23835
|
const result$1 = {
|
|
23806
23836
|
"--result-background": "#303030",
|
|
@@ -23844,7 +23874,8 @@ const table$1 = {
|
|
|
23844
23874
|
const timePicker$1 = {
|
|
23845
23875
|
"--time-picker-clock-container-background": "#545454",
|
|
23846
23876
|
"--time-picker-body-background": "#303030",
|
|
23847
|
-
"--time-picker-clock-item-disable-color": "#aaaaaa"
|
|
23877
|
+
"--time-picker-clock-item-disable-color": "#aaaaaa",
|
|
23878
|
+
"--time-picker-clock-item-text-color": "#fff"
|
|
23848
23879
|
};
|
|
23849
23880
|
const uploader$1 = {
|
|
23850
23881
|
"--uploader-action-background": "#303030",
|
|
@@ -23885,6 +23916,12 @@ const link$1 = {
|
|
|
23885
23916
|
const progress$1 = {
|
|
23886
23917
|
"--progress-label-color": "#fff"
|
|
23887
23918
|
};
|
|
23919
|
+
const option$1 = {
|
|
23920
|
+
"--options-text-color": "#fff"
|
|
23921
|
+
};
|
|
23922
|
+
const countdown$1 = {
|
|
23923
|
+
"--countdown-text-color": "#fff"
|
|
23924
|
+
};
|
|
23888
23925
|
function _extends() {
|
|
23889
23926
|
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
23890
23927
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -23910,7 +23947,7 @@ const dark = _extends({
|
|
|
23910
23947
|
"--color-danger": "#ef5350",
|
|
23911
23948
|
"--color-disabled": "#404040",
|
|
23912
23949
|
"--color-text-disabled": "#757575"
|
|
23913
|
-
}, button$1, cell$1, card$1, timePicker$1, datePicker$1, skeleton$1, tabs$1, tab$1, popup$1, dialog$1, actionSheet$1, chip$1, badge$1, uploader$1, collapse, pullRefresh$1, switchThemes, steps, pagination$1, table$1, fieldDecorator$1, select$1, radio$1, checkbox$1, divider$1, picker$1, appBar$1, bottomNavigation$1, bottomNavigationItem$1, menu$1, result$1, breadcrumb$1, paper$1, avatar$1, link$1, progress$1);
|
|
23950
|
+
}, button$1, cell$1, card$1, timePicker$1, datePicker$1, skeleton$1, tabs$1, tab$1, popup$1, dialog$1, actionSheet$1, chip$1, badge$1, uploader$1, collapse, pullRefresh$1, switchThemes, steps, pagination$1, table$1, fieldDecorator$1, select$1, radio$1, checkbox$1, divider$1, picker$1, appBar$1, bottomNavigation$1, bottomNavigationItem$1, menu$1, result$1, breadcrumb$1, paper$1, avatar$1, link$1, progress$1, option$1, countdown$1);
|
|
23914
23951
|
var Themes = {
|
|
23915
23952
|
dark
|
|
23916
23953
|
};
|
|
@@ -25510,6 +25547,7 @@ const ColSfc = "";
|
|
|
25510
25547
|
const CollapseSfc = "";
|
|
25511
25548
|
const collapseItem = "";
|
|
25512
25549
|
const CollapseItemSfc = "";
|
|
25550
|
+
const countdown = "";
|
|
25513
25551
|
const CountdownSfc = "";
|
|
25514
25552
|
const counter = "";
|
|
25515
25553
|
const CounterSfc = "";
|
|
@@ -25604,7 +25642,7 @@ const TimePickerSfc = "";
|
|
|
25604
25642
|
const TooltipSfc = "";
|
|
25605
25643
|
const uploader = "";
|
|
25606
25644
|
const UploaderSfc = "";
|
|
25607
|
-
const version = "2.11.
|
|
25645
|
+
const version = "2.11.9-alpha.1687881786307";
|
|
25608
25646
|
function install(app) {
|
|
25609
25647
|
ActionSheet.install && app.use(ActionSheet);
|
|
25610
25648
|
AppBar.install && app.use(AppBar);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.9-alpha.1687881786307",
|
|
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/
|
|
50
|
-
"@varlet/
|
|
51
|
-
"@varlet/use": "2.11.
|
|
49
|
+
"@varlet/icons": "2.11.9-alpha.1687881786307",
|
|
50
|
+
"@varlet/shared": "2.11.9-alpha.1687881786307",
|
|
51
|
+
"@varlet/use": "2.11.9-alpha.1687881786307"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@vue/runtime-core": "3.3.1",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^4.4.4",
|
|
64
64
|
"vue": "3.3.2",
|
|
65
65
|
"vue-router": "4.2.0",
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
66
|
+
"@varlet/touch-emulator": "2.11.9-alpha.1687881786307",
|
|
67
|
+
"@varlet/cli": "2.11.9-alpha.1687881786307"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VarComponent, BasicAttributes } from './varComponent'
|
|
1
|
+
import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
|
|
2
2
|
import { ButtonProps } from './button'
|
|
3
3
|
import { VNode } from 'vue'
|
|
4
4
|
|
|
@@ -13,10 +13,10 @@ export interface BottomNavigationProps extends BasicAttributes {
|
|
|
13
13
|
activeColor?: string
|
|
14
14
|
inactiveColor?: string
|
|
15
15
|
fabProps?: Partial<ButtonProps>
|
|
16
|
-
onChange?: (active: string | number) => void
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
onChange?: ListenerProp<(active: string | number) => void>
|
|
17
|
+
onBeforeChange?: ListenerProp<(active: string | number) => any | Promise<any>>
|
|
18
|
+
onFabClick?: ListenerProp<() => void>
|
|
19
|
+
'onUpdate:active'?: ListenerProp<(active: string | number) => void>
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export class BottomNavigation extends VarComponent {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VarComponent, BasicAttributes } from './varComponent'
|
|
1
|
+
import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
|
|
2
2
|
import { BadgeProps } from './badge'
|
|
3
3
|
import { VNode } from 'vue'
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ export interface BottomNavigationItemProps extends BasicAttributes {
|
|
|
10
10
|
label?: string
|
|
11
11
|
namespace?: string
|
|
12
12
|
badge?: boolean | BadgeProps
|
|
13
|
-
onClick?: (active: string | number) => void
|
|
13
|
+
onClick?: ListenerProp<(active: string | number) => void>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface BottomNavigationItemIcon {
|
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
|
+
closeOnClickReference?: boolean
|
|
34
35
|
onOpen?: ListenerProp<() => void>
|
|
35
36
|
onOpened?: ListenerProp<() => void>
|
|
36
37
|
onClose?: ListenerProp<() => void>
|
package/types/picker.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface PickerProps {
|
|
|
22
22
|
textKey?: string
|
|
23
23
|
toolbar?: boolean
|
|
24
24
|
cascade?: boolean
|
|
25
|
-
cascadeInitialIndexes
|
|
25
|
+
cascadeInitialIndexes?: number[]
|
|
26
26
|
textFormatter?: (text: any, columnIndex: number) => any
|
|
27
27
|
optionHeight?: string | number
|
|
28
28
|
optionCount?: string | number
|
package/types/tooltip.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export interface TooltipProps extends BasicAttributes {
|
|
|
25
25
|
offsetY?: string | number
|
|
26
26
|
teleport?: TeleportProps['to']
|
|
27
27
|
sameWidth?: boolean
|
|
28
|
+
closeOnClickReference?: boolean
|
|
28
29
|
onOpen?: ListenerProp<() => void>
|
|
29
30
|
onOpened?: ListenerProp<() => void>
|
|
30
31
|
onClose?: ListenerProp<() => void>
|