sard-uniapp 1.9.1 → 1.9.2

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.
Files changed (59) hide show
  1. package/changelog.md +9 -0
  2. package/components/calendar/calendar.d.ts +2 -0
  3. package/components/calendar/calendar.vue +2 -1
  4. package/components/calendar/common.d.ts +1 -0
  5. package/components/calendar-input/calendar-input.d.ts +2 -0
  6. package/components/calendar-input/calendar-input.vue +2 -1
  7. package/components/calendar-input/common.d.ts +1 -0
  8. package/components/cascader/cascader.d.ts +2 -0
  9. package/components/cascader/cascader.vue +6 -1
  10. package/components/cascader/common.d.ts +1 -0
  11. package/components/cascader-input/cascader-input.d.ts +2 -0
  12. package/components/cascader-input/cascader-input.vue +2 -1
  13. package/components/cascader-input/common.d.ts +1 -0
  14. package/components/checkbox-input/checkbox-input.d.ts +2 -0
  15. package/components/checkbox-input/checkbox-input.vue +2 -1
  16. package/components/checkbox-input/common.d.ts +1 -0
  17. package/components/datetime-picker/common.d.ts +1 -0
  18. package/components/datetime-picker/datetime-picker.d.ts +2 -0
  19. package/components/datetime-picker/datetime-picker.vue +2 -1
  20. package/components/datetime-picker-input/common.d.ts +1 -0
  21. package/components/datetime-picker-input/datetime-picker-input.d.ts +2 -0
  22. package/components/datetime-picker-input/datetime-picker-input.vue +3 -1
  23. package/components/input/common.d.ts +2 -0
  24. package/components/input/input.d.ts +5 -15
  25. package/components/input/input.vue +12 -2
  26. package/components/password-input/common.d.ts +1 -0
  27. package/components/password-input/password-input.d.ts +2 -0
  28. package/components/password-input/password-input.vue +2 -1
  29. package/components/picker/common.d.ts +1 -0
  30. package/components/picker/picker.d.ts +2 -0
  31. package/components/picker/picker.vue +2 -1
  32. package/components/picker-input/common.d.ts +1 -0
  33. package/components/picker-input/picker-input.d.ts +2 -0
  34. package/components/picker-input/picker-input.vue +3 -1
  35. package/components/popout-input/common.d.ts +1 -0
  36. package/components/popout-input/popout-input.d.ts +2 -0
  37. package/components/popout-input/popout-input.vue +2 -1
  38. package/components/radio-input/common.d.ts +1 -0
  39. package/components/radio-input/radio-input.d.ts +2 -0
  40. package/components/radio-input/radio-input.vue +3 -1
  41. package/components/rate/common.d.ts +1 -0
  42. package/components/rate/rate.d.ts +2 -0
  43. package/components/rate/rate.vue +3 -1
  44. package/components/search/common.d.ts +2 -0
  45. package/components/search/search.d.ts +5 -15
  46. package/components/search/search.vue +7 -2
  47. package/components/slider/common.d.ts +1 -0
  48. package/components/slider/slider.d.ts +2 -0
  49. package/components/slider/slider.vue +4 -2
  50. package/components/stepper/common.d.ts +1 -0
  51. package/components/stepper/stepper.d.ts +2 -0
  52. package/components/stepper/stepper.vue +2 -1
  53. package/components/switch/common.d.ts +1 -0
  54. package/components/switch/switch.d.ts +2 -0
  55. package/components/switch/switch.vue +2 -1
  56. package/components/upload/common.d.ts +1 -0
  57. package/components/upload/upload.d.ts +2 -0
  58. package/components/upload/upload.vue +3 -1
  59. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.9.2](https://github.com/sutras/sard-uniapp/compare/v1.9.1...v1.9.2) (2024-12-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * 表单组件新增change事件 ([58f2fa8](https://github.com/sutras/sard-uniapp/commit/58f2fa88e59f4b28b23592cf9ff17e2353a9ae37))
7
+
8
+
9
+
1
10
  ## [1.9.1](https://github.com/sutras/sard-uniapp/compare/v1.9.0...v1.9.1) (2024-12-22)
2
11
 
3
12
 
@@ -1,8 +1,10 @@
1
1
  import { type CalendarProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: Date | Date[]) => any;
4
+ change: (value: Date | Date[]) => any;
4
5
  }, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
5
6
  "onUpdate:model-value"?: ((value: Date | Date[]) => any) | undefined;
