mirror of
https://gitee.com/dromara/go-view.git
synced 2026-07-23 23:25:41 +08:00
Compare commits
5 Commits
c0850c90d0
...
e8f9640e69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8f9640e69 | ||
|
|
950344127f | ||
|
|
64d4c40c07 | ||
|
|
e42236ccee | ||
|
|
4409da213f |
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="vChartRef">
|
||||
<n-countdown
|
||||
ref="countdownRef"
|
||||
:duration="totalDuration"
|
||||
@ -79,6 +79,8 @@ import { CreateComponentType } from '@/packages/index.d'
|
||||
import { Flipper } from '@/components/Pages/Flipper'
|
||||
import { OptionType } from './config'
|
||||
import { CountdownInst, CountdownProps } from 'naive-ui/es/countdown/src/Countdown'
|
||||
import { useChartDataFetch } from '@/hooks'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
|
||||
const props = defineProps({
|
||||
chartConfig: {
|
||||
@ -174,6 +176,10 @@ watch(
|
||||
onMounted(() => {
|
||||
updateTotalDuration()
|
||||
})
|
||||
|
||||
const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
|
||||
props.chartConfig.option.dataset = newData
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
4
src/packages/index.d.ts
vendored
4
src/packages/index.d.ts
vendored
@ -27,9 +27,9 @@ export type ConfigType = {
|
||||
// 标题
|
||||
title: string
|
||||
// 分类
|
||||
category: ChatCategoryEnum
|
||||
category: string
|
||||
// 分类名称
|
||||
categoryName: ChatCategoryEnumName
|
||||
categoryName: string
|
||||
// 所属包
|
||||
package: PackagesCategoryEnum
|
||||
// 归类
|
||||
|
||||
@ -286,8 +286,7 @@ export const JSONStringify = <T>(data: T) => {
|
||||
return null
|
||||
}
|
||||
return val
|
||||
},
|
||||
2
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -166,7 +166,7 @@ const btnList = [
|
||||
},
|
||||
{
|
||||
key: 'preview',
|
||||
title: () => '预览',
|
||||
title: () => '本地预览',
|
||||
type: () => 'default',
|
||||
icon: renderIcon(BrowsersOutlineIcon),
|
||||
event: previewHandle
|
||||
|
||||
@ -122,7 +122,8 @@ const selectOptions = ref([
|
||||
{
|
||||
label: renderLang('global.r_preview'),
|
||||
key: 'preview',
|
||||
icon: renderIcon(BrowsersOutlineIcon)
|
||||
icon: renderIcon(BrowsersOutlineIcon),
|
||||
show: props.cardData?.release
|
||||
},
|
||||
{
|
||||
label: props.cardData?.release
|
||||
@ -136,7 +137,7 @@ const selectOptions = ref([
|
||||
key: 'delete',
|
||||
icon: renderIcon(TrashIcon)
|
||||
}
|
||||
])
|
||||
].filter(item => item.show !== false))
|
||||
|
||||
const handleSelect = (key: string) => {
|
||||
switch (key) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user