import { n as e } from "./chunk-TYymryXo.mjs";
import { n as t, t as n } from "./selectedInfo-CT8ehCR8.mjs";
import { computed as r, createBlock as i, createVNode as a, defineComponent as o, inject as s, openBlock as c, reactive as l, unref as u, watch as d, withCtx as f } from "vue";
import { Form as p, FormItem as m, Textarea as h } from "ant-design-vue/es";
//#region src/pages/flow-create/flow-model/createComponents/flow/right-panel/components/other.vue?vue&type=script&setup=true&lang.ts
var g = /* @__PURE__ */ o({
	name: "Other",
	__name: "other",
	setup(e) {
		let o = s("lf"), g = t(), _ = n(), v = l({ documentation: "" });
		return d(r(() => g.getElementById(_.selectId) || {}), (e) => {
			v.documentation = e.otherInfo?.documentation || "";
		}, { immediate: !0 }), d(() => v.documentation, (e) => {
			g.updateElement(_.selectId, { otherInfo: { documentation: e } }), o.value.setProperties(_.selectId, { documentation: e });
		}), (e, t) => {
			let n = h, r = m, o = p;
			return c(), i(o, {
				model: u(v),
				name: "basic",
				"label-col": { span: 4 },
				autocomplete: "off"
			}, {
				default: f(() => [a(r, {
					label: "元素文档",
					name: "documentation"
				}, {
					default: f(() => [a(n, {
						value: u(v).documentation,
						"onUpdate:value": t[0] ||= (e) => u(v).documentation = e,
						"show-count": "",
						maxlength: 300
					}, null, 8, ["value"])]),
					_: 1
				})]),
				_: 1
			}, 8, ["model"]);
		};
	}
}), _ = /* @__PURE__ */ e({ default: () => v }), v = g;
//#endregion
export { _ as n, v as t };
