3h1-ui 2.6.0 → 2.8.0

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.
@@ -468,7 +468,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
468
468
  default: any;
469
469
  };
470
470
  }, {
471
- emit: (event: "updateStatusEdit" | "edit-ensure" | "edit-cancel", ...args: any[]) => void;
471
+ emit: (event: "edit-cancel" | "updateStatusEdit" | "edit-ensure", ...args: any[]) => void;
472
472
  props: any;
473
473
  getActions: import("vue").ComputedRef<{
474
474
  label: string;
@@ -476,14 +476,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
476
476
  ifShow: boolean;
477
477
  }[]>;
478
478
  TableAction: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
479
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateStatusEdit" | "edit-ensure" | "edit-cancel")[], "updateStatusEdit" | "edit-ensure" | "edit-cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
479
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit-cancel" | "updateStatusEdit" | "edit-ensure")[], "edit-cancel" | "updateStatusEdit" | "edit-ensure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
480
480
  row: {
481
481
  default: any;
482
482
  };
483
483
  }>> & {
484
+ "onEdit-cancel"?: (...args: any[]) => any;
484
485
  onUpdateStatusEdit?: (...args: any[]) => any;
485
486
  "onEdit-ensure"?: (...args: any[]) => any;
486
- "onEdit-cancel"?: (...args: any[]) => any;
487
487
  }, {
488
488
  row: any;
489
489
  }>;
@@ -595,9 +595,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
595
595
  }, {
596
596
  columns: unknown[];
597
597
  api: any;
598
+ searchInfo: any;
599
+ formConfig: any;
600
+ actionColumn: any;
598
601
  isShowSeq: boolean;
599
602
  isCompatible: boolean;
600
- actionColumn: any;
601
603
  isShowSearch: boolean;
602
604
  isShowRowSelection: boolean;
603
605
  isShowAction: boolean;
@@ -606,8 +608,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
606
608
  isShowToolbar: boolean;
607
609
  isImmediate: boolean;
608
610
  configRowSelection: any;
609
- formConfig: any;
610
- searchInfo: any;
611
611
  transSearchInfoBeforeReload: any;
612
612
  isUseEdit: boolean;
613
613
  transDataAfterReload: any;
@@ -3,7 +3,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
3
3
  default: any;
4
4
  };
5
5
  }, {
6
- emit: (event: "updateStatusEdit" | "edit-ensure" | "edit-cancel", ...args: any[]) => void;
6
+ emit: (event: "edit-cancel" | "updateStatusEdit" | "edit-ensure", ...args: any[]) => void;
7
7
  props: any;
8
8
  getActions: import("vue").ComputedRef<{
9
9
  label: string;
@@ -11,14 +11,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
11
11
  ifShow: boolean;
12
12
  }[]>;
13
13
  TableAction: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateStatusEdit" | "edit-ensure" | "edit-cancel")[], "updateStatusEdit" | "edit-ensure" | "edit-cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("edit-cancel" | "updateStatusEdit" | "edit-ensure")[], "edit-cancel" | "updateStatusEdit" | "edit-ensure", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  row: {
16
16
  default: any;
17
17
  };
18
18
  }>> & {
19
+ "onEdit-cancel"?: (...args: any[]) => any;
19
20
  onUpdateStatusEdit?: (...args: any[]) => any;
20
21
  "onEdit-ensure"?: (...args: any[]) => any;
21
- "onEdit-cancel"?: (...args: any[]) => any;
22
22
  }, {
23
23
  row: any;
24
24
  }>;
@@ -71,6 +71,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
71
71
  loading: import("@shy-plugins/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
72
72
  helpMessage: import("@shy-plugins/utils").BuildPropType<PropType<string | string[]>, unknown, unknown>;
73
73
  selectedKeys: KeyType[];
74
+ filterFn: (searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean;
74
75
  fieldNames: undefined;
75
76
  searchValue: string;
76
77
  treeData: import("ant-design-vue/es/tree").DataNode[];
@@ -85,7 +86,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
85
86
  checkedKeys: CheckKeys;
86
87
  beforeRightClick: (...arg: any) => import("./types/tree").ContextMenuOptions | import("./types/tree").ContextMenuItem[];
87
88
  rightMenuList: import("./types/tree").ContextMenuItem[];
88
- filterFn: (searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean;
89
89
  highlight: import("@shy-plugins/utils").BuildPropType<PropType<String | Boolean>, unknown, unknown>;
90
90
  expandOnSearch: boolean;
91
91
  checkOnSearch: boolean;
package/lib/index.js CHANGED
@@ -1681,6 +1681,21 @@ var SmallDashOutlined = function SmallDashOutlined2(props2, context) {
1681
1681
  SmallDashOutlined.displayName = "SmallDashOutlined";
1682
1682
  SmallDashOutlined.inheritAttrs = false;
1683
1683
  const SmallDashOutlined$1 = SmallDashOutlined;
1684
+ const Divider = /* @__PURE__ */ vue.defineComponent({
1685
+ props: {
1686
+ label: {
1687
+ type: String,
1688
+ default: () => ""
1689
+ }
1690
+ },
1691
+ setup(props2, {
1692
+ attrs
1693
+ }) {
1694
+ return () => vue.createVNode("div", {
1695
+ "class": "shy-form-divider"
1696
+ }, [props2.label]);
1697
+ }
1698
+ });
1684
1699
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
1685
1700
  const freeGlobal$1 = freeGlobal;
1686
1701
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -7277,6 +7292,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
7277
7292
  });
7278
7293
  const Table_vue_vue_type_style_index_0_scoped_7465b460_lang = "";
7279
7294
  const Table = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-7465b460"]]);
7295
+ console.log(Divider);
7280
7296
  const componentMap$2 = /* @__PURE__ */ new Map();
7281
7297
  componentMap$2.set("Input", antDesignVue.Input);
7282
7298
  componentMap$2.set("InputGroup", antDesignVue.Input.Group);
@@ -7310,7 +7326,7 @@ componentMap$2.set("StrengthMeter", StrengthMeter);
7310
7326
  componentMap$2.set("IconPicker", _sfc_main$P);
7311
7327
  componentMap$2.set("InputCountDown", CountdownInput);
7312
7328
  componentMap$2.set("Table", Table);
7313
- componentMap$2.set("Divider", antDesignVue.Divider);
7329
+ componentMap$2.set("Divider", Divider);
7314
7330
  function add(compName, component) {
7315
7331
  componentMap$2.set(compName, component);
7316
7332
  }
@@ -7484,7 +7500,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
7484
7500
  type: "horizontal"
7485
7501
  }, componentProps, {
7486
7502
  orientation: "left",
7487
- plain: true
7503
+ plain: true,
7504
+ label: (schema2 == null ? void 0 : schema2.label) || ""
7488
7505
  });
7489
7506
  }
