Prechádzať zdrojové kódy

fix: 修改控件问题

jiaxing.liao 2 týždňov pred
rodič
commit
bdfb92b66f

+ 3 - 6
src/renderer/src/lvgl-widgets/span-group/index.tsx

@@ -2,7 +2,7 @@ import SpanGroup from './SpanGroup.vue'
 import icon from '../assets/icon/icon_5rich_text.svg'
 import type { IComponentModelConfig } from '../type'
 import i18n from '@/locales'
-import { flagOptions, stateOptions } from '@/constants'
+import { flagOptions, stateOptions, stateList } from '@/constants'
 import defaultStyle from './style.json'
 import Config from './Config.vue'
 
@@ -17,7 +17,7 @@ export default {
   parts: [
     {
       name: 'main',
-      stateList: ['default']
+      stateList
     }
   ],
   defaultSchema: {
@@ -203,10 +203,7 @@ export default {
       {
         label: '背景',
         field: 'background',
-        valueType: 'background',
-        componentProps: {
-          onlyColor: true
-        }
+        valueType: 'background'
       },
       {
         label: '边框',

+ 1 - 4
src/renderer/src/lvgl-widgets/textarea/index.ts

@@ -255,10 +255,7 @@ export default {
                 {
                   label: '背景',
                   field: 'background',
-                  valueType: 'background',
-                  componentProps: {
-                    onlyColor: true
-                  }
+                  valueType: 'background'
                 },
                 {
                   label: '圆角',