3h1-ui 1.2.0 → 1.2.2

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.
Files changed (144) hide show
  1. package/es/index.js +7 -9
  2. package/es/ui/src/Button/index.d.ts +1 -48
  3. package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +1 -1
  4. package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +3 -55
  5. package/es/ui/src/Drawer/index.d.ts +0 -1
  6. package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +1 -1
  7. package/es/ui/src/Modal/index.d.ts +4 -0
  8. package/es/ui/src/Modal/src/components/Modal.d.ts +10 -0
  9. package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +1 -1
  10. package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +14 -0
  11. package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +1 -1
  12. package/es/ui/src/Modal/src/props.d.ts +34 -0
  13. package/es/ui/src/Table/src/props.d.ts +2 -0
  14. package/lib/index.js +5 -7
  15. package/package.json +2 -2
  16. package/lib/ui/index.d.ts +0 -20
  17. package/lib/ui/src/Basic/index.d.ts +0 -4
  18. package/lib/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
  19. package/lib/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
  20. package/lib/ui/src/Button/index.d.ts +0 -51
  21. package/lib/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
  22. package/lib/ui/src/Button/src/props.d.ts +0 -37
  23. package/lib/ui/src/ClickOutSide/index.d.ts +0 -2
  24. package/lib/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
  25. package/lib/ui/src/Container/index.d.ts +0 -5
  26. package/lib/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
  27. package/lib/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
  28. package/lib/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
  29. package/lib/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
  30. package/lib/ui/src/Container/src/typing.d.ts +0 -15
  31. package/lib/ui/src/ContextMenu/index.d.ts +0 -3
  32. package/lib/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
  33. package/lib/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
  34. package/lib/ui/src/ContextMenu/src/typing.d.ts +0 -33
  35. package/lib/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
  36. package/lib/ui/src/CountDown/index.d.ts +0 -3
  37. package/lib/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
  38. package/lib/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
  39. package/lib/ui/src/CountDown/src/useCountdown.d.ts +0 -9
  40. package/lib/ui/src/CountTo/index.d.ts +0 -2
  41. package/lib/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
  42. package/lib/ui/src/Cropper/index.d.ts +0 -4
  43. package/lib/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
  44. package/lib/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
  45. package/lib/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -125
  46. package/lib/ui/src/Cropper/src/typing.d.ts +0 -6
  47. package/lib/ui/src/Description/index.d.ts +0 -4
  48. package/lib/ui/src/Description/src/Description.vue.d.ts +0 -101
  49. package/lib/ui/src/Description/src/typing.d.ts +0 -39
  50. package/lib/ui/src/Description/src/useDescription.d.ts +0 -2
  51. package/lib/ui/src/Drawer/index.d.ts +0 -4
  52. package/lib/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
  53. package/lib/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
  54. package/lib/ui/src/Drawer/src/props.d.ts +0 -115
  55. package/lib/ui/src/Drawer/src/typing.d.ts +0 -177
  56. package/lib/ui/src/Drawer/src/useDrawer.d.ts +0 -6
  57. package/lib/ui/src/Dropdown/index.d.ts +0 -3
  58. package/lib/ui/src/Dropdown/src/typing.d.ts +0 -9
  59. package/lib/ui/src/Icon/data/icons.data.d.ts +0 -2
  60. package/lib/ui/src/Icon/index.d.ts +0 -5
  61. package/lib/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
  62. package/lib/ui/src/Loading/index.d.ts +0 -4
  63. package/lib/ui/src/Loading/src/Loading.vue.d.ts +0 -57
  64. package/lib/ui/src/Loading/src/createLoading.d.ts +0 -13
  65. package/lib/ui/src/Loading/src/typing.d.ts +0 -9
  66. package/lib/ui/src/Loading/src/useLoading.d.ts +0 -11
  67. package/lib/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
  68. package/lib/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
  69. package/lib/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
  70. package/lib/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
  71. package/lib/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
  72. package/lib/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
  73. package/lib/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
  74. package/lib/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
  75. package/lib/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
  76. package/lib/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
  77. package/lib/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
  78. package/lib/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
  79. package/lib/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
  80. package/lib/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
  81. package/lib/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
  82. package/lib/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
  83. package/lib/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
  84. package/lib/ui/src/Modal/src/typing.d.ts +0 -173
  85. package/lib/ui/src/Modal/src/utils/index.d.ts +0 -5
  86. package/lib/ui/src/Modal/src/utils/is.d.ts +0 -13
  87. package/lib/ui/src/Modal/src/utils/log.d.ts +0 -2
  88. package/lib/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
  89. package/lib/ui/src/Page/index.d.ts +0 -4
  90. package/lib/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
  91. package/lib/ui/src/Scrollbar/index.d.ts +0 -6
  92. package/lib/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
  93. package/lib/ui/src/Scrollbar/src/bar.d.ts +0 -14
  94. package/lib/ui/src/Scrollbar/src/types.d.ts +0 -18
  95. package/lib/ui/src/Scrollbar/src/util.d.ts +0 -8
  96. package/lib/ui/src/StrengthMeter/index.d.ts +0 -2
  97. package/lib/ui/src/Table/index.d.ts +0 -11
  98. package/lib/ui/src/Table/src/componentMap.d.ts +0 -6
  99. package/lib/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
  100. package/lib/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
  101. package/lib/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
  102. package/lib/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
  103. package/lib/ui/src/Table/src/components/editable/helper.d.ts +0 -5
  104. package/lib/ui/src/Table/src/components/editable/index.d.ts +0 -22
  105. package/lib/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
  106. package/lib/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
  107. package/lib/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
  108. package/lib/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
  109. package/lib/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
  110. package/lib/ui/src/Table/src/const.d.ts +0 -22
  111. package/lib/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
  112. package/lib/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
  113. package/lib/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
  114. package/lib/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
  115. package/lib/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
  116. package/lib/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
  117. package/lib/ui/src/Table/src/hooks/useTable.d.ts +0 -17
  118. package/lib/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
  119. package/lib/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
  120. package/lib/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
  121. package/lib/ui/src/Table/src/hooks/useTableForm.d.ts +0 -9
  122. package/lib/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
  123. package/lib/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
  124. package/lib/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
  125. package/lib/ui/src/Table/src/types/componentType.d.ts +0 -1
  126. package/lib/ui/src/Table/src/types/pagination.d.ts +0 -93
  127. package/lib/ui/src/Table/src/types/table.d.ts +0 -372
  128. package/lib/ui/src/Table/src/types/tableAction.d.ts +0 -28
  129. package/lib/ui/src/Transition/index.d.ts +0 -368
  130. package/lib/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
  131. package/lib/ui/src/Transition/src/CreateTransition.d.ts +0 -47
  132. package/lib/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
  133. package/lib/ui/src/Tree/index.d.ts +0 -12
  134. package/lib/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
  135. package/lib/ui/src/Tree/src/TreeIcon.d.ts +0 -2
  136. package/lib/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
  137. package/lib/ui/src/Tree/src/types/tree.d.ts +0 -105
  138. package/lib/ui/src/Tree/style/index.d.ts +0 -0
  139. package/lib/ui/src/directives/clickOutside.d.ts +0 -3
  140. package/lib/ui/src/directives/index.d.ts +0 -1
  141. package/lib/ui/src/enums/sizeEnum.d.ts +0 -11
  142. package/lib/ui/types/global.d.ts +0 -102
  143. package/lib/ui/types/index.d.ts +0 -28
  144. /package/{lib/ui/src/Button/src/BasicButton.vue.d.ts → es/ui/src/Table/src/BasicTable.vue.d.ts} +0 -0
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 } 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, Descriptions, Drawer, Space, Upload, Avatar } from "ant-design-vue";
3
- import { propTypes, isFunction as isFunction$3, isString as isString$3, isArray as isArray$1, 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, isObject as isObject$2, 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, 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, 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, Descriptions, Drawer, Space, Upload, Avatar } from "ant-design-vue";
3
+ import { propTypes, isFunction as isFunction$3, isString as isString$3, isArray as isArray$1, 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, isObject as isObject$2, 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, 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$1, 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 { omit, get, isNil, cloneDeep, upperFirst as upperFirst$1, set, uniqBy, isEqual, difference, pick, merge } from "lodash-es";
6
6
  import { zxcvbn } from "@zxcvbn-ts/core";
@@ -5147,7 +5147,7 @@ const props$a = {
5147
5147
  };
5148
5148
  const _sfc_main$N = defineComponent({
5149
5149
  name: "CountButton",
5150
- components: { AButton: Button$1 },
5150
+ components: { AButton: Button },
5151
5151
  props: props$a,
5152
5152
  setup(props2) {
5153
5153
  const loading = ref(false);
@@ -5913,7 +5913,7 @@ const buttonProps = {
5913
5913
  };
5914
5914
  const __default__ = defineComponent({
5915
5915
  name: "AButton",
5916
- extends: Button$1,
5916
+ extends: Button,
5917
5917
  inheritAttrs: false
5918
5918
  });
5919
5919
  const _sfc_main$J = /* @__PURE__ */ defineComponent({
@@ -5933,7 +5933,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5933
5933
  });
5934
5934
  const getBindValue = computed(() => ({ ...unref(attrs), ...props2 }));
5935
5935
  return (_ctx, _cache) => {
5936
- return openBlock(), createBlock(unref(Button$1), mergeProps(unref(getBindValue), {
5936
+ return openBlock(), createBlock(unref(Button), mergeProps(unref(getBindValue), {
5937
5937
  class: unref(getButtonClass),
5938
5938
  onClick: _ctx.onClick
5939
5939
  }), {
@@ -5989,7 +5989,6 @@ const _sfc_main$I = defineComponent({
5989
5989
  };
5990
5990
  }
5991
5991
  });
5992
- const Button = withInstall(_sfc_main$J);
5993
5992
  const key$3 = Symbol();
5994
5993
  function createFormContext(context) {
5995
5994
  return createContext$1(context, key$3);
@@ -7733,7 +7732,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
7733
7732
  })
7734
7733
  ]), 1040, ["onCancel"]);
7735
7734
  }
7736
- const basicModal = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$o]]);
7735
+ const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$o]]);
7737
7736
  const projectName = {}.VITE_GLOB_APP_TITLE;
