yc-vep-ui 0.3.67 → 0.3.69
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.
|
@@ -1206,7 +1206,7 @@ var _hoisted_1$11 = { style: {
|
|
|
1206
1206
|
"update:modelValue"
|
|
1207
1207
|
],
|
|
1208
1208
|
setup(e, { expose: n, emit: r }) {
|
|
1209
|
-
useCssVars((e) => ({
|
|
1209
|
+
useCssVars((e) => ({ v5f0ec3d3: unref(f) / 2 }));
|
|
1210
1210
|
let i = r, a = e, { labelWidth: o = "100px", valueWidth: s = "auto", omitFields: c = [], rules: l = reactive({}), labelPosition: u = "top", valueModel: d = "default", column: f = 24 } = a, p = ref(0), m = ref(), g = computed(() => a.modelValue !== void 0), _ = reactive({}), v = computed(() => g.value ? a.modelValue : a.model || _), y = computed({
|
|
1211
1211
|
get: () => v.value,
|
|
1212
1212
|
set: (e) => g.value && i("update:model", e)
|
|
@@ -1222,7 +1222,7 @@ var _hoisted_1$11 = { style: {
|
|
|
1222
1222
|
}), e;
|
|
1223
1223
|
});
|
|
1224
1224
|
async function S() {
|
|
1225
|
-
await m.value?.validate().catch(() => !1) && i("submit", toRaw(v.value));
|
|
1225
|
+
await m.value?.validate().catch(() => !1) && i("submit", toRaw(v.value), () => D());
|
|
1226
1226
|
}
|
|
1227
1227
|
function C() {
|
|
1228
1228
|
let e = {};
|
|
@@ -1367,7 +1367,7 @@ var _hoisted_1$11 = { style: {
|
|
|
1367
1367
|
]))], 64);
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
|
-
}), Form_exports = /* @__PURE__ */ __exportAll$1({ default: () => Form_default }), Form_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$9, [["__scopeId", "data-v-
|
|
1370
|
+
}), Form_exports = /* @__PURE__ */ __exportAll$1({ default: () => Form_default }), Form_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$9, [["__scopeId", "data-v-2b3acf49"]]), _hoisted_1$9 = ["disabled"], index_vue_vue_type_script_setup_true_lang_default$8 = /* @__PURE__ */ defineComponent({
|
|
1371
1371
|
__name: "index",
|
|
1372
1372
|
props: /* @__PURE__ */ mergeModels({
|
|
1373
1373
|
defaultValue: { default: "" },
|
|
@@ -2518,7 +2518,9 @@ var _hoisted_1$4 = { style: {
|
|
|
2518
2518
|
//#endregion
|
|
2519
2519
|
//#region src/hooks/useFetch.ts
|
|
2520
2520
|
function useFetch(e, n = {}) {
|
|
2521
|
-
let { immediate: r = !0, method: i = "GET", onBefore: a, onSuccess: o, onError: s, onFinally: c, ...l } = n
|
|
2521
|
+
let { immediate: r = !0, method: i = "GET", onBefore: a, onSuccess: o, onError: s, onFinally: c, ...l } = n;
|
|
2522
|
+
console.log("immediate ->>", r);
|
|
2523
|
+
let u = ref(!1), d = ref(null), f = ref(null), p = reactive({}), m = !1;
|
|
2522
2524
|
async function g() {
|
|
2523
2525
|
if (m) return Promise.reject(/* @__PURE__ */ Error("请求正在进行中,请勿重复触发"));
|
|
2524
2526
|
m = !0, u.value = !0, f.value = null;
|
|
@@ -2544,7 +2546,7 @@ function useFetch(e, n = {}) {
|
|
|
2544
2546
|
let e = toValue(l.defaultParams);
|
|
2545
2547
|
Object.keys(p).forEach((e) => delete p[e]), Object.assign(p, e || {});
|
|
2546
2548
|
let i = isRef(n.ready) ? n.ready.value : n.ready ?? !0;
|
|
2547
|
-
i && y === !1 && (v = ""), y = i, _ && clearTimeout(_), _ = setTimeout(() => {
|
|
2549
|
+
i && y === !1 && (v = ""), y = i, console.log("watchEffect ->>", r), _ && clearTimeout(_), _ = setTimeout(() => {
|
|
2548
2550
|
let e = JSON.stringify(toRaw(p));
|
|
2549
2551
|
r && y && !m && e !== v && (v = e, nextTick(() => g()));
|
|
2550
2552
|
}, 10);
|
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-CS9DUZf1.js";
|
|
2
2
|
export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
|
package/dist/index.css
CHANGED
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.ui-form-buttons[data-v-
|
|
46
|
+
.ui-form-buttons[data-v-2b3acf49] {
|
|
47
47
|
display: flex;
|
|
48
48
|
justify-content: flex-start;
|
|
49
49
|
align-items: center;
|
|
50
50
|
}
|
|
51
51
|
.ui-form {
|
|
52
|
-
&[data-v-
|
|
52
|
+
&[data-v-2b3acf49] {
|
|
53
53
|
display: grid;
|
|
54
|
-
grid-template-columns: repeat(var(--
|
|
54
|
+
grid-template-columns: repeat(var(--v5f0ec3d3), minmax(0, 1fr));
|
|
55
55
|
gap: 0px 40px;
|
|
56
56
|
}
|
|
57
|
-
&[data-v-
|
|
57
|
+
&[data-v-2b3acf49] .el-form-item__label {
|
|
58
58
|
margin-bottom: 0;
|
|
59
59
|
font-weight: bold;
|
|
60
60
|
font-size: 0.8em;
|
|
61
61
|
color: #6b7280;
|
|
62
62
|
}
|
|
63
|
-
&[data-v-
|
|
63
|
+
&[data-v-2b3acf49] .el-form-item__content {
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-wrap: inherit;
|
|
66
66
|
width: 100%;
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
|
|
79
79
|
/* 下划线样式 */
|
|
80
80
|
.underline {
|
|
81
|
-
&[data-v-
|
|
82
|
-
&[data-v-
|
|
81
|
+
&[data-v-2b3acf49] .el-input__wrapper,
|
|
82
|
+
&[data-v-2b3acf49] .el-textarea__inner {
|
|
83
83
|
box-shadow: 0px 1px 0px var(--el-input-border-color, var(--el-border-color));
|
|
84
84
|
}
|
|
85
85
|
}
|
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-CS9DUZf1.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-CS9DUZf1.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 };
|