qinyan 1 жил өмнө
parent
commit
dc57dcc713

+ 6 - 1
src/modules/editor/components/CompUI/formItems/NewColorPicker/ColorList.tsx

@@ -48,7 +48,12 @@ export default defineComponent({
       const list = props.data;
       const propsColor = formatColor(value);
       return (
-        <div class={cx("grid gap-16px", `grid-cols-${columns}`)}>
+        <div
+          class="grid gap-16px"
+          style={{
+            gridTemplateColumns: `repeat(${columns}, 1fr)`,
+          }}
+        >
           {list.map((item: string | gradientColorType, index: number) => {
             const thisColor = formatColor(item);
             const active = thisColor === propsColor ? true : false;