|
@@ -15,19 +15,26 @@
|
|
|
placeholder="水球数值"
|
|
placeholder="水球数值"
|
|
|
></n-input-number>
|
|
></n-input-number>
|
|
|
</SettingItem>
|
|
</SettingItem>
|
|
|
|
|
+ <SettingItem name="形状">
|
|
|
|
|
+ <n-select v-model:value="item.shape" :options="shapes" placeholder="选择形状" />
|
|
|
|
|
+ </SettingItem>
|
|
|
|
|
+ <SettingItem name="文本">
|
|
|
|
|
+ <n-input-number v-model:value="item.label.normal.textStyle.fontSize" :min="0" :step="1" size="small" placeholder="文字大小">
|
|
|
|
|
+ </n-input-number>
|
|
|
|
|
+ </SettingItem>
|
|
|
<SettingItem name="颜色1">
|
|
<SettingItem name="颜色1">
|
|
|
<n-color-picker
|
|
<n-color-picker
|
|
|
size="small"
|
|
size="small"
|
|
|
:modes="['hex']"
|
|
:modes="['hex']"
|
|
|
v-model:value="item.color[0].colorStops[0].color"
|
|
v-model:value="item.color[0].colorStops[0].color"
|
|
|
- ></n-color-picker>
|
|
|
|
|
|
|
+ ></n-color-picker>
|
|
|
</SettingItem>
|
|
</SettingItem>
|
|
|
<SettingItem name="颜色2">
|
|
<SettingItem name="颜色2">
|
|
|
<n-color-picker
|
|
<n-color-picker
|
|
|
size="small"
|
|
size="small"
|
|
|
:modes="['hex']"
|
|
:modes="['hex']"
|
|
|
v-model:value="item.color[0].colorStops[1].color"
|
|
v-model:value="item.color[0].colorStops[1].color"
|
|
|
- ></n-color-picker>
|
|
|
|
|
|
|
+ ></n-color-picker>
|
|
|
</SettingItem>
|
|
</SettingItem>
|
|
|
</SettingItemBox>
|
|
</SettingItemBox>
|
|
|
<SettingItemBox name="背景" :alone="true">
|
|
<SettingItemBox name="背景" :alone="true">
|
|
@@ -44,7 +51,7 @@
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { PropType, computed } from 'vue'
|
|
import { PropType, computed } from 'vue'
|
|
|
-import { option } from './config'
|
|
|
|
|
|
|
+import { option, shapes } from './config'
|
|
|
import {
|
|
import {
|
|
|
CollapseItem,
|
|
CollapseItem,
|
|
|
SettingItemBox,
|
|
SettingItemBox,
|