1010 <van-action-sheet v-model =" show2" close-on-click-action :actions =" statusActions" />
1111 </demo-block >
1212
13- <demo-block :title =" $t('title2 ')" >
13+ <demo-block :title =" $t('showCancel ')" >
1414 <van-button type =" primary" @click =" show3 = true" >{{ $t('buttonText') }}</van-button >
1515 <van-action-sheet
1616 v-model =" show3"
2121 />
2222 </demo-block >
2323
24- <demo-block :title =" $t('title3 ')" >
24+ <demo-block :title =" $t('showDescription ')" >
2525 <van-button type =" primary" @click =" show4 = true" >{{ $t('buttonText') }}</van-button >
26- <van-action-sheet v-model =" show4" :title =" $t('title')" >
26+ <van-action-sheet
27+ v-model =" show4"
28+ :actions =" simpleActions"
29+ close-on-click-action
30+ :description =" $t('description')"
31+ />
32+ </demo-block >
33+
34+ <demo-block :title =" $t('showTitle')" >
35+ <van-button type =" primary" @click =" show5 = true" >{{ $t('buttonText') }}</van-button >
36+ <van-action-sheet v-model =" show5" :title =" $t('title')" >
2737 <p >{{ $t('content') }}</p >
2838 </van-action-sheet >
2939 </demo-block >
@@ -37,19 +47,23 @@ export default {
3747 i18n: {
3848 ' zh-CN' : {
3949 buttonText: ' 弹出菜单' ,
40- title2: ' 展示取消按钮' ,
41- title3: ' 展示标题栏' ,
4250 status: ' 选项状态' ,
43- description: ' 描述信息' ,
44- disabledOption: ' 禁用选项'
51+ subname: ' 副文本' ,
52+ disabledOption: ' 禁用选项' ,
53+ showTitle: ' 展示标题栏' ,
54+ showCancel: ' 展示取消按钮' ,
55+ showDescription: ' 展示描述信息' ,
56+ description: ' 这是一段描述信息'
4557 },
4658 ' en-US' : {
4759 buttonText: ' Show ActionSheet' ,
48- title2: ' ActionSheet with cancel button' ,
49- title3: ' ActionSheet with title' ,
5060 status: ' Status' ,
51- description: ' Description' ,
52- disabledOption: ' Disabled Option'
61+ subname: ' Subname' ,
62+ disabledOption: ' Disabled Option' ,
63+ showTitle: ' ActionSheet with title' ,
64+ showCancel: ' ActionSheet with cancel button' ,
65+ showDescription: ' ActionSheet with description' ,
66+ description: ' Description'
5367 }
5468 },
5569
@@ -58,7 +72,8 @@ export default {
5872 show1: false ,
5973 show2: false ,
6074 show3: false ,
61- show4: false
75+ show4: false ,
76+ show5: false
6277 };
6378 },
6479
@@ -67,7 +82,7 @@ export default {
6782 return [
6883 { name: this .$t (' option' ) },
6984 { name: this .$t (' option' ) },
70- { name: this .$t (' option' ), subname: this .$t (' description ' ) }
85+ { name: this .$t (' option' ), subname: this .$t (' subname ' ) }
7186 ];
7287 },
7388
0 commit comments