element-less 0.0.29 → 0.0.31

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.
@@ -2322,7 +2322,7 @@ const utils = {
2322
2322
  return new Promise((resolve, reject) => {
2323
2323
  axiosInstance2.post(url, data).then((res) => {
2324
2324
  if (res.status === void 0) {
2325
- resolve(res.data);
2325
+ resolve(res);
2326
2326
  } else if (res.status == 200) {
2327
2327
  resolve(res.data);
2328
2328
  } else {
@@ -2344,7 +2344,7 @@ const utils = {
2344
2344
  return new Promise((resolve, reject) => {
2345
2345
  axiosInstance2.get(url, { params: data ?? {} }).then((res) => {
2346
2346
  if (res.status === void 0) {
2347
- resolve(res.data);
2347
+ resolve(res);
2348
2348
  } else if (res.status == 200) {
2349
2349
  resolve(res.data);
2350
2350
  } else {
@@ -4500,7 +4500,7 @@ function useTree(props = {}, dataTree, defaultEmits, componentName) {
4500
4500
  label: ele[props.labelField],
4501
4501
  value: ele[props.valueField],
4502
4502
  disabled: props.disabledField ? ele[props.disabledField] : false,
4503
- children: [],
4503
+ children: props.childFieldName ? ele[props.childFieldName] : [],
4504
4504
  sourceData: ele
4505
4505
  };
4506
4506
  });
@@ -38406,7 +38406,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
38406
38406
  emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
38407
38407
  setup(__props, { emit: __emit }) {
38408
38408
  const DynamicDesignerInnerItem = defineAsyncComponent(() => {
38409
- return import("./innerItem-CN5wFjyG.js");
38409
+ return import("./innerItem-g5cb8TOs.js");
38410
38410
  });
38411
38411
  const { getValue: getValue2 } = useProps();
38412
38412
  const tagID = getValue2("tagID");
@@ -39256,10 +39256,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
39256
39256
  emits: ["update:modelValue"],
39257
39257
  setup(__props, { expose: __expose, emit: __emit }) {
39258
39258
  const DynamicRenderInner = defineAsyncComponent(() => {
39259
- return import("./inner-BIHQYsL1.js").then((n) => n.i);
39259
+ return import("./inner-BOUBmW3w.js").then((n) => n.i);
39260
39260
  });
39261
39261
  const DynamicRenderForm = defineAsyncComponent(() => {
39262
- return import("./inner-BIHQYsL1.js").then((n) => n.f);
39262
+ return import("./inner-BOUBmW3w.js").then((n) => n.f);
39263
39263
  });
39264
39264
  const props = __props;
39265
39265
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
@@ -39489,10 +39489,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
39489
39489
  emits: ["update:modelValue"],
39490
39490
  setup(__props, { expose: __expose, emit: __emit }) {
39491
39491
  const DynamicRenderInnerAsync = defineAsyncComponent(() => {
39492
- return import("./inner-BIHQYsL1.js").then((n) => n.i);
39492
+ return import("./inner-BOUBmW3w.js").then((n) => n.i);
39493
39493
  });
39494
39494
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
39495
- return import("./inner-BIHQYsL1.js").then((n) => n.f);
39495
+ return import("./inner-BOUBmW3w.js").then((n) => n.f);
39496
39496
  });
39497
39497
  const props = __props;
39498
39498
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
@@ -44301,31 +44301,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
44301
44301
  __publicField(this, "editor", ref());
44302
44302
  onMounted(() => {
44303
44303
  if (props.language === "json") {
44304
- const currModule = import("./mode-json-W-j-PXsZ.js").then((n) => n.m);
44304
+ const currModule = import("./mode-json-DtlBl_cb.js").then((n) => n.m);
44305
44305
  currModule.then((res) => {
44306
44306
  ace.config.setModuleUrl("ace/mode/json", res);
44307
44307
  this.init();
44308
44308
  });
44309
44309
  } else if (props.language === "javascript") {
44310
- const currModule = import("./mode-javascript-B5G-Di6u.js").then((n) => n.m);
44310
+ const currModule = import("./mode-javascript-BTj58qX0.js").then((n) => n.m);
44311
44311
  currModule.then((res) => {
44312
44312
  ace.config.setModuleUrl("ace/mode/javascript", res);
44313
44313
  this.init();
44314
44314
  });
44315
44315
  } else if (props.language === "csharp") {
44316
- const currModule = import("./mode-csharp-CK0T18W3.js").then((n) => n.m);
44316
+ const currModule = import("./mode-csharp-DSQ1JdeM.js").then((n) => n.m);
44317
44317
  currModule.then((res) => {
44318
44318
  ace.config.setModuleUrl("ace/mode/csharp", res);
44319
44319
  this.init();
44320
44320
  });
44321
44321
  } else if (props.language === "mysql") {
44322
- const currModule = import("./mode-mysql-wP3VvwYU.js").then((n) => n.m);
44322
+ const currModule = import("./mode-mysql-BfBY--7J.js").then((n) => n.m);
44323
44323
  currModule.then((res) => {
44324
44324
  ace.config.setModuleUrl("ace/mode/mysql", res);
44325
44325
  this.init();
44326
44326
  });
44327
44327
  } else if (props.language === "css") {
44328
- const currModule = import("./mode-css-DTr6dByM.js").then((n) => n.m);
44328
+ const currModule = import("./mode-css-CbsLjzWP.js").then((n) => n.m);
44329
44329
  currModule.then((res) => {
44330
44330
  ace.config.setModuleUrl("ace/mode/css", res);
44331
44331
  this.init();