|
@@ -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;
|