3h1-ui 1.2.0-beta.13 → 1.2.0-beta.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/es/index.js CHANGED
@@ -19579,6 +19579,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19579
19579
  isShowSearch: { type: Boolean, default: true },
19580
19580
  isShowRowSelection: { type: Boolean },
19581
19581
  isShowAction: { type: Boolean, default: true },
19582
+ isShowToolbar: { type: Boolean, default: true },
19583
+ isImmediate: { type: Boolean, default: true },
19582
19584
  configRowSelection: { default: {
19583
19585
  type: "checkbox"
19584
19586
  } },
@@ -19661,8 +19663,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19661
19663
  setPage({ total: (res == null ? void 0 : res.total) || 0 });
19662
19664
  }
19663
19665
  };
19664
- watch(getProps, () => {
19665
- reload();
19666
+ onMounted(() => {
19667
+ if (getProps.value.isImmediate) {
19668
+ reload();
19669
+ }
19666
19670
  });
19667
19671
  const tableRef = ref();
19668
19672
  const handleCheckboxChange = () => {
@@ -19701,11 +19705,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19701
19705
  onReset: handleSearchFormSubmit
19702
19706
  }, unref(getFormConfig)), null, 16, ["onRegister"])
19703
19707
  ], 2)) : createCommentVNode("", true),
19704
- createElementVNode("div", {
19708
+ __props.isShowToolbar ? (openBlock(), createElementBlock("div", {
19709
+ key: 1,
19705
19710
  class: normalizeClass(getClassName("toolbar"))
19706
19711
  }, [
19707
19712
  renderSlot(_ctx.$slots, "toolbar")
19708
- ], 2),
19713
+ ], 2)) : createCommentVNode("", true),
19709
19714
  createElementVNode("div", {
19710
19715
  class: normalizeClass(getClassName("body"))
19711
19716
  }, [
@@ -19762,7 +19767,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19762
19767
  }, 16, ["data"])
19763
19768
  ], 2),
19764
19769
  unref(page).total !== 0 ? (openBlock(), createElementBlock("div", {
19765
- key: 1,
19770
+ key: 2,
19766
19771
  class: normalizeClass(getClassName("pagination"))
19767
19772
  }, [
19768
19773
  createVNode(unref(Pagination), {
@@ -19806,7 +19811,7 @@ function useTablePlus(tableProps) {
19806
19811
  }
19807
19812
  const methods2 = {
19808
19813
  reload: () => getTableInstance().reload(),
19809
- setProps: (props2) => getTableInstance().setProps(props2),
19814
+ setProps: (props2) => getTableInstance().setProps({ ...tableProps, ...props2 }),
19810
19815
  setTableData: (data) => getTableInstance().setTableData(data),
19811
19816
  getRowSelection: () => getTableInstance().getRowSelection()
19812
19817
  };
package/lib/index.js CHANGED
@@ -19584,6 +19584,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19584
19584
  isShowSearch: { type: Boolean, default: true },
19585
19585
  isShowRowSelection: { type: Boolean },
19586
19586
  isShowAction: { type: Boolean, default: true },
19587
+ isShowToolbar: { type: Boolean, default: true },
19588
+ isImmediate: { type: Boolean, default: true },
19587
19589
  configRowSelection: { default: {
19588
19590
  type: "checkbox"
19589
19591
  } },
@@ -19666,8 +19668,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19666
19668
  setPage({ total: (res == null ? void 0 : res.total) || 0 });
19667
19669
  }
19668
19670
  };
19669
- vue.watch(getProps, () => {
19670
- reload();
19671
+ vue.onMounted(() => {
19672
+ if (getProps.value.isImmediate) {
19673
+ reload();
19674
+ }
19671
19675
  });
19672
19676
  const tableRef = vue.ref();
19673
19677
  const handleCheckboxChange = () => {
@@ -19706,11 +19710,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19706
19710
  onReset: handleSearchFormSubmit
19707
19711
  }, vue.unref(getFormConfig)), null, 16, ["onRegister"])
19708
19712
  ], 2)) : vue.createCommentVNode("", true),
19709
- vue.createElementVNode("div", {
19713
+ __props.isShowToolbar ? (vue.openBlock(), vue.createElementBlock("div", {
19714
+ key: 1,
19710
19715
  class: vue.normalizeClass(getClassName("toolbar"))
19711
19716
  }, [
19712
19717
  vue.renderSlot(_ctx.$slots, "toolbar")
19713
- ], 2),
19718
+ ], 2)) : vue.createCommentVNode("", true),
19714
19719
  vue.createElementVNode("div", {
19715
19720
  class: vue.normalizeClass(getClassName("body"))
19716
19721
  }, [
@@ -19767,7 +19772,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19767
19772
  }, 16, ["data"])
19768
19773
  ], 2),
19769
19774
  vue.unref(page).total !== 0 ? (vue.openBlock(), vue.createElementBlock("div", {
19770
- key: 1,
19775
+ key: 2,
19771
19776
  class: vue.normalizeClass(getClassName("pagination"))
19772
19777
  }, [
19773
19778
  vue.createVNode(vue.unref(antDesignVue.Pagination), {
@@ -19811,7 +19816,7 @@ function useTablePlus(tableProps) {
19811
19816
  }
19812
19817
  const methods2 = {
19813
19818
  reload: () => getTableInstance().reload(),
19814
- setProps: (props2) => getTableInstance().setProps(props2),
19819
+ setProps: (props2) => getTableInstance().setProps({ ...tableProps, ...props2 }),
19815
19820
  setTableData: (data) => getTableInstance().setTableData(data),
19816
19821
  getRowSelection: () => getTableInstance().getRowSelection()
19817
19822
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.2.0-beta.13",
3
+ "version": "1.2.0-beta.14",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",