Skip to content

用Button组件的时候发现如果Children是0的时候会多一个cm-button-empty的样式 #16

Description

@mingshuisheng
import { Button } from "cui-solid";
import { For } from "solid-js";

export default function Edit() {
  return (
    <div flex flex-wrap gap-10px>
      <For each={new Array(100).fill(0).map((_, index) => index)}>
        {(index) => (
          <Button size-100px type="primary">
            {index}
          </Button>
        )}
      </For>
    </div>
  );
}

1736578200316
1736578293305

虽然我不会真的这么用,但是姑且提一下吧

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions