sctj-components 1.0.81 → 1.0.83

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.
@@ -2547,8 +2547,8 @@ const _sfc_main$i = {
2547
2547
  }
2548
2548
  };
2549
2549
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-056cfdde"]]);
2550
- const index_vue_vue_type_style_index_0_scoped_87147dcc_lang = "";
2551
- const _withScopeId$7 = (n) => (pushScopeId("data-v-87147dcc"), n = n(), popScopeId(), n);
2550
+ const index_vue_vue_type_style_index_0_scoped_b07303f6_lang = "";
2551
+ const _withScopeId$7 = (n) => (pushScopeId("data-v-b07303f6"), n = n(), popScopeId(), n);
2552
2552
  const _hoisted_1$d = {
2553
2553
  key: 0,
2554
2554
  class: "search-container"
@@ -2617,6 +2617,19 @@ const _sfc_main$h = {
2617
2617
  reserveSelection: true
2618
2618
  })
2619
2619
  },
2620
+ rowKey: {
2621
+ type: String,
2622
+ default: ""
2623
+ },
2624
+ treeProps: {
2625
+ type: Object,
2626
+ default: () => {
2627
+ return {
2628
+ hasChildren: "hasChildren",
2629
+ children: "children"
2630
+ };
2631
+ }
2632
+ },
2620
2633
  showPagination: {
2621
2634
  type: Boolean,
2622
2635
  default: true
@@ -2953,11 +2966,12 @@ const _sfc_main$h = {
2953
2966
  ref: tableRef,
2954
2967
  data: dataList.value,
2955
2968
  border: "",
2969
+ "tree-props": __props.treeProps,
2956
2970
  height: "100%",
2957
2971
  "header-cell-class-name": !__props.selectOptions.multiple ? selectionClass : "",
2958
2972
  onSelectionChange: selectionChange,
2959
2973
  "row-class-name": handleRowClassName,
2960
- "row-key": __props.selectOptions.valueKey
2974
+ "row-key": __props.rowKey || __props.selectOptions.valueKey
2961
2975
  }, {
2962
2976
  default: withCtx(() => [
2963
2977
  __props.selectOptions.show ? (openBlock(), createBlock(_component_el_table_column, {
@@ -2999,7 +3013,7 @@ const _sfc_main$h = {
2999
3013
  }), 128))
3000
3014
  ]),
3001
3015
  _: 1
3002
- }, 8, ["size", "data", "header-cell-class-name", "row-key"])), [
3016
+ }, 8, ["size", "data", "tree-props", "header-cell-class-name", "row-key"])), [
3003
3017
  [_directive_loading, loading.value]
3004
3018
  ]),
3005
3019
  __props.showPagination ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -3084,7 +3098,7 @@ const _sfc_main$h = {
3084
3098
  };
3085
3099
  }
3086
3100
  };
3087
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-87147dcc"]]);
3101
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b07303f6"]]);
3088
3102
  const index_vue_vue_type_style_index_0_scoped_d4cb1fae_lang = "";
3089
3103
  const _sfc_main$g = {
3090
3104
  __name: "index",