mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-12 00:00:01 +08:00
chore: 优化进度条组件内容
This commit is contained in:
@@ -4,9 +4,36 @@ import { ProcessConfig } from './index'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
|
||||
|
||||
export const types = [
|
||||
{
|
||||
label: '线形',
|
||||
value: 'line'
|
||||
},
|
||||
{
|
||||
label: '圆形',
|
||||
value: 'circle'
|
||||
},
|
||||
{
|
||||
label: '仪表盘',
|
||||
value: 'dashboard'
|
||||
},
|
||||
]
|
||||
|
||||
export const indicatorPlacements = [
|
||||
{
|
||||
label: '内部',
|
||||
value: 'inside'
|
||||
},
|
||||
{
|
||||
label: '外部',
|
||||
value: 'outside'
|
||||
}
|
||||
]
|
||||
|
||||
export const option = {
|
||||
dataset: 36,
|
||||
type: "circle",
|
||||
type: types[2].value,
|
||||
color: '#4992FFFF',
|
||||
// 指标位置(线条时可用)
|
||||
indicatorPlacement: "outside"
|
||||
|
||||
@@ -38,7 +38,7 @@ import {
|
||||
} from '@/components/Pages/ChartItemSetting'
|
||||
|
||||
// 获取 option 的数据,便于使用 typeof 获取类型
|
||||
import { option } from './config'
|
||||
import { option, types, indicatorPlacements} from './config'
|
||||
|
||||
const props = defineProps({
|
||||
optionData: {
|
||||
@@ -46,30 +46,4 @@ const props = defineProps({
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const types = [
|
||||
{
|
||||
label: '线形',
|
||||
value: 'line'
|
||||
},
|
||||
{
|
||||
label: '圆形',
|
||||
value: 'circle'
|
||||
},
|
||||
{
|
||||
label: '仪表盘',
|
||||
value: 'dashboard'
|
||||
},
|
||||
]
|
||||
|
||||
const indicatorPlacements = [
|
||||
{
|
||||
label: '里面',
|
||||
value: 'inside'
|
||||
},
|
||||
{
|
||||
label: '外边',
|
||||
value: 'outside'
|
||||
}
|
||||
]
|
||||
</script>
|
||||
@@ -13,7 +13,7 @@ export const ProcessConfig: ConfigType = {
|
||||
// 配置组件渲染 Components 格式: VC + key
|
||||
conKey: 'VCProcess',
|
||||
// 名称
|
||||
title: '多类进度条',
|
||||
title: 'NaiveUI-进度',
|
||||
// 子分类目录
|
||||
category: ChatCategoryEnum.MORE,
|
||||
// 子分类目录
|
||||
|
||||
Reference in New Issue
Block a user