@unizhen/ui 0.1.138 → 0.1.140

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.
@@ -49,7 +49,7 @@ export interface IUzDataTableColumnBase<T = InternalRowData> {
49
49
  minWidth?: string | number;
50
50
  maxWidth?: string | number;
51
51
  type?: 'selection' | 'expand';
52
- expandable?: boolean;
52
+ expandable?: (rowData: T) => boolean;
53
53
  render?: string | ((rowData: T, rowIndex: number) => VNodeChild);
54
54
  renderExpand?: string | ((rowData: T, rowIndex: number) => VNodeChild);
55
55
  source?: string;
package/lib/ui.js CHANGED
@@ -1209,7 +1209,7 @@ var xr = /*#__PURE__*/ Q(yr, [["render", br]]), Sr = d({
1209
1209
  else t.form.updateValue(n, a, i, Z);
1210
1210
  }
1211
1211
  },
1212
- showPlaceholder: (e) => typeof e.params.placeholder == "function" ? e.params.placeholder() : e.params.placeholder ? e.params.placeholder : typeof e.label == "function" ? e.label() : e.label,
1212
+ showPlaceholder: (t) => e.status === 2 ? " " : typeof t.params.placeholder == "function" ? t.params.placeholder() : t.params.placeholder ? t.params.placeholder : typeof t.label == "function" ? t.label() : t.label,
1213
1213
  checkDisabled: () => {
1214
1214
  if (e.disabled) return !0;
1215
1215
  let n = e.item.form.disabledFn;
@@ -3733,8 +3733,8 @@ function Ni(t, n, s, u, d, f) {
3733
3733
  model: { child: t.innerData }
3734
3734
  }, {
3735
3735
  default: P(() => [(x(), r(p, {
3736
- key: t.tableVersion,
3737
3736
  ref: "tableRef",
3737
+ key: t.tableVersion,
3738
3738
  columns: t.displayedTableCols,
3739
3739
  data: t.innerData,
3740
3740
  "row-props": t.getRowProps,
@@ -5416,7 +5416,7 @@ var $a = d({
5416
5416
  } catch {
5417
5417
  return !1;
5418
5418
  }
5419
- } : !0,
5419
+ } : () => !0,
5420
5420
  renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => s("Common.expand") }), f(L, { onClick: ze }, { default: () => s("Common.contract") })]),
5421
5421
  renderExpand: (e) => f(qa, {
5422
5422
  data: a,
@@ -7876,7 +7876,7 @@ function ac(e, t, n) {
7876
7876
  }
7877
7877
  //#endregion
7878
7878
  //#region package.json
7879
- var oc = "0.1.138", sc;
7879
+ var oc = "0.1.140", sc;
7880
7880
  async function cc() {
7881
7881
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7882
7882
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.138",
3
+ "version": "0.1.140",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },