colliedog 最近的时间轴更新
colliedog

colliedog

V2EX 第 669175 号会员,加入于 2023-12-31 21:30:49 +08:00
  •   查看本主题需要登录
    colliedog 最近回复了
    2024 年 1 月 4 日
    回复了 kiddyu 创建的主题 分享创造 Sutando: 把最好用的 ORM 复刻到 Node.js
    prisma 不香吗?
    @privateproxies 感谢大佬
    import { absYCenter } from "@collie-ui/css";
    import { makeStyled } from "@colliejs/react";
    import { collieConfig } from "../collie.config";
    export const styled = makeStyled(collieConfig);

    export const StyledButton = styled("button", {
    w: 100,
    h: 40,
    _hover: {
    opacity: 0.8,
    background: "$primary",
    borderRadius: 10,
    color: "white",
    },
    _after: {
    h: "100%",
    w: [10, 4],
    background: "red",
    ...absYCenter({ right: 0 }),
    },

    variants: {
    size: {
    full: {
    w: "100%",
    },
    big: {
    w: 80,
    },
    md: {
    w: 40,
    },
    sm: {
    w: 20,
    },
    dynamic: x => ({
    //any size you want
    w: x,
    }),
    },
    shape: {
    round: {
    borderRadius: 9999,
    },
    rect: {
    borderRadius: 0,
    },
    },
    status: {
    disabled: {
    true: {
    cursor: "not-allowed",
    background: "$gray200",
    },
    },
    },
    },

    compoundVariants: [
    {
    size: "big",
    shape: "round",
    css: {
    background: "$gray200",
    },
    },
    ],
    defaultVariants: {
    shape: "rect",
    },
    });
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5697 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 15ms · UTC 07:35 · PVG 15:35 · LAX 23:35 · JFK 02:35
    ♥ Do have faith in what you're doing.