7490
7507
  if (schema2.component === "Input") {
@@ -7731,7 +7748,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
7731
7748
  return vue.createVNode(antDesignVue.Col, {
7732
7749
  "span": 24
7733
7750
  }, {
7734
- default: () => [vue.createVNode(antDesignVue.Divider, vue.unref(getComponentsProps), _isSlot$3(_slot = renderLabelHelpMessage()) ? _slot : {
7751
+ default: () => [vue.createVNode(Divider, vue.unref(getComponentsProps), _isSlot$3(_slot = renderLabelHelpMessage()) ? _slot : {
7735
7752
  default: () => [_slot]
7736
7753
  })]
7737
7754
  });
@@ -7969,7 +7986,10 @@ const _sfc_main$I = vue.defineComponent({
7969
7986
  {
7970
7987
  text: "查询"
7971
7988
  },
7972
- props2.submitButtonOptions
7989
+ {
7990
+ ...props2.submitButtonOptions,
7991
+ loading: false
7992
+ }
7973
7993
  );
7974
7994
  });
7975
7995
  const getPreIcon = vue.computed(() => {
@@ -7994,7 +8014,6 @@ const _sfc_main$I = vue.defineComponent({
7994
8014
  });
7995
8015
  function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
7996
8016
  const _component_BasicButton = vue.resolveComponent("BasicButton");
7997
- const _component_SearchOutlined = vue.resolveComponent("SearchOutlined");
7998
8017
  const _component_Button = vue.resolveComponent("Button");
7999
8018
  const _component_FormItem = vue.resolveComponent("FormItem");
8000
8019
  return _ctx.showActionButtonGroup ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -8008,10 +8027,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
8008
8027
  key: 0,
8009
8028
  type: "default",
8010
8029
  class: "mr-2"
8011
- }, _ctx.getResetBtnOptions, {
8012
- onClick: _ctx.resetAction,
8013
- preIcon: "ant-design:sync-outlined"
8014
- }), {
8030
+ }, _ctx.getResetBtnOptions, { onClick: _ctx.resetAction }), {
8015
8031
  default: vue.withCtx(() => [
8016
8032
  vue.createTextVNode(vue.toDisplayString(_ctx.getResetBtnOptions.text), 1)
8017
8033
  ]),
@@ -8023,11 +8039,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
8023
8039
  type: "primary",
8024
8040
  class: "mr-2"
8025
8041
  }, { ..._ctx.getSubmitBtnOptions }, { onClick: _ctx.submitAction }), {
8026
- icon: vue.withCtx(() => [
8027
- vue.createVNode(_component_SearchOutlined, { style: { "line-height": "14px", "transform": "translateY(3px)", "font-size": "14px", "box-sizing": "border-box" } })
8028
- ]),
8029
8042
  default: vue.withCtx(() => [
8030
- vue.createTextVNode(" " + vue.toDisplayString(_ctx.getSubmitBtnOptions.text), 1)
8043
+ vue.createTextVNode(vue.toDisplayString(_ctx.getSubmitBtnOptions.text), 1)
8031
8044
  ]),
8032
8045
  _: 1
8033
8046
  }, 16, ["onClick"])) : vue.createCommentVNode("", true),
@@ -10251,7 +10264,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
10251
10264
  class: vue.normalizeClass(_ctx.getToggleClass),
10252
10265
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleToggleAdvanced && _ctx.handleToggleAdvanced(...args))
10253
10266
  }, [
10254
- vue.createVNode(_component_DownOutlined, { style: { fontSize: "10px", color: "#919191 " } })
10267
+ vue.createVNode(_component_DownOutlined, { style: { fontSize: "10px", color: "#AED0FA " } })
10255
10268
  ], 2)
10256
10269
  ], 2)) : vue.createCommentVNode("", true)
10257
10270
  ];
@@ -10259,7 +10272,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
10259
10272
  ], 64);
10260
10273
  }
10261
10274
  const BasicForm = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$n]]);
10262
- const index$3 = "";
10275
+ const index$4 = "";
10263
10276
  function useComponentRegister(compName, comp) {
10264
10277
  add(compName, comp);
10265
10278
  tryOnUnmounted(() => {
@@ -10861,7 +10874,7 @@ function useTree(treeDataRef, getFieldNames) {
10861
10874
  function _isSlot$1(s) {
10862
10875
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
10863
10876
  }
10864
- const prefixCls = "context-menu";
10877
+ const prefixCls$1 = "context-menu";
10865
10878
  const props$4 = {
10866
10879
  width: {
10867
10880
  type: Number,
@@ -10980,7 +10993,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
10980
10993
  if (!children || children.length === 0) {
10981
10994
  return vue.createVNode(vue.Fragment, null, [vue.createVNode(antDesignVue.Menu.Item, {
10982
10995
  "disabled": disabled,
10983
- "class": `${prefixCls}__item`,
10996
+ "class": `${prefixCls$1}__item`,
10984
10997
  "key": label
10985
10998
  }, {
10986
10999
  default: () => [vue.createVNode(ItemContent, contentProps, null)]
@@ -10993,7 +11006,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
10993
11006
  return vue.createVNode(antDesignVue.Menu.SubMenu, {
10994
11007
  "key": label,
10995
11008
  "disabled": disabled,
10996
- "popupClassName": `${prefixCls}__popup`
11009
+ "popupClassName": `${prefixCls$1}__popup`
10997
11010
  }, {
10998
11011
  title: () => vue.createVNode(ItemContent, contentProps, null),
10999
11012
  default: () => renderMenuItem(children)
@@ -11009,7 +11022,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
11009
11022
  items
11010
11023
  } = props2;
11011
11024
  return vue.createVNode("div", {
11012
- "class": prefixCls
11025
+ "class": prefixCls$1
11013
11026
  }, [vue.createVNode(antDesignVue.Menu, {
11014
11027
  "inlineIndent": 12,
11015
11028
  "mode": "vertical",
@@ -11475,7 +11488,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
11475
11488
  };
11476
11489
  }
11477
11490
  });
11478
- const index$2 = "";
11491
+ const index$3 = "";
11479
11492
  const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
11480
11493
  __name: "DeptTree",
11481
11494
  props: {
@@ -11721,6 +11734,64 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
11721
11734
  ], 2);
11722
11735
  }
11723
11736
  const PageWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$l]]);
11737
+ const prefixCls = "shy-basic-page-second";
11738
+ const PageSecond = /* @__PURE__ */ vue.defineComponent({
11739
+ props: {
11740
+ title: {
11741
+ type: String,
11742
+ default: () => "Title"
11743
+ },
11744
+ isShowCancelButton: {
11745
+ type: Boolean,
11746
+ default: () => true
11747
+ },
11748
+ isShowConfirmButton: {
11749
+ type: Boolean,
11750
+ default: () => true
11751
+ }
11752
+ },
11753
+ emits: ["click-return"],
11754
+ setup(props2, {
11755
+ slots,
11756
+ emit
11757
+ }) {
11758
+ const handleClick = () => {
11759
+ emit("click-return");
11760
+ };
11761
+ return () => {
11762
+ var _a2;
11763
+ return vue.createVNode("div", {
11764
+ "class": `${prefixCls}-wrapper`
11765
+ }, [vue.createVNode("div", {
11766
+ "class": `${prefixCls}-header`
11767
+ }, [vue.createVNode(ArrowLeftOutlined$1, {
11768
+ "class": `${prefixCls}-header-icon`,
11769
+ "onClick": handleClick
11770
+ }, null), vue.createVNode("div", {
11771
+ "class": `${prefixCls}-header-title`
11772
+ }, [props2.title])]), vue.createVNode("div", {
11773
+ "class": `${prefixCls}-body`
11774
+ }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]), vue.createVNode("div", {
11775
+ "class": `${prefixCls}-footer`
11776
+ }, [vue.createVNode(antDesignVue.Space, null, {
11777
+ default: () => {
11778
+ var _a3, _b, _c;
11779
+ return [(_a3 = slots.beforeCancelButton) == null ? void 0 : _a3.call(slots), props2.isShowCancelButton ? vue.createVNode(_sfc_main$K, {
11780
+ "size": "small"
11781
+ }, {
11782
+ default: () => [vue.createTextVNode("取消")]
11783
+ }) : null, (_b = slots.afterCancelButton) == null ? void 0 : _b.call(slots), props2.isShowConfirmButton ? vue.createVNode(_sfc_main$K, {
11784
+ "type": "primary",
11785
+ "size": "small"
11786
+ }, {
11787
+ default: () => [vue.createTextVNode("确定")]
11788
+ }) : null, (_c = slots.beforeConfirmButton) == null ? void 0 : _c.call(slots)];
11789
+ }
11790
+ })])]);
11791
+ };
11792
+ }
11793
+ });
11794
+ const index$2 = "";
11724
11795
  const PageWrapperFixedHeightKey = "PageWrapperFixedHeight";
11725
11796
  const _sfc_main$s = vue.defineComponent({
11726
11797
  name: "EditTableHeaderIcon",
@@ -11853,9 +11924,13 @@ const FETCH_SETTING = fetchSetting;
11853
11924
  const DEFAULT_SIZE = defaultSize;
11854
11925
  const DEFAULT_SORT_FN = defaultSortFn;
11855
11926
  const DEFAULT_FILTER_FN = defaultFilterFn;
11856
- const DEFAULT_ALIGN = "center";
11927
+ let DEFAULT_ALIGN = "left";
11857
11928
  const INDEX_COLUMN_FLAG = "INDEX";
11858
11929
  const ACTION_COLUMN_FLAG = "ACTION";
11930
+ const ACTION_COLUMN_WIDTH = 160;
11931
+ const setConstConfig = (config) => {
11932
+ DEFAULT_ALIGN = config.align;
11933
+ };
11859
11934
  function itemRender({
11860
11935
  page,
11861
11936
  type,
@@ -12610,6 +12685,7 @@ function handleActionColumn(propsRef, columns) {
12610
12685
  columns.push({
12611
12686
  ...columns[hasIndex],
12612
12687
  fixed: "right",
12688
+ width: ACTION_COLUMN_WIDTH,
12613
12689
  ...actionColumn,
12614
12690
  flag: ACTION_COLUMN_FLAG
12615
12691
  });
@@ -14395,6 +14471,7 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
14395
14471
  const { submitButtonOptions } = formConfig || {};
14396
14472
  return {
14397
14473
  showAdvancedButton: true,
14474
+ rowProps: { gutter: 20 },
14398
14475
  ...formConfig,
14399
14476
  submitButtonOptions: {
14400
14477
  loading: vue.unref(getLoading),
@@ -14427,7 +14504,7 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
14427
14504
  handleSearchInfoChange
14428
14505
  };
14429
14506
  }
14430
- const basicProps$3 = {
14507
+ const basicProps$3 = vue.reactive({
14431
14508
  clickToRowSelect: { type: Boolean, default: true },
14432
14509
  isTreeTable: Boolean,
14433
14510
  tableSetting: utils.propTypes.shape({}),
@@ -14491,6 +14568,8 @@ const basicProps$3 = {
14491
14568
  },
14492
14569
  // 使用搜索表单
14493
14570
  useSearchForm: utils.propTypes.bool,
14571
+ // 使用表格内边距
14572
+ useTableWrapper: utils.propTypes.bool.def(true),
14494
14573
  // 表单配置
14495
14574
  formConfig: {
14496
14575
  type: Object,
@@ -14554,6 +14633,11 @@ const basicProps$3 = {
14554
14633
  type: String,
14555
14634
  default: DEFAULT_SIZE
14556
14635
  }
14636
+ });
14637
+ const basicPropChange = (options) => {
14638
+ Object.keys(options).forEach((name) => {
14639
+ basicProps$3[name] = options[name];
14640
+ });
14557
14641
  };
14558
14642
  const _sfc_main$i = vue.defineComponent({
14559
14643
  components: {
@@ -14728,6 +14812,7 @@ const _sfc_main$i = vue.defineComponent({
14728
14812
  attrs.class,
14729
14813
  {
14730
14814
  [`${prefixCls2}-form-container`]: values.useSearchForm,
14815
+ [`${prefixCls2}-table-wrapper`]: values.useTableWrapper,
14731
14816
  [`${prefixCls2}--inset`]: values.inset
14732
14817
  }
14733
14818
  ];
@@ -14818,7 +14903,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
14818
14903
  const _component_Table = vue.resolveComponent("Table");
14819
14904
  return vue.openBlock(), vue.createElementBlock("div", {
14820
14905
  ref: "wrapRef",
14821
- class: vue.normalizeClass(_ctx.getWrapperClass)
14906
+ class: vue.normalizeClass(_ctx.getWrapperClass),
14907
+ style: { "background-color": "#fff" }
14822
14908
  }, [
14823
14909
  _ctx.getBindValues.useSearchForm ? (vue.openBlock(), vue.createBlock(_component_BasicForm, vue.mergeProps({
14824
14910
  key: 0,
@@ -15012,7 +15098,11 @@ const _sfc_main$g = vue.defineComponent({
15012
15098
  },
15013
15099
  divider: utils.propTypes.bool.def(true),
15014
15100
  outside: utils.propTypes.bool,
15015
- stopButtonPropagation: utils.propTypes.bool.def(false)
15101
+ stopButtonPropagation: utils.propTypes.bool.def(false),
15102
+ showCount: {
15103
+ type: Number,
15104
+ default: () => 2
15105
+ }
15016
15106
  },
15017
15107
  setup(props2) {
15018
15108
  const { prefixCls: prefixCls2 } = use.useDesign("basic-table-action");
@@ -15032,8 +15122,8 @@ const _sfc_main$g = vue.defineComponent({
15032
15122
  return isIfShow2;
15033
15123
  }
15034
15124
  const getActions = vue.computed(() => {
15035
- return (vue.toRaw(props2.actions) || []).filter((action) => {
15036
- return isIfShow(action);
15125
+ return (vue.toRaw(props2.actions) || []).filter((action, index2) => {
15126
+ return isIfShow(action) && index2 < props2.showCount;
15037
15127
  }).map((action) => {
15038
15128
  const { popConfirm } = action;
15039
15129
  return {
@@ -15049,8 +15139,8 @@ const _sfc_main$g = vue.defineComponent({
15049
15139
  });
15050
15140
  });
15051
15141
  const getDropdownList = vue.computed(() => {
15052
- const list = (vue.toRaw(props2.dropDownActions) || []).filter((action) => {
15053
- return isIfShow(action);
15142
+ const list = (vue.toRaw(props2.actions) || []).filter((action, index2) => {
15143
+ return isIfShow(action) && index2 >= props2.showCount;
15054
15144
  });
15055
15145
  return list.map((action, index2) => {
15056
15146
  const { label, popConfirm } = action;
@@ -15153,7 +15243,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
15153
15243
  })) : vue.createCommentVNode("", true)
15154
15244
  ], 64);
15155
15245
  }), 128)),
15156
- _ctx.dropDownActions && _ctx.getDropdownList.length > 0 ? (vue.openBlock(), vue.createBlock(_component_Dropdown, {
15246
+ _ctx.getDropdownList.length > 0 ? (vue.openBlock(), vue.createBlock(_component_Dropdown, {
15157
15247
  key: 0,
15158
15248
  trigger: ["hover"],
15159
15249
  dropMenuList: _ctx.getDropdownList,
@@ -15437,6 +15527,16 @@ function useTable(tableProps) {
15437
15527
  };
15438
15528
  return [register, methods2];
15439
15529
  }
15530
+ const withInstall$1 = (component) => {
15531
+ const comp = component;
15532
+ comp.install = (app, options = {}, config = {}) => {
15533
+ basicPropChange(options);
15534
+ setConstConfig(config);
15535
+ app.component("BasicTable", component);
15536
+ };
15537
+ return component;
15538
+ };
15539
+ withInstall$1(BasicTable);
15440
15540
  const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
15441
15541
  __name: "Table",
15442
15542
  setup(__props, { expose }) {
@@ -15700,6 +15800,19 @@ const basicProps$2 = {
15700
15800
  default: () => ({})
15701
15801
  }
15702
15802
  };
15803
+ const DescriptionGroup = /* @__PURE__ */ vue.defineComponent({
15804
+ props: {
15805
+ label: {
15806
+ type: String,
15807
+ default: () => ""
15808
+ }
15809
+ },
15810
+ setup(props2) {
15811
+ return () => vue.createVNode("div", {
15812
+ "class": "shy-form-divider"
15813
+ }, [props2.label]);
15814
+ }
15815
+ });
15703
15816
  const Description = /* @__PURE__ */ vue.defineComponent({
15704
15817
  name: "Description",
15705
15818
  props: basicProps$2,
@@ -15725,19 +15838,31 @@ const Description = /* @__PURE__ */ vue.defineComponent({
15725
15838
  const rows = vue.computed(() => {
15726
15839
  return getProps.value.schema.map((item) => {
15727
15840
  var _a2, _b;
15728
- return vue.createVNode("div", {
15729
- "class": `${prefixCls2}-row`,
15730
- "style": {
15731
- flex: `0 0 ${(((_a2 = item == null ? void 0 : item.colProps) == null ? void 0 : _a2.span) || basicColProps) / 24 * 100}%`
15732
- }
15733
- }, [vue.createVNode("span", {
15734
- "style": {
15735
- width: `${getProps.value.labelWidth}px`
15736
- },
15737
- "class": `${prefixCls2}-label`
15738
- }, [slots[`${item.field}Label`] ? slots[`${item.field}Label`]() : item.label, ((_b = getProps.value) == null ? void 0 : _b.isShowColon) ? ":" : ""]), vue.createVNode("span", {
15739
- "class": `${prefixCls2}-value`
15740
- }, [slots[`${item.field}Value`] ? slots[`${item.field}Value`]() : getProps.value.data[item.field]])]);
15841
+ if ((item == null ? void 0 : item.component) === "Divider") {
15842
+ return vue.createVNode(antDesignVue.Divider, null, null);
15843
+ } else if ((item == null ? void 0 : item.component) === "Group") {
15844
+ return vue.createVNode("div", {
15845
+ "style": {
15846
+ flex: "0 0 100%"
15847
+ }
15848
+ }, [vue.createVNode(DescriptionGroup, {
15849
+ "label": item == null ? void 0 : item.label
15850
+ }, null)]);
15851
+ } else {
15852
+ return vue.createVNode("div", {
15853
+ "class": `${prefixCls2}-row`,
15854
+ "style": {
15855
+ flex: `0 0 ${(((_a2 = item == null ? void 0 : item.colProps) == null ? void 0 : _a2.span) || basicColProps) / 24 * 100}%`
15856
+ }
15857
+ }, [vue.createVNode("span", {
15858
+ "style": {
15859
+ width: `${getProps.value.labelWidth}px`
15860
+ },
15861
+ "class": `${prefixCls2}-label`
15862
+ }, [slots[`${item.field}Label`] ? slots[`${item.field}Label`]() : item.label, ((_b = getProps.value) == null ? void 0 : _b.isShowColon) ? ":" : ""]), vue.createVNode("span", {
15863
+ "class": `${prefixCls2}-value`
15864
+ }, [slots[`${item.field}Value`] ? slots[`${item.field}Value`]() : getProps.value.data[item.field]])]);
15865
+ }
15741
15866
  });
15742
15867
  });
15743
15868
  emit("register", {
@@ -20418,6 +20543,7 @@ exports.IconPicker = _sfc_main$P;
20418
20543
  exports.LazyContainer = LazyContainer;
20419
20544
  exports.Loading = Loading;
20420
20545
  exports.PageFooter = PageFooter;
20546
+ exports.PageSecond = PageSecond;
20421
20547
  exports.PageWrapper = PageWrapper;
20422
20548
  exports.PageWrapperFixedHeightKey = PageWrapperFixedHeightKey;
20423
20549
  exports.PopConfirmButton = _sfc_main$J;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",