region-picker
region-picker copied to clipboard
两个BUG反馈
- 在form表单下,region-picker(prop:muliple=true),点击确认、取消按钮会Submit Form,需要设置button的type=button
h( 'button', { class: { 'region-picker__button': true, default: true }, attrs: { type: 'button' }, on: { click: () => this.blur() } }, this.cancelText ), - region-picker(prop:muliple=true),点击取消按钮,没有Reset Value
blur() { this.panelVisible = false this.searchValue = '' if (this.multiple && !this.confirmed) { this.selected = this._selected this.$emit('change', this.modelValue) this.$emit('input', this.modelValue) this.dispatch('ElFormItem', 'el.form.change', this.modelValue) } if (this.$refs.searchInput) { this.$nextTick(() => { this.$refs.searchInput.blur() this.$emit('blur') this.dispatch('ElFormItem', 'el.form.blur', this.modelValue) this.isFocus = false }) } } },