@unizhen/ui 0.1.139 → 0.1.141
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.
|
@@ -5,8 +5,6 @@ import { IUzTableQuery, ITableOptions } from './interface';
|
|
|
5
5
|
import { IUzSearchBars } from '../searchBar';
|
|
6
6
|
import { IUzActionButton } from '../actionButton';
|
|
7
7
|
import { IUzFormItems } from '../form';
|
|
8
|
-
import { ComposerTranslation, VueMessageType, LocaleMessageValue } from 'vue-i18n';
|
|
9
|
-
import { LocaleMessage, RemoveIndexSignature } from '@intlify/core-base';
|
|
10
8
|
import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
|
|
11
9
|
import { DataTableHeightForRow, RenderExpandIcon, DataTableOnLoad, OnUpdateSorter, OnUpdateFilters, OnUpdateCheckedRowKeys, OnUpdateExpandedRowKeys, CsvOptionsType, InternalRowData, TmNode } from 'naive-ui/es/data-table/src/interface';
|
|
12
10
|
import { MaybeArray } from 'naive-ui/es/_utils';
|
|
@@ -33,6 +31,8 @@ import { IconTheme, IconThemeOverrides } from 'naive-ui/es/icon/styles';
|
|
|
33
31
|
import { OnUpdateChecked } from 'naive-ui/es/checkbox/src/interface';
|
|
34
32
|
import { UseFormItem } from 'naive-ui/es/_mixins/use-form-item';
|
|
35
33
|
import { SpinTheme, SpinThemeOverrides } from 'naive-ui/es/spin/styles';
|
|
34
|
+
import { ComposerTranslation, VueMessageType, LocaleMessageValue } from 'vue-i18n';
|
|
35
|
+
import { LocaleMessage, RemoveIndexSignature } from '@intlify/core-base';
|
|
36
36
|
import { EllipsisThemeVars } from 'naive-ui/es/ellipsis/styles/light';
|
|
37
37
|
import { LabelAlign, LabelPlacement, FormValidateMessages } from 'naive-ui/es/form/src/interface';
|
|
38
38
|
import { FormTheme, FormThemeOverrides } from 'naive-ui/es/form/styles';
|
|
@@ -151,11 +151,6 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
|
|
|
151
151
|
default: undefined;
|
|
152
152
|
};
|
|
153
153
|
}>, {
|
|
154
|
-
t: ComposerTranslation<{
|
|
155
|
-
[x: string]: LocaleMessage<VueMessageType>;
|
|
156
|
-
}, string, RemoveIndexSignature<{
|
|
157
|
-
[x: string]: LocaleMessageValue<VueMessageType>;
|
|
158
|
-
}>, never, never, never>;
|
|
159
154
|
loading: Ref<boolean, boolean>;
|
|
160
155
|
minH: Ref<string | undefined, string | undefined>;
|
|
161
156
|
maxH: Ref<string | undefined, string | undefined>;
|
|
@@ -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,
|
|
@@ -5591,7 +5590,6 @@ var $a = d({
|
|
|
5591
5590
|
let t = e || [], n = B.value.filter((e) => t.includes(e.id));
|
|
5592
5591
|
re.value = t, B.value = n;
|
|
5593
5592
|
}, { deep: !0 }), {
|
|
5594
|
-
t: s,
|
|
5595
5593
|
loading: _,
|
|
5596
5594
|
minH: ee,
|
|
5597
5595
|
maxH: j,
|
|
@@ -5664,7 +5662,7 @@ function ao(t, n, u, d, f, p) {
|
|
|
5664
5662
|
onClick: t.rebuild,
|
|
5665
5663
|
block: ""
|
|
5666
5664
|
}, {
|
|
5667
|
-
default: P(() => [c(A(t
|
|
5665
|
+
default: P(() => [c(A(t.$t("Common.retry")), 1)]),
|
|
5668
5666
|
_: 1
|
|
5669
5667
|
}, 8, ["onClick"])
|
|
5670
5668
|
]),
|
|
@@ -5689,7 +5687,7 @@ function ao(t, n, u, d, f, p) {
|
|
|
5689
5687
|
default: P(() => [l(v, { icon: "Add" })]),
|
|
5690
5688
|
_: 1
|
|
5691
5689
|
})]),
|
|
5692
|
-
default: P(() => [c(" " + A(t
|
|
5690
|
+
default: P(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5693
5691
|
_: 1
|
|
5694
5692
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5695
5693
|
t.suffixes && t.suffixes.length > 0 ? (x(), r(b, {
|
|
@@ -5757,7 +5755,7 @@ function ao(t, n, u, d, f, p) {
|
|
|
5757
5755
|
default: P(() => [l(v, { icon: "Filter" })]),
|
|
5758
5756
|
_: 1
|
|
5759
5757
|
})]),
|
|
5760
|
-
default: P(() => [c(" " + A(t
|
|
5758
|
+
default: P(() => [c(" " + A(t.$t("Common.columns")), 1)]),
|
|
5761
5759
|
_: 1
|
|
5762
5760
|
})]),
|
|
5763
5761
|
default: P(() => [l(O, {
|
|
@@ -5797,7 +5795,7 @@ function ao(t, n, u, d, f, p) {
|
|
|
5797
5795
|
loading: t.loading,
|
|
5798
5796
|
onClick: t.resetFilter
|
|
5799
5797
|
}, {
|
|
5800
|
-
default: P(() => [c(A(t
|
|
5798
|
+
default: P(() => [c(A(t.$t("Common.reset")), 1)]),
|
|
5801
5799
|
_: 1
|
|
5802
5800
|
}, 8, ["loading", "onClick"])]),
|
|
5803
5801
|
_: 1
|
|
@@ -5833,7 +5831,7 @@ function ao(t, n, u, d, f, p) {
|
|
|
5833
5831
|
default: P(() => [l(v, { icon: "Add" })]),
|
|
5834
5832
|
_: 1
|
|
5835
5833
|
})]),
|
|
5836
|
-
default: P(() => [c(" " + A(t
|
|
5834
|
+
default: P(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5837
5835
|
_: 1
|
|
5838
5836
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5839
5837
|
E(t.$slots, "action")
|
|
@@ -7877,7 +7875,7 @@ function ac(e, t, n) {
|
|
|
7877
7875
|
}
|
|
7878
7876
|
//#endregion
|
|
7879
7877
|
//#region package.json
|
|
7880
|
-
var oc = "0.1.
|
|
7878
|
+
var oc = "0.1.141", sc;
|
|
7881
7879
|
async function cc() {
|
|
7882
7880
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7883
7881
|
method: "HEAD",
|