agilebuilder-ui 1.0.13 → 1.0.14

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.
package/lib/super-ui.js CHANGED
@@ -33586,10 +33586,14 @@ const _sfc_main$q = {
33586
33586
  created() {
33587
33587
  },
33588
33588
  methods: {
33589
+ // change事件
33590
+ changeEvent(e) {
33591
+ this.$emit("change", e);
33592
+ },
33589
33593
  // 打开组织树
33590
33594
  showOrganizationTree() {
33591
33595
  let e = this.multiple;
33592
- typeof e > "u" && (e = !1), e === !0 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = !0;
33596
+ typeof e > "u" && (e = !1), e === !0 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = !0, this.$emit("show-tree");
33593
33597
  },
33594
33598
  getPropName(e, t, n) {
33595
33599
  return getPropNameWhenJoinTable(e, t, n);
@@ -33858,7 +33862,8 @@ function _sfc_render$h(e, t, n, o, i, l) {
33858
33862
  readonly: !0,
33859
33863
  size: n.size,
33860
33864
  type: "text",
33861
- onClick: t[2] || (t[2] = (V) => l.showOrganizationTree(!1))
33865
+ onClick: t[2] || (t[2] = (V) => l.showOrganizationTree(!1)),
33866
+ onChange: l.changeEvent
33862
33867
  }, {
33863
33868
  append: withCtx(() => [
33864
33869
  createVNode(p, {
@@ -33881,7 +33886,7 @@ function _sfc_render$h(e, t, n, o, i, l) {
33881
33886
  })
33882
33887
  ]),
33883
33888
  _: 1
33884
- }, 8, ["model-value", "size"])),
33889
+ }, 8, ["model-value", "size", "onChange"])),
33885
33890
  n.treeType && n.treeType === "DeptUserTree" && i.showOrganizationTreeFlag ? (openBlock(), createBlock(E, {
33886
33891
  key: 2,
33887
33892
  "department-info": n.departmentInfo,
@@ -56879,6 +56884,12 @@ const _sfc_main$g = {
56879
56884
  }),
56880
56885
  showClose: !0
56881
56886
  }), !1;
56887
+ const n = this.fileSetObj.beforeUpload;
56888
+ if (n) {
56889
+ const o = n.call(this, { pageContext: this.fileSetObj.pageContext, configureObj: this.fileSetObj.configureObj, file: e });
56890
+ if (o != null && o !== !0)
56891
+ return !1;
56892
+ }
56882
56893
  },
56883
56894
  // 上传成功
56884
56895
  uploadOnSuccess(e, t) {
@@ -56939,9 +56950,7 @@ const _sfc_main$g = {
56939
56950
  "delete-success",
56940
56951
  "delete",
56941
56952
  "update:value",
56942
- ,
56943
56953
  "close",
56944
- ,
56945
56954
  "update:value"
56946
56955
  ]
56947
56956
  };