配置项

This commit is contained in:
wangzhiqiang 2022-06-23 17:01:28 +08:00
parent 7cf6eda3b1
commit dc627a146f
2 changed files with 16 additions and 3 deletions

View File

@ -19,8 +19,7 @@ const option = {
roundCap: true, roundCap: true,
clip: false, clip: false,
itemStyle: { itemStyle: {
borderWidth: 1, color:'#3263ec'
borderColor: '#464646'
} }
}, },
axisLine: { axisLine: {
@ -48,7 +47,7 @@ const option = {
width: 50, width: 50,
height: 14, height: 14,
fontSize: 20, fontSize: 20,
color: 'auto', color: '#3263ec',
borderColor: 'auto', borderColor: 'auto',
borderRadius: 20, borderRadius: 20,
borderWidth: 0, borderWidth: 0,

View File

@ -10,6 +10,20 @@
<n-input-number v-model:value="config.series[0].detail.fontSize" :min="10" :step="1" size="small" placeholder="数值"> <n-input-number v-model:value="config.series[0].detail.fontSize" :min="10" :step="1" size="small" placeholder="数值">
</n-input-number> </n-input-number>
</SettingItem> </SettingItem>
<SettingItem name="环颜色">
<n-color-picker
size="small"
:modes="['hex']"
v-model:value="config.series[0].progress.itemStyle.color"
></n-color-picker>
</SettingItem>
<SettingItem name="字颜色">
<n-color-picker
size="small"
:modes="['hex']"
v-model:value="config.series[0].detail.color"
></n-color-picker>
</SettingItem>
</SettingItemBox> </SettingItemBox>
</CollapseItem> </CollapseItem>
</template> </template>