@@ -95,6 +107,7 @@ const textareaVal = ref('')
font-weight: 500;
font-size: 16px;
line-height: 24px;
+ color: var(--ed-text-color-primary);
}
.ed-icon {
@@ -146,13 +159,11 @@ const textareaVal = ref('')
.i-can {
margin-bottom: 4px;
- }
-
- .data-query,
- .i-can {
+ max-width: 350px;
+ text-align: center;
font-weight: 400;
font-size: 14px;
- line-height: 22px;
+ line-height: 24px;
color: #646a73;
}
}
diff --git a/frontend/src/views/system/embedded/SetUi.vue b/frontend/src/views/system/embedded/SetUi.vue
index 5b9de567..5666f0eb 100644
--- a/frontend/src/views/system/embedded/SetUi.vue
+++ b/frontend/src/views/system/embedded/SetUi.vue
@@ -4,9 +4,8 @@ import { ref, unref, reactive, nextTick } from 'vue'
import { type UploadUserFile, ElMessage } from 'element-plus-secondary'
import { useI18n } from 'vue-i18n'
import { request } from '@/utils/request'
+import { setCurrentColor } from '@/utils/utils'
import { useAppearanceStoreWithOut } from '@/stores/appearance'
-import colorFunctions from 'less/lib/less/functions/color.js'
-import colorTree from 'less/lib/less/tree/color.js'
import { cloneDeep } from 'lodash-es'
const appearanceStore = useAppearanceStoreWithOut()
@@ -145,26 +144,8 @@ const customColorChange = (val: any) => {
}
const setPageCustomColor = (val: any) => {
- const ele = document.getElementsByClassName('ui-main')[0] as HTMLElement
-
- ele.style.setProperty('--ed-color-primary', val)
- ele.style.setProperty('--van-blue', val)
- ele.style.setProperty(
- '--ed-color-primary-light-5',
- colorFunctions.mix(new colorTree('ffffff'), new colorTree(val.substr(1)), { value: 40 }).toRGB()
- )
- ele.style.setProperty(
- '--ed-color-primary-light-3',
- colorFunctions.mix(new colorTree('ffffff'), new colorTree(val.substr(1)), { value: 15 }).toRGB()
- )
- ele.style.setProperty('--ed-color-primary-1a', `${val}1a`)
- ele.style.setProperty('--ed-color-primary-14', `${val}14`)
- ele.style.setProperty('--ed-color-primary-33', `${val}33`)
- ele.style.setProperty('--ed-color-primary-99', `${val}99`)
- ele.style.setProperty(
- '--ed-color-primary-dark-2',
- colorFunctions.mix(new colorTree('000000'), new colorTree(val.substr(1)), { value: 15 }).toRGB()
- )
+ const ele = document.querySelector('.ui-main') as HTMLElement
+ setCurrentColor(val, ele)
}
const setPageHeaderFontColor = (val: any) => {
@@ -224,6 +205,9 @@ const open = (row: any) => {
// rawData = JSON.parse(row.configuration)
// init()
dialogVisible.value = true
+ nextTick(() => {
+ setPageCustomColor('#1CBA90')
+ })
}
defineExpose({
open,
@@ -239,7 +223,12 @@ defineExpose({
>