7738
7737
  function error(message) {
7739
7738
  throw new Error(`[${projectName} error]:${message}`);
@@ -7867,7 +7866,6 @@ const useModalInner = (callbackFn) => {
7867
7866
  }
7868
7867
  ];
7869
7868
  };
7870
- const BasicModal = withInstall(basicModal);
7871
7869
  const basicProps$2 = {
7872
7870
  model: {
7873
7871
  type: Object,
@@ -17689,7 +17687,6 @@ export {
17689
17687
  BasicTable,
17690
17688
  BasicTitle$1 as BasicTitle,
17691
17689
  _sfc_main$v as BasicTree,
17692
- Button,
17693
17690
  _sfc_main$1 as ClickOutSide,
17694
17691
  _sfc_main$S as CollapseContainer,
17695
17692
  CountButton,
@@ -17717,6 +17714,7 @@ export {
17717
17714
  TableDict,
17718
17715
  TableImg,
17719
17716
  ToolbarEnum,
17717
+ buttonProps,
17720
17718
  createLoading,
17721
17719
  treeEmits,
17722
17720
  treeProps,
@@ -1,51 +1,4 @@
1
- import type { ExtractPropTypes } from 'vue';
2
1
  import BasicButton from './src/BasicButton.vue';
3
2
  import PopConfirmButton from './src/PopConfirmButton.vue';
4
3
  import { buttonProps } from './src/props';
5
- export declare const Button: {
6
- new (...args: any[]): {
7
- $: import("vue").ComponentInternalInstance;
8
- $data: {};
9
- $props: Partial<{}> & Omit<Readonly<unknown> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
10
- $attrs: {
11
- [x: string]: unknown;
12
- };
13
- $refs: {
14
- [x: string]: unknown;
15
- };
16
- $slots: Readonly<{
17
- [name: string]: import("vue").Slot;
18
- }>;
19
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
20
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
21
- $emit: (event: string, ...args: any[]) => void;
22
- $el: any;
23
- $options: import("vue").ComponentOptionsBase<Readonly<unknown>, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
24
- beforeCreate?: (() => void) | (() => void)[];
25
- created?: (() => void) | (() => void)[];
26
- beforeMount?: (() => void) | (() => void)[];
27
- mounted?: (() => void) | (() => void)[];
28
- beforeUpdate?: (() => void) | (() => void)[];
29
- updated?: (() => void) | (() => void)[];
30
- activated?: (() => void) | (() => void)[];
31
- deactivated?: (() => void) | (() => void)[];
32
- beforeDestroy?: (() => void) | (() => void)[];
33
- beforeUnmount?: (() => void) | (() => void)[];
34
- destroyed?: (() => void) | (() => void)[];
35
- unmounted?: (() => void) | (() => void)[];
36
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
37
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
38
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
39
- };
40
- $forceUpdate: () => void;
41
- $nextTick: typeof import("vue").nextTick;
42
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
43
- } & Readonly<unknown> & object & {
44
- [x: string]: never;
45
- } & import("vue").MethodOptions & import("vue").ComponentCustomProperties & {};
46
- __isFragment?: never;
47
- __isTeleport?: never;
48
- __isSuspense?: never;
49
- } & import("vue").ComponentOptionsBase<Readonly<unknown>, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
50
- export { BasicButton, PopConfirmButton };
51
- export declare type ButtonProps = Partial<ExtractPropTypes<typeof buttonProps>>;
4
+ export { BasicButton, PopConfirmButton, buttonProps };
@@ -15,7 +15,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
15
15
  }, {
16
16
  prefixCls: string;
17
17
  src: import("vue").Ref<string>;
18
- register: import("../../Modal").RegisterFn;
18
+ register: import("../../Modal/src/typing").RegisterFn;
19
19
  previewSource: import("vue").Ref<string>;
20
20
  handleBeforeUpload: (file: File) => boolean;
21
21
  handleCropend: ({ imgBase64 }: CropendResult) => void;
@@ -12,33 +12,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
12
12
  default: boolean;
13
13
  };
14
14
  btnProps: {
15
- type: PropType<Partial<import("vue").ExtractPropTypes<{
16
- color: {
17
- type: globalThis.PropType<"" | "success" | "error" | "warning">;
18
- validator: (v: any) => boolean;
19
- default: string;
20
- };
21
- loading: {
22
- type: BooleanConstructor;
23
- };
24
- disabled: {
25
- type: BooleanConstructor;
26
- };
27
- preIcon: {
28
- type: StringConstructor;
29
- };
30
- postIcon: {
31
- type: StringConstructor;
32
- };
33
- iconSize: {
34
- type: NumberConstructor;
35
- default: number;
36
- };
37
- onClick: {
38
- type: globalThis.PropType<(...args: any[]) => any>;
39
- default: any;
40
- };
41
- }>>>;
15
+ type: PropType<ButtonProps>;
42
16
  };
43
17
  btnText: {
44
18
  type: StringConstructor;
@@ -52,7 +26,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
52
26
  };
53
27
  }, {
54
28
  prefixCls: string;
55
- register: import("../../Modal").RegisterFn;
29
+ register: import("../../Modal/src/typing").RegisterFn;
56
30
  openModal: any;
57
31
  getIconWidth: import("vue").ComputedRef<string>;
58
32
  sourceValue: import("vue").Ref<string>;
@@ -76,33 +50,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
76
50
  default: boolean;
77
51
  };
78
52
  btnProps: {
79
- type: PropType<Partial<import("vue").ExtractPropTypes<{
80
- color: {
81
- type: globalThis.PropType<"" | "success" | "error" | "warning">;
82
- validator: (v: any) => boolean;
83
- default: string;
84
- };
85
- loading: {
86
- type: BooleanConstructor;
87
- };
88
- disabled: {
89
- type: BooleanConstructor;
90
- };
91
- preIcon: {
92
- type: StringConstructor;
93
- };
94
- postIcon: {
95
- type: StringConstructor;
96
- };
97
- iconSize: {
98
- type: NumberConstructor;
99
- default: number;
100
- };
101
- onClick: {
102
- type: globalThis.PropType<(...args: any[]) => any>;
103
- default: any;
104
- };
105
- }>>>;
53
+ type: PropType<ButtonProps>;
106
54
  };
107
55
  btnText: {
108
56
  type: StringConstructor;
@@ -1,4 +1,3 @@
1
1
  import BasicDrawer from './src/BasicDrawer.vue';
2
- export * from './src/typing';
3
2
  export { useDrawer, useDrawerInner } from './src/useDrawer';
4
3
  export { BasicDrawer };
@@ -161,10 +161,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
161
161
  destroyOnClose: boolean;
162
162
  showCancelBtn: boolean;
163
163
  showOkBtn: boolean;
164
- closeFunc: any;
165
164
  showFooter: boolean;
166
165
  footerHeight: string | number;
167
166
  isDetail: boolean;
168
167
  showDetailBack: boolean;
168
+ closeFunc: any;
169
169
  }>;
170
170
  export default _sfc_main;
@@ -0,0 +1,4 @@
1
+ import BasicModal from './src/BasicModal.vue';
2
+ export { useModalContext } from './src/hooks/useModalContext';
3
+ export { useModal, useModalInner } from './src/hooks/useModal';
4
+ export { BasicModal };
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
2
+ [x: string]: unknown;
3
+ }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cancel"[], "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
4
+ [x: string]: unknown;
5
+ }>>>> & {
6
+ onCancel?: (...args: any[]) => any;
7
+ }, {
8
+ [x: number]: string;
9
+ } | {}>;
10
+ export default _default;
@@ -33,7 +33,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
33
33
  onCancel?: (...args: any[]) => any;
