yc-vep-ui 0.3.12 → 0.3.14
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/dist/{entry-CwQfKDuC.js → entry-BhtUjaKZ.js} +9 -9
- package/dist/entry.d.ts +9 -0
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useDictionary.d.ts +1 -1
- package/dist/hooks/useFetch.d.ts +2 -1
- package/dist/hooks/useTable/default.d.ts +1 -1
- package/dist/index.css +2 -1
- package/dist/vep-ui.js +1 -1
- package/package.json +1 -1
|
@@ -2276,7 +2276,7 @@ function Un(e, n) {
|
|
|
2276
2276
|
//#endregion
|
|
2277
2277
|
//#region src/hooks/useTable/index.ts
|
|
2278
2278
|
function Wn(e, t) {
|
|
2279
|
-
return e?.includes("/common/pageQuery") ? Un(e, t) : Hn(e, t);
|
|
2279
|
+
return e?.includes("/common/pageQuery") || t?.template === "common" ? Un(e, t) : Hn(e, t);
|
|
2280
2280
|
}
|
|
2281
2281
|
//#endregion
|
|
2282
2282
|
//#region src/hooks/useRoute.ts
|
|
@@ -4392,7 +4392,7 @@ function Ti(e) {
|
|
|
4392
4392
|
nextAssignee: c.nextAssigneeVisible ? l.nextAssignee : void 0,
|
|
4393
4393
|
nextActivity: c.nextActivityVisible ? l.nextActivity : void 0
|
|
4394
4394
|
});
|
|
4395
|
-
s.code === "ok" && s.data ? (z.Message.success("提交成功, 即将关闭页面..."), setTimeout(() => window.
|
|
4395
|
+
s.code === "ok" && s.data ? (z.Message.success("提交成功, 即将关闭页面..."), setTimeout(() => window.location.reload(), 2e3)) : z.Message.error(s?.message || "提交失败");
|
|
4396
4396
|
}
|
|
4397
4397
|
async function p(e) {
|
|
4398
4398
|
c.code = e, c.nextActivityVisible = e === "back", c.nextAssigneeVisible = ["forward", "reassign"].includes(e), c.confirmVisible = ![
|
|
@@ -4518,7 +4518,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4518
4518
|
icon: P(Ct),
|
|
4519
4519
|
title: "流程提醒",
|
|
4520
4520
|
hideBorder: !0,
|
|
4521
|
-
|
|
4521
|
+
style: { "margin-bottom": "15px" }
|
|
4522
4522
|
}, {
|
|
4523
4523
|
default: I(() => [l(u, { data: d.value }, {
|
|
4524
4524
|
default: I(() => [
|
|
@@ -4572,7 +4572,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4572
4572
|
icon: P(Ue),
|
|
4573
4573
|
title: "阅读范围",
|
|
4574
4574
|
hideBorder: !0,
|
|
4575
|
-
|
|
4575
|
+
style: { "margin-bottom": "15px" }
|
|
4576
4576
|
}, {
|
|
4577
4577
|
default: I(() => [l(s, {
|
|
4578
4578
|
model: i,
|
|
@@ -4632,7 +4632,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4632
4632
|
icon: P(yt),
|
|
4633
4633
|
title: "审批历史",
|
|
4634
4634
|
hideBorder: !0,
|
|
4635
|
-
|
|
4635
|
+
style: { "margin-bottom": "15px" }
|
|
4636
4636
|
}, {
|
|
4637
4637
|
default: I(() => [l(a, {
|
|
4638
4638
|
data: t?.formData?.historyList,
|
|
@@ -4643,7 +4643,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4643
4643
|
}, 8, ["icon"]);
|
|
4644
4644
|
};
|
|
4645
4645
|
}
|
|
4646
|
-
}), ji = { class: "
|
|
4646
|
+
}), ji = { class: "fixed-buttons" }, Mi = { key: 0 }, Ni = /* @__PURE__ */ u({
|
|
4647
4647
|
__name: "index",
|
|
4648
4648
|
props: {
|
|
4649
4649
|
processCode: {},
|
|
@@ -4656,7 +4656,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4656
4656
|
}, { btnActiveMaps: d, toFlowchart: f } = Ei({ processCode: s }), { processInfoRef: p, readScopeRef: m, remindRef: h, disabled: g, formData: _, states: v, confirmFields: y, baseFields: b, buttonClick: x, onConfirmSubmit: C } = Ti(o);
|
|
4657
4657
|
return (t, o) => {
|
|
4658
4658
|
let w = O("el-button"), T = O("yc-form"), k = O("yc-card"), A = O("el-card"), te = O("el-dialog"), M = ee("sticky");
|
|
4659
|
-
return S(), i(e, null, [l(A, {
|
|
4659
|
+
return S(), i(e, null, [l(A, { style: { margin: "0px 120px" } }, {
|
|
4660
4660
|
default: I(() => [
|
|
4661
4661
|
oe((S(), i("div", ji, [P(v).buttonList.length ? (S(), i("div", Mi, [(S(!0), i(e, null, E(P(v).buttonList, (e) => (S(), n(w, {
|
|
4662
4662
|
key: e.code,
|
|
@@ -4675,7 +4675,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4675
4675
|
l(k, {
|
|
4676
4676
|
icon: P(dt),
|
|
4677
4677
|
title: "基本信息",
|
|
4678
|
-
|
|
4678
|
+
style: { margin: "20px 0px 15px 0px" },
|
|
4679
4679
|
hideBorder: !0
|
|
4680
4680
|
}, {
|
|
4681
4681
|
default: I(() => [l(T, {
|
|
@@ -4722,7 +4722,7 @@ var Di = { key: 0 }, Oi = /* @__PURE__ */ u({
|
|
|
4722
4722
|
}, 8, ["modelValue"])], 64);
|
|
4723
4723
|
};
|
|
4724
4724
|
}
|
|
4725
|
-
}), Pi = /* @__PURE__ */ L({ default: () => Fi }), Fi = /* @__PURE__ */ R(Ni, [["__scopeId", "data-v-
|
|
4725
|
+
}), Pi = /* @__PURE__ */ L({ default: () => Fi }), Fi = /* @__PURE__ */ R(Ni, [["__scopeId", "data-v-ed24f758"]]), Ii = {
|
|
4726
4726
|
mounted(e, t) {
|
|
4727
4727
|
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
4728
4728
|
e._stickyOriginalStyles = {
|
package/dist/entry.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
export type * from './components/type';
|
|
3
|
+
export type * from './components/Table/type';
|
|
4
|
+
export type * from './components/Filter/type';
|
|
5
|
+
export type * from './components/Form/type';
|
|
6
|
+
export type * from './components/Descriptions/type';
|
|
7
|
+
export type * from './components/InfiniteScroll/type';
|
|
8
|
+
export type * from './components/Tree/type';
|
|
9
|
+
export type * from './components/Card/type';
|
|
10
|
+
export type * from './components/Editor/type';
|
|
11
|
+
export type * from './components/Upload/type';
|
|
3
12
|
export * from './components';
|
|
4
13
|
export * as hooks from './hooks';
|
|
5
14
|
export declare function setHostVue(vue: any): void;
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, l as n, o as r, s as i, u as a } from "../entry-BhtUjaKZ.js";
|
|
2
2
|
export { i as useDictionary, t as useFetch, e as useRoute, n as useRouter, a as useTable, r as useUser };
|
package/dist/hooks/useFetch.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface FetchOptions<T> {
|
|
|
7
7
|
/** 手动控制请求触发 */
|
|
8
8
|
ready?: Ref<boolean> | boolean | any;
|
|
9
9
|
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
10
|
+
template?: 'common' | 'default';
|
|
10
11
|
headers?: Record<string, string>;
|
|
11
12
|
/** 请求参数 */
|
|
12
13
|
params?: Record<string, any>;
|
|
@@ -33,5 +34,5 @@ export interface UseFetchReturn<T> {
|
|
|
33
34
|
/** 请求参数 */
|
|
34
35
|
params: Ref<Record<string, any>>;
|
|
35
36
|
}
|
|
36
|
-
export declare function useFetch<T
|
|
37
|
+
export declare function useFetch<T>(url: string, options?: FetchOptions<T>): UseFetchReturn<T>;
|
|
37
38
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FetchOptions } from '../useFetch';
|
|
2
2
|
import { IExtra, TableReturn } from './type';
|
|
3
3
|
/** 通用模板 */
|
|
4
|
-
export declare function useDefaultTable<T
|
|
4
|
+
export declare function useDefaultTable<T>(url: string, options: FetchOptions<T> & IExtra): TableReturn<T>;
|
package/dist/index.css
CHANGED
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, f as i, g as a, h as o, i as s, m as c, n as l, p as u, r as d, t as f, v as p, x as m, y as h } from "./entry-BhtUjaKZ.js";
|
|
2
2
|
export { e as UiCard, o as UiDescriptions, c as UiDialog, p as UiEditor, r as UiFilter, h as UiForm, a as UiInfiniteScroll, u as UiStaffSelect, m as UiTable, t as UiTree, i as UiUpload, s as YcApproval, d as default, d as ycPlugin, f as getHostVue, n as hooks, l as setHostVue };
|