yc-vep-ui 0.4.18 → 0.4.20
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.
|
@@ -1386,20 +1386,21 @@ var _hoisted_1$11 = { style: {
|
|
|
1386
1386
|
setup(e, { emit: n }) {
|
|
1387
1387
|
let r = useModel(e, "modelValue"), i = n, a = ref(), o = null;
|
|
1388
1388
|
return onMounted(() => {
|
|
1389
|
+
let n = r.value || e.defaultValue || "";
|
|
1389
1390
|
o = new AiEditor({
|
|
1390
1391
|
element: a.value,
|
|
1391
1392
|
placeholder: "点击输入内容...",
|
|
1392
|
-
content:
|
|
1393
|
+
content: n,
|
|
1393
1394
|
toolbarExcludeKeys: ["ai"],
|
|
1394
1395
|
onChange: () => {
|
|
1395
1396
|
let e = o.getHtml();
|
|
1396
1397
|
r.value = e, i("change", e);
|
|
1397
1398
|
}
|
|
1398
|
-
}), o.setEditable(!e.disabled)
|
|
1399
|
-
r.value && r.value !== o.getHtml() && o.setContent(r.value);
|
|
1400
|
-
});
|
|
1399
|
+
}), o.setEditable(!e.disabled);
|
|
1401
1400
|
}), watch(r, (e) => {
|
|
1402
|
-
o &&
|
|
1401
|
+
o && nextTick(() => {
|
|
1402
|
+
o?.setContent(e || "");
|
|
1403
|
+
});
|
|
1403
1404
|
}), onUnmounted(() => o?.destroy()), (n, r) => (openBlock(), createElementBlock("div", {
|
|
1404
1405
|
ref_key: "editorRef",
|
|
1405
1406
|
ref: a,
|
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-C_Dk2lVW.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-C_Dk2lVW.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-C_Dk2lVW.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 };
|