|
|
@@ -3,8 +3,8 @@
|
|
|
<h4>基础样式</h4>
|
|
|
<div>
|
|
|
<nut-cell :show-icon="true" title="基础样式" :desc="option" @click.native="openSwitch('isVisible')"> </nut-cell>
|
|
|
- <nut-actionsheet :is-visible="isVisible" @close="closeSwitch('isVisible')" :option-list="optionList" @choose="choose"></nut-actionsheet>
|
|
|
|
|
|
+ <nut-actionsheet :is-visible="isVisible" @close="closeSwitch('isVisible')" :option-list="optionList" @choose="choose"></nut-actionsheet>
|
|
|
<nut-cell :show-icon="true" title="带取消按钮" :desc="option1" @click.native="openSwitch('isVisible1')"> </nut-cell>
|
|
|
<nut-actionsheet
|
|
|
:is-visible="isVisible1"
|
|
|
@@ -42,6 +42,12 @@
|
|
|
@choose="choose6"
|
|
|
></nut-actionsheet>
|
|
|
<nut-cell :show-icon="true" title="高亮选中项" :desc="option6" @click.native="openSwitch('isVisible6')"> </nut-cell>
|
|
|
+
|
|
|
+ <nut-cell :show-icon="true" title="和popup组合使用" :desc="option7" @click.native="openSwitch('isVisible7')"> </nut-cell>
|
|
|
+ <nut-actionsheet :is-visible="isVisible7" @close="closeSwitch('isVisible7')" :option-list="optionList" @choose="choose7"></nut-actionsheet>
|
|
|
+ <nut-popup id="combinationActionsheet" v-model="isVisible7">
|
|
|
+ <img src="https://m.360buyimg.com/babel/s202x202_jfs/t1/125451/13/9108/20190/5f2fbe70E8d551f81/8a5d3b1215ae05bc.png" />
|
|
|
+ </nut-popup>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -93,6 +99,7 @@ export default {
|
|
|
value: 1,
|
|
|
},
|
|
|
],
|
|
|
+ isVisible7: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -133,6 +140,10 @@ export default {
|
|
|
choose6(itemParams) {
|
|
|
this.option6 = itemParams.name;
|
|
|
},
|
|
|
+
|
|
|
+ choose7(itemParams) {
|
|
|
+ this.option7 = itemParams.name;
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|