@seanyeh77/ui 0.47.1 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1213,12 +1213,19 @@ function DataTable(p) {
1213
1213
  unit: unitOf(selIds.length)
1214
1214
  }),
1215
1215
  children: [
1216
- /* @__PURE__ */ jsx("span", {
1217
- className: "ui-dt-bulk-count",
1218
- children: monoNums(tr("已選 {n} {unit}", {
1219
- n: "",
1220
- unit: unitOf(selIds.length)
1221
- }), [format.number(selIds.length)])
1216
+ /* @__PURE__ */ jsxs("span", {
1217
+ className: "ui-dt-bulk-lead",
1218
+ children: [narrow ? /* @__PURE__ */ jsx(RowCheck, {
1219
+ v: allOn ? true : mixed ? "mixed" : false,
1220
+ label: tr("全選"),
1221
+ onClick: () => toggle(visIds, !allOn)
1222
+ }) : null, /* @__PURE__ */ jsx("span", {
1223
+ className: "ui-dt-bulk-count",
1224
+ children: monoNums(tr("已選 {n} {unit}", {
1225
+ n: "",
1226
+ unit: unitOf(selIds.length)
1227
+ }), [format.number(selIds.length)])
1228
+ })]
1222
1229
  }),
1223
1230
  /* @__PURE__ */ jsx("span", {
1224
1231
  className: "ui-dt-bulk-actions",