yc-vep-ui 0.3.76 → 0.3.78
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.
|
@@ -2599,15 +2599,16 @@ function useDefaultTable(e, n) {
|
|
|
2599
2599
|
let c = useFetch(e, {
|
|
2600
2600
|
...n,
|
|
2601
2601
|
defaultParams: s,
|
|
2602
|
+
immediate: !1,
|
|
2602
2603
|
onSuccess: (e) => {
|
|
2603
2604
|
n?.onSuccess?.(e), a.total = e[r?.replaceAttrs?.total] || 0, i.value = e[r?.replaceAttrs?.table] || [];
|
|
2604
2605
|
}
|
|
2605
2606
|
});
|
|
2606
2607
|
watchEffect(() => {
|
|
2607
|
-
|
|
2608
|
-
let e = toValue(n.defaultParams || {});
|
|
2608
|
+
let e = toValue(n.ready) ?? !0, r = toValue(n.defaultParams || {});
|
|
2609
2609
|
a.page = 1, a.pageSize = 10;
|
|
2610
|
-
for (let
|
|
2610
|
+
for (let e in r) e !== "page" && e !== "pageSize" && (s[e] = r[e]);
|
|
2611
|
+
e && c.execute({ ...s });
|
|
2611
2612
|
}, { flush: "sync" });
|
|
2612
2613
|
function l(e = {}) {
|
|
2613
2614
|
a.page = 1, a.pageSize = 10, e && (Object.keys(s).forEach((n) => {
|
|
@@ -2701,6 +2702,7 @@ function useComTable(e, n) {
|
|
|
2701
2702
|
let f = reactive({
|
|
2702
2703
|
loading: !1,
|
|
2703
2704
|
data: [],
|
|
2705
|
+
selection: [],
|
|
2704
2706
|
insert: c,
|
|
2705
2707
|
update: l,
|
|
2706
2708
|
remove: u,
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-DB0L6HVk.js";
|
|
2
2
|
export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { IExtra } from './type';
|
|
1
|
+
import { IExtra, TableReturn } from './type';
|
|
2
2
|
import { FetchOptions } from '../useFetch';
|
|
3
|
-
export declare function useTable<T>(url: string, options: FetchOptions<T> & IExtra):
|
|
3
|
+
export declare function useTable<T>(url: string, options: FetchOptions<T> & IExtra): TableReturn<T>;
|
|
4
|
+
export type { TableReturn, IExtra } from './type';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-
|
|
1
|
+
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-DB0L6HVk.js";
|
|
2
2
|
export { t as baseUrl, n as request, e as tempToRender, r as uniq, i as uniqBy };
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-DB0L6HVk.js";
|
|
2
2
|
export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
|