element-less 0.0.56 → 0.0.57

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.
@@ -71312,7 +71312,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
71312
71312
  emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
71313
71313
  setup(__props, { emit: __emit }) {
71314
71314
  const DynamicDesignerInnerItem = defineAsyncComponent(() => {
71315
- return import("./innerItem-CnFsIpmO.js");
71315
+ return import("./innerItem-BxjDKS80.js");
71316
71316
  });
71317
71317
  const { getValue: getValue2 } = useProps();
71318
71318
  const tagID = getValue2("tagID");
@@ -72162,10 +72162,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
72162
72162
  emits: ["update:modelValue"],
72163
72163
  setup(__props, { expose: __expose, emit: __emit }) {
72164
72164
  const DynamicRenderInner = defineAsyncComponent(() => {
72165
- return import("./inner-YAACwdSB.js").then((n) => n.i);
72165
+ return import("./inner-CfFxEp5O.js").then((n) => n.i);
72166
72166
  });
72167
72167
  const DynamicRenderForm = defineAsyncComponent(() => {
72168
- return import("./inner-YAACwdSB.js").then((n) => n.f);
72168
+ return import("./inner-CfFxEp5O.js").then((n) => n.f);
72169
72169
  });
72170
72170
  const props2 = __props;
72171
72171
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
@@ -72395,10 +72395,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
72395
72395
  emits: ["update:modelValue"],
72396
72396
  setup(__props, { expose: __expose, emit: __emit }) {
72397
72397
  const DynamicRenderInnerAsync = defineAsyncComponent(() => {
72398
- return import("./inner-YAACwdSB.js").then((n) => n.i);
72398
+ return import("./inner-CfFxEp5O.js").then((n) => n.i);
72399
72399
  });
72400
72400
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
72401
- return import("./inner-YAACwdSB.js").then((n) => n.f);
72401
+ return import("./inner-CfFxEp5O.js").then((n) => n.f);
72402
72402
  });
72403
72403
  const props2 = __props;
72404
72404
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
@@ -77389,31 +77389,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
77389
77389
  __publicField(this, "editor", ref());
77390
77390
  onMounted(() => {
77391
77391
  if (props2.language === "json") {
77392
- const currModule = import("./mode-json-BoxRotGl.js").then((n) => n.m);
77392
+ const currModule = import("./mode-json-BUivneWx.js").then((n) => n.m);
77393
77393
  currModule.then((res) => {
77394
77394
  ace.config.setModuleUrl("ace/mode/json", res);
77395
77395
  this.init();
77396
77396
  });
77397
77397
  } else if (props2.language === "javascript") {
77398
- const currModule = import("./mode-javascript-BVS0PFpM.js").then((n) => n.m);
77398
+ const currModule = import("./mode-javascript-D4c08tfA.js").then((n) => n.m);
77399
77399
  currModule.then((res) => {
77400
77400
  ace.config.setModuleUrl("ace/mode/javascript", res);
77401
77401
  this.init();
77402
77402
  });
77403
77403
  } else if (props2.language === "csharp") {
77404
- const currModule = import("./mode-csharp-C1pDB4Xs.js").then((n) => n.m);
77404
+ const currModule = import("./mode-csharp-DPAfOMUm.js").then((n) => n.m);
77405
77405
  currModule.then((res) => {
77406
77406
  ace.config.setModuleUrl("ace/mode/csharp", res);
77407
77407
  this.init();
77408
77408
  });
77409
77409
  } else if (props2.language === "mysql") {
77410
- const currModule = import("./mode-mysql-KyUsrQNc.js").then((n) => n.m);
77410
+ const currModule = import("./mode-mysql-7dYgablK.js").then((n) => n.m);
77411
77411
  currModule.then((res) => {
77412
77412
  ace.config.setModuleUrl("ace/mode/mysql", res);
77413
77413
  this.init();
77414
77414
  });
77415
77415
  } else if (props2.language === "css") {
77416
- const currModule = import("./mode-css-DHYwb__9.js").then((n) => n.m);
77416
+ const currModule = import("./mode-css-CTT_0Xkg.js").then((n) => n.m);
77417
77417
  currModule.then((res) => {
77418
77418
  ace.config.setModuleUrl("ace/mode/css", res);
77419
77419
  this.init();
@@ -77521,6 +77521,13 @@ const mdEditorProps = buildProps({
77521
77521
  type: String,
77522
77522
  default: "jpeg,gif,bmp,jpg,png,svga,svg,webp,bundle,tif,pag"
77523
77523
  },
77524
+ /**
77525
+ * @description 简单模式,只显示基础工具栏
77526
+ */
77527
+ simple: {
77528
+ type: Boolean,
77529
+ default: false
77530
+ },
77524
77531
  /**
77525
77532
  * @description 验证触发类型 默认change
77526
77533
  */
@@ -77570,9 +77577,16 @@ class MdEditor extends TBaseFormItem {
77570
77577
  }
77571
77578
  }
77572
77579
  pcRender() {
77580
+ const toCssSize = (val) => /^\d+$/.test(val) ? `${val}px` : val;
77581
+ const simpleToolbars = ["bold", "italic", "underline", "-", "title", "quote", "unorderedList", "orderedList", "-", "link", "image", "=", "preview"];
77573
77582
  return createVNode(Fragment$1, null, [createVNode("div", {
77574
77583
  "class": "els-jsoneditor"
77575
77584
  }, [createVNode(MdEditor$1, {
77585
+ "style": {
77586
+ height: toCssSize(this._props.height),
77587
+ width: toCssSize(this._props.width)
77588
+ },
77589
+ "toolbars": this._props.simple ? simpleToolbars : void 0,
77576
77590
  "modelValue": this._comValue.value,
77577
77591
  "onUpdate:modelValue": ($event) => this._comValue.value = $event,
77578
77592
  "onHtmlChanged": this.returnHtml,