For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.1.0/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.1.0/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.1.0/components/table.md.
  • 简体中文
  • v0.1.0
  • 表格

    Live previewHTML · CSS · JavaScript
    A list of your recent invoices.
    InvoiceStatusMethodAmount
    INV001PaidCredit Card$250.00
    INV002PendingPayPal$150.00
    INV003UnpaidBank Transfer$350.00
    INV004PaidPaypal$450.00
    INV005PaidCredit Card$550.00
    INV006PendingBank Transfer$200.00
    INV007UnpaidCredit Card$300.00
    Total$2,500.00

    用途

    Include CSS

    导入 Tailwind 和一个完整的 A3S UI 样式包。

    @import "tailwindcss";
    @import "@a3s-lab/ui/a3s.css";

    或者只导入基本CSS、表格组件CSS和一个样式包。

    @import "tailwindcss";
    @import "@a3s-lab/ui/base.css";
    @import "@a3s-lab/ui/components/table.css";
    @import "@a3s-lab/ui/styles/a3s.css";

    使用CDN或批量程序导入?请参见安装页

    Add your table HTML

    class="table" 添加到您的表元素中。当需要水平滚动时,将其包裹在class="table-container"中。

    <div class="table-container">
    <table class="table">
      <!-- Content of your table -->
    </table>
    </div>

    示例

    下面的示例遵循上游表模式,它们清晰地映射到 A3S UI 的非门户 HTML 模型。

    带页脚

    Live previewHTML · CSS · JavaScript
    A list of your recent invoices.
    InvoiceStatusMethodAmount
    INV001PaidCredit Card$250.00
    INV002PendingPayPal$150.00
    INV003UnpaidBank Transfer$350.00
    Total$2,500.00

    带操作

    Live previewHTML · CSS · JavaScript
    ProductPriceActions
    Wireless Mouse$29.99
    Mechanical Keyboard$129.99
    USB-C Hub$49.99

    RTL

    需要时在表容器上设置 dir="rtl"。使用逻辑对齐工具类,例如 text-end

    Live previewHTML · CSS · JavaScript
    قائمة الفواتير الأخيرة.
    الفاتورةالحالةالمبلغ
    INV001مدفوعة$250.00