mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
refactor(仪表板、数据大屏): 复用支持适配主题数字格式 (#17582)
This commit is contained in:
@@ -93,11 +93,13 @@ defineExpose({
|
||||
<style lang="less">
|
||||
.preview_pop_custom {
|
||||
overflow: hidden;
|
||||
.ed-dialog__close {
|
||||
color: var(--ed-dialog__de-text);
|
||||
:deep(.is_link) {
|
||||
&:hover {
|
||||
color: var(--ed-dialog__de-text) !important;
|
||||
}
|
||||
}
|
||||
:deep(.content-outer) {
|
||||
background-color: var(--ed-dialog-bg-color) !important;
|
||||
.ed-dialog__close {
|
||||
color: var(--ed-dialog__de-text) !important;
|
||||
}
|
||||
.preview-main-frame-outer {
|
||||
width: 100%;
|
||||
|
||||
@@ -478,7 +478,7 @@ defineExpose({
|
||||
<style lang="less">
|
||||
.userViewEnlarge-class {
|
||||
.ed-dialog__close {
|
||||
color: var(--ed-dialog__de-text);
|
||||
color: var(--ed-dialog__de-text) !important;
|
||||
}
|
||||
.ed-dialog__header {
|
||||
display: flex;
|
||||
@@ -531,7 +531,8 @@ defineExpose({
|
||||
|
||||
&:not(.is-disabled):focus,
|
||||
&:not(.is-disabled):hover {
|
||||
color: #1f2329;
|
||||
color: var(--ed-dialog__de-text) !important;
|
||||
opacity: 0.5;
|
||||
border-color: transparent;
|
||||
background-color: rgba(31, 35, 41, 0.1);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { defaultTo, merge } from 'lodash-es'
|
||||
import { formatterViewInfo } from '@/views/chart/components/js/formatter'
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
|
||||
export const LIGHT_THEME_COLOR_MAIN = '#000000'
|
||||
@@ -536,6 +537,7 @@ export function adaptCurThemeCommonStyle(component) {
|
||||
// 图表-Begin
|
||||
const curViewInfo = dvMainStore.canvasViewInfo[component.id]
|
||||
adaptCurTheme(curViewInfo.customStyle, curViewInfo.customAttr)
|
||||
formatterViewInfo(curViewInfo, dvMainStore.canvasStyleData.component.formatterItem)
|
||||
useEmitt().emitter.emit('renderChart-' + component.id, curViewInfo)
|
||||
// 图表-Begin
|
||||
} else if (component.component === 'Group') {
|
||||
|
||||
Reference in New Issue
Block a user