@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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.10.2",
4
+ "version": "3.10.4",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.10.2",
4
+ "version": "3.10.4",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
package/lib/varlet.cjs.js CHANGED
@@ -24315,7 +24315,7 @@ const __sfc__$i = vue.defineComponent({
24315
24315
  }
24316
24316
  }
24317
24317
  function handleClear() {
24318
- const { disabled, readonly, multiple: multiple2, clearable, onClear } = props2;
24318
+ const { disabled, readonly, multiple: multiple2, clearable, onClear, onChange } = props2;
24319
24319
  if ((form == null ? void 0 : form.disabled.value) || (form == null ? void 0 : form.readonly.value) || disabled || readonly || !clearable) {
24320
24320
  return;
24321
24321
  }
@@ -24323,6 +24323,8 @@ const __sfc__$i = vue.defineComponent({
24323
24323
  call(props2["onUpdate:modelValue"], changedModelValue);
24324
24324
  call(onClear, changedModelValue);
24325
24325
  validateWithTrigger("onClear");
24326
+ call(onChange, changedModelValue);
24327
+ validateWithTrigger("onChange");
24326
24328
  }
24327
24329
  function handleClick(e) {
24328
24330
  const { disabled, onClick } = props2;
@@ -24333,20 +24335,22 @@ const __sfc__$i = vue.defineComponent({
24333
24335
  validateWithTrigger("onClick");
24334
24336
  }
24335
24337
  function handleClose(text) {
24336
- const { disabled, readonly, modelValue, onClose } = props2;
24338
+ const { disabled, readonly, modelValue, onClose, onChange } = props2;
24337
24339
  if ((form == null ? void 0 : form.disabled.value) || (form == null ? void 0 : form.readonly.value) || disabled || readonly) {
24338
24340
  return;
24339
24341
  }
24340
24342
  const option = options.find(({ label: label2 }) => label2.value === text);
24341
- const currentModelValue = modelValue.filter(
24343
+ const changedModelValue = modelValue.filter(
24342
24344
  (value) => {
24343
24345
  var _a;
24344
24346
  return value !== ((_a = option.value.value) != null ? _a : option.label.value);
24345
24347
  }
24346
24348
  );
24347
- call(props2["onUpdate:modelValue"], currentModelValue);
24348
- call(onClose, currentModelValue);
24349
+ call(props2["onUpdate:modelValue"], changedModelValue);
24350
+ call(onClose, changedModelValue);
24349
24351
  validateWithTrigger("onClose");
24352
+ call(onChange, changedModelValue);
24353
+ validateWithTrigger("onChange");
24350
24354
  }
24351
24355
  function focus() {
24352
24356
  offsetY.value = toPxNum(props2.offsetY);
@@ -32013,7 +32017,7 @@ withInstall(stdin_default$1);
32013
32017
  withPropsDefaultsSetter(stdin_default$1, props);
32014
32018
  const _WatermarkComponent = stdin_default$1;
32015
32019
  var stdin_default = stdin_default$1;
32016
- const version = "3.10.2";
32020
+ const version = "3.10.4";
32017
32021
  function install(app) {
32018
32022
  stdin_default$60.install && app.use(stdin_default$60);
32019
32023
  stdin_default$5_.install && app.use(stdin_default$5_);