diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml index 053672dd1..85b390c24 100644 --- a/.github/workflows/translate.yml +++ b/.github/workflows/translate.yml @@ -13,6 +13,8 @@ jobs: - name: issue if: github.event_name == 'issues' uses: actions-cool/translation-helper@v1.1.1 + with: + translate-body: false - name: pr if: github.event_name == 'pull_request_target' diff --git a/components/calendar/index.tsx b/components/calendar/index.tsx index 65081d452..13750aaed 100644 --- a/components/calendar/index.tsx +++ b/components/calendar/index.tsx @@ -93,11 +93,11 @@ const Calendar = defineComponent({ }, triggerPanelChange(value: moment.Moment, mode: CalendarMode | undefined) { const val = this.valueFormat ? momentToString(value, this.valueFormat) : value; - this.$emit('panelChange', val, mode); if (value !== this.sValue) { this.$emit('update:value', val); this.$emit('change', val); } + this.$emit('panelChange', val, mode); }, triggerSelect(value: moment.Moment) { diff --git a/components/input/Search.tsx b/components/input/Search.tsx index 357298384..bbc2ddad2 100644 --- a/components/input/Search.tsx +++ b/components/input/Search.tsx @@ -32,10 +32,10 @@ export default defineComponent({ this.input = node; }, handleChange(e: Event) { + this.$emit('update:value', (e.target as HTMLInputElement).value); if (e && e.target && e.type === 'click') { this.$emit('search', (e.target as HTMLInputElement).value, e); } - this.$emit('update:value', (e.target as HTMLInputElement).value); this.$emit('change', e); }, handleSearch(e: Event) { diff --git a/components/vc-pagination/Pagination.jsx b/components/vc-pagination/Pagination.jsx index 85b2af567..7890e44a5 100644 --- a/components/vc-pagination/Pagination.jsx +++ b/components/vc-pagination/Pagination.jsx @@ -237,10 +237,10 @@ export default defineComponent({ } } this.__emit('update:pageSize', size); - this.__emit('showSizeChange', current, size); if (current !== preCurrent) { this.__emit('update:current', current); } + this.__emit('showSizeChange', current, size); }, handleChange(p) { const { disabled } = this.$props; diff --git a/components/vc-switch/Switch.jsx b/components/vc-switch/Switch.jsx index b1256c9de..c3ac8a6f4 100644 --- a/components/vc-switch/Switch.jsx +++ b/components/vc-switch/Switch.jsx @@ -51,8 +51,8 @@ export default defineComponent({ if (!hasProp(this, 'checked')) { this.stateChecked = checked; } - this.__emit('change', checked, e); this.__emit('update:checked', checked); + this.__emit('change', checked, e); }, handleClick(e) { const checked = !this.stateChecked;