Commit 1d287822 authored by leon's avatar leon

feat:new tabs type

parent 9cdf8a62
<template>
<view class="normal-tabs">
<u-tabs v-if="elementInfo.option.tabs.type === 'radio'" :list="elementData.dataList.series" :is-scroll="false"
<u-tabs v-if="elementInfo.option.tabs.type === 'tabs'" :list="elementData.dataList.series" :is-scroll="true"
:current="currentTabs" :active-color="elementInfo.option.tabs.activeColor"
:inactive-color="elementInfo.option.tabs.color" :bg-color="elementInfo.option.tabs.backgroundColor"
@change="handleTabsChange"></u-tabs>
:font-size="getFontSize()" @change="handleTabsChange">{{elementInfo.option.tabs.fontSize}}</u-tabs>
<u-subsection v-if="elementInfo.option.tabs.type === 'radio'" :list="elementData.dataList.series"
:current="currentTabs" :active-color="elementInfo.option.tabs.activeColor"
:inactive-color="elementInfo.option.tabs.color" :font-size="getFontSize()"
@change="handleTabsChange"></u-subsection>
<template v-if="elementInfo.option.tabs.type === 'select'">
<view class="input-group">
<u-input v-model="selectValue" type="select" border="true"
......@@ -202,6 +206,9 @@
}
})
return label
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.tabs.fontSize)
}
},
watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment