@varlet/ui 3.11.1 → 3.11.3
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/action-sheet/style/index.mjs +1 -1
- package/es/checkbox/Checkbox.mjs +50 -47
- package/es/checkbox/checkbox.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/menu-select/MenuSelect.mjs +3 -3
- package/es/radio/Radio.mjs +53 -47
- package/es/radio/radio.css +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +1041 -1031
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +121 -112
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/skeleton.d.ts +18 -21
- package/umd/varlet.js +8 -8
package/lib/varlet.cjs.js
CHANGED
|
@@ -4175,7 +4175,7 @@ const props$1g = {
|
|
|
4175
4175
|
};
|
|
4176
4176
|
const { name: name$1i, n: n$1p } = createNamespace("form-details");
|
|
4177
4177
|
const _hoisted_1$C = { key: 0 };
|
|
4178
|
-
const _hoisted_2$
|
|
4178
|
+
const _hoisted_2$9 = { key: 0 };
|
|
4179
4179
|
function __render__$1n(_ctx, _cache) {
|
|
4180
4180
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
4181
4181
|
name: _ctx.n()
|
|
@@ -4226,7 +4226,7 @@ function __render__$1n(_ctx, _cache) {
|
|
|
4226
4226
|
vue.renderSlot(_ctx.$slots, "extra-message", {}, () => [
|
|
4227
4227
|
_ctx.extraMessage ? (vue.openBlock(), vue.createElementBlock(
|
|
4228
4228
|
"div",
|
|
4229
|
-
_hoisted_2$
|
|
4229
|
+
_hoisted_2$9,
|
|
4230
4230
|
vue.toDisplayString(_ctx.extraMessage),
|
|
4231
4231
|
1
|
|
4232
4232
|
/* TEXT */
|
|
@@ -4767,7 +4767,7 @@ const props$1e = __spreadProps$a(__spreadValues$s({
|
|
|
4767
4767
|
});
|
|
4768
4768
|
const { name: name$1g, n: n$1n, classes: classes$14 } = createNamespace("input");
|
|
4769
4769
|
const _hoisted_1$A = ["aria-label", "placeholder", "enterkeyhint"];
|
|
4770
|
-
const _hoisted_2$
|
|
4770
|
+
const _hoisted_2$8 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
4771
4771
|
const _hoisted_3$4 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
4772
4772
|
function __render__$1l(_ctx, _cache) {
|
|
4773
4773
|
const _component_var_field_decorator = vue.resolveComponent("var-field-decorator");
|
|
@@ -4859,7 +4859,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4859
4859
|
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
4860
4860
|
onCompositionstart: _cache[4] || (_cache[4] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
4861
4861
|
onCompositionend: _cache[5] || (_cache[5] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args))
|
|
4862
|
-
}, null, 46, _hoisted_2$
|
|
4862
|
+
}, null, 46, _hoisted_2$8)) : (vue.openBlock(), vue.createElementBlock("input", {
|
|
4863
4863
|
key: 2,
|
|
4864
4864
|
id: _ctx.id,
|
|
4865
4865
|
ref: "el",
|
|
@@ -5198,7 +5198,7 @@ function useCheckboxGroup() {
|
|
|
5198
5198
|
};
|
|
5199
5199
|
}
|
|
5200
5200
|
const { name: name$1f, n: n$1m, classes: classes$13 } = createNamespace("checkbox");
|
|
5201
|
-
const _hoisted_1$z = ["tabindex"];
|
|
5201
|
+
const _hoisted_1$z = ["aria-checked", "aria-disabled", "tabindex"];
|
|
5202
5202
|
function __render__$1k(_ctx, _cache) {
|
|
5203
5203
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
5204
5204
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
@@ -5211,15 +5211,20 @@ function __render__$1k(_ctx, _cache) {
|
|
|
5211
5211
|
class: vue.normalizeClass(_ctx.n("wrap"))
|
|
5212
5212
|
},
|
|
5213
5213
|
[
|
|
5214
|
-
vue.createElementVNode(
|
|
5215
|
-
"
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5214
|
+
vue.createElementVNode("div", {
|
|
5215
|
+
ref: "checkbox",
|
|
5216
|
+
role: "checkbox",
|
|
5217
|
+
"aria-checked": _ctx.isIndeterminate ? "mixed" : _ctx.checked,
|
|
5218
|
+
"aria-disabled": _ctx.formDisabled || _ctx.disabled,
|
|
5219
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
5220
|
+
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
5221
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = true),
|
|
5222
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.isFocusing = false),
|
|
5223
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
5224
|
+
}, [
|
|
5225
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
5226
|
+
"div",
|
|
5227
|
+
{
|
|
5223
5228
|
class: vue.normalizeClass(
|
|
5224
5229
|
_ctx.classes(
|
|
5225
5230
|
_ctx.n("action"),
|
|
@@ -5228,11 +5233,9 @@ function __render__$1k(_ctx, _cache) {
|
|
|
5228
5233
|
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
5229
5234
|
)
|
|
5230
5235
|
),
|
|
5231
|
-
style: vue.normalizeStyle({ color: _ctx.checked || _ctx.isIndeterminate ? _ctx.checkedColor : _ctx.uncheckedColor })
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
5235
|
-
}, [
|
|
5236
|
+
style: vue.normalizeStyle({ color: _ctx.checked || _ctx.isIndeterminate ? _ctx.checkedColor : _ctx.uncheckedColor })
|
|
5237
|
+
},
|
|
5238
|
+
[
|
|
5236
5239
|
_ctx.isIndeterminate ? vue.renderSlot(_ctx.$slots, "indeterminate-icon", { key: 0 }, () => [
|
|
5237
5240
|
vue.createVNode(_component_var_icon, {
|
|
5238
5241
|
class: vue.normalizeClass(_ctx.n("icon")),
|
|
@@ -5261,33 +5264,33 @@ function __render__$1k(_ctx, _cache) {
|
|
|
5261
5264
|
hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
|
|
5262
5265
|
focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
|
|
5263
5266
|
}, null, 8, ["hovering", "focusing"])
|
|
5264
|
-
],
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
_ctx
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
)
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
),
|
|
5267
|
+
],
|
|
5268
|
+
6
|
|
5269
|
+
/* CLASS, STYLE */
|
|
5270
|
+
)), [
|
|
5271
|
+
[_directive_hover, _ctx.handleHovering, "desktop"],
|
|
5272
|
+
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }]
|
|
5273
|
+
]),
|
|
5274
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(
|
|
5275
|
+
"div",
|
|
5276
|
+
{
|
|
5277
|
+
key: 0,
|
|
5278
|
+
class: vue.normalizeClass(
|
|
5279
|
+
_ctx.classes(
|
|
5280
|
+
_ctx.n("text"),
|
|
5281
|
+
[_ctx.errorMessage || _ctx.checkboxGroupErrorMessage, _ctx.n("--error")],
|
|
5282
|
+
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
5283
|
+
)
|
|
5284
|
+
),
|
|
5285
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
|
|
5286
|
+
},
|
|
5287
|
+
[
|
|
5288
|
+
vue.renderSlot(_ctx.$slots, "default", { checked: _ctx.checked })
|
|
5289
|
+
],
|
|
5290
|
+
2
|
|
5291
|
+
/* CLASS */
|
|
5292
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
5293
|
+
], 42, _hoisted_1$z),
|
|
5291
5294
|
vue.createVNode(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])
|
|
5292
5295
|
],
|
|
5293
5296
|
2
|
|
@@ -5304,7 +5307,7 @@ const __sfc__$1n = vue.defineComponent({
|
|
|
5304
5307
|
},
|
|
5305
5308
|
props: props$1d,
|
|
5306
5309
|
setup(props2) {
|
|
5307
|
-
const
|
|
5310
|
+
const checkbox = vue.ref(null);
|
|
5308
5311
|
const isFocusing = vue.ref(false);
|
|
5309
5312
|
const value = useVModel(props2, "modelValue");
|
|
5310
5313
|
const isIndeterminate = useVModel(props2, "indeterminate");
|
|
@@ -5367,7 +5370,7 @@ const __sfc__$1n = vue.defineComponent({
|
|
|
5367
5370
|
change(checked.value ? uncheckedValue : checkedValue2);
|
|
5368
5371
|
}
|
|
5369
5372
|
function handleTextClick() {
|
|
5370
|
-
|
|
5373
|
+
checkbox.value.focus();
|
|
5371
5374
|
}
|
|
5372
5375
|
function sync(values) {
|
|
5373
5376
|
const { checkedValue: checkedValue2, uncheckedValue } = props2;
|
|
@@ -5394,7 +5397,7 @@ const __sfc__$1n = vue.defineComponent({
|
|
|
5394
5397
|
preventDefault(event);
|
|
5395
5398
|
}
|
|
5396
5399
|
if (key3 === "Enter") {
|
|
5397
|
-
|
|
5400
|
+
checkbox.value.click();
|
|
5398
5401
|
}
|
|
5399
5402
|
}
|
|
5400
5403
|
function handleKeyup(event) {
|
|
@@ -5403,14 +5406,14 @@ const __sfc__$1n = vue.defineComponent({
|
|
|
5403
5406
|
}
|
|
5404
5407
|
if (event.key === " ") {
|
|
5405
5408
|
preventDefault(event);
|
|
5406
|
-
|
|
5409
|
+
checkbox.value.click();
|
|
5407
5410
|
}
|
|
5408
5411
|
}
|
|
5409
5412
|
function validate() {
|
|
5410
5413
|
return v(props2.rules, props2.modelValue);
|
|
5411
5414
|
}
|
|
5412
5415
|
return {
|
|
5413
|
-
|
|
5416
|
+
checkbox,
|
|
5414
5417
|
isFocusing,
|
|
5415
5418
|
isIndeterminate,
|
|
5416
5419
|
checked,
|
|
@@ -8193,12 +8196,12 @@ const __sfc__$1j = vue.defineComponent({
|
|
|
8193
8196
|
}
|
|
8194
8197
|
}
|
|
8195
8198
|
function getActiveElementParent(activeElement) {
|
|
8196
|
-
var _a, _b
|
|
8199
|
+
var _a, _b;
|
|
8197
8200
|
if (activeElement.classList.contains("var-menu-option--children-trigger")) {
|
|
8198
8201
|
return (_a = activeElement.parentNode) == null ? void 0 : _a.parentNode;
|
|
8199
8202
|
}
|
|
8200
|
-
if (activeElement.classList.contains("var-
|
|
8201
|
-
const optionElement = (
|
|
8203
|
+
if (activeElement.classList.contains("var-checkbox")) {
|
|
8204
|
+
const optionElement = (_b = activeElement.parentNode) == null ? void 0 : _b.parentNode;
|
|
8202
8205
|
if (optionElement) {
|
|
8203
8206
|
return getActiveElementParent(optionElement);
|
|
8204
8207
|
}
|
|
@@ -8942,7 +8945,7 @@ const props$18 = {
|
|
|
8942
8945
|
const isInternalSize$1 = (size) => ["mini", "small", "normal", "large"].includes(size);
|
|
8943
8946
|
const { name: name$19, n: n$1g, classes: classes$$ } = createNamespace("avatar");
|
|
8944
8947
|
const _hoisted_1$v = ["src", "alt", "lazy-loading", "lazy-error"];
|
|
8945
|
-
const _hoisted_2$
|
|
8948
|
+
const _hoisted_2$7 = ["src", "alt"];
|
|
8946
8949
|
function __render__$1e(_ctx, _cache) {
|
|
8947
8950
|
const _directive_lazy = vue.resolveDirective("lazy");
|
|
8948
8951
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -8993,7 +8996,7 @@ function __render__$1e(_ctx, _cache) {
|
|
|
8993
8996
|
style: vue.normalizeStyle({ objectFit: _ctx.fit }),
|
|
8994
8997
|
onLoad: _cache[1] || (_cache[1] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args)),
|
|
8995
8998
|
onError: _cache[2] || (_cache[2] = (...args) => _ctx.handleError && _ctx.handleError(...args))
|
|
8996
|
-
}, null, 46, _hoisted_2$
|
|
8999
|
+
}, null, 46, _hoisted_2$7))
|
|
8997
9000
|
],
|
|
8998
9001
|
64
|
|
8999
9002
|
/* STABLE_FRAGMENT */
|
|
@@ -18716,7 +18719,7 @@ const props$C = {
|
|
|
18716
18719
|
};
|
|
18717
18720
|
const { name: name$D, n: n$G, classes: classes$x } = createNamespace("image");
|
|
18718
18721
|
const _hoisted_1$n = ["alt", "title", "referrerpolicy", "lazy-loading", "lazy-error"];
|
|
18719
|
-
const _hoisted_2$
|
|
18722
|
+
const _hoisted_2$6 = ["alt", "title", "referrerpolicy", "src"];
|
|
18720
18723
|
function __render__$G(_ctx, _cache) {
|
|
18721
18724
|
var _a;
|
|
18722
18725
|
const _directive_lazy = vue.resolveDirective("lazy");
|
|
@@ -18759,7 +18762,7 @@ function __render__$G(_ctx, _cache) {
|
|
|
18759
18762
|
onLoad: _cache[2] || (_cache[2] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args)),
|
|
18760
18763
|
onError: _cache[3] || (_cache[3] = (...args) => _ctx.handleError && _ctx.handleError(...args)),
|
|
18761
18764
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
18762
|
-
}, null, 46, _hoisted_2$
|
|
18765
|
+
}, null, 46, _hoisted_2$6)) : vue.createCommentVNode("v-if", true),
|
|
18763
18766
|
_ctx.showErrorSlot ? vue.renderSlot(_ctx.$slots, "error", { key: 2 }) : vue.createCommentVNode("v-if", true)
|
|
18764
18767
|
],
|
|
18765
18768
|
6
|
|
@@ -19488,7 +19491,7 @@ const ANIMATION_DURATION = 200;
|
|
|
19488
19491
|
const LONG_PRESS_DELAY = 500;
|
|
19489
19492
|
const BASE_RATIO = 1;
|
|
19490
19493
|
const _hoisted_1$k = ["onTouchstart"];
|
|
19491
|
-
const _hoisted_2$
|
|
19494
|
+
const _hoisted_2$5 = ["src", "alt"];
|
|
19492
19495
|
function __render__$D(_ctx, _cache) {
|
|
19493
19496
|
const _component_var_swipe_item = vue.resolveComponent("var-swipe-item");
|
|
19494
19497
|
const _component_var_swipe = vue.resolveComponent("var-swipe");
|
|
@@ -19550,7 +19553,7 @@ function __render__$D(_ctx, _cache) {
|
|
|
19550
19553
|
class: vue.normalizeClass(_ctx.classes(_ctx.n("image"), [_ctx.isPreventDefault, _ctx.n("--prevent")])),
|
|
19551
19554
|
src: image,
|
|
19552
19555
|
alt: image
|
|
19553
|
-
}, null, 10, _hoisted_2$
|
|
19556
|
+
}, null, 10, _hoisted_2$5)
|
|
19554
19557
|
], 46, _hoisted_1$k)
|
|
19555
19558
|
]),
|
|
19556
19559
|
_: 2
|
|
@@ -21655,7 +21658,7 @@ const TRANSITION_DURATION = 200;
|
|
|
21655
21658
|
const MOMENTUM_TRANSITION_DURATION = 1e3;
|
|
21656
21659
|
let sid$1 = 0;
|
|
21657
21660
|
const _hoisted_1$g = ["onTouchstartPassive", "onTouchmove", "onTouchend"];
|
|
21658
|
-
const _hoisted_2$
|
|
21661
|
+
const _hoisted_2$4 = ["onTransitionend"];
|
|
21659
21662
|
const _hoisted_3$3 = ["onClick"];
|
|
21660
21663
|
function __render__$v(_ctx, _cache) {
|
|
21661
21664
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -21811,7 +21814,7 @@ function __render__$v(_ctx, _cache) {
|
|
|
21811
21814
|
128
|
|
21812
21815
|
/* KEYED_FRAGMENT */
|
|
21813
21816
|
))
|
|
21814
|
-
], 46, _hoisted_2$
|
|
21817
|
+
], 46, _hoisted_2$4)
|
|
21815
21818
|
], 42, _hoisted_1$g);
|
|
21816
21819
|
}),
|
|
21817
21820
|
128
|
|
@@ -22251,7 +22254,7 @@ const RADIUS = 20;
|
|
|
22251
22254
|
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
22252
22255
|
const { name: name$o, n: n$r, classes: classes$l } = createNamespace("progress");
|
|
22253
22256
|
const _hoisted_1$f = ["aria-valuenow"];
|
|
22254
|
-
const _hoisted_2$
|
|
22257
|
+
const _hoisted_2$3 = ["viewBox"];
|
|
22255
22258
|
const _hoisted_3$2 = { key: 0 };
|
|
22256
22259
|
const _hoisted_4$2 = ["id"];
|
|
22257
22260
|
const _hoisted_5$1 = ["offset", "stop-color"];
|
|
@@ -22405,7 +22408,7 @@ function __render__$u(_ctx, _cache) {
|
|
|
22405
22408
|
transformOrigin: "50% 50%"
|
|
22406
22409
|
})
|
|
22407
22410
|
}, null, 14, _hoisted_7)
|
|
22408
|
-
], 10, _hoisted_2$
|
|
22411
|
+
], 10, _hoisted_2$3)),
|
|
22409
22412
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
22410
22413
|
"div",
|
|
22411
22414
|
{
|
|
@@ -22775,8 +22778,7 @@ function useRadioGroup() {
|
|
|
22775
22778
|
};
|
|
22776
22779
|
}
|
|
22777
22780
|
const { name: name$m, n: n$p, classes: classes$j } = createNamespace("radio");
|
|
22778
|
-
const _hoisted_1$e = ["aria-checked"];
|
|
22779
|
-
const _hoisted_2$3 = ["tabindex"];
|
|
22781
|
+
const _hoisted_1$e = ["aria-checked", "aria-disabled", "tabindex"];
|
|
22780
22782
|
function __render__$s(_ctx, _cache) {
|
|
22781
22783
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
22782
22784
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
@@ -22790,47 +22792,54 @@ function __render__$s(_ctx, _cache) {
|
|
|
22790
22792
|
},
|
|
22791
22793
|
[
|
|
22792
22794
|
vue.createElementVNode("div", vue.mergeProps({
|
|
22795
|
+
ref: "radio",
|
|
22793
22796
|
role: "radio",
|
|
22797
|
+
class: _ctx.n(),
|
|
22794
22798
|
"aria-checked": _ctx.checked,
|
|
22795
|
-
|
|
22799
|
+
"aria-disabled": _ctx.formDisabled || _ctx.disabled
|
|
22796
22800
|
}, _ctx.$attrs, {
|
|
22797
|
-
|
|
22801
|
+
tabindex: _ctx.tabIndex,
|
|
22802
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
22803
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.isFocusing = true),
|
|
22804
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.isFocusing = false)
|
|
22798
22805
|
}), [
|
|
22799
|
-
vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
_ctx.
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
|
|
22819
|
-
size
|
|
22820
|
-
|
|
22821
|
-
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
|
|
22826
|
-
size
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
|
|
22806
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
22807
|
+
"div",
|
|
22808
|
+
{
|
|
22809
|
+
class: vue.normalizeClass(
|
|
22810
|
+
_ctx.classes(
|
|
22811
|
+
_ctx.n("action"),
|
|
22812
|
+
[_ctx.checked, _ctx.n("--checked"), _ctx.n("--unchecked")],
|
|
22813
|
+
[_ctx.errorMessage || _ctx.radioGroupErrorMessage, _ctx.n("--error")],
|
|
22814
|
+
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
22815
|
+
)
|
|
22816
|
+
),
|
|
22817
|
+
style: vue.normalizeStyle({ color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor })
|
|
22818
|
+
},
|
|
22819
|
+
[
|
|
22820
|
+
_ctx.checked ? vue.renderSlot(_ctx.$slots, "checked-icon", { key: 0 }, () => [
|
|
22821
|
+
vue.createVNode(_component_var_icon, {
|
|
22822
|
+
class: vue.normalizeClass(_ctx.n("icon")),
|
|
22823
|
+
"var-radio-cover": "",
|
|
22824
|
+
name: "radio-marked",
|
|
22825
|
+
size: _ctx.iconSize
|
|
22826
|
+
}, null, 8, ["class", "size"])
|
|
22827
|
+
]) : vue.renderSlot(_ctx.$slots, "unchecked-icon", { key: 1 }, () => [
|
|
22828
|
+
vue.createVNode(_component_var_icon, {
|
|
22829
|
+
class: vue.normalizeClass(_ctx.n("icon")),
|
|
22830
|
+
"var-radio-cover": "",
|
|
22831
|
+
name: "radio-blank",
|
|
22832
|
+
size: _ctx.iconSize
|
|
22833
|
+
}, null, 8, ["class", "size"])
|
|
22834
|
+
]),
|
|
22835
|
+
vue.createVNode(_component_var_hover_overlay, {
|
|
22836
|
+
hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
|
|
22837
|
+
focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
|
|
22838
|
+
}, null, 8, ["hovering", "focusing"])
|
|
22839
|
+
],
|
|
22840
|
+
6
|
|
22841
|
+
/* CLASS, STYLE */
|
|
22842
|
+
)), [
|
|
22834
22843
|
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }],
|
|
22835
22844
|
[_directive_hover, _ctx.handleHovering, "desktop"]
|
|
22836
22845
|
]),
|
|
@@ -22845,7 +22854,7 @@ function __render__$s(_ctx, _cache) {
|
|
|
22845
22854
|
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
22846
22855
|
)
|
|
22847
22856
|
),
|
|
22848
|
-
onClick: _cache[
|
|
22857
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
|
|
22849
22858
|
},
|
|
22850
22859
|
[
|
|
22851
22860
|
vue.renderSlot(_ctx.$slots, "default", { checked: _ctx.checked })
|
|
@@ -22871,7 +22880,7 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22871
22880
|
inheritAttrs: false,
|
|
22872
22881
|
props: props$m,
|
|
22873
22882
|
setup(props2) {
|
|
22874
|
-
const
|
|
22883
|
+
const radio = vue.ref();
|
|
22875
22884
|
const isFocusing = vue.ref(false);
|
|
22876
22885
|
const value = useVModel(props2, "modelValue");
|
|
22877
22886
|
const checked = vue.computed(() => value.value === props2.checkedValue);
|
|
@@ -22905,8 +22914,8 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22905
22914
|
isFocusing: vue.computed(() => isFocusing.value),
|
|
22906
22915
|
// keyboard arrow move
|
|
22907
22916
|
move() {
|
|
22908
|
-
|
|
22909
|
-
|
|
22917
|
+
radio.value.focus();
|
|
22918
|
+
radio.value.click();
|
|
22910
22919
|
},
|
|
22911
22920
|
moveable() {
|
|
22912
22921
|
return !(form == null ? void 0 : form.disabled.value) && !props2.disabled && !(form == null ? void 0 : form.readonly.value) && !props2.readonly;
|
|
@@ -22925,7 +22934,7 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22925
22934
|
preventDefault(event);
|
|
22926
22935
|
}
|
|
22927
22936
|
if (key3 === "Enter") {
|
|
22928
|
-
|
|
22937
|
+
radio.value.click();
|
|
22929
22938
|
}
|
|
22930
22939
|
}
|
|
22931
22940
|
function handleKeyup(event) {
|
|
@@ -22934,7 +22943,7 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22934
22943
|
}
|
|
22935
22944
|
if (event.key === " ") {
|
|
22936
22945
|
preventDefault(event);
|
|
22937
|
-
|
|
22946
|
+
radio.value.click();
|
|
22938
22947
|
}
|
|
22939
22948
|
}
|
|
22940
22949
|
function validateWithTrigger(trigger) {
|
|
@@ -22965,7 +22974,7 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22965
22974
|
change(checked.value ? uncheckedValue : checkedValue);
|
|
22966
22975
|
}
|
|
22967
22976
|
function handleTextClick() {
|
|
22968
|
-
|
|
22977
|
+
radio.value.focus();
|
|
22969
22978
|
}
|
|
22970
22979
|
function sync(v2) {
|
|
22971
22980
|
const { checkedValue, uncheckedValue } = props2;
|
|
@@ -22989,7 +22998,7 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22989
22998
|
change(changedValue);
|
|
22990
22999
|
}
|
|
22991
23000
|
return {
|
|
22992
|
-
|
|
23001
|
+
radio,
|
|
22993
23002
|
isFocusing,
|
|
22994
23003
|
checked,
|
|
22995
23004
|
errorMessage,
|
|
@@ -32017,7 +32026,7 @@ withInstall(stdin_default$1);
|
|
|
32017
32026
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32018
32027
|
const _WatermarkComponent = stdin_default$1;
|
|
32019
32028
|
var stdin_default = stdin_default$1;
|
|
32020
|
-
const version = "3.11.
|
|
32029
|
+
const version = "3.11.3";
|
|
32021
32030
|
function install(app) {
|
|
32022
32031
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32023
32032
|
stdin_default$5_.install && app.use(stdin_default$5_);
|