@unizhen/ui 0.1.139 → 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.
- package/lib/components/table/interface.d.ts +1 -1
- package/lib/ui.js +4 -5
- package/package.json +1 -1
|
@@ -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
|
@@ -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,
|
|
@@ -5412,12 +5412,11 @@ var $a = d({
|
|
|
5412
5412
|
filterOptionValue: null,
|
|
5413
5413
|
expandable: a.expandableFn ? (e) => {
|
|
5414
5414
|
try {
|
|
5415
|
-
|
|
5416
|
-
return console.log(t(e)), t(e);
|
|
5415
|
+
return Function("rowData", a.expandableFn)(e);
|
|
5417
5416
|
} catch {
|
|
5418
5417
|
return !1;
|
|
5419
5418
|
}
|
|
5420
|
-
} : !0,
|
|
5419
|
+
} : () => !0,
|
|
5421
5420
|
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => s("Common.expand") }), f(L, { onClick: ze }, { default: () => s("Common.contract") })]),
|
|
5422
5421
|
renderExpand: (e) => f(qa, {
|
|
5423
5422
|
data: a,
|
|
@@ -7877,7 +7876,7 @@ function ac(e, t, n) {
|
|
|
7877
7876
|
}
|
|
7878
7877
|
//#endregion
|
|
7879
7878
|
//#region package.json
|
|
7880
|
-
var oc = "0.1.
|
|
7879
|
+
var oc = "0.1.140", sc;
|
|
7881
7880
|
async function cc() {
|
|
7882
7881
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7883
7882
|
method: "HEAD",
|