7
+ onChange?: ((value: Date | Date[]) => any) | undefined;
6
8
  }>, {
7
9
  type: import("./common").CalendarType;
8
10
  maxDays: number;
@@ -135,7 +135,7 @@ export default _defineComponent({
135
135
  allowSameDay: { type: Boolean, required: false },
136
136
  severalMonths: { type: Boolean, required: false }
137
137
  }, defaultCalendarProps),
138
- emits: ["update:model-value"],
138
+ emits: ["update:model-value", "change"],
139
139
  setup(__props, { expose: __expose, emit: __emit }) {
140
140
  __expose();
141
141
  const props = __props;
@@ -287,6 +287,7 @@ export default _defineComponent({
287
287
  if (nextValue !== void 0) {
288
288
  innerValue.value = nextValue;
289
289
  emit("update:model-value", nextValue);
290
+ emit("change", nextValue);
290
291
  }
291
292
  };
292
293
  const inPopup = useInPopup();
@@ -35,6 +35,7 @@ export declare const defaultCalendarProps: {
35
35
  };
36
36
  export interface CalendarEmits {
37
37
  (e: 'update:model-value', value: Date | Date[]): void;
38
+ (e: 'change', value: Date | Date[]): void;
38
39
  }
39
40
  export interface CalendarMonthProps {
40
41
  year: number;
@@ -2,9 +2,11 @@ import { type CalendarType } from '../calendar/common';
2
2
  import { type CalendarInputProps } from './common';
3
3
  declare const _default: import("vue").DefineComponent<CalendarInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
4
  "update:model-value": (value: Date | Date[] | undefined) => any;
5
+ change: (value: Date | Date[] | undefined) => any;
5
6
  "update:visible": (visible: boolean) => any;
6
7
  }, string, import("vue").PublicProps, Readonly<CalendarInputProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: Date | Date[] | undefined) => any) | undefined;
9
+ onChange?: ((value: Date | Date[] | undefined) => any) | undefined;
8
10
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
9
11
  }>, {
10
12
  type: CalendarType;
@@ -91,7 +91,7 @@ export default _defineComponent({
91
91
  clearable: { type: Boolean, required: false },
92
92
  multiline: { type: Boolean, required: false }
93
93
  }, defaultCalendarInputProps),
94
- emits: ["update:visible", "update:model-value"],
94
+ emits: ["update:visible", "update:model-value", "change"],
95
95
  setup(__props, { expose: __expose, emit: __emit }) {
96
96
  __expose();
97
97
  const props = __props;
@@ -125,6 +125,7 @@ export default _defineComponent({
125
125
  const onConfirm = () => {
126
126
  innerValue.value = popoutValue.value;
127
127
  emit("update:model-value", popoutValue.value);
128
+ emit("change", popoutValue.value);
128
129
  inputValue.value = getInputValue();
129
130
  };
130
131
  const inputValue = ref("");
@@ -16,4 +16,5 @@ export declare const defaultCalendarInputProps: {
16
16
  export interface CalendarInputEmits {
17
17
  (e: 'update:visible', visible: boolean): void;
18
18
  (e: 'update:model-value', value: Date | Date[] | undefined): void;
19
+ (e: 'change', value: Date | Date[] | undefined): void;
19
20
  }
@@ -2,9 +2,11 @@ import { type CascaderProps, type CascaderSlots, type CascaderOption } from './c
2
2
  declare function __VLS_template(): Readonly<CascaderSlots> & CascaderSlots;
3
3
  declare const __VLS_component: import("vue").DefineComponent<CascaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
4
  "update:model-value": (value: string | number, selectedOptions: CascaderOption[]) => any;
5
+ change: (value: string | number, selectedOptions: CascaderOption[]) => any;
5
6
  select: (option: CascaderOption, tabIndex: number) => any;
6
7
  }, string, import("vue").PublicProps, Readonly<CascaderProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: string | number, selectedOptions: CascaderOption[]) => any) | undefined;
9
+ onChange?: ((value: string | number, selectedOptions: CascaderOption[]) => any) | undefined;
8
10
  onSelect?: ((option: CascaderOption, tabIndex: number) => any) | undefined;
9
11
  }>, {
10
12
  options: CascaderOption[];
@@ -109,7 +109,7 @@ export default _defineComponent({
109
109
  hintText: { type: String, required: false },
110
110
  labelRender: { type: Function, required: false }
111
111
  }, defaultCascaderProps),
112
- emits: ["update:model-value", "select"],
112
+ emits: ["update:model-value", "change", "select"],
113
113
  setup(__props, { expose: __expose, emit: __emit }) {
114
114
  __expose();
115
115
  const props = __props;
@@ -188,6 +188,11 @@ export default _defineComponent({
188
188
  nextValue,
189
189
  nextTabs.map((tab) => tab.selected)
190
190
  );
191
+ emit(
192
+ "change",
193
+ nextValue,
194
+ nextTabs.map((tab) => tab.selected)
195
+ );
191
196
  }
192
197
  tempValue = option[mergedFieldKeys.value.value];
193
198
  tabs.value = nextTabs;
@@ -31,6 +31,7 @@ export interface CascaderSlots {
31
31
  }
32
32
  export interface CascaderEmits {
33
33
  (e: 'update:model-value', value: string | number, selectedOptions: CascaderOption[]): void;
34
+ (e: 'change', value: string | number, selectedOptions: CascaderOption[]): void;
34
35
  (e: 'select', option: CascaderOption, tabIndex: number): void;
35
36
  }
36
37
  export interface CascaderTab {
@@ -3,10 +3,12 @@ import { type CascaderInputProps, type CascaderInputSlots } from './common';
3
3
  declare function __VLS_template(): Readonly<CascaderInputSlots> & CascaderInputSlots;
4
4
  declare const __VLS_component: import("vue").DefineComponent<CascaderInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
5
  "update:model-value": (value: any) => any;
6
+ change: (value: any) => any;
6
7
  select: (option: CascaderOption, tabIndex: number) => any;
7
8
  "update:visible": (visible: boolean) => any;
8
9
  }, string, import("vue").PublicProps, Readonly<CascaderInputProps> & Readonly<{
9
10
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
11
+ onChange?: ((value: any) => any) | undefined;
10
12
  onSelect?: ((option: CascaderOption, tabIndex: number) => any) | undefined;
11
13
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
12
14
  }>, {
@@ -84,7 +84,7 @@ export default _defineComponent({
84
84
  loading: { type: Boolean, required: false },
85
85
  multiline: { type: Boolean, required: false }
86
86
  }, defaultCascaderInputProps),
87
- emits: ["update:visible", "update:model-value", "select"],
87
+ emits: ["update:visible", "update:model-value", "change", "select"],
88
88
  setup(__props, { expose: __expose, emit: __emit }) {
89
89
  __expose();
90
90
  const props = __props;
@@ -114,6 +114,7 @@ export default _defineComponent({
114
114
  const onConfirm = () => {
115
115
  innerValue.value = popoutValue.value;
116
116
  emit("update:model-value", popoutValue.value);
117
+ emit("change", popoutValue.value);
117
118
  inputValue.value = getInputValue();
118
119
  };
119
120
  const inputValue = ref("");
@@ -18,5 +18,6 @@ export interface CascaderInputSlots {
18
18
  export interface CascaderInputEmits {
19
19
  (e: 'update:visible', visible: boolean): void;
20
20
  (e: 'update:model-value', value: any): void;
21
+ (e: 'change', value: any): void;
21
22
  (e: 'select', option: CascaderOption, tabIndex: number): void;
22
23
  }
@@ -1,9 +1,11 @@
1
1
  import { type CheckboxInputProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<CheckboxInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: any) => any;
4
+ change: (value: any) => any;
4
5
  "update:visible": (visible: boolean) => any;
5
6
  }, string, import("vue").PublicProps, Readonly<CheckboxInputProps> & Readonly<{
6
7
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
8
+ onChange?: ((value: any) => any) | undefined;
7
9
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
8
10
  }>, {
9
11
  options: import("../checkbox/common").CheckboxGroupOption[];
@@ -107,7 +107,7 @@ export default _defineComponent({
107
107
  loading: { type: Boolean, required: false },
108
108
  multiline: { type: Boolean, required: false }
109
109
  }, defaultCheckboxInputProps),
110
- emits: ["update:visible", "update:model-value"],
110
+ emits: ["update:visible", "update:model-value", "change"],
111
111
  setup(__props, { expose: __expose, emit: __emit }) {
112
112
  __expose();
113
113
  const props = __props;
@@ -137,6 +137,7 @@ export default _defineComponent({
137
137
  const onConfirm = () => {
138
138
  innerValue.value = popoutValue.value;
139
139
  emit("update:model-value", popoutValue.value);
140
+ emit("change", popoutValue.value);
140
141
  inputValue.value = getInputValue();
141
142
  };
142
143
  const inputValue = ref("");
@@ -12,4 +12,5 @@ export declare const defaultCheckboxInputProps: {
12
12
  export interface CheckboxInputEmits {
13
13
  (e: 'update:visible', visible: boolean): void;
14
14
  (e: 'update:model-value', value: any): void;
15
+ (e: 'change', value: any): void;
15
16
  }
@@ -14,6 +14,7 @@ export declare const defaultDatetimePickerProps: {
14
14
  };
15
15
  export interface DatetimePickerEmits {
16
16
  (e: 'update:model-value', date: Date): void;
17
+ (e: 'change', date: Date): void;
17
18
  }
18
19
  export interface DatetimeColumnOption {
19
20
  value: number;
@@ -1,8 +1,10 @@
1
1
  import { type DatetimePickerProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<DatetimePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (date: Date) => any;
4
+ change: (date: Date) => any;
4
5
  }, string, import("vue").PublicProps, Readonly<DatetimePickerProps> & Readonly<{
5
6
  "onUpdate:model-value"?: ((date: Date) => any) | undefined;
7
+ onChange?: ((date: Date) => any) | undefined;
6
8
  }>, {
7
9
  type: string;
8
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -45,7 +45,7 @@ export default _defineComponent({
45
45
  filter: { type: Function, required: false },
46
46
  formatter: { type: Function, required: false }
47
47
  }, defaultDatetimePickerProps),
48
- emits: ["update:model-value"],
48
+ emits: ["update:model-value", "change"],
49
49
  setup(__props, { expose: __expose, emit: __emit }) {
50
50
  __expose();
51
51
  const props = __props;
@@ -145,6 +145,7 @@ export default _defineComponent({
145
145
  innerValue.value = nextValue;
146
146
  updateColumns(nextValue);
147
147
  emit("update:model-value", nextValue);
148
+ emit("change", nextValue);
148
149
  };
149
150
  const __returned__ = { props, emit, t, createColumnData, getChangedLetter, updateColumns, getDateByPickerValue, normalizeValue, innerType, minDate, maxDate, innerValue, pickerValue, columnsMap, get minValues() {
150
151
  return minValues;
@@ -13,6 +13,7 @@ export declare const defaultDatetimePickerInputProps: {
13
13
  export interface DatetimePickerInputEmits {
14
14
  (e: 'update:visible', visible: boolean): void;
15
15
  (e: 'update:model-value', date: Date | undefined): void;
16
+ (e: 'change', date: Date | undefined): void;
16
17
  }
17
18
  export declare const mapTypeFormat: {
18
19
  y: string;
@@ -1,9 +1,11 @@
1
1
  import { type DatetimePickerInputProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<DatetimePickerInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (date: Date | undefined) => any;
4
+ change: (date: Date | undefined) => any;
4
5
  "update:visible": (visible: boolean) => any;
5
6
  }, string, import("vue").PublicProps, Readonly<DatetimePickerInputProps> & Readonly<{
6
7
  "onUpdate:model-value"?: ((date: Date | undefined) => any) | undefined;
8
+ onChange?: ((date: Date | undefined) => any) | undefined;
7
9
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
8
10
  }>, {
9
11
  type: string;
@@ -82,7 +82,7 @@ export default _defineComponent({
82
82
  clearable: { type: Boolean, required: false },
83
83
  multiline: { type: Boolean, required: false }
84
84
  }, defaultDatetimePickerInputProps),
85
- emits: ["update:visible", "update:model-value"],
85
+ emits: ["update:visible", "update:model-value", "change"],
86
86
  setup(__props, { expose: __expose, emit: __emit }) {
87
87
  __expose();
88
88
  const props = __props;
@@ -118,6 +118,7 @@ export default _defineComponent({
118
118
  }
119
119
  innerValue.value = popoutValue.value;
120
120
  emit("update:model-value", popoutValue.value);
121
+ emit("change", popoutValue.value);
121
122
  inputValue.value = getInputValue();
122
123
  };
123
124
  const inputValue = ref("");
@@ -149,6 +150,7 @@ export default _defineComponent({
149
150
  inputValue.value = "";
150
151
  innerValue.value = void 0;
151
152
  emit("update:model-value", void 0);
153
+ emit("change", void 0);
152
154
  };
153
155
  const innerVisible = ref(props.visible);
154
156
  watch(
@@ -68,6 +68,8 @@ export interface InputSlots {
68
68
  }
69
69
  export interface InputEmits {
70
70
  (e: 'update:model-value', value: string): void;
71
+ (e: 'change', value: string): void;
72
+ (e: 'input', value: string): void;
71
73
  (e: 'clear'): void;
72
74
  (e: 'focus', event: any): void;
73
75
  (e: 'blur', event: any): void;
@@ -1,21 +1,11 @@
1
1
  import { type InputProps, type InputSlots } from './common';
2
2
  declare function __VLS_template(): Readonly<InputSlots> & InputSlots;
3
- declare const __VLS_component: import("vue").DefineComponent<InputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
- "update:model-value": (value: string) => any;
5
- blur: (event: any) => any;
6
- focus: (event: any) => any;
7
- clear: () => any;
8
- confirm: (event: any) => any;
9
- linechange: (event: any) => any;
10
- keyboardheightchange: (event: any) => any;
3
+ declare const __VLS_component: import("vue").DefineComponent<InputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ [x: string]: any;
5
+ } & {
6
+ [x: string]: any;
11
7
  }, string, import("vue").PublicProps, Readonly<InputProps> & Readonly<{
12
- "onUpdate:model-value"?: ((value: string) => any) | undefined;
13
- onBlur?: ((event: any) => any) | undefined;
14
- onFocus?: ((event: any) => any) | undefined;
15
- onClear?: (() => any) | undefined;
16
- onConfirm?: ((event: any) => any) | undefined;
17
- onLinechange?: ((event: any) => any) | undefined;
18
- onKeyboardheightchange?: ((event: any) => any) | undefined;
8
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
19
9
  }>, {
20
10
  modelValue: string | number;
21
11
  confirmType: "send" | "search" | "next" | "go" | "done";
@@ -184,7 +184,7 @@ export default _defineComponent({
184
184
  minHeight: { type: String, required: false },
185
185
  validateEvent: { type: Boolean, required: false }
186
186
  }, defaultInputProps),
187
- emits: ["update:model-value", "clear", "focus", "blur", "linechange", "confirm", "keyboardheightchange"],
187
+ emits: ["update:model-value", "change", "input", "clear", "focus", "blur", "linechange", "confirm", "keyboardheightchange"],
188
188
  setup(__props, { expose: __expose, emit: __emit }) {
189
189
  __expose();
190
190
  const props = __props;
@@ -202,6 +202,7 @@ export default _defineComponent({
202
202
  const setInnerValue = (value) => {
203
203
  innerValue.value = value;
204
204
  emit("update:model-value", value);
205
+ emit("input", value);
205
206
  };
206
207
  watch(
207
208
  () => props.modelValue,
@@ -224,7 +225,9 @@ export default _defineComponent({
224
225
  watch([() => props.focus, () => props.focused], () => {
225
226
  innerFocused.value = props.focus || props.focused;
226
227
  });
228
+ let oldValue = "";
227
229
  const onFocus = (event) => {
230
+ oldValue = innerValue.value;
228
231
  innerFocused.value = true;
229
232
  emit("focus", event);
230
233
  };
@@ -234,6 +237,9 @@ export default _defineComponent({
234
237
  if (props.validateEvent) {
235
238
  formItemContext?.onBlur();
236
239
  }
240
+ if (oldValue !== innerValue.value) {
241
+ emit("change", innerValue.value);
242
+ }
237
243
  };
238
244
  const clearVisible = computed(() => {
239
245
  const visibleBase = props.clearable && innerValue.value && !isDisabled.value && !isReadonly.value;
@@ -289,7 +295,11 @@ export default _defineComponent({
289
295
  height: !props.autoHeight && props.minHeight
290
296
  });
291
297
  });
292
- const __returned__ = { props, emit, bem, formContext, formItemContext, isDisabled, isReadonly, innerValue, setInnerValue, onInput, innerFocused, onFocus, onBlur, clearVisible, holdupClear, onClearTouchStart, onClearTouchEnd, onClearMouseDown, onClearClick, onLinechange, onConfirm, onKeyboardheightchange, inputClass, inputStyle, controlStyle, get classNames() {
298
+ const __returned__ = { props, emit, bem, formContext, formItemContext, isDisabled, isReadonly, innerValue, setInnerValue, onInput, innerFocused, get oldValue() {
299
+ return oldValue;
300
+ }, set oldValue(v) {
301
+ oldValue = v;
302
+ }, onFocus, onBlur, clearVisible, holdupClear, onClearTouchStart, onClearTouchEnd, onClearMouseDown, onClearClick, onLinechange, onConfirm, onKeyboardheightchange, inputClass, inputStyle, controlStyle, get classNames() {
293
303
  return classNames;
294
304
  }, SarIcon };
295
305
  return __returned__;
@@ -20,5 +20,6 @@ export declare const defaultPasswordInputProps: {
20
20
  };
21
21
  export interface PasswordInputEmits {
22
22
  (e: 'update:model-value', value: string): void;
23
+ (e: 'change', value: string): void;
23
24
  (e: 'updat:focused', focused: boolean): void;
24
25
  }
@@ -1,9 +1,11 @@
1
1
  import { type PasswordInputProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<PasswordInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: string) => any;
4
+ change: (value: string) => any;
4
5
  "updat:focused": (focused: boolean) => any;
5
6
  }, string, import("vue").PublicProps, Readonly<PasswordInputProps> & Readonly<{
6
7
  "onUpdate:model-value"?: ((value: string) => any) | undefined;
8
+ onChange?: ((value: string) => any) | undefined;
7
9
  "onUpdat:focused"?: ((focused: boolean) => any) | undefined;
8
10
  }>, {
9
11
  length: number;
@@ -62,7 +62,7 @@ export default _defineComponent({
62
62
  readonly: { type: Boolean, required: false },
63
63
  validateEvent: { type: Boolean, required: false }
64
64
  }, defaultPasswordInputProps),
65
- emits: ["update:model-value", "updat:focused"],
65
+ emits: ["update:model-value", "change", "updat:focused"],
66
66
  setup(__props, { expose: __expose, emit: __emit }) {
67
67
  __expose();
68
68
  const props = __props;
@@ -90,6 +90,7 @@ export default _defineComponent({
90
90
  const value = event.detail.value;
91
91
  innerValue.value = value;
92
92
  emit("update:model-value", value);
93
+ emit("change", value);
93
94
  return value;
94
95
  };
95
96
  const innerFocused = ref(props.focused);
@@ -22,6 +22,7 @@ export declare const defaultPickerProps: {
22
22
  };
23
23
  export interface PickerEmits {
24
24
  (e: 'update:model-value', value: any, selectedOptions: PickerOption[], indexes: number[]): void;
25
+ (e: 'change', value: any, selectedOptions: PickerOption[], indexes: number[]): void;
25
26
  }
26
27
  export declare const defaultOptionKeys: {
27
28
  label: string;
@@ -1,8 +1,10 @@
1
1
  import { type PickerProps, type PickerOption } from './common';
2
2
  declare const _default: import("vue").DefineComponent<PickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: any, selectedOptions: PickerOption[], indexes: number[]) => any;
4
+ change: (value: any, selectedOptions: PickerOption[], indexes: number[]) => any;
4
5
  }, string, import("vue").PublicProps, Readonly<PickerProps> & Readonly<{
5
6
  "onUpdate:model-value"?: ((value: any, selectedOptions: PickerOption[], indexes: number[]) => any) | undefined;
7
+ onChange?: ((value: any, selectedOptions: PickerOption[], indexes: number[]) => any) | undefined;
6
8
  }>, {
7
9
  columns: PickerOption[] | PickerOption[][];
8
10
  immediateChange: boolean;
@@ -55,7 +55,7 @@ export default _defineComponent({
55
55
  modelValue: { type: null, required: false },
56
56
  immediateChange: { type: Boolean, required: false }
57
57
  }, defaultPickerProps),
58
- emits: ["update:model-value"],
58
+ emits: ["update:model-value", "change"],
59
59
  setup(__props, { expose: __expose, emit: __emit }) {
60
60
  __expose();
61
61
  const props = __props;
@@ -131,6 +131,7 @@ export default _defineComponent({
131
131
  );
132
132
  innerValue.value = nextValue;
133
133
  emit("update:model-value", nextValue, selectedOptions, indexes);
134
+ emit("change", nextValue, selectedOptions, indexes);
134
135
  };
135
136
  const getRenderedColumns = () => {
136
137
  switch (columnsType.value) {
@@ -13,4 +13,5 @@ export declare const defaultPickerInputProps: {
13
13
  export interface PickerInputEmits {
14
14
  (e: 'update:visible', visible: boolean): void;
15
15
  (e: 'update:model-value', value: any): void;
16
+ (e: 'change', value: any): void;
16
17
  }
@@ -2,9 +2,11 @@ import { type PickerOption } from '../picker/common';
2
2
  import { type PickerInputProps } from './common';
3
3
  declare const _default: import("vue").DefineComponent<PickerInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
4
  "update:model-value": (value: any) => any;
5
+ change: (value: any) => any;
5
6
  "update:visible": (visible: boolean) => any;
6
7
  }, string, import("vue").PublicProps, Readonly<PickerInputProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
9
+ onChange?: ((value: any) => any) | undefined;
8
10
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
9
11
  }>, {
10
12
  columns: PickerOption[] | PickerOption[][];
@@ -79,7 +79,7 @@ export default _defineComponent({
79
79
  loading: { type: Boolean, required: false },
80
80
  multiline: { type: Boolean, required: false }
81
81
  }, defaultPickerInputProps),
82
- emits: ["update:visible", "update:model-value"],
82
+ emits: ["update:visible", "update:model-value", "change"],
83
83
  setup(__props, { expose: __expose, emit: __emit }) {
84
84
  __expose();
85
85
  const props = __props;
@@ -113,6 +113,7 @@ export default _defineComponent({
113
113
  }
114
114
  innerValue.value = popoutValue.value;
115
115
  emit("update:model-value", popoutValue.value);
116
+ emit("change", popoutValue.value);
116
117
  inputValue.value = getInputValue();
117
118
  };
118
119
  const inputValue = ref("");
@@ -143,6 +144,7 @@ export default _defineComponent({
143
144
  inputValue.value = "";
144
145
  innerValue.value = void 0;
145
146
  emit("update:model-value", void 0);
147
+ emit("change", void 0);
146
148
  };
147
149
  const innerVisible = ref(props.visible);
148
150
  watch(
@@ -13,5 +13,6 @@ export interface PopoutInputProps {
13
13
  export interface PopoutInputEmits {
14
14
  (e: 'click', event: any): void;
15
15
  (e: 'update:model-value', value: string): void;
16
+ (e: 'change', value: string): void;
16
17
  (e: 'clear'): void;
17
18
  }
@@ -2,10 +2,12 @@ import { type PopoutInputProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<PopoutInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: string) => any;
4
4
  click: (event: any) => any;
5
+ change: (value: string) => any;
5
6
  clear: () => any;
6
7
  }, string, import("vue").PublicProps, Readonly<PopoutInputProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: string) => any) | undefined;
8
9
  onClick?: ((event: any) => any) | undefined;
10
+ onChange?: ((value: string) => any) | undefined;
9
11
  onClear?: (() => any) | undefined;
10
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
13
  export default _default;
@@ -70,7 +70,7 @@ export default _defineComponent({
70
70
  loading: { type: Boolean, required: false },
71
71
  multiline: { type: Boolean, required: false }
72
72
  },
73
- emits: ["click", "update:model-value", "clear"],
73
+ emits: ["click", "update:model-value", "change", "clear"],
74
74
  setup(__props, { expose: __expose, emit: __emit }) {
75
75
  __expose();
76
76
  const props = __props;
@@ -87,6 +87,7 @@ export default _defineComponent({
87
87
  const setInnerValue = (value) => {
88
88
  innerValue.value = value;
89
89
  emit("update:model-value", value);
90
+ emit("change", value);
90
91
  };
91
92
  watch(
92
93
  () => props.modelValue,
@@ -13,4 +13,5 @@ export declare const defaultRadioInputProps: {
13
13
  export interface RadioInputEmits {
14
14
  (e: 'update:visible', visible: boolean): void;
15
15
  (e: 'update:model-value', value: any): void;
16
+ (e: 'change', value: any): void;
16
17
  }
@@ -1,9 +1,11 @@
1
1
  import { type RadioInputProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<RadioInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: any) => any;
4
+ change: (value: any) => any;
4
5
  "update:visible": (visible: boolean) => any;
5
6
  }, string, import("vue").PublicProps, Readonly<RadioInputProps> & Readonly<{
6
7
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
8
+ onChange?: ((value: any) => any) | undefined;
7
9
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
8
10
  }>, {
9
11
  options: import("../radio/common").RadioGroupOption[];
@@ -104,7 +104,7 @@ export default _defineComponent({
104
104
  loading: { type: Boolean, required: false },
105
105
  multiline: { type: Boolean, required: false }
106
106
  }, defaultRadioInputProps),
107
- emits: ["update:visible", "update:model-value"],
107
+ emits: ["update:visible", "update:model-value", "change"],
108
108
  setup(__props, { expose: __expose, emit: __emit }) {
109
109
  __expose();
110
110
  const props = __props;
@@ -136,6 +136,7 @@ export default _defineComponent({
136
136
  const onConfirm = () => {
137
137
  innerValue.value = popoutValue.value;
138
138
  emit("update:model-value", popoutValue.value);
139
+ emit("change", popoutValue.value);
139
140
  inputValue.value = getInputValue();
140
141
  };
141
142
  const inputValue = ref("");
@@ -170,6 +171,7 @@ export default _defineComponent({
170
171
  inputValue.value = "";
171
172
  innerValue.value = void 0;
172
173
  emit("update:model-value", void 0);
174
+ emit("change", void 0);
173
175
  };
174
176
  const innerVisible = ref(props.visible);
175
177
  watch(
@@ -27,4 +27,5 @@ export declare const defaultRateProps: {
27
27
  };
28
28
  export interface RateEmits {
29
29
  (e: 'update:model-value', value: number): void;
30
+ (e: 'change', value: number): void;
30
31
  }
@@ -1,8 +1,10 @@
1
1
  import { type RateProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<RateProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: number) => any;
4
+ change: (value: number) => any;
4
5
  }, string, import("vue").PublicProps, Readonly<RateProps> & Readonly<{
5
6
  "onUpdate:model-value"?: ((value: number) => any) | undefined;
7
+ onChange?: ((value: number) => any) | undefined;
6
8
  }>, {
7
9
  count: number;
8
10
  icon: string;
@@ -97,7 +97,7 @@ export default _defineComponent({
97
97
  readonly: { type: Boolean, required: false },
98
98
  validateEvent: { type: Boolean, required: false }
99
99
  }, defaultRateProps),
100
- emits: ["update:model-value"],
100
+ emits: ["update:model-value", "change"],
101
101
  setup(__props, { expose: __expose, emit: __emit }) {
102
102
  __expose();
103
103
  const props = __props;
@@ -164,6 +164,7 @@ export default _defineComponent({
164
164
  if (nextValue !== void 0 && nextValue !== innerValue.value) {
165
165
  innerValue.value = nextValue;
166
166
  emit("update:model-value", nextValue);
167
+ emit("change", nextValue);
167
168
  }
168
169
  };
169
170
  const onTouchStart = () => {
@@ -205,6 +206,7 @@ export default _defineComponent({
205
206
  if (nextValue !== void 0 && nextValue !== innerValue.value) {
206
207
  innerValue.value = nextValue;
207
208
  emit("update:model-value", nextValue);
209
+ emit("change", nextValue);
208
210
  }
209
211
  };
210
212
  const onMouseDown = useMouseDown(onTouchStart, onTouchMove);
@@ -27,6 +27,8 @@ export interface SearchSlots {
27
27
  }
28
28
  export interface SearchEmits {
29
29
  (e: 'update:model-value', value: string): void;
30
+ (e: 'input', value: string): void;
31
+ (e: 'change', value: string): void;
30
32
  (e: 'cancel'): void;
31
33
  (e: 'search', value: string): void;
32
34
  (e: 'click', event: any): void;
@@ -1,21 +1,11 @@
1
1
  import { type SearchProps, type SearchSlots } from './common';
2
2
  declare function __VLS_template(): Readonly<SearchSlots> & SearchSlots;
3
- declare const __VLS_component: import("vue").DefineComponent<SearchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
- "update:model-value": (value: string) => any;
5
- click: (event: any) => any;
6
- blur: (event: any) => any;
7
- cancel: () => any;
8
- focus: (event: any) => any;
9
- search: (value: string) => any;
10
- clear: () => any;
3
+ declare const __VLS_component: import("vue").DefineComponent<SearchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ [x: string]: any;
5
+ } & {
6
+ [x: string]: any;
11
7
  }, string, import("vue").PublicProps, Readonly<SearchProps> & Readonly<{
12
- "onUpdate:model-value"?: ((value: string) => any) | undefined;
13
- onClick?: ((event: any) => any) | undefined;
14
- onBlur?: ((event: any) => any) | undefined;
15
- onCancel?: (() => any) | undefined;
16
- onFocus?: ((event: any) => any) | undefined;
17
- onSearch?: ((value: string) => any) | undefined;
18
- onClear?: (() => any) | undefined;
8
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
19
9
  }>, {
20
10
  focus: boolean;
21
11
  shape: "round" | "square";
@@ -17,6 +17,7 @@
17
17
  :root-style="inputStyle"
18
18
  :focus="focus"
19
19
  @update:model-value="onInput"
20
+ @change="onChange"
20
21
  @confirm="onConfirm"
21
22
  @clear="onClear"
22
23
  @focus="onFocus"
@@ -93,7 +94,7 @@ export default _defineComponent({
93
94
  search: { type: String, required: false },
94
95
  focus: { type: Boolean, required: false }
95
96
  }, defaultSearchProps),
96
- emits: ["update:model-value", "cancel", "search", "click", "clear", "focus", "blur"],
97
+ emits: ["update:model-value", "input", "change", "cancel", "search", "click", "clear", "focus", "blur"],
97
98
  setup(__props, { expose: __expose, emit: __emit }) {
98
99
  __expose();
99
100
  const props = __props;
@@ -109,6 +110,10 @@ export default _defineComponent({
109
110
  const onInput = (value) => {
110
111
  innerValue.value = value;
111
112
  emit("update:model-value", value);
113
+ emit("input", value);
114
+ };
115
+ const onChange = (value) => {
116
+ emit("change", value);
112
117
  };
113
118
  const onConfirm = () => {
114
119
  emit("search", innerValue.value);
@@ -155,7 +160,7 @@ export default _defineComponent({
155
160
  backgroundColor: props.inputBackground
156
161
  });
157
162
  });
158
- const __returned__ = { props, emit, bem, innerValue, onInput, onConfirm, onCancel, onClick, onClear, onFocus, onBlur, searchClass, searchStyle, inputClass, inputStyle, SarInput, SarIcon, SarButton };
163
+ const __returned__ = { props, emit, bem, innerValue, onInput, onChange, onConfirm, onCancel, onClick, onClear, onFocus, onBlur, searchClass, searchStyle, inputClass, inputStyle, SarInput, SarIcon, SarButton };
159
164
  return __returned__;
160
165
  }
161
166
  });
@@ -39,6 +39,7 @@ export interface SliderSlots {
39
39
  }
40
40
  export interface SliderEmits {
41
41
  (e: 'update:model-value', value: number | number[]): void;
42
+ (e: 'input', value: number | number[]): void;
42
43
  (e: 'change', value: number | number[]): void;
43
44
  (e: 'drag-start', event: TouchEvent): void;
44
45
  (e: 'drag-end', event: TouchEvent): void;
@@ -3,11 +3,13 @@ declare function __VLS_template(): Readonly<SliderSlots> & SliderSlots;
3
3
  declare const __VLS_component: import("vue").DefineComponent<SliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
4
  "update:model-value": (value: number | number[]) => any;
5
5
  change: (value: number | number[]) => any;
6
+ input: (value: number | number[]) => any;
6
7
  "drag-start": (event: TouchEvent) => any;
7
8
  "drag-end": (event: TouchEvent) => any;
8
9
  }, string, import("vue").PublicProps, Readonly<SliderProps> & Readonly<{
9
10
  "onUpdate:model-value"?: ((value: number | number[]) => any) | undefined;
10
11
  onChange?: ((value: number | number[]) => any) | undefined;
12
+ onInput?: ((value: number | number[]) => any) | undefined;
11
13
  "onDrag-start"?: ((event: TouchEvent) => any) | undefined;
12
14
  "onDrag-end"?: ((event: TouchEvent) => any) | undefined;
13
15
  }>, {
@@ -130,7 +130,7 @@ export default _defineComponent({
130
130
  scalePosition: { type: String, required: false },
131
131
  validateEvent: { type: Boolean, required: false }
132
132
  }, defaultSliderProps),
133
- emits: ["update:model-value", "change", "drag-start", "drag-end"],
133
+ emits: ["update:model-value", "input", "change", "drag-start", "drag-end"],
134
134
  setup(__props, { expose: __expose, emit: __emit }) {
135
135
  __expose();
136
136
  const props = __props;
@@ -200,6 +200,7 @@ export default _defineComponent({
200
200
  if (nextValue !== void 0) {
201
201
  innerValue.value = nextValue;
202
202
  emit("update:model-value", nextValue);
203
+ emit("input", nextValue);
203
204
  emit("change", nextValue);
204
205
  }
205
206
  };
@@ -258,6 +259,7 @@ export default _defineComponent({
258
259
  moveValue = nextValue;
259
260
  innerValue.value = nextValue;
260
261
  emit("update:model-value", nextValue);
262
+ emit("input", nextValue);
261
263
  }
262
264
  };
263
265
  const onTouchEnd = (event) => {
@@ -265,10 +267,10 @@ export default _defineComponent({
265
267
  if (isDisabled.value || isReadonly.value) {
266
268
  return;
267
269
  }
270
+ emit("drag-end", event);
268
271
  if (!arrayEqual(toArray(downValue), toArray(innerValue.value))) {
269
272
  emit("change", innerValue.value);
270
273
  }
271
- emit("drag-end", event);
272
274
  };
273
275
  const onMouseDown0 = useMouseDown(
274
276
  (event) => onTouchStart(event, 0),
@@ -32,6 +32,7 @@ export declare const defaultStepperProps: {
32
32
  };
33
33
  export interface StepperEmits {
34
34
  (e: 'update:model-value', value: number | string | undefined): void;
35
+ (e: 'change', value: number | string | undefined): void;
35
36
  (e: 'focus', event: any): void;
36
37
  (e: 'blur', event: any): void;
37
38
  }
@@ -2,10 +2,12 @@ import { type StepperProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: string | number | undefined) => any;
4
4
  blur: (event: any) => any;
5
+ change: (value: string | number | undefined) => any;
5
6
  focus: (event: any) => any;
6
7
  }, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: string | number | undefined) => any) | undefined;
8
9
  onBlur?: ((event: any) => any) | undefined;
10
+ onChange?: ((value: string | number | undefined) => any) | undefined;
9
11
  onFocus?: ((event: any) => any) | undefined;
10
12
  }>, {
11
13
  min: number;
@@ -95,7 +95,7 @@ export default _defineComponent({
95
95
  validateEvent: { type: Boolean, required: false },
96
96
  size: { type: String, required: false }
97
97
  }, defaultStepperProps),
98
- emits: ["update:model-value", "focus", "blur"],
98
+ emits: ["update:model-value", "change", "focus", "blur"],
99
99
  setup(__props, { expose: __expose, emit: __emit }) {
100
100
  __expose();
101
101
  const props = __props;
@@ -124,6 +124,7 @@ export default _defineComponent({
124
124
  const setInnerValue = (value) => {
125
125
  innerValue.value = value;
126
126
  emit("update:model-value", value);
127
+ emit("change", value);
127
128
  };
128
129
  const setValueEnsureSafe = (value) => {
129
130
  setInnerValue(value);
@@ -22,5 +22,6 @@ export declare const defaultSwitchProps: {
22
22
  export interface SwitchEmits {
23
23
  (e: 'click', event: any): void;
24
24
  (e: 'update:model-value', value: any): void;
25
+ (e: 'change', value: any): void;
25
26
  (e: 'update:loading', loading: boolean): void;
26
27
  }
@@ -2,10 +2,12 @@ import { type SwitchProps } from './common';
2
2
  declare const _default: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  "update:model-value": (value: any) => any;
4
4
  click: (event: any) => any;
5
+ change: (value: any) => any;
5
6
  "update:loading": (loading: boolean) => any;
6
7
  }, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
8
9
  onClick?: ((event: any) => any) | undefined;
10
+ onChange?: ((value: any) => any) | undefined;
9
11
  "onUpdate:loading"?: ((loading: boolean) => any) | undefined;
10
12
  }>, {
11
13
  validateEvent: boolean;
@@ -41,7 +41,7 @@ export default _defineComponent({
41
41
  beforeUpdate: { type: Function, required: false },
42
42
  validateEvent: { type: Boolean, required: false }
43
43
  }, defaultSwitchProps),
44
- emits: ["click", "update:model-value", "update:loading"],
44
+ emits: ["click", "update:model-value", "change", "update:loading"],
45
45
  setup(__props, { expose: __expose, emit: __emit }) {
46
46
  __expose();
47
47
  const props = __props;
@@ -93,6 +93,7 @@ export default _defineComponent({
93
93
  }
94
94
  innerValue.value = nextValue;
95
95
  emit("update:model-value", nextValue);
96
+ emit("change", nextValue);
96
97
  };
97
98
  const switchClass = computed(() => {
98
99
  return classNames(
@@ -45,6 +45,7 @@ export interface UploadSlots {
45
45
  }
46
46
  export interface UploadEmits {
47
47
  (e: 'update:model-value', value: UploadFileItem[]): void;
48
+ (e: 'change', value: UploadFileItem[]): void;
48
49
  (e: 'remove', index: number, item: UploadFileItem): void;
49
50
  }
50
51
  export interface ChainNode {
@@ -2,9 +2,11 @@ import { type UploadProps, type UploadSlots, type UploadFile, type UploadFileIte
2
2
  declare function __VLS_template(): Readonly<UploadSlots> & UploadSlots;
3
3
  declare const __VLS_component: import("vue").DefineComponent<UploadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
4
  "update:model-value": (value: UploadFileItem[]) => any;
5
+ change: (value: UploadFileItem[]) => any;
5
6
  remove: (index: number, item: UploadFileItem) => any;
6
7
  }, string, import("vue").PublicProps, Readonly<UploadProps> & Readonly<{
7
8
  "onUpdate:model-value"?: ((value: UploadFileItem[]) => any) | undefined;
9
+ onChange?: ((value: UploadFileItem[]) => any) | undefined;
8
10
  onRemove?: ((index: number, item: UploadFileItem) => any) | undefined;
9
11
  }>, {
10
12
  accept: "image" | "video";
@@ -86,7 +86,7 @@ export default _defineComponent({
86
86
  beforeRemove: { type: Function, required: false },
87
87
  validateEvent: { type: Boolean, required: false }
88
88
  }, defaultUploadProps),
89
- emits: ["update:model-value", "remove"],
89
+ emits: ["update:model-value", "change", "remove"],
90
90
  setup(__props, { expose: __expose, emit: __emit }) {
91
91
  __expose();
92
92
  const props = __props;
@@ -175,6 +175,7 @@ export default _defineComponent({
175
175
  if (valid.length) {
176
176
  innerValue.value = [...innerValue.value, ...valid];
177
177
  emit("update:model-value", innerValue.value);
178
+ emit("change", innerValue.value);
178
179
  next(valid);
179
180
  }
180
181
  };
@@ -231,6 +232,7 @@ export default _defineComponent({
231
232
  const list = innerValue.value.filter((_, i) => i !== index);
232
233
  innerValue.value = list;
233
234
  emit("update:model-value", list);
235
+ emit("change", list);
234
236
  emit("remove", index, item);
235
237
  };
236
238
  const onImageClick = (index) => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "sard-uniapp",
3
3
  "name": "sard-uniapp",
4
4
  "displayName": "sard-uniapp",
5
- "version": "1.9.1",
5
+ "version": "1.9.2",
6
6
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
7
7
  "main": "index.js",
8
8
  "scripts": {