3h1-ui 2.14.71 → 2.14.73

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
@@ -7629,7 +7629,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7629
7629
  default: () => true
7630
7630
  }
7631
7631
  },
7632
- emits: ["update:value", "change"],
7632
+ emits: ["update:value", "change", "add", "remove"],
7633
7633
  setup(__props, { expose, emit }) {
7634
7634
  const props2 = __props;
7635
7635
  const listFormRefs = ref([]);
@@ -7642,18 +7642,20 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7642
7642
  customRender: ({ index: index2 }) => {
7643
7643
  return `${index2 + 1}`;
7644
7644
  },
7645
- minWidth: 50,
7645
+ width: 50,
7646
7646
  align: "center"
7647
7647
  };
7648
7648
  return [indexColumn, ...props2.columns];
7649
7649
  });
7650
7650
  const plusClickEvent = () => {
7651
7651
  state.value = [{}, ...state.value];
7652
+ emit("add", state.value);
7652
7653
  };
7653
7654
  const rowClickEvent = (index2) => {
7654
7655
  state.value = unref(state).filter((item, i) => {
7655
7656
  return index2 !== i;
7656
7657
  });
7658
+ emit("remove", state.value, index2);
7657
7659
  };
7658
7660
  const loadKv = () => {
7659
7661
  const columns = props2.columns;
@@ -7766,8 +7768,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
7766
7768
  };
7767
7769
  }
7768
7770
  });
7769
- const Table_vue_vue_type_style_index_0_scoped_c8e852c2_lang = "";
7770
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-c8e852c2"]]);
7771
+ const Table_vue_vue_type_style_index_0_scoped_5fd0ff71_lang = "";
7772
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-5fd0ff71"]]);
7771
7773
  const modal = "";
7772
7774
  useI18n$1();
7773
7775
  const modalProps = {
package/es/style.css CHANGED
@@ -24871,32 +24871,28 @@ span.iconify {
24871
24871
  .shy-tinymce-container textarea {
24872
24872
  z-index: -1;
24873
24873
  visibility: hidden;
24874
- }.shy-table-edit-icon-plus[data-v-c8e852c2] {
24874
+ }.shy-table-edit-icon-plus[data-v-5fd0ff71] {
24875
24875
  width: 30px;
24876
24876
  height: 30px;
24877
24877
  font-size: 30px;
24878
- color: #fff;
24879
- border-radius: 50%;
24880
- box-sizing: border-box;
24881
- line-height: 30px;
24882
24878
  cursor: pointer;
24883
- text-align: center;
24879
+ display: flex;
24884
24880
  }
24885
- .table-children[data-v-c8e852c2] .ant-form-item {
24881
+ .table-children[data-v-5fd0ff71] .ant-form-item {
24886
24882
  margin-bottom: 0 !important;
24887
24883
  }
24888
- .delete-wrapper[data-v-c8e852c2] {
24884
+ .delete-wrapper[data-v-5fd0ff71] {
24889
24885
  height: 100%;
24890
24886
  }
24891
- .delete-wrapper:hover .delete-item[data-v-c8e852c2] {
24887
+ .delete-wrapper:hover .delete-item[data-v-5fd0ff71] {
24892
24888
  display: flex;
24893
24889
  justify-content: center;
24894
24890
  align-items: center;
24895
24891
  }
24896
- .delete-wrapper:hover .delete-index[data-v-c8e852c2] {
24892
+ .delete-wrapper:hover .delete-index[data-v-5fd0ff71] {
24897
24893
  display: none;
24898
24894
  }
24899
- .delete-wrapper .delete-item[data-v-c8e852c2] {
24895
+ .delete-wrapper .delete-item[data-v-5fd0ff71] {
24900
24896
  background-color: red;
24901
24897
  border-radius: 50%;
24902
24898
  width: 30px;
@@ -24905,7 +24901,7 @@ span.iconify {
24905
24901
  display: none;
24906
24902
  cursor: pointer;
24907
24903
  }
24908
- .delete-wrapper .delete-index[data-v-c8e852c2] {
24904
+ .delete-wrapper .delete-index[data-v-5fd0ff71] {
24909
24905
  display: inline-block;
24910
24906
  }@media screen and (max-height: 600px) {
24911
24907
  .ant-modal {
package/lib/index.js CHANGED
@@ -7631,7 +7631,7 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
7631
7631
  default: () => true
7632
7632
  }
7633
7633
  },
7634
- emits: ["update:value", "change"],
7634
+ emits: ["update:value", "change", "add", "remove"],
7635
7635
  setup(__props, { expose, emit }) {
7636
7636
  const props2 = __props;
7637
7637
  const listFormRefs = vue.ref([]);
@@ -7644,18 +7644,20 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
7644
7644
  customRender: ({ index: index2 }) => {
7645
7645
  return `${index2 + 1}`;
7646
7646
  },
7647
- minWidth: 50,
7647
+ width: 50,
7648
7648
  align: "center"
7649
7649
  };
7650
7650
  return [indexColumn, ...props2.columns];
7651
7651
  });
7652
7652
  const plusClickEvent = () => {
7653
7653
  state.value = [{}, ...state.value];
7654
+ emit("add", state.value);
7654
7655
  };
7655
7656
  const rowClickEvent = (index2) => {
7656
7657
  state.value = vue.unref(state).filter((item, i) => {
7657
7658
  return index2 !== i;
7658
7659
  });
7660
+ emit("remove", state.value, index2);
7659
7661
  };
7660
7662
  const loadKv = () => {
7661
7663
  const columns = props2.columns;
@@ -7768,8 +7770,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
7768
7770
  };
7769
7771
  }
7770
7772
  });
7771
- const Table_vue_vue_type_style_index_0_scoped_c8e852c2_lang = "";
7772
- const Table = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-c8e852c2"]]);
7773
+ const Table_vue_vue_type_style_index_0_scoped_5fd0ff71_lang = "";
7774
+ const Table = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-5fd0ff71"]]);
7773
7775
  const modal = "";
7774
7776
  use.useI18n();
7775
7777
  const modalProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.71",
3
+ "version": "2.14.73",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",