feat: 新增定位和style处理

This commit is contained in:
MTrun
2022-03-09 17:37:32 +08:00
parent a6e5dec2c0
commit a467283618
10 changed files with 167 additions and 11 deletions
@@ -0,0 +1,31 @@
<template>
<CollapseItem name="通用样式" :expanded="true">
<SettingItemBox name="透明度" :alone="true">
<!-- 透明度 -->
<n-slider
v-model:value="chartStyles.opacity"
:step="0.1"
:min="0"
:max="1"
/>
</SettingItemBox>
</CollapseItem>
</template>
<script setup lang="ts">
import { PropType } from 'vue'
import { PickCreateComponentType } from '@/packages/index.d'
import {
SettingItemBox,
CollapseItem
} from '@/components/ChartItemSetting/index'
const props = defineProps({
chartStyles: {
type: Object as PropType<PickCreateComponentType<'styles'>>,
required: true
}
})
</script>
<style lang="scss" scoped></style>