34
34
  onFullscreen?: (...args: any[]) => any;
35
35
  }, {
36
- canFullscreen: boolean;
37
36
  fullScreen: boolean;
37
+ canFullscreen: boolean;
38
38
  }>;
39
39
  export default _sfc_main;
@@ -0,0 +1,14 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
2
+ [x: string]: unknown;
3
+ }>>, {
4
+ handleOk: (e: Event) => void;
5
+ handleCancel: (e: Event) => void;
6
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ok" | "cancel")[], "ok" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
7
+ [x: string]: unknown;
8
+ }>>>> & {
9
+ onOk?: (...args: any[]) => any;
10
+ onCancel?: (...args: any[]) => any;
11
+ }, {
12
+ [x: number]: string;
13
+ } | {}>;
14
+ export default _sfc_main;
@@ -86,10 +86,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
86
86
  visible: boolean;
87
87
  loading: boolean;
88
88
  useWrapper: boolean;
89
- footerOffset: number;
90
89
  modalHeaderHeight: number;
91
90
  modalFooterHeight: number;
92
91
  minHeight: number;
92
+ footerOffset: number;
93
93
  fullScreen: boolean;
94
94
  }>;
95
95
  export default _sfc_main;
@@ -0,0 +1,34 @@
1
+ import type { PropType } from 'vue';
2
+ import VueTypes from 'vue-types';
3
+ export declare const modalProps: {
4
+ visible: {
5
+ type: BooleanConstructor;
6
+ };
7
+ scrollTop: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ height: {
12
+ type: NumberConstructor;
13
+ };
14
+ minHeight: {
15
+ type: NumberConstructor;
16
+ };
17
+ draggable: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ centered: {
22
+ type: BooleanConstructor;
23
+ };
24
+ cancelText: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ okText: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ closeFunc: PropType<() => Promise<boolean>>;
33
+ };
34
+ export declare const basicProps: VueTypes;
@@ -0,0 +1,2 @@
1
+ import VueTypes from 'vue-types';
2
+ export declare const basicProps: VueTypes;
package/lib/index.js CHANGED
@@ -5986,15 +5986,14 @@ const _sfc_main$I = vue.defineComponent({
5986
5986
  const btnBind = lodashEs.omit(bindValues, "title");
5987
5987
  if (btnBind.disabled)
5988
5988
  btnBind.color = "";
5989
- const Button2 = vue.h(_sfc_main$J, btnBind, utils.extendSlots(slots));
5989
+ const Button = vue.h(_sfc_main$J, btnBind, utils.extendSlots(slots));
5990
5990
  if (!props2.enable) {
5991
- return Button2;
5991
+ return Button;
5992
5992
  }
5993
- return vue.h(antDesignVue.Popconfirm, bindValues, { default: () => Button2 });
5993
+ return vue.h(antDesignVue.Popconfirm, bindValues, { default: () => Button });
5994
5994
  };
5995
5995
  }
5996
5996
  });
5997
- const Button = utils.withInstall(_sfc_main$J);
5998
5997
  const key$3 = Symbol();
5999
5998
  function createFormContext(context) {
6000
5999
  return use.createContext(context, key$3);
@@ -7738,7 +7737,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
7738
7737
  })
7739
7738
  ]), 1040, ["onCancel"]);
7740
7739
  }
7741
- const basicModal = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$o]]);
7740
+ const BasicModal = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$o]]);
7742
7741
  const projectName = {}.VITE_GLOB_APP_TITLE;
7743
7742
  function error(message) {
7744
7743
  throw new Error(`[${projectName} error]:${message}`);
@@ -7872,7 +7871,6 @@ const useModalInner = (callbackFn) => {
7872
7871
  }
7873
7872
  ];
7874
7873
  };
7875
- const BasicModal = utils.withInstall(basicModal);
7876
7874
  const basicProps$2 = {
7877
7875
  model: {
7878
7876
  type: Object,
@@ -17693,7 +17691,6 @@ exports.BasicModal = BasicModal;
17693
17691
  exports.BasicTable = BasicTable;
17694
17692
  exports.BasicTitle = BasicTitle$1;
17695
17693
  exports.BasicTree = _sfc_main$v;
17696
- exports.Button = Button;
17697
17694
  exports.ClickOutSide = _sfc_main$1;
17698
17695
  exports.CollapseContainer = _sfc_main$S;
17699
17696
  exports.CountButton = CountButton;
@@ -17721,6 +17718,7 @@ exports.TableChildren = Table;
17721
17718
  exports.TableDict = TableDict;
17722
17719
  exports.TableImg = TableImg;
17723
17720
  exports.ToolbarEnum = ToolbarEnum;
17721
+ exports.buttonProps = buttonProps;
17724
17722
  exports.createLoading = createLoading;
17725
17723
  exports.treeEmits = treeEmits;
17726
17724
  exports.treeProps = treeProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -32,7 +32,7 @@
32
32
  "vxe-table": "^4.3.6",
33
33
  "xe-utils": "^3.5.7"
34
34
  },
35
- "types": "lib/ui/index.d.ts",
35
+ "types": "es/ui/index.d.ts",
36
36
  "devDependencies": {
37
37
  "vite-plugin-windicss": "^1.8.10",
38
38
  "windicss": "^3.5.6"
package/lib/ui/index.d.ts DELETED
@@ -1,20 +0,0 @@
1
- export * from './src/Form';
2
- export * from './src/Container';
3
- export * from './src/Table';
4
- export * from './src/Modal';
5
- export * from './src/Page';
6
- export * from './src/Description';
7
- export * from './src/Scrollbar';
8
- export * from './src/Dropdown';
9
- export * from './src/Drawer';
10
- export * from './src/Cropper';
11
- export * from './src/CountTo';
12
- export * from './src/CountDown';
13
- export * from './src/Container';
14
- export * from './src/ClickOutSide';
15
- export * from './src/Button';
16
- export * from './src/Basic';
17
- export * from './src/Tree';
18
- export * from './src/Icon';
19
- export * from './src/Loading';
20
- export * from './src/StrengthMeter';
@@ -1,4 +0,0 @@
1
- import BasicArrow from './src/BasicArrow.vue';
2
- import BasicTitle from './src/BasicTitle.vue';
3
- import BasicHelp from './src/BasicHelp.vue';
4
- export { BasicTitle, BasicHelp, BasicArrow };
@@ -1,99 +0,0 @@
1
- import type { PropType } from 'vue';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- /**
4
- * Help text max-width
5
- * @default: 600px
6
- */
7
- maxWidth: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- /**
12
- * Whether to display the serial number
13
- * @default: false
14
- */
15
- showIndex: {
16
- type: BooleanConstructor;
17
- };
18
- /**
19
- * Help text font color
20
- * @default: #ffffff
21
- */
22
- color: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- /**
27
- * Help text font size
28
- * @default: 14px
29
- */
30
- fontSize: {
31
- type: StringConstructor;
32
- default: string;
33
- };
34
- /**
35
- * Help text list
36
- */
37
- placement: {
38
- type: StringConstructor;
39
- default: string;
40
- };
41
- /**
42
- * Help text list
43
- */
44
- text: {
45
- type: PropType<string | string[]>;
46
- };
47
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
- /**
49
- * Help text max-width
50
- * @default: 600px
51
- */
52
- maxWidth: {
53
- type: StringConstructor;
54
- default: string;
55
- };
56
- /**
57
- * Whether to display the serial number
58
- * @default: false
59
- */
60
- showIndex: {
61
- type: BooleanConstructor;
62
- };
63
- /**
64
- * Help text font color
65
- * @default: #ffffff
66
- */
67
- color: {
68
- type: StringConstructor;
69
- default: string;
70
- };
71
- /**
72
- * Help text font size
73
- * @default: 14px
74
- */
75
- fontSize: {
76
- type: StringConstructor;
77
- default: string;
78
- };
79
- /**
80
- * Help text list
81
- */
82
- placement: {
83
- type: StringConstructor;
84
- default: string;
85
- };
86
- /**
87
- * Help text list
88
- */
89
- text: {
90
- type: PropType<string | string[]>;
91
- };
92
- }>>, {
93
- placement: string;
94
- color: string;
95
- maxWidth: string;
96
- showIndex: boolean;
97
- fontSize: string;
98
- }>;
99
- export default _sfc_main;
@@ -1,117 +0,0 @@
1
- import type { PropType } from 'vue';
2
- declare const _sfc_main: import("vue").DefineComponent<{
3
- /**
4
- * Help text list or string
5
- * @default: ''
6
- */
7
- helpMessage: {
8
- type: PropType<string | string[]>;
9
- default: string;
10
- };
11
- /**
12
- * Whether the color block on the left side of the title
13
- * @default: false
14
- */
15
- span: {
16
- type: BooleanConstructor;
17
- };
18
- /**
19
- * Whether to default the text, that is, not bold
20
- * @default: false
21
- */
22
- normal: {
23
- type: BooleanConstructor;
24
- };
25
- }, {
26
- props: any;
27
- prefixCls: string;
28
- slots: Readonly<{
29
- [name: string]: import("vue").Slot;
30
- }>;
31
- getClass: import("vue").ComputedRef<(string | {
32
- [x: string]: import("vue").Slot;
33
- } | {
34
- [x: string]: boolean;
35
- })[]>;
36
- BasicHelp: import("vue").DefineComponent<{
37
- maxWidth: {
38
- type: StringConstructor;
39
- default: string;
40
- };
41
- showIndex: {
42
- type: BooleanConstructor;
43
- };
44
- color: {
45
- type: StringConstructor;
46
- default: string;
47
- };
48
- fontSize: {
49
- type: StringConstructor;
50
- default: string;
51
- };
52
- placement: {
53
- type: StringConstructor;
54
- default: string;
55
- };
56
- text: {
57
- type: PropType<string | string[]>;
58
- };
59
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
- maxWidth: {
61
- type: StringConstructor;
62
- default: string;
63
- };
64
- showIndex: {
65
- type: BooleanConstructor;
66
- };
67
- color: {
68
- type: StringConstructor;
69
- default: string;
70
- };
71
- fontSize: {
72
- type: StringConstructor;
73
- default: string;
74
- };
75
- placement: {
76
- type: StringConstructor;
77
- default: string;
78
- };
79
- text: {
80
- type: PropType<string | string[]>;
81
- };
82
- }>>, {
83
- placement: string;
84
- color: string;
85
- maxWidth: string;
86
- showIndex: boolean;
87
- fontSize: string;
88
- }>;
89
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
90
- /**
91
- * Help text list or string
92
- * @default: ''
93
- */
94
- helpMessage: {
95
- type: PropType<string | string[]>;
96
- default: string;
97
- };
98
- /**
99
- * Whether the color block on the left side of the title
100
- * @default: false
101
- */
102
- span: {
103
- type: BooleanConstructor;
104
- };
105
- /**
106
- * Whether to default the text, that is, not bold
107
- * @default: false
108
- */
109
- normal: {
110
- type: BooleanConstructor;
111
- };
112
- }>>, {
113
- span: boolean;
114
- helpMessage: string | string[];
115
- normal: boolean;
116
- }>;
117
- export default _sfc_main;