Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决多次赋值问题 #35

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/iview-area.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/iview-area.js.map

Large diffs are not rendered by default.

43 changes: 37 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<div id="app"></div>
<script src="/dist/iview-area.js"></script>
</body>
<link href="https://cdn.bootcss.com/iview/2.11.0/styles/iview.css" rel="stylesheet">
</head>
<body>
<div id="app">
<al-selector v-model="res_s" data-type="code" level="2" ref="ca" auto="true"/>
{{res_s}}
<Button type="dashed" @click="change" >多次赋值1</Button>
<Button type="dashed" @click="change2">多次赋值2</Button>
<Button type="dashed" @click="change3">多次赋值3</Button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.bootcss.com/iview/2.11.0/iview.min.js"></script>
<script src="/dist/iview-area.js"></script>
<script>
let app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!',
res_s: ["130000", "130300", "130304"],
res_c: []
},
methods: {
change(){
this.res_s = ["120000", "120100", "120103"]
},
change2(){
this.res_s = ["130000", "130300", "130304"]
},
change3(){
this.res_s = ["620000", "622900", "622922"]
},
}

})
</script>
</body>
</html>
Loading