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.
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { h, nextTick, createVNode, defineComponent, ref, computed, unref, watchEffect, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createSlots, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, onMounted, normalizeClass, createCommentVNode, normalizeStyle, Transition, toHandlers, useSlots, withDirectives, vShow, getCurrentInstance, inject, onUnmounted, provide, onBeforeUnmount, resolveDynamicComponent, reactive, toRef, toRefs, TransitionGroup, getCurrentScope, onScopeDispose, readonly, isVNode, shallowReactive, toRaw, shallowRef, withKeys, withModifiers, render as render$1, resolveDirective, isRef, useAttrs as useAttrs$2 } from "vue";
2
- import { Radio, Select, Tree, TreeSelect, Cascader, Transfer, Input, Tooltip, Skeleton, Popover, Pagination, Empty, Button as Button$1, Table as Table$1, Form, FormItem, DatePicker, InputNumber, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker, Divider, Col, Popconfirm, Modal as Modal$2, Row, Dropdown, Menu, MenuItem, MenuDivider, Spin, PageHeader, Image, Badge, Tag, FormItemRest, Drawer, Space, Upload, Avatar } from "ant-design-vue";
3
- import { propTypes, isFunction as isFunction$4, isString as isString$3, isArray as isArray$3, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, isNumber as isNumber$2, isBoolean, isNull, extendSlots as extendSlots$1, withInstall as withInstall$1, isObject as isObject$3, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, formatToDate, isMap as isMap$2, buildUUID, findNodeAll, getViewportOffset, warn as warn$1, isNullAndUnDef, dataURLtoBlob } from "@shy-plugins/utils";
2
+ import { Radio, Select, Tree, TreeSelect, Cascader, Transfer, Input, Tooltip, Skeleton, Popover, Pagination, Empty, Button as Button$1, Table as Table$1, Form, FormItem, DatePicker, InputNumber, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker, Col, Popconfirm, Modal as Modal$2, Row, Dropdown, Menu, MenuItem, MenuDivider, Divider as Divider$1, Spin, PageHeader, Space, Image, Badge, Tag, FormItemRest, Drawer, Upload, Avatar } from "ant-design-vue";
3
+ import { propTypes, isFunction as isFunction$4, isString as isString$3, isArray as isArray$3, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, isNumber as isNumber$2, isBoolean, isNull, extendSlots as extendSlots$1, withInstall as withInstall$2, isObject as isObject$3, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, formatToDate, isMap as isMap$2, buildUUID, findNodeAll, getViewportOffset, warn as warn$1, isNullAndUnDef, dataURLtoBlob } from "@shy-plugins/utils";
4
4
  import { useAttrs as useAttrs$1, useRuleFormItem, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$2, createContext as createContext$1, useContext as useContext$2, useBreakpoint, useI18n as useI18n$1, useContentHeight, useDesign as useDesign$1, useWindowSizeFn as useWindowSizeFn$1, onMountedOrActivated, useEventListener as useEventListener$1 } from "@shy-plugins/use";
5
5
  import { zxcvbn } from "@zxcvbn-ts/core";
6
6
  import Iconify from "@purge-icons/generated";
@@ -1679,6 +1679,21 @@ var SmallDashOutlined = function SmallDashOutlined2(props2, context) {
1679
1679
  SmallDashOutlined.displayName = "SmallDashOutlined";
1680
1680
  SmallDashOutlined.inheritAttrs = false;
1681
1681
  const SmallDashOutlined$1 = SmallDashOutlined;
1682
+ const Divider = /* @__PURE__ */ defineComponent({
1683
+ props: {
1684
+ label: {
1685
+ type: String,
1686
+ default: () => ""
1687
+ }
1688
+ },
1689
+ setup(props2, {
1690
+ attrs
1691
+ }) {
1692
+ return () => createVNode("div", {
1693
+ "class": "shy-form-divider"
1694
+ }, [props2.label]);
1695
+ }
1696
+ });
1682
1697
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
1683
1698
  const freeGlobal$1 = freeGlobal;
1684
1699
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -7275,6 +7290,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
7275
7290
  });
7276
7291
  const Table_vue_vue_type_style_index_0_scoped_7465b460_lang = "";
7277
7292
  const Table = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-7465b460"]]);
7293
+ console.log(Divider);
7278
7294
  const componentMap$2 = /* @__PURE__ */ new Map();
7279
7295
  componentMap$2.set("Input", Input);
7280
7296
  componentMap$2.set("InputGroup", Input.Group);
@@ -7482,7 +7498,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
7482
7498
  type: "horizontal"
7483
7499
  }, componentProps, {
7484
7500
  orientation: "left",
7485
- plain: true
7501
+ plain: true,
7502
+ label: (schema2 == null ? void 0 : schema2.label) || ""
7486
7503
  });
7487
7504
  }
7488
7505
  if (schema2.component === "Input") {
@@ -7902,7 +7919,7 @@ const _sfc_main$J = defineComponent({
7902
7919
  };
7903
7920
  }
7904
7921
  });
7905
- const Button = withInstall$1(_sfc_main$K);
7922
+ const Button = withInstall$2(_sfc_main$K);
7906
7923
  const key$3 = Symbol();
7907
7924
  function createFormContext(context) {
7908
7925
  return createContext$1(context, key$3);
@@ -7967,7 +7984,10 @@ const _sfc_main$I = defineComponent({
7967
7984
  {
7968
7985
  text: "查询"
7969
7986
  },
7970
- props2.submitButtonOptions
7987
+ {
7988
+ ...props2.submitButtonOptions,
7989
+ loading: false
7990
+ }
7971
7991
  );
7972
7992
  });
7973
7993
  const getPreIcon = computed(() => {
@@ -7992,7 +8012,6 @@ const _sfc_main$I = defineComponent({
7992
8012
  });
7993
8013
  function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
7994
8014
  const _component_BasicButton = resolveComponent("BasicButton");
7995
- const _component_SearchOutlined = resolveComponent("SearchOutlined");
7996
8015
  const _component_Button = resolveComponent("Button");
7997
8016
  const _component_FormItem = resolveComponent("FormItem");
7998
8017
  return _ctx.showActionButtonGroup ? (openBlock(), createElementBlock("div", {
@@ -8006,10 +8025,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
8006
8025
  key: 0,
8007
8026
  type: "default",
8008
8027
  class: "mr-2"
8009
- }, _ctx.getResetBtnOptions, {
8010
- onClick: _ctx.resetAction,
8011
- preIcon: "ant-design:sync-outlined"
8012
- }), {
8028
+ }, _ctx.getResetBtnOptions, { onClick: _ctx.resetAction }), {
8013
8029
  default: withCtx(() => [
8014
8030
  createTextVNode(toDisplayString(_ctx.getResetBtnOptions.text), 1)
8015
8031
  ]),
@@ -8021,11 +8037,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
8021
8037
  type: "primary",
8022
8038
  class: "mr-2"
8023
8039
  }, { ..._ctx.getSubmitBtnOptions }, { onClick: _ctx.submitAction }), {
8024
- icon: withCtx(() => [
8025
- createVNode(_component_SearchOutlined, { style: { "line-height": "14px", "transform": "translateY(3px)", "font-size": "14px", "box-sizing": "border-box" } })
8026
- ]),
8027
8040
  default: withCtx(() => [
8028
- createTextVNode(" " + toDisplayString(_ctx.getSubmitBtnOptions.text), 1)
8041
+ createTextVNode(toDisplayString(_ctx.getSubmitBtnOptions.text), 1)
8029
8042
  ]),
8030
8043
  _: 1
8031
8044
  }, 16, ["onClick"])) : createCommentVNode("", true),
@@ -9840,7 +9853,7 @@ const useModalInner = (callbackFn) => {
9840
9853
  }
9841
9854
  ];
9842
9855
  };
9843
- const BasicModal = withInstall$1(basicModal);
9856
+ const BasicModal = withInstall$2(basicModal);
9844
9857
  const basicProps$4 = {
9845
9858
  model: {
9846
9859
  type: Object,
@@ -10249,7 +10262,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
10249
10262
  class: normalizeClass(_ctx.getToggleClass),
10250
10263
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleToggleAdvanced && _ctx.handleToggleAdvanced(...args))
10251
10264
  }, [
10252
- createVNode(_component_DownOutlined, { style: { fontSize: "10px", color: "#919191 " } })
10265
+ createVNode(_component_DownOutlined, { style: { fontSize: "10px", color: "#AED0FA " } })
10253
10266
  ], 2)
10254
10267
  ], 2)) : createCommentVNode("", true)
10255
10268
  ];
@@ -10257,7 +10270,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
10257
10270
  ], 64);
10258
10271
  }
10259
10272
  const BasicForm = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$n]]);
10260
- const index$3 = "";
10273
+ const index$4 = "";
10261
10274
  function useComponentRegister(compName, comp) {
10262
10275
  add(compName, comp);
10263
10276
  tryOnUnmounted(() => {
@@ -10859,7 +10872,7 @@ function useTree(treeDataRef, getFieldNames) {
10859
10872
  function _isSlot$1(s) {
10860
10873
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
10861
10874
  }
10862
- const prefixCls = "context-menu";
10875
+ const prefixCls$1 = "context-menu";
10863
10876
  const props$4 = {
10864
10877
  width: {
10865
10878
  type: Number,
@@ -10978,11 +10991,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
10978
10991
  if (!children || children.length === 0) {
10979
10992
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
10980
10993
  "disabled": disabled,
10981
- "class": `${prefixCls}__item`,
10994
+ "class": `${prefixCls$1}__item`,
10982
10995
  "key": label
10983
10996
  }, {
10984
10997
  default: () => [createVNode(ItemContent, contentProps, null)]
10985
- }), divider ? createVNode(Divider, {
10998
+ }), divider ? createVNode(Divider$1, {
10986
10999
  "key": `d-${label}`
10987
11000
  }, null) : null]);
10988
11001
  }
@@ -10991,7 +11004,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
10991
11004
  return createVNode(Menu.SubMenu, {
10992
11005
  "key": label,
10993
11006
  "disabled": disabled,
10994
- "popupClassName": `${prefixCls}__popup`
11007
+ "popupClassName": `${prefixCls$1}__popup`
10995
11008
  }, {
10996
11009
  title: () => createVNode(ItemContent, contentProps, null),
10997
11010
  default: () => renderMenuItem(children)
@@ -11007,7 +11020,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
11007
11020
  items
11008
11021
  } = props2;
11009
11022
  return createVNode("div", {
11010
- "class": prefixCls
11023
+ "class": prefixCls$1
11011
11024
  }, [createVNode(Menu, {
11012
11025
  "inlineIndent": 12,
11013
11026
  "mode": "vertical",
@@ -11473,7 +11486,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
11473
11486
  };
11474
11487
  }
11475
11488
  });
11476
- const index$2 = "";
11489
+ const index$3 = "";
11477
11490
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
11478
11491
  __name: "DeptTree",
11479
11492
  props: {
@@ -11719,6 +11732,64 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
11719
11732
  ], 2);
11720
11733
  }
11721
11734
  const PageWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$l]]);
11735
+ const prefixCls = "shy-basic-page-second";
11736
+ const PageSecond = /* @__PURE__ */ defineComponent({
11737
+ props: {
11738
+ title: {
11739
+ type: String,
11740
+ default: () => "Title"
11741
+ },
11742
+ isShowCancelButton: {
11743
+ type: Boolean,
11744
+ default: () => true
11745
+ },
11746
+ isShowConfirmButton: {
11747
+ type: Boolean,
11748
+ default: () => true
11749
+ }
11750
+ },
11751
+ emits: ["click-return"],
11752
+ setup(props2, {
11753
+ slots,
11754
+ emit
11755
+ }) {
11756
+ const handleClick = () => {
11757
+ emit("click-return");
11758
+ };
11759
+ return () => {
11760
+ var _a2;
11761
+ return createVNode("div", {
11762
+ "class": `${prefixCls}-wrapper`
11763
+ }, [createVNode("div", {
11764
+ "class": `${prefixCls}-header`
11765
+ }, [createVNode(ArrowLeftOutlined$1, {
11766
+ "class": `${prefixCls}-header-icon`,
11767
+ "onClick": handleClick
11768
+ }, null), createVNode("div", {
11769
+ "class": `${prefixCls}-header-title`
11770
+ }, [props2.title])]), createVNode("div", {
11771
+ "class": `${prefixCls}-body`
11772
+ }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]), createVNode("div", {
11773
+ "class": `${prefixCls}-footer`
11774
+ }, [createVNode(Space, null, {
11775
+ default: () => {
11776
+ var _a3, _b, _c;
11777
+ return [(_a3 = slots.beforeCancelButton) == null ? void 0 : _a3.call(slots), props2.isShowCancelButton ? createVNode(_sfc_main$K, {
11778
+ "size": "small"
11779
+ }, {
11780
+ default: () => [createTextVNode("取消")]
11781
+ }) : null, (_b = slots.afterCancelButton) == null ? void 0 : _b.call(slots), props2.isShowConfirmButton ? createVNode(_sfc_main$K, {
11782
+ "type": "primary",
11783
+ "size": "small"
11784
+ }, {
11785
+ default: () => [createTextVNode("确定")]
11786
+ }) : null, (_c = slots.beforeConfirmButton) == null ? void 0 : _c.call(slots)];
11787
+ }
11788
+ })])]);
11789
+ };
11790
+ }
11791
+ });
11792
+ const index$2 = "";
11722
11793
  const PageWrapperFixedHeightKey = "PageWrapperFixedHeight";
11723
11794
  const _sfc_main$s = defineComponent({
11724
11795
  name: "EditTableHeaderIcon",
@@ -11851,9 +11922,13 @@ const FETCH_SETTING = fetchSetting;
11851
11922
  const DEFAULT_SIZE = defaultSize;
11852
11923
  const DEFAULT_SORT_FN = defaultSortFn;
11853
11924
  const DEFAULT_FILTER_FN = defaultFilterFn;
11854
- const DEFAULT_ALIGN = "center";
11925
+ let DEFAULT_ALIGN = "left";
11855
11926
  const INDEX_COLUMN_FLAG = "INDEX";
11856
11927
  const ACTION_COLUMN_FLAG = "ACTION";
11928
+ const ACTION_COLUMN_WIDTH = 160;
11929
+ const setConstConfig = (config) => {
11930
+ DEFAULT_ALIGN = config.align;
11931
+ };
11857
11932
  function itemRender({
11858
11933
  page,
11859
11934
  type,
@@ -12608,6 +12683,7 @@ function handleActionColumn(propsRef, columns) {
12608
12683
  columns.push({
12609
12684
  ...columns[hasIndex],
12610
12685
  fixed: "right",
12686
+ width: ACTION_COLUMN_WIDTH,
12611
12687
  ...actionColumn,
12612
12688
  flag: ACTION_COLUMN_FLAG
12613
12689
  });
@@ -13525,7 +13601,7 @@ const _sfc_main$p = defineComponent({
13525
13601
  CheckboxGroup: Checkbox.Group,
13526
13602
  DragOutlined: DragOutlined$1,
13527
13603
  ScrollContainer: ScrollContainer$1,
13528
- Divider,
13604
+ Divider: Divider$1,
13529
13605
  Icon: Icon2
13530
13606
  },
13531
13607
  emits: ["columns-change"],
@@ -14393,6 +14469,7 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
14393
14469
  const { submitButtonOptions } = formConfig || {};
14394
14470
  return {
14395
14471
  showAdvancedButton: true,
14472
+ rowProps: { gutter: 20 },
14396
14473
  ...formConfig,
14397
14474
  submitButtonOptions: {
14398
14475
  loading: unref(getLoading),
@@ -14425,7 +14502,7 @@ function useTableForm(propsRef, slots, fetch, getLoading) {
14425
14502
  handleSearchInfoChange
14426
14503
  };
14427
14504
  }
14428
- const basicProps$3 = {
14505
+ const basicProps$3 = reactive({
14429
14506
  clickToRowSelect: { type: Boolean, default: true },
14430
14507
  isTreeTable: Boolean,
14431
14508
  tableSetting: propTypes.shape({}),
@@ -14489,6 +14566,8 @@ const basicProps$3 = {
14489
14566
  },
14490
14567
  // 使用搜索表单
14491
14568
  useSearchForm: propTypes.bool,
14569
+ // 使用表格内边距
14570
+ useTableWrapper: propTypes.bool.def(true),
14492
14571
  // 表单配置
14493
14572
  formConfig: {
14494
14573
  type: Object,
@@ -14552,6 +14631,11 @@ const basicProps$3 = {
14552
14631
  type: String,
14553
14632
  default: DEFAULT_SIZE
14554
14633
  }
14634
+ });
14635
+ const basicPropChange = (options) => {
14636
+ Object.keys(options).forEach((name) => {
14637
+ basicProps$3[name] = options[name];
14638
+ });
14555
14639
  };
14556
14640
  const _sfc_main$i = defineComponent({
14557
14641
  components: {
@@ -14726,6 +14810,7 @@ const _sfc_main$i = defineComponent({
14726
14810
  attrs.class,
14727
14811
  {
14728
14812
  [`${prefixCls2}-form-container`]: values.useSearchForm,
14813
+ [`${prefixCls2}-table-wrapper`]: values.useTableWrapper,
14729
14814
  [`${prefixCls2}--inset`]: values.inset
14730
14815
  }
14731
14816
  ];
@@ -14816,7 +14901,8 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
14816
14901
  const _component_Table = resolveComponent("Table");
14817
14902
  return openBlock(), createElementBlock("div", {
14818
14903
  ref: "wrapRef",
14819
- class: normalizeClass(_ctx.getWrapperClass)
14904
+ class: normalizeClass(_ctx.getWrapperClass),
14905
+ style: { "background-color": "#fff" }
14820
14906
  }, [
14821
14907
  _ctx.getBindValues.useSearchForm ? (openBlock(), createBlock(_component_BasicForm, mergeProps({
14822
14908
  key: 0,
@@ -14994,7 +15080,7 @@ const _sfc_main$g = defineComponent({
14994
15080
  components: {
14995
15081
  Icon: Icon2,
14996
15082
  PopConfirmButton: _sfc_main$J,
14997
- Divider,
15083
+ Divider: Divider$1,
14998
15084
  Dropdown: _sfc_main$h,
14999
15085
  MoreOutlined: MoreOutlined$1,
15000
15086
  Tooltip
@@ -15010,7 +15096,11 @@ const _sfc_main$g = defineComponent({
15010
15096
  },
15011
15097
  divider: propTypes.bool.def(true),
15012
15098
  outside: propTypes.bool,
15013
- stopButtonPropagation: propTypes.bool.def(false)
15099
+ stopButtonPropagation: propTypes.bool.def(false),
15100
+ showCount: {
15101
+ type: Number,
15102
+ default: () => 2
15103
+ }
15014
15104
  },
15015
15105
  setup(props2) {
15016
15106
  const { prefixCls: prefixCls2 } = useDesign$1("basic-table-action");
@@ -15030,8 +15120,8 @@ const _sfc_main$g = defineComponent({
15030
15120
  return isIfShow2;
15031
15121
  }
15032
15122
  const getActions = computed(() => {
15033
- return (toRaw(props2.actions) || []).filter((action) => {
15034
- return isIfShow(action);
15123
+ return (toRaw(props2.actions) || []).filter((action, index2) => {
15124
+ return isIfShow(action) && index2 < props2.showCount;
15035
15125
  }).map((action) => {
15036
15126
  const { popConfirm } = action;
15037
15127
  return {
@@ -15047,8 +15137,8 @@ const _sfc_main$g = defineComponent({
15047
15137
  });
15048
15138
  });
15049
15139
  const getDropdownList = computed(() => {
15050
- const list = (toRaw(props2.dropDownActions) || []).filter((action) => {
15051
- return isIfShow(action);
15140
+ const list = (toRaw(props2.actions) || []).filter((action, index2) => {
15141
+ return isIfShow(action) && index2 >= props2.showCount;
15052
15142
  });
15053
15143
  return list.map((action, index2) => {
15054
15144
  const { label, popConfirm } = action;
@@ -15151,7 +15241,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
15151
15241
  })) : createCommentVNode("", true)
15152
15242
  ], 64);
15153
15243
  }), 128)),
15154
- _ctx.dropDownActions && _ctx.getDropdownList.length > 0 ? (openBlock(), createBlock(_component_Dropdown, {
15244
+ _ctx.getDropdownList.length > 0 ? (openBlock(), createBlock(_component_Dropdown, {
15155
15245
  key: 0,
15156
15246
  trigger: ["hover"],
15157
15247
  dropMenuList: _ctx.getDropdownList,
@@ -15435,6 +15525,16 @@ function useTable(tableProps) {
15435
15525
  };
15436
15526
  return [register, methods2];
15437
15527
  }
15528
+ const withInstall$1 = (component) => {
15529
+ const comp = component;
15530
+ comp.install = (app, options = {}, config = {}) => {
15531
+ basicPropChange(options);
15532
+ setConstConfig(config);
15533
+ app.component("BasicTable", component);
15534
+ };
15535
+ return component;
15536
+ };
15537
+ withInstall$1(BasicTable);
15438
15538
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
15439
15539
  __name: "Table",
15440
15540
  setup(__props, { expose }) {
@@ -15698,6 +15798,19 @@ const basicProps$2 = {
15698
15798
  default: () => ({})
15699
15799
  }
15700
15800
  };
15801
+ const DescriptionGroup = /* @__PURE__ */ defineComponent({
15802
+ props: {
15803
+ label: {
15804
+ type: String,
15805
+ default: () => ""
15806
+ }
15807
+ },
15808
+ setup(props2) {
15809
+ return () => createVNode("div", {
15810
+ "class": "shy-form-divider"
15811
+ }, [props2.label]);
15812
+ }
15813
+ });
15701
15814
  const Description = /* @__PURE__ */ defineComponent({
15702
15815
  name: "Description",
15703
15816
  props: basicProps$2,
@@ -15723,19 +15836,31 @@ const Description = /* @__PURE__ */ defineComponent({
15723
15836
  const rows = computed(() => {
15724
15837
  return getProps.value.schema.map((item) => {
15725
15838
  var _a2, _b;
15726
- return createVNode("div", {
15727
- "class": `${prefixCls2}-row`,
15728
- "style": {
15729
- flex: `0 0 ${(((_a2 = item == null ? void 0 : item.colProps) == null ? void 0 : _a2.span) || basicColProps) / 24 * 100}%`
15730
- }
15731
- }, [createVNode("span", {
15732
- "style": {
15733
- width: `${getProps.value.labelWidth}px`
15734
- },
15735
- "class": `${prefixCls2}-label`
15736
- }, [slots[`${item.field}Label`] ? slots[`${item.field}Label`]() : item.label, ((_b = getProps.value) == null ? void 0 : _b.isShowColon) ? ":" : ""]), createVNode("span", {
15737
- "class": `${prefixCls2}-value`
15738
- }, [slots[`${item.field}Value`] ? slots[`${item.field}Value`]() : getProps.value.data[item.field]])]);
15839
+ if ((item == null ? void 0 : item.component) === "Divider") {
15840
+ return createVNode(Divider$1, null, null);
15841
+ } else if ((item == null ? void 0 : item.component) === "Group") {
15842
+ return createVNode("div", {
15843
+ "style": {
15844
+ flex: "0 0 100%"
15845
+ }
15846
+ }, [createVNode(DescriptionGroup, {
15847
+ "label": item == null ? void 0 : item.label
15848
+ }, null)]);
15849
+ } else {
15850
+ return createVNode("div", {
15851
+ "class": `${prefixCls2}-row`,
15852
+ "style": {
15853
+ flex: `0 0 ${(((_a2 = item == null ? void 0 : item.colProps) == null ? void 0 : _a2.span) || basicColProps) / 24 * 100}%`
15854
+ }
15855
+ }, [createVNode("span", {
15856
+ "style": {
15857
+ width: `${getProps.value.labelWidth}px`
15858
+ },
15859
+ "class": `${prefixCls2}-label`
15860
+ }, [slots[`${item.field}Label`] ? slots[`${item.field}Label`]() : item.label, ((_b = getProps.value) == null ? void 0 : _b.isShowColon) ? ":" : ""]), createVNode("span", {
15861
+ "class": `${prefixCls2}-value`
15862
+ }, [slots[`${item.field}Value`] ? slots[`${item.field}Value`]() : getProps.value.data[item.field]])]);
15863
+ }
15739
15864
  });
15740
15865
  });
15741
15866
  emit("register", {
@@ -20417,6 +20542,7 @@ export {
20417
20542
  LazyContainer,
20418
20543
  Loading,
20419
20544
  PageFooter,
20545
+ PageSecond,
20420
20546
  PageWrapper,
20421
20547
  PageWrapperFixedHeightKey,
20422
20548
  _sfc_main$J as PopConfirmButton,
package/es/style.css CHANGED
@@ -25064,9 +25064,9 @@ span.iconify {
25064
25064
  align-items: center;
25065
25065
  width: 32px;
25066
25066
  height: 12px;
25067
- border: 1px solid #f0f0f0;
25068
- border-radius: 6px;
25069
- transition: all 0.2s;
25067
+ border: 1px solid #aed0fa;
25068
+ border-radius: 0;
25069
+ transition: all 0.1;
25070
25070
  cursor: pointer;
25071
25071
  }
25072
25072
  .shy-basic-form-toggle-icon.expend {
@@ -25108,6 +25108,24 @@ span.iconify {
25108
25108
  }
25109
25109
  .shy-form-action .ant-form-item-control-input-content button {
25110
25110
  margin: 0 5px;
25111
+ }
25112
+ .shy-form-divider {
25113
+ display: flex;
25114
+ align-items: center;
25115
+ height: 30px;
25116
+ font-size: 14px;
25117
+ font-weight: 600;
25118
+ font-family: PingFangSC-Semibold;
25119
+ color: #131415;
25120
+ line-height: 16px;
25121
+ }
25122
+ .shy-form-divider::after {
25123
+ display: inline-block;
25124
+ margin-left: 8px;
25125
+ width: 2px;
25126
+ height: 14px;
25127
+ content: '';
25128
+ background: #2991ff;
25111
25129
  }.shy-search[data-v-6d3f2554] {
25112
25130
  position: relative;
25113
25131
  display: flex;
@@ -25243,6 +25261,37 @@ span.iconify {
25243
25261
  }
25244
25262
  .shy-page-wrapper--dense .shy-page-wrapper-content {
25245
25263
  margin: 0;
25264
+ }.shy-basic-page-second-wrapper {
25265
+ height: 100%;
25266
+ padding: 15px;
25267
+ overflow: hidden;
25268
+ }
25269
+ .shy-basic-page-second-header {
25270
+ display: flex;
25271
+ align-items: center;
25272
+ line-height: 40px;
25273
+ height: 40px;
25274
+ }
25275
+ .shy-basic-page-second-header-icon {
25276
+ font-size: 16px;
25277
+ }
25278
+ .shy-basic-page-second-header-title {
25279
+ margin-left: 30px;
25280
+ font-size: 20px;
25281
+ font-family: PingFangSC-Regular;
25282
+ font-weight: 400;
25283
+ color: #131415;
25284
+ }
25285
+ .shy-basic-page-second-body {
25286
+ height: calc(100% - 40px - 50px);
25287
+ overflow: auto;
25288
+ }
25289
+ .shy-basic-page-second-footer {
25290
+ display: flex;
25291
+ justify-content: flex-end;
25292
+ align-items: flex-end;
25293
+ height: 50px;
25294
+ flex: none;
25246
25295
  }.shy-basic-table-header-cell__help {
25247
25296
  margin-left: 8px;
25248
25297
  color: rgba(0, 0, 0, 0.65) !important;
@@ -25429,6 +25478,9 @@ span.iconify {
25429
25478
  width: 100%;
25430
25479
  height: 100%;
25431
25480
  }
25481
+ .shy-basic-table-table-wrapper {
25482
+ padding: 15px;
25483
+ }
25432
25484
  .shy-basic-table-row__striped td {
25433
25485
  background-color: #fafafa;
25434
25486
  }
@@ -25512,7 +25564,6 @@ span.iconify {
25512
25564
  }.shy-basic-description-wrapper {
25513
25565
  display: flex;
25514
25566
  flex-flow: row wrap;
25515
- height: 100%;
25516
25567
  overflow-y: auto;
25517
25568
  }
25518
25569
  .shy-basic-description-label {
@@ -25532,6 +25583,24 @@ span.iconify {
25532
25583
  display: flex;
25533
25584
  margin: 8px 0;
25534
25585
  overflow: hidden;
25586
+ }
25587
+ .shy-form-divider {
25588
+ display: flex;
25589
+ align-items: center;
25590
+ height: 30px;
25591
+ font-size: 14px;
25592
+ font-weight: 600;
25593
+ font-family: PingFangSC-Semibold;
25594
+ color: #131415;
25595
+ line-height: 16px;
25596
+ }
25597
+ .shy-form-divider::after {
25598
+ display: inline-block;
25599
+ margin-left: 8px;
25600
+ width: 2px;
25601
+ height: 14px;
25602
+ content: '';
25603
+ background: #2991ff;
25535
25604
  }.shy-basic-drawer-footer {
25536
25605
  position: absolute;
25537
25606
  bottom: 0;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ label: {
8
+ type: StringConstructor;
9
+ default: () => string;
10
+ };
11
+ }>>, {
12
+ label: string;
13
+ }>;
14
+ export default _default;
@@ -1,10 +1,11 @@
1
1
  import { PropType } from 'vue';
2
2
  export interface Schema {
3
- label: string;
4
- field: string;
3
+ label?: string;
4
+ field?: string;
5
5
  colProps?: {
6
6
  span: number;
7
7
  };
8
+ component?: 'Divider' | 'Group';
8
9
  }
9
10
  export declare const basicColProps = 24;
10
11
  export declare const basicProps: {
@@ -1,4 +1,5 @@
1
1
  import PageFooter from './src/PageFooter.vue';
2
2
  import PageWrapper from './src/PageWrapper.vue';
3
- export { PageFooter, PageWrapper };
3
+ import PageSecond from './src/PageSecond';
4
+ export { PageFooter, PageWrapper, PageSecond };
4
5
  export declare const PageWrapperFixedHeightKey = "PageWrapperFixedHeight";
@@ -0,0 +1,34 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ isShowCancelButton: {
7
+ type: BooleanConstructor;
8
+ default: () => boolean;
9
+ };
10
+ isShowConfirmButton: {
11
+ type: BooleanConstructor;
12
+ default: () => boolean;
13
+ };
14
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click-return"[], "click-return", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ title: {
16
+ type: StringConstructor;
17
+ default: () => string;
18
+ };
19
+ isShowCancelButton: {
20
+ type: BooleanConstructor;
21
+ default: () => boolean;
22
+ };
23
+ isShowConfirmButton: {
24
+ type: BooleanConstructor;
25
+ default: () => boolean;
26
+ };
27
+ }>> & {
28
+ "onClick-return"?: (...args: any[]) => any;
29
+ }, {
30
+ title: string;
31
+ isShowCancelButton: boolean;
32
+ isShowConfirmButton: boolean;
33
+ }>;
34
+ export default _default;
@@ -1,4 +1,4 @@
1
- export { default as BasicTable } from './src/BasicTable.vue';
1
+ import BasicTable from './src/BasicTable.vue';
2
2
  export { default as TableAction } from './src/components/TableAction.vue';
3
3
  export { default as EditTableHeaderIcon } from './src/components/EditTableHeaderIcon.vue';
4
4
  export { default as TableImg } from './src/components/TableImg.vue';
@@ -9,3 +9,4 @@ export * from './src/types/tableAction';
9
9
  export { useTable } from './src/hooks/useTable';
10
10
  export type { FormSchema, FormProps } from '../form';
11
11
  export type { EditRecordRow } from './src/components/editable';
12
+ export { BasicTable };
@@ -17,6 +17,8 @@ export declare const DEFAULT_SORT_FN: (sortInfo: SorterResult) => {
17
17
  order?: undefined;
18
18
  };
19
19
  export declare const DEFAULT_FILTER_FN: (data: Partial<Recordable<string[]>>) => Partial<Recordable<string[]>>;
20
- export declare const DEFAULT_ALIGN = "center";
20
+ export declare let DEFAULT_ALIGN: string;
21
21
  export declare const INDEX_COLUMN_FLAG = "INDEX";
22
22
  export declare const ACTION_COLUMN_FLAG = "ACTION";
23
+ export declare const ACTION_COLUMN_WIDTH = 160;
24
+ export declare const setConstConfig: (config: any) => void;