yc-vep-ui 0.4.21 → 0.4.23
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,10 +5,10 @@ type __VLS_PublicProps = {
|
|
|
5
5
|
modelValue?: typeof modelValue['value'];
|
|
6
6
|
} & __VLS_Props;
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
change: (
|
|
9
|
-
"update:modelValue": (value: string) =>
|
|
8
|
+
change: (...args: any[]) => void;
|
|
9
|
+
"update:modelValue": (value: string) => void;
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
-
onChange?: ((
|
|
11
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
13
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
14
|
editorRef: HTMLDivElement;
|
|
@@ -1384,23 +1384,25 @@ var _hoisted_1$11 = { style: {
|
|
|
1384
1384
|
}),
|
|
1385
1385
|
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
1386
1386
|
setup(e, { emit: n }) {
|
|
1387
|
-
let r = useModel(e, "modelValue"),
|
|
1387
|
+
let r = ref(), i = useModel(e, "modelValue"), a = ref(i.value || e.defaultValue || ""), o = null, s = n;
|
|
1388
1388
|
return onMounted(() => {
|
|
1389
1389
|
o = new AiEditor({
|
|
1390
|
-
element:
|
|
1390
|
+
element: r.value,
|
|
1391
1391
|
placeholder: "点击输入内容...",
|
|
1392
|
-
content:
|
|
1392
|
+
content: i.value || e.defaultValue || "",
|
|
1393
1393
|
toolbarExcludeKeys: ["ai"],
|
|
1394
|
-
onChange: () => {
|
|
1395
|
-
let
|
|
1396
|
-
|
|
1394
|
+
onChange: (e) => {
|
|
1395
|
+
let n = e.getHtml();
|
|
1396
|
+
i.value = n, a.value = n, s("change", n);
|
|
1397
1397
|
}
|
|
1398
|
-
}), o.setEditable(!e.disabled)
|
|
1399
|
-
}), watch(
|
|
1400
|
-
|
|
1401
|
-
}), onUnmounted(() =>
|
|
1398
|
+
}), o.setEditable(!e.disabled);
|
|
1399
|
+
}), watch(i, (e) => {
|
|
1400
|
+
o && e !== o.getHtml() && o.setContent(e);
|
|
1401
|
+
}), onUnmounted(() => {
|
|
1402
|
+
o && o.destroy();
|
|
1403
|
+
}), (n, i) => (openBlock(), createElementBlock("div", {
|
|
1402
1404
|
ref_key: "editorRef",
|
|
1403
|
-
ref:
|
|
1405
|
+
ref: r,
|
|
1404
1406
|
style: { height: "500px" },
|
|
1405
1407
|
disabled: e.disabled
|
|
1406
1408
|
}, null, 8, _hoisted_1$9));
|
|
@@ -2528,7 +2530,7 @@ function useDefaultTable(e, n) {
|
|
|
2528
2530
|
}), n || l.execute({ ...c });
|
|
2529
2531
|
}
|
|
2530
2532
|
function f({ page: e, pageSize: n }) {
|
|
2531
|
-
o.page = e, o.pageSize = n, c.page = e, c.pageSize = n;
|
|
2533
|
+
o.page = e, o.pageSize = n, c.page = e, c.pageSize = n, l.execute({ ...c });
|
|
2532
2534
|
}
|
|
2533
2535
|
function p(e) {
|
|
2534
2536
|
s.value = e;
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-DBGuKW8O.js";
|
|
2
2
|
export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-
|
|
1
|
+
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-DBGuKW8O.js";
|
|
2
2
|
export { n as baseUrl, i as formatDate, o as omit, t as request, e as tempToRender, r as uniq, a as uniqBy };
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-
|
|
1
|
+
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-DBGuKW8O.js";
|
|
2
2
|
export { r as UiCard, v as UiDescriptions, e as UiDialog, t as UiEditor, d as UiFilter, i as UiForm, a as UiInfiniteScroll, f as UiStaffSelect, u as UiTable, n as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, _ as getHostVue, g as hooks, p as setHostVue };
|