@fmdevui/fm-dev 1.0.79 → 1.0.81

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 (48) hide show
  1. package/es/component.mjs +3 -2
  2. package/es/core/hook/useVxeTableOptionsHook.d.ts +2 -2
  3. package/es/core/ui/components/fmbutton/index.vue.d.ts +30 -0
  4. package/es/core/ui/components/fmbutton/style/css.d.ts +1 -0
  5. package/es/core/ui/components/fmbutton/style/index.d.ts +1 -0
  6. package/es/core/ui/components/fmbutton/type.d.ts +10 -0
  7. package/es/core/ui/components/index.d.ts +53 -5
  8. package/es/core/ui/components/querycondition/style/css.d.ts +1 -1
  9. package/es/core/ui/components/selecttable/index.vue.d.ts +3 -3
  10. package/es/core/ui/components/selecttable/type.d.ts +1 -1
  11. package/es/index.mjs +1 -1
  12. package/es/packages/core/hook/useVxeTableOptionsHook.mjs +5 -1
  13. package/es/packages/core/index.mjs +1 -1
  14. package/es/packages/core/ui/components/fmbutton/index.vue.mjs +5 -0
  15. package/es/packages/core/ui/components/fmbutton/index.vue2.mjs +73 -0
  16. package/es/packages/core/ui/components/fmbutton/style/css.mjs +1 -0
  17. package/es/packages/core/ui/components/fmbutton/style/index.mjs +1 -0
  18. package/es/packages/core/ui/components/fmbutton/type.mjs +1 -0
  19. package/es/packages/core/ui/components/index.mjs +5 -1
  20. package/es/packages/core/ui/components/querycondition/style/css.mjs +1 -1
  21. package/index.js +110 -33
  22. package/index.min.js +25 -25
  23. package/index.min.mjs +26 -26
  24. package/index.mjs +110 -34
  25. package/lib/component.js +2 -1
  26. package/lib/core/hook/useVxeTableOptionsHook.d.ts +2 -2
  27. package/lib/core/ui/components/fmbutton/index.vue.d.ts +30 -0
  28. package/lib/core/ui/components/fmbutton/style/css.d.ts +1 -0
  29. package/lib/core/ui/components/fmbutton/style/index.d.ts +1 -0
  30. package/lib/core/ui/components/fmbutton/type.d.ts +10 -0
  31. package/lib/core/ui/components/index.d.ts +53 -5
  32. package/lib/core/ui/components/querycondition/style/css.d.ts +1 -1
  33. package/lib/core/ui/components/selecttable/index.vue.d.ts +3 -3
  34. package/lib/core/ui/components/selecttable/type.d.ts +1 -1
  35. package/lib/index.js +1 -0
  36. package/lib/packages/core/hook/useVxeTableOptionsHook.js +5 -1
  37. package/lib/packages/core/index.js +1 -0
  38. package/lib/packages/core/ui/components/fmbutton/index.vue.js +9 -0
  39. package/lib/packages/core/ui/components/fmbutton/index.vue2.js +77 -0
  40. package/lib/packages/core/ui/components/fmbutton/style/css.js +4 -0
  41. package/lib/packages/core/ui/components/fmbutton/style/index.js +4 -0
  42. package/lib/packages/core/ui/components/fmbutton/type.js +2 -0
  43. package/lib/packages/core/ui/components/index.js +5 -0
  44. package/lib/packages/core/ui/components/querycondition/style/css.js +1 -1
  45. package/package.json +1 -1
  46. package/theme-chalk/src/button.scss +23 -0
  47. package/theme-chalk/t-button.css +1 -0
  48. /package/es/{defaults.css → component.css} +0 -0
package/es/component.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FmLogin } from './packages/core/ui/login/index.mjs';
2
- import { FmTransfer, FmNoticeBar, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol } from './packages/core/ui/components/index.mjs';
2
+ import { FmTransfer, FmNoticeBar, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol, FmButton } from './packages/core/ui/components/index.mjs';
3
3
 
4
4
  const plugins = [
5
5
  FmLogin,
@@ -14,7 +14,8 @@ const plugins = [
14
14
  FmMoreChoose,
15
15
  FmRenderComp,
16
16
  FmSelectTable,
17
- FmRenderCol
17
+ FmRenderCol,
18
+ FmButton
18
19
  ];
19
20
 
20
21
  export { plugins as default };
@@ -729,8 +729,8 @@ export declare const useVxeTable: <T>(opt: iVxeOption, extras?: VxeGridProps<T>)
729
729
  round?: import("vxe-pc-ui").VxeButtonPropTypes.Round | undefined;
730
730
  loading?: import("vxe-pc-ui").VxeButtonPropTypes.Loading | undefined;
731
731
  align?: import("vxe-pc-ui").VxeButtonPropTypes.Align | undefined;
732
- className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
733
732
  content?: import("vxe-pc-ui").VxeButtonPropTypes.Content | undefined;
733
+ className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
734
734
  routerLink?: {
735
735
  path?: string | undefined;
736
736
  name?: string | number | null | undefined;
@@ -844,8 +844,8 @@ export declare const useVxeTable: <T>(opt: iVxeOption, extras?: VxeGridProps<T>)
844
844
  round?: import("vxe-pc-ui").VxeButtonPropTypes.Round | undefined;
845
845
  loading?: import("vxe-pc-ui").VxeButtonPropTypes.Loading | undefined;
846
846
  align?: import("vxe-pc-ui").VxeButtonPropTypes.Align | undefined;
847
- className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
848
847
  content?: import("vxe-pc-ui").VxeButtonPropTypes.Content | undefined;
848
+ className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
849
849
  routerLink?: {
850
850
  path?: string | undefined;
851
851
  name?: string | number | null | undefined;
@@ -0,0 +1,30 @@
1
+ import { FmButtonSelfProps as FmButtonProps } from './type';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<FmButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ click: (...args: any[]) => void;
15
+ }, string, PublicProps, Readonly<FmButtonProps> & Readonly<{
16
+ onClick?: ((...args: any[]) => any) | undefined;
17
+ }>, {
18
+ time: number;
19
+ placement: string;
20
+ tip: string;
21
+ tipProps: Record<string, any>;
22
+ isDebounce: boolean;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ import "fm-dev/theme-chalk/t-button.css";
@@ -0,0 +1 @@
1
+ import "fm-dev/theme-chalk/src/button.scss";
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from 'element-plus';
2
+ import { Mutable } from 'element-plus/es/utils';
3
+ export interface FmButtonSelfProps {
4
+ time?: number;
5
+ tip?: string;
6
+ placement?: string;
7
+ tipProps?: Record<string, any>;
8
+ isDebounce?: boolean;
9
+ }
10
+ export type FmButtonProps = FmButtonSelfProps & Partial<Mutable<ButtonProps>>;
@@ -3,9 +3,11 @@ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps,
3
3
  import { TreeKey } from 'element-plus';
4
4
  import { TreeKey } from 'element-plus/es/components/tree/src/tree.type';
5
5
  import { TQueryConditionProps } from './querycondition/type';
6
- import { TSelectTableProps } from './selecttable/type';
6
+ import { FmSelectTableProps } from './selecttable/type';
7
+ import { FmButtonSelfProps } from './fmbutton/type';
7
8
  export * from './selecttable/type';
8
9
  export * from './selecttable/ClickOutside';
10
+ export * from './fmbutton/type';
9
11
  declare const FmTransfer: DefineComponent<ExtractPropTypes<{
10
12
  leftTitle: StringConstructor;
11
13
  rightTitle: StringConstructor;
@@ -1100,7 +1102,7 @@ declare const FmRenderComp: DefineComponent<ExtractPropTypes<{
1100
1102
  form: ObjectConstructor;
1101
1103
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1102
1104
  declare const FmSelectTable: {
1103
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< TSelectTableProps> & Readonly<{
1105
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FmSelectTableProps> & Readonly<{
1104
1106
  "onPage-change"?: ((val: any) => any) | undefined;
1105
1107
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
1106
1108
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1275,7 +1277,7 @@ declare const FmSelectTable: {
1275
1277
  C: {};
1276
1278
  M: {};
1277
1279
  Defaults: {};
1278
- }, Readonly< TSelectTableProps> & Readonly<{
1280
+ }, Readonly< FmSelectTableProps> & Readonly<{
1279
1281
  "onPage-change"?: ((val: any) => any) | undefined;
1280
1282
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
1281
1283
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1438,7 +1440,7 @@ declare const FmSelectTable: {
1438
1440
  __isFragment?: never;
1439
1441
  __isTeleport?: never;
1440
1442
  __isSuspense?: never;
1441
- } & ComponentOptionsBase<Readonly< TSelectTableProps> & Readonly<{
1443
+ } & ComponentOptionsBase<Readonly< FmSelectTableProps> & Readonly<{
1442
1444
  "onPage-change"?: ((val: any) => any) | undefined;
1443
1445
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
1444
1446
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1628,4 +1630,50 @@ declare const FmRenderCol: DefineComponent<ExtractPropTypes<{
1628
1630
  }>> & Readonly<{}>, {
1629
1631
  column: Record<string, any>;
1630
1632
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1631
- export { FmTransfer, FmNoticeBar, FmDragImg, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol, elSvg };
1633
+ declare const FmButton: {
1634
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FmButtonSelfProps> & Readonly<{
1635
+ onClick?: ((...args: any[]) => any) | undefined;
1636
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1637
+ click: (...args: any[]) => void;
1638
+ }, PublicProps, {
1639
+ time: number;
1640
+ placement: string;
1641
+ tip: string;
1642
+ tipProps: Record<string, any>;
1643
+ isDebounce: boolean;
1644
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1645
+ P: {};
1646
+ B: {};
1647
+ D: {};
1648
+ C: {};
1649
+ M: {};
1650
+ Defaults: {};
1651
+ }, Readonly< FmButtonSelfProps> & Readonly<{
1652
+ onClick?: ((...args: any[]) => any) | undefined;
1653
+ }>, {}, {}, {}, {}, {
1654
+ time: number;
1655
+ placement: string;
1656
+ tip: string;
1657
+ tipProps: Record<string, any>;
1658
+ isDebounce: boolean;
1659
+ }>;
1660
+ __isFragment?: never;
1661
+ __isTeleport?: never;
1662
+ __isSuspense?: never;
1663
+ } & ComponentOptionsBase<Readonly< FmButtonSelfProps> & Readonly<{
1664
+ onClick?: ((...args: any[]) => any) | undefined;
1665
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1666
+ click: (...args: any[]) => void;
1667
+ }, string, {
1668
+ time: number;
1669
+ placement: string;
1670
+ tip: string;
1671
+ tipProps: Record<string, any>;
1672
+ isDebounce: boolean;
1673
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1674
+ $slots: {
1675
+ default?(_: {}): any;
1676
+ default?(_: {}): any;
1677
+ };
1678
+ });
1679
+ export { FmTransfer, FmNoticeBar, FmDragImg, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol, FmButton, elSvg };
@@ -1 +1 @@
1
- import "fm-dev/theme-chalk/query-condition.css";
1
+ import "fm-dev/theme-chalk/t-query-condition.css";
@@ -1,4 +1,4 @@
1
- import { TSelectTableProps } from './type';
1
+ import { FmSelectTableProps } from './type';
2
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  export type Emits = {
4
4
  (event: "page-change", val: any): void;
@@ -12,7 +12,7 @@ export type Emits = {
12
12
  };
13
13
  declare function __VLS_template(): any;
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: DefineComponent<TSelectTableProps, {
15
+ declare const __VLS_component: DefineComponent<FmSelectTableProps, {
16
16
  focus: () => void;
17
17
  blur: () => void;
18
18
  clear: () => void;
@@ -117,7 +117,7 @@ declare const __VLS_component: DefineComponent<TSelectTableProps, {
117
117
  "input-blur": () => any;
118
118
  "input-clear": () => any;
119
119
  "input-click": () => any;
120
- }, string, PublicProps, Readonly<TSelectTableProps> & Readonly<{
120
+ }, string, PublicProps, Readonly<FmSelectTableProps> & Readonly<{
121
121
  "onPage-change"?: ((val: any) => any) | undefined;
122
122
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
123
123
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1,4 +1,4 @@
1
- export interface TSelectTableProps {
1
+ export interface FmSelectTableProps {
2
2
  modelValue?: any;
3
3
  inputValue?: any;
4
4
  defaultSelectVal?: any[];
package/es/index.mjs CHANGED
@@ -3,7 +3,7 @@ export { default as emitter } from './packages/core/utils/emit/index.mjs';
3
3
  export { default as setIntroduction } from './packages/core/utils/comm/setIconfont.mjs';
4
4
  import './packages/core/index.mjs';
5
5
  export { version } from './version.mjs';
6
- export { FmAutocomplete, FmDragImg, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect } from './packages/core/ui/components/index.mjs';
6
+ export { FmAutocomplete, FmButton, FmDragImg, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect } from './packages/core/ui/components/index.mjs';
7
7
  export { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
8
8
  export { FmLogin } from './packages/core/ui/login/index.mjs';
9
9
  export { NextLoading } from './packages/core/ui/loading/index.mjs';
@@ -80,8 +80,12 @@ const useVxeTable = (opt, extras) => {
80
80
  // 是否启用 localStorage 本地保存,会将列操作状态保留在本地(需要有 id)
81
81
  visible: true,
82
82
  // 启用显示/隐藏列状态
83
- resizable: true
83
+ resizable: true,
84
84
  // 启用列宽状态
85
+ sort: true,
86
+ // 启用列顺序缓存
87
+ fixed: true
88
+ // 启用冻结列状态缓存
85
89
  }
86
90
  }
87
91
  });
@@ -1,4 +1,4 @@
1
- export { FmAutocomplete, FmDragImg, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect } from './ui/components/index.mjs';
1
+ export { FmAutocomplete, FmButton, FmDragImg, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect } from './ui/components/index.mjs';
2
2
  export { FmLogin } from './ui/login/index.mjs';
3
3
  export { NextLoading } from './ui/loading/index.mjs';
4
4
  export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum } from './api/index.mjs';
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './index.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,73 @@
1
+ import { defineComponent, ref, resolveComponent, createBlock, openBlock, mergeProps, withCtx, createVNode, renderSlot } from 'vue';
2
+
3
+ var _sfc_main = /* @__PURE__ */ defineComponent({
4
+ ...{
5
+ name: "FmButton"
6
+ },
7
+ __name: "index",
8
+ props: {
9
+ time: { default: 1e3 },
10
+ tip: { default: "" },
11
+ placement: { default: "top" },
12
+ tipProps: { default: () => ({}) },
13
+ isDebounce: { type: Boolean, default: true }
14
+ },
15
+ emits: ["click"],
16
+ setup(__props, { emit: __emit }) {
17
+ const props = __props;
18
+ const emits = __emit;
19
+ const record = ref(0);
20
+ const handleClick = () => {
21
+ if (!props.isDebounce) return emits("click");
22
+ const newTime = /* @__PURE__ */ new Date();
23
+ if (newTime.getTime() - record.value > props.time) {
24
+ emits("click");
25
+ }
26
+ record.value = newTime.getTime();
27
+ };
28
+ return (_ctx, _cache) => {
29
+ const _component_el_button = resolveComponent("el-button");
30
+ const _component_el_tooltip = resolveComponent("el-tooltip");
31
+ return _ctx.tip ? (openBlock(), createBlock(_component_el_tooltip, mergeProps({
32
+ key: 0,
33
+ content: _ctx.tip,
34
+ placement: _ctx.placement
35
+ }, _ctx.tipProps), {
36
+ default: withCtx(() => [
37
+ createVNode(
38
+ _component_el_button,
39
+ mergeProps(_ctx.$attrs, {
40
+ class: "fm-button-tip",
41
+ onClick: handleClick
42
+ }),
43
+ {
44
+ default: withCtx(() => [
45
+ renderSlot(_ctx.$slots, "default")
46
+ ]),
47
+ _: 3
48
+ /* FORWARDED */
49
+ },
50
+ 16
51
+ /* FULL_PROPS */
52
+ )
53
+ ]),
54
+ _: 3
55
+ /* FORWARDED */
56
+ }, 16, ["content", "placement"])) : (openBlock(), createBlock(
57
+ _component_el_button,
58
+ mergeProps({ key: 1 }, _ctx.$attrs, { onClick: handleClick }),
59
+ {
60
+ default: withCtx(() => [
61
+ renderSlot(_ctx.$slots, "default")
62
+ ]),
63
+ _: 3
64
+ /* FORWARDED */
65
+ },
66
+ 16
67
+ /* FULL_PROPS */
68
+ ));
69
+ };
70
+ }
71
+ });
72
+
73
+ export { _sfc_main as default };
@@ -0,0 +1 @@
1
+ import 'fm-dev/theme-chalk/t-button.css';
@@ -0,0 +1 @@
1
+ import 'fm-dev/theme-chalk/src/button.scss';
@@ -11,8 +11,10 @@ import './querycondition/moreChoose.vue.mjs';
11
11
  import './querycondition/renderComp.vue.mjs';
12
12
  import './selecttable/index.vue.mjs';
13
13
  import './selecttable/renderCol.vue.mjs';
14
+ import './fmbutton/index.vue.mjs';
14
15
  import './selecttable/type.mjs';
15
16
  import './selecttable/ClickOutside.mjs';
17
+ import './fmbutton/type.mjs';
16
18
  export { elSvg } from './svgIcon/index.mjs';
17
19
  import _sfc_main from './transfer/index.vue2.mjs';
18
20
  import _sfc_main$1 from './noticeBar/index.vue2.mjs';
@@ -26,6 +28,7 @@ import _sfc_main$8 from './querycondition/moreChoose.vue2.mjs';
26
28
  import _sfc_main$9 from './querycondition/renderComp.vue2.mjs';
27
29
  import _sfc_main$a from './selecttable/index.vue2.mjs';
28
30
  import _sfc_main$b from './selecttable/renderCol.vue2.mjs';
31
+ import _sfc_main$c from './fmbutton/index.vue2.mjs';
29
32
 
30
33
  const FmTransfer = _sfc_main;
31
34
  const FmNoticeBar = _sfc_main$1;
@@ -40,5 +43,6 @@ const FmMoreChoose = _sfc_main$8;
40
43
  const FmRenderComp = _sfc_main$9;
41
44
  const FmSelectTable = _sfc_main$a;
42
45
  const FmRenderCol = _sfc_main$b;
46
+ const FmButton = _sfc_main$c;
43
47
 
44
- export { FmAutocomplete, FmDragImg, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect };
48
+ export { FmAutocomplete, FmButton, FmDragImg, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect };
@@ -1 +1 @@
1
- import 'fm-dev/theme-chalk/query-condition.css';
1
+ import 'fm-dev/theme-chalk/t-query-condition.css';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.79 */
1
+ /*! fm-dev v1.0.81 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
@@ -15,7 +15,7 @@
15
15
  const _hoisted_8 = { class: "fm-transfer-panel" };
16
16
  const _hoisted_9 = { class: "fm-transfer-panel__header" };
17
17
  const _hoisted_10 = { class: "fm-transfer-panel__body" };
18
- var _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
18
+ var _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19
19
  ...{
20
20
  name: "FmTransfer"
21
21
  },
@@ -374,7 +374,7 @@
374
374
 
375
375
  const _hoisted_1$6 = { class: "notice-bar-warp-text-box" };
376
376
  const _hoisted_2$4 = ["innerHTML"];
377
- var _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
377
+ var _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
378
378
  ...{
379
379
  name: "FmNoticeBar"
380
380
  },
@@ -497,7 +497,7 @@
497
497
  }
498
498
  });
499
499
 
500
- var _sfc_main$c = {
500
+ var _sfc_main$d = {
501
501
  name: "dragVerify",
502
502
  props: {
503
503
  isPassing: {
@@ -879,9 +879,9 @@
879
879
  )
880
880
  ]);
881
881
  }
882
- var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
882
+ var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
883
883
 
884
- var _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
884
+ var _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
885
885
  ...{
886
886
  name: "Fmselect"
887
887
  },
@@ -23780,7 +23780,7 @@
23780
23780
  };
23781
23781
 
23782
23782
  const _hoisted_1$4 = { style: { "font-size": "14px", "line-height": "30px" } };
23783
- var _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
23783
+ var _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
23784
23784
  ...{
23785
23785
  name: "FmAutocomplete"
23786
23786
  },
@@ -36155,7 +36155,7 @@
36155
36155
  };
36156
36156
  });
36157
36157
 
36158
- var _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
36158
+ var _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
36159
36159
  ...{
36160
36160
  name: "Fminputdropdown"
36161
36161
  },
@@ -36333,7 +36333,7 @@
36333
36333
  const _hoisted_3$2 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
36334
36334
  const _hoisted_4$2 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
36335
36335
  const _hoisted_5$1 = { style: { "margin-bottom": "45px" } };
36336
- var _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
36336
+ var _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
36337
36337
  ...{
36338
36338
  name: "FmTree"
36339
36339
  },
@@ -36564,7 +36564,7 @@
36564
36564
  }
36565
36565
  });
36566
36566
 
36567
- var _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
36567
+ var _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
36568
36568
  ...{
36569
36569
  name: "Fmdatepicker"
36570
36570
  },
@@ -36613,7 +36613,7 @@
36613
36613
  }
36614
36614
  });
36615
36615
 
36616
- var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
36616
+ var _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
36617
36617
  ...{
36618
36618
  name: "RenderComp"
36619
36619
  },
@@ -36638,7 +36638,7 @@
36638
36638
  const _hoisted_3$1 = { class: "check-box" };
36639
36639
  const _hoisted_4$1 = { class: "more_dropdown_icon" };
36640
36640
  const _hoisted_5 = { class: "out_box" };
36641
- var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
36641
+ var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
36642
36642
  ...{
36643
36643
  name: "MoreChoose"
36644
36644
  },
@@ -36967,7 +36967,7 @@
36967
36967
  };
36968
36968
  }
36969
36969
 
36970
- var _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
36970
+ var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
36971
36971
  ...{
36972
36972
  name: "FmQueryCondition"
36973
36973
  },
@@ -37358,7 +37358,7 @@
37358
37358
  opt.labelRender ? {
37359
37359
  name: "label",
37360
37360
  fn: vue.withCtx(() => [
37361
- vue.createVNode(_sfc_main$6, {
37361
+ vue.createVNode(_sfc_main$7, {
37362
37362
  form: vue.unref(queryState).form,
37363
37363
  render: opt.labelRender
37364
37364
  }, null, 8, ["form", "render"])
@@ -37453,7 +37453,7 @@
37453
37453
  _: 1
37454
37454
  /* STABLE */
37455
37455
  })) : vue.createCommentVNode("v-if", true),
37456
- vue.createVNode(_sfc_main$5, {
37456
+ vue.createVNode(_sfc_main$6, {
37457
37457
  isDropDownSelectMore: _ctx.isDropDownSelectMore,
37458
37458
  moreCheckList: _ctx.moreCheckList,
37459
37459
  popoverAttrsBind: popoverAttrsBind.value,
@@ -37479,7 +37479,7 @@
37479
37479
  }
37480
37480
  });
37481
37481
 
37482
- var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
37482
+ var _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
37483
37483
  ...{
37484
37484
  name: "RenderCol"
37485
37485
  },
@@ -37647,7 +37647,7 @@
37647
37647
  key: 0,
37648
37648
  class: "fm-table-select__page"
37649
37649
  };
37650
- var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
37650
+ var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
37651
37651
  ...{
37652
37652
  name: "FmSelectTable"
37653
37653
  },
@@ -38252,7 +38252,7 @@
38252
38252
  [
38253
38253
  _ctx.isShowQuery ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
38254
38254
  vue.createVNode(
38255
- _sfc_main$4,
38255
+ _sfc_main$5,
38256
38256
  vue.mergeProps({
38257
38257
  ref_key: "tQueryConditionRef",
38258
38258
  ref: tQueryConditionRef,
@@ -38379,7 +38379,7 @@
38379
38379
  }, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
38380
38380
  default: vue.withCtx((scope) => [
38381
38381
  vue.createCommentVNode(" render\u65B9\u5F0F "),
38382
- item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$3, {
38382
+ item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$4, {
38383
38383
  key: 0,
38384
38384
  column: item,
38385
38385
  row: scope.row,
@@ -38443,6 +38443,76 @@
38443
38443
  }
38444
38444
  });
38445
38445
 
38446
+ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
38447
+ ...{
38448
+ name: "FmButton"
38449
+ },
38450
+ __name: "index",
38451
+ props: {
38452
+ time: { default: 1e3 },
38453
+ tip: { default: "" },
38454
+ placement: { default: "top" },
38455
+ tipProps: { default: () => ({}) },
38456
+ isDebounce: { type: Boolean, default: true }
38457
+ },
38458
+ emits: ["click"],
38459
+ setup(__props, { emit: __emit }) {
38460
+ const props = __props;
38461
+ const emits = __emit;
38462
+ const record = vue.ref(0);
38463
+ const handleClick = () => {
38464
+ if (!props.isDebounce) return emits("click");
38465
+ const newTime = /* @__PURE__ */ new Date();
38466
+ if (newTime.getTime() - record.value > props.time) {
38467
+ emits("click");
38468
+ }
38469
+ record.value = newTime.getTime();
38470
+ };
38471
+ return (_ctx, _cache) => {
38472
+ const _component_el_button = vue.resolveComponent("el-button");
38473
+ const _component_el_tooltip = vue.resolveComponent("el-tooltip");
38474
+ return _ctx.tip ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, vue.mergeProps({
38475
+ key: 0,
38476
+ content: _ctx.tip,
38477
+ placement: _ctx.placement
38478
+ }, _ctx.tipProps), {
38479
+ default: vue.withCtx(() => [
38480
+ vue.createVNode(
38481
+ _component_el_button,
38482
+ vue.mergeProps(_ctx.$attrs, {
38483
+ class: "fm-button-tip",
38484
+ onClick: handleClick
38485
+ }),
38486
+ {
38487
+ default: vue.withCtx(() => [
38488
+ vue.renderSlot(_ctx.$slots, "default")
38489
+ ]),
38490
+ _: 3
38491
+ /* FORWARDED */
38492
+ },
38493
+ 16
38494
+ /* FULL_PROPS */
38495
+ )
38496
+ ]),
38497
+ _: 3
38498
+ /* FORWARDED */
38499
+ }, 16, ["content", "placement"])) : (vue.openBlock(), vue.createBlock(
38500
+ _component_el_button,
38501
+ vue.mergeProps({ key: 1 }, _ctx.$attrs, { onClick: handleClick }),
38502
+ {
38503
+ default: vue.withCtx(() => [
38504
+ vue.renderSlot(_ctx.$slots, "default")
38505
+ ]),
38506
+ _: 3
38507
+ /* FORWARDED */
38508
+ },
38509
+ 16
38510
+ /* FULL_PROPS */
38511
+ ));
38512
+ };
38513
+ }
38514
+ });
38515
+
38446
38516
  const _hoisted_1 = ["src"];
38447
38517
  var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
38448
38518
  ...{
@@ -38542,19 +38612,20 @@
38542
38612
  }
38543
38613
  }
38544
38614
 
38545
- const FmTransfer = _sfc_main$e;
38546
- const FmNoticeBar = _sfc_main$d;
38615
+ const FmTransfer = _sfc_main$f;
38616
+ const FmNoticeBar = _sfc_main$e;
38547
38617
  const FmDragImg = dragimg;
38548
- const Fmselect = _sfc_main$b;
38549
- const FmAutocomplete = _sfc_main$a;
38550
- const Fminputdropdown = _sfc_main$9;
38551
- const Fmdatepicker = _sfc_main$7;
38552
- const FmTree = _sfc_main$8;
38553
- const FmQueryCondition = _sfc_main$4;
38554
- const FmMoreChoose = _sfc_main$5;
38555
- const FmRenderComp = _sfc_main$6;
38556
- const FmSelectTable = _sfc_main$2;
38557
- const FmRenderCol = _sfc_main$3;
38618
+ const Fmselect = _sfc_main$c;
38619
+ const FmAutocomplete = _sfc_main$b;
38620
+ const Fminputdropdown = _sfc_main$a;
38621
+ const Fmdatepicker = _sfc_main$8;
38622
+ const FmTree = _sfc_main$9;
38623
+ const FmQueryCondition = _sfc_main$5;
38624
+ const FmMoreChoose = _sfc_main$6;
38625
+ const FmRenderComp = _sfc_main$7;
38626
+ const FmSelectTable = _sfc_main$3;
38627
+ const FmRenderCol = _sfc_main$4;
38628
+ const FmButton = _sfc_main$2;
38558
38629
 
38559
38630
  const makeInstaller = (components = []) => {
38560
38631
  const install = (app) => {
@@ -38612,7 +38683,8 @@
38612
38683
  FmMoreChoose,
38613
38684
  FmRenderComp,
38614
38685
  FmSelectTable,
38615
- FmRenderCol
38686
+ FmRenderCol,
38687
+ FmButton
38616
38688
  ];
38617
38689
 
38618
38690
  var installer = makeInstaller([...plugins]);
@@ -55404,8 +55476,12 @@
55404
55476
  // 是否启用 localStorage 本地保存,会将列操作状态保留在本地(需要有 id)
55405
55477
  visible: true,
55406
55478
  // 启用显示/隐藏列状态
55407
- resizable: true
55479
+ resizable: true,
55408
55480
  // 启用列宽状态
55481
+ sort: true,
55482
+ // 启用列顺序缓存
55483
+ fixed: true
55484
+ // 启用冻结列状态缓存
55409
55485
  }
55410
55486
  }
55411
55487
  });
@@ -55441,6 +55517,7 @@
55441
55517
  exports.AccountTypeEnum = AccountTypeEnum;
55442
55518
  exports.AppItem = AppItem;
55443
55519
  exports.FmAutocomplete = FmAutocomplete;
55520
+ exports.FmButton = FmButton;
55444
55521
  exports.FmDragImg = FmDragImg;
55445
55522
  exports.FmLogin = FmLogin;
55446
55523
  exports.FmMoreChoose = FmMoreChoose;