From c5f75a251681efff2adc43dfec502b0820de033b Mon Sep 17 00:00:00 2001 From: loulijun2021 <1694218219@qq.com> Date: 星期五, 30 九月 2022 15:59:55 +0800 Subject: [PATCH] 1.维修验证静态页面开发实现 --- pages/test/test1.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/pages/test/test1.html b/pages/test/test1.html index 2c57e0e..935b5ba 100644 --- a/pages/test/test1.html +++ b/pages/test/test1.html @@ -83,6 +83,32 @@ <van-button type="primary">娴呰壊椋庢牸</van-button> </template> </van-popover> + + <van-dropdown-menu :overlay="false" style="width: 100px;"> + <van-dropdown-item style="width: 100px;" v-model="value1" :options="option1" /> + </van-dropdown-menu> + + + + <van-radio-group v-model="radio"> + <van-cell-group> + <div>1</div> + <van-cell title="鍗曢�夋 1" clickable @click="radio = '1'"> + <template #right-icon> + <van-radio name="1" /> + </template> + </van-cell> + <div>2</div> + <div>3</div> + <van-cell title="鍗曢�夋 2" clickable @click="radio = '2'"> + <template #right-icon> + <van-radio name="2" /> + </template> + </van-cell> + <div>4</div> + </van-cell-group> + </van-radio-group> + </div> </div> </body> @@ -108,6 +134,18 @@ }, { text: '閫夐」涓�' }], + value1: 0, + // value2: 'a', + option1: [ + { text: '鍏ㄩ儴鍟嗗搧', value: 0 }, + { text: '鏂版鍟嗗搧', value: 1 }, + { text: '娲诲姩鍟嗗搧', value: 2 }, + ], + // option2: [ + // { text: '榛樿鎺掑簭', value: 'a' }, + // { text: '濂借瘎鎺掑簭', value: 'b' }, + // { text: '閿�閲忔帓搴�', value: 'c' }, + // ], } }, created() { @@ -117,6 +155,7 @@ // console.log(vant.Toast('xxx')) }, methods: { + onSelect(action) { Toast(action.text); }, -- Gitblit v1.9.3