elementui / region-picker Goto Github PK
View Code? Open in Web Editor NEWA region picker based on Vue and ElementUI.
Home Page: https://elementui.github.io/region-picker/
License: MIT License
A region picker based on Vue and ElementUI.
Home Page: https://elementui.github.io/region-picker/
License: MIT License
您好,拿您的代码试了下,v-model 似乎不是双向绑定的.. 看了下源码,单选模式 single.vue 里提供 了select({}) 可以置空,但是该方法并没有往顶层暴露... 😌 有点尴尬..
有遇到多选清空表单的业务场景,貌似只能通过 v-if 重绘或者去清空掉dom了,心塞..
才疏学浅,或许我姿势不对?
谢谢
如题。
h( 'button', { class: { 'region-picker__button': true, default: true }, attrs: { type: 'button' }, on: { click: () => this.blur() } }, this.cancelText ),
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 }) } } },
现在input事件返回的数据是adcode,可以返回['浙江省','杭州市','西湖区']这样的数据吗
我在页面中重写插件的样式,但是毫无反应,在Chrome检查元素,不显示我添加的属性
建议文档再详细点,以便更方便地使用。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.