@varlet/ui 3.10.2 → 3.10.4
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/collapse-item/collapseItem.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/select/Select.mjs +9 -5
- package/es/snackbar/style/index.mjs +1 -1
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +723 -723
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +10 -6
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/umd/varlet.js +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --collapse-background: var(--color-surface-container-highest); --collapse-text-color: #232222; --collapse-header-font-size: var(--font-size-lg); --collapse-header-padding: 10px 12px; --collapse-content-font-size: var(--font-size-md); --collapse-content-padding: 0 12px 10px; --collapse-item-margin-top: 16px; --collapse-disable-color: #bdbdbd; --collapse-border-top: thin solid var(--color-outline);}.var-collapse-item { -webkit-tap-highlight-color: transparent; box-sizing: border-box; position: relative; margin-top: 0; background: var(--collapse-background); color: var(--collapse-text-color); transition: margin-top 0.25s, background-color 0.25s;}.var-collapse-item__shadow { bottom: 0; content: ''; left: 0; position: absolute; right: 0; top: 0; z-index: -1;}.var-collapse-item:not(:first-child)::after { border-top: var(--collapse-
|
|
1
|
+
:root { --collapse-background: var(--color-surface-container-highest); --collapse-text-color: #232222; --collapse-header-font-size: var(--font-size-lg); --collapse-header-padding: 10px 12px; --collapse-content-font-size: var(--font-size-md); --collapse-content-padding: 0 12px 10px; --collapse-item-margin-top: 16px; --collapse-disable-color: #bdbdbd; --collapse-border-top: thin solid var(--color-outline);}.var-collapse-item { -webkit-tap-highlight-color: transparent; box-sizing: border-box; position: relative; margin-top: 0; background: var(--collapse-background); color: var(--collapse-text-color); transition: margin-top 0.25s, background-color 0.25s;}.var-collapse-item__shadow { bottom: 0; content: ''; left: 0; position: absolute; right: 0; top: 0; z-index: -1;}.var-collapse-item:not(:first-child)::after { border-top: var(--collapse-divider-top); content: ''; left: 0; position: absolute; right: 0; top: 0;}.var-collapse-item__header { align-items: center; display: flex; font-size: var(--collapse-header-font-size); outline: none; padding: var(--collapse-header-padding); justify-content: space-between; position: relative;}.var-collapse-item__header-title { transition: color 0.25s;}.var-collapse-item__header-icon { transform: rotate(0deg); opacity: 1;}.var-collapse-item__header-open { transform: rotate(-180deg);}.var-collapse-item__header--disable { opacity: 0;}.var-collapse-item__header--cursor-pointer { cursor: pointer;}.var-collapse-item__content { font-size: var(--collapse-content-font-size); overflow: hidden; transition: all 0.25s;}.var-collapse-item__content-wrap { padding: var(--collapse-content-padding); word-break: break-all;}.var-collapse-item--active + .var-collapse-item,.var-collapse-item--active:not(:first-child) { margin-top: var(--collapse-item-margin-top);}.var-collapse-item--active + .var-collapse-item::after,.var-collapse-item--active:not(:first-child)::after { border-top: none;}.var-collapse-item--disable { color: var(--collapse-disable-color); cursor: not-allowed;}
|
package/es/index.bundle.mjs
CHANGED
|
@@ -283,7 +283,7 @@ import './tooltip/style/index.mjs'
|
|
|
283
283
|
import './uploader/style/index.mjs'
|
|
284
284
|
import './watermark/style/index.mjs'
|
|
285
285
|
|
|
286
|
-
const version = '3.10.
|
|
286
|
+
const version = '3.10.4'
|
|
287
287
|
|
|
288
288
|
function install(app) {
|
|
289
289
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ export * from './tooltip/index.mjs'
|
|
|
188
188
|
export * from './uploader/index.mjs'
|
|
189
189
|
export * from './watermark/index.mjs'
|
|
190
190
|
|
|
191
|
-
const version = '3.10.
|
|
191
|
+
const version = '3.10.4'
|
|
192
192
|
|
|
193
193
|
function install(app) {
|
|
194
194
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/select/Select.mjs
CHANGED
|
@@ -433,7 +433,7 @@ const __sfc__ = defineComponent({
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
function handleClear() {
|
|
436
|
-
const { disabled, readonly, multiple: multiple2, clearable, onClear } = props2;
|
|
436
|
+
const { disabled, readonly, multiple: multiple2, clearable, onClear, onChange } = props2;
|
|
437
437
|
if ((form == null ? void 0 : form.disabled.value) || (form == null ? void 0 : form.readonly.value) || disabled || readonly || !clearable) {
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
@@ -441,6 +441,8 @@ const __sfc__ = defineComponent({
|
|
|
441
441
|
call(props2["onUpdate:modelValue"], changedModelValue);
|
|
442
442
|
call(onClear, changedModelValue);
|
|
443
443
|
validateWithTrigger("onClear");
|
|
444
|
+
call(onChange, changedModelValue);
|
|
445
|
+
validateWithTrigger("onChange");
|
|
444
446
|
}
|
|
445
447
|
function handleClick(e) {
|
|
446
448
|
const { disabled, onClick } = props2;
|
|
@@ -451,20 +453,22 @@ const __sfc__ = defineComponent({
|
|
|
451
453
|
validateWithTrigger("onClick");
|
|
452
454
|
}
|
|
453
455
|
function handleClose(text) {
|
|
454
|
-
const { disabled, readonly, modelValue, onClose } = props2;
|
|
456
|
+
const { disabled, readonly, modelValue, onClose, onChange } = props2;
|
|
455
457
|
if ((form == null ? void 0 : form.disabled.value) || (form == null ? void 0 : form.readonly.value) || disabled || readonly) {
|
|
456
458
|
return;
|
|
457
459
|
}
|
|
458
460
|
const option = options.find(({ label: label2 }) => label2.value === text);
|
|
459
|
-
const
|
|
461
|
+
const changedModelValue = modelValue.filter(
|
|
460
462
|
(value) => {
|
|
461
463
|
var _a;
|
|
462
464
|
return value !== ((_a = option.value.value) != null ? _a : option.label.value);
|
|
463
465
|
}
|
|
464
466
|
);
|
|
465
|
-
call(props2["onUpdate:modelValue"],
|
|
466
|
-
call(onClose,
|
|
467
|
+
call(props2["onUpdate:modelValue"], changedModelValue);
|
|
468
|
+
call(onClose, changedModelValue);
|
|
467
469
|
validateWithTrigger("onClose");
|
|
470
|
+
call(onChange, changedModelValue);
|
|
471
|
+
validateWithTrigger("onChange");
|
|
468
472
|
}
|
|
469
473
|
function focus() {
|
|
470
474
|
offsetY.value = toPxNum(props2.offsetY);
|