@qqt-product/ui 14.1.0 → 16.0.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.
Files changed (119) hide show
  1. package/dist/index.es.js +74893 -72513
  2. package/dist/index.umd.js +143 -161
  3. package/dist/lib/components/audit-modal/index.d.ts +4 -4
  4. package/dist/lib/components/audit-modal/src/audit-modal.vue.d.ts +4 -4
  5. package/dist/lib/components/audit-modal/src/component/addNodeHistoryModal.vue.d.ts +4 -4
  6. package/dist/lib/components/audit-modal/src/component/afterSignModal.vue.d.ts +232 -0
  7. package/dist/lib/components/audit-modal/src/component/approvalOpinionModal.vue.d.ts +15 -4
  8. package/dist/lib/components/basicTitle/index.d.ts +96 -0
  9. package/dist/lib/components/basicTitle/src/BasicHelp.d.ts +99 -0
  10. package/dist/lib/components/basicTitle/src/BasicTitle.vue.d.ts +123 -0
  11. package/dist/lib/components/breadcrumb/index.d.ts +2 -7
  12. package/dist/lib/components/card-list-layout/index.d.ts +1 -1
  13. package/dist/lib/components/card-list-layout/src/index.vue.d.ts +1 -1
  14. package/dist/lib/components/cascader/index.d.ts +3 -3
  15. package/dist/lib/components/cascader/src/cascader-types.d.ts +1 -1
  16. package/dist/lib/components/cascader/src/cascader.vue.d.ts +3 -3
  17. package/dist/lib/components/checkbox/index.d.ts +4 -4
  18. package/dist/lib/components/checkbox/src/checkbox-types.d.ts +1 -1
  19. package/dist/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
  20. package/dist/lib/components/code-editor-model/index.d.ts +5 -0
  21. package/dist/lib/components/code-editor-model/src/code-editor-model.vue.d.ts +23 -9
  22. package/dist/lib/components/countdown/index.d.ts +2 -2
  23. package/dist/lib/components/countdown/src/countdown.d.ts +2 -2
  24. package/dist/lib/components/currency/index.d.ts +3 -3
  25. package/dist/lib/components/currency/src/currency.vue.d.ts +3 -3
  26. package/dist/lib/components/custom-remote-select/src/type.d.ts +7 -0
  27. package/dist/lib/components/detail-grid/index.d.ts +14 -4
  28. package/dist/lib/components/detail-grid/src/detail-grid.vue.d.ts +14 -4
  29. package/dist/lib/components/edit-form/index.d.ts +2 -2
  30. package/dist/lib/components/edit-form/src/edit-form.vue.d.ts +2 -2
  31. package/dist/lib/components/edit-grid/index.d.ts +14 -4
  32. package/dist/lib/components/edit-grid/src/edit-grid-types.d.ts +4 -0
  33. package/dist/lib/components/edit-grid/src/edit-grid.vue.d.ts +14 -4
  34. package/dist/lib/components/edit-grid/src/hook/use-grid-height-hook.d.ts +1 -1
  35. package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +1 -0
  36. package/dist/lib/components/empty/index.d.ts +2 -2
  37. package/dist/lib/components/flow-view/index.d.ts +1 -1
  38. package/dist/lib/components/flow-view/src/flow-view.d.ts +1 -1
  39. package/dist/lib/components/import-modal/index.d.ts +1 -1
  40. package/dist/lib/components/import-modal/src/import-modal.vue.d.ts +1 -1
  41. package/dist/lib/components/index.d.ts +6 -1
  42. package/dist/lib/components/ladder-price/index.d.ts +2 -2
  43. package/dist/lib/components/ladder-price/src/ladder-price.vue.d.ts +2 -2
  44. package/dist/lib/components/layout/index.d.ts +8 -3
  45. package/dist/lib/components/layout/src/header/index.vue.d.ts +1 -1
  46. package/dist/lib/components/layout/src/header/navRight/index.vue.d.ts +1 -1
  47. package/dist/lib/components/layout/src/header/navRight/langSwitch.vue.d.ts +1 -1
  48. package/dist/lib/components/layout/src/index.vue.d.ts +8 -3
  49. package/dist/lib/components/layout/src/sider/index.vue.d.ts +7 -2
  50. package/dist/lib/components/layout/src/sider/logo.vue.d.ts +7 -2
  51. package/dist/lib/components/layout-anchor/index.d.ts +5 -0
  52. package/dist/lib/components/layout-anchor/src/layout-auchor.vue.d.ts +5 -0
  53. package/dist/lib/components/layout-pattern/index.d.ts +7 -2
  54. package/dist/lib/components/layout-pattern/src/hook/use-audit-button-hook.d.ts +1 -1
  55. package/dist/lib/components/layout-pattern/src/layout-pattern.vue.d.ts +7 -2
  56. package/dist/lib/components/list-page-layout/index.d.ts +1 -1
  57. package/dist/lib/components/list-page-layout/src/components/common/record-modal/mock.d.ts +1 -1
  58. package/dist/lib/components/list-page-layout/src/components/common/record-modal/record-modal.vue.d.ts +6 -6
  59. package/dist/lib/components/list-page-layout/src/components/list-content/list-content.vue.d.ts +1 -1
  60. package/dist/lib/components/list-page-layout/src/components/list-header/list-header.vue.d.ts +1 -1
  61. package/dist/lib/components/list-page-layout/src/components/list-header/module/query/index.vue.d.ts +1 -1
  62. package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +2 -2
  63. package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
  64. package/dist/lib/components/menu/index.d.ts +2 -80
  65. package/dist/lib/components/modal/index.d.ts +1364 -0
  66. package/dist/lib/components/modal/src/BasicModal.vue.d.ts +1358 -0
  67. package/dist/lib/components/modal/src/components/Modal.d.ts +255 -0
  68. package/dist/lib/components/modal/src/components/ModalClose.vue.d.ts +56 -0
  69. package/dist/lib/components/modal/src/components/ModalFooter.vue.d.ts +262 -0
  70. package/dist/lib/components/modal/src/components/ModalHeader.vue.d.ts +19 -0
  71. package/dist/lib/components/modal/src/components/ModalWrapper.vue.d.ts +102 -0
  72. package/dist/lib/components/modal/src/hooks/useModal.d.ts +6 -0
  73. package/dist/lib/components/modal/src/hooks/useModalContext.d.ts +7 -0
  74. package/dist/lib/components/modal/src/hooks/useModalDrag.d.ts +7 -0
  75. package/dist/lib/components/modal/src/hooks/useModalFullScreen.d.ts +11 -0
  76. package/dist/lib/components/modal/src/props.d.ts +150 -0
  77. package/dist/lib/components/modal/src/typing.d.ts +204 -0
  78. package/dist/lib/components/page-layout/src/util.d.ts +18 -2
  79. package/dist/lib/components/radio/index.d.ts +4 -4
  80. package/dist/lib/components/radio/src/radio-types.d.ts +1 -1
  81. package/dist/lib/components/radio/src/radio.vue.d.ts +4 -4
  82. package/dist/lib/components/relation-graph/index.d.ts +6 -0
  83. package/dist/lib/components/relation-graph/src/relation-graph.vue.d.ts +89 -0
  84. package/dist/lib/components/remote-select/index.d.ts +2 -2
  85. package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +2 -2
  86. package/dist/lib/components/sale-template/index.d.ts +2 -1
  87. package/dist/lib/components/scrollContainer/index.d.ts +14 -0
  88. package/dist/lib/components/scrollContainer/src/ScrollContainer.vue.d.ts +10 -0
  89. package/dist/lib/components/scrollContainer/src/typing.d.ts +17 -0
  90. package/dist/lib/components/scrollbar/index.d.ts +80 -0
  91. package/dist/lib/components/scrollbar/src/Scrollbar.vue.d.ts +73 -0
  92. package/dist/lib/components/scrollbar/src/bar.d.ts +15 -0
  93. package/dist/lib/components/scrollbar/src/types.d.ts +18 -0
  94. package/dist/lib/components/scrollbar/src/util.d.ts +8 -0
  95. package/dist/lib/components/select/index.d.ts +2 -2
  96. package/dist/lib/components/select/src/select.vue.d.ts +2 -2
  97. package/dist/lib/components/select-modal/index.d.ts +2 -2
  98. package/dist/lib/components/select-modal/src/select-modal.vue.d.ts +2 -2
  99. package/dist/lib/components/tree-select/index.d.ts +2 -2
  100. package/dist/lib/components/tree-select/src/tree-select.vue.d.ts +2 -2
  101. package/dist/lib/components/upload-file/index.d.ts +4 -4
  102. package/dist/lib/components/upload-file/src/upload-file.vue.d.ts +4 -4
  103. package/dist/lib/components/upload-image/index.d.ts +4 -3
  104. package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +4 -3
  105. package/dist/lib/hooks/core/useAttrs.d.ts +9 -0
  106. package/dist/lib/hooks/core/useContext.d.ts +11 -0
  107. package/dist/lib/hooks/core/useTimeout.d.ts +11 -0
  108. package/dist/lib/hooks/event/useScrollTo.d.ts +10 -0
  109. package/dist/lib/hooks/event/useWindowSizeFn.d.ts +7 -0
  110. package/dist/lib/index.d.ts +1 -0
  111. package/dist/lib/types/index.d.ts +32 -0
  112. package/dist/lib/utils/domUtils.d.ts +36 -0
  113. package/dist/lib/utils/event/index.d.ts +3 -0
  114. package/dist/lib/utils/helper/tsxHelper.d.ts +13 -0
  115. package/dist/lib/utils/index.d.ts +7 -0
  116. package/dist/lib/utils/is.d.ts +22 -0
  117. package/dist/lib/utils/log.d.ts +2 -0
  118. package/dist/style.css +1 -1
  119. package/package.json +15 -13
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseModalDragMoveContext {
3
+ draggable: Ref<boolean>;
4
+ destroyOnClose: Ref<boolean | undefined> | undefined;
5
+ visible: Ref<boolean>;
6
+ }
7
+ export declare function useModalDragMove(context: UseModalDragMoveContext): void;
@@ -0,0 +1,11 @@
1
+ import type { ComputedRef, Ref } from 'vue';
2
+ export interface UseFullScreenContext {
3
+ wrapClassName: Ref<string | undefined>;
4
+ modalWrapperRef: Ref<ComponentRef>;
5
+ extHeightRef: Ref<number>;
6
+ }
7
+ export declare function useFullScreen(context: UseFullScreenContext): {
8
+ getWrapClassName: ComputedRef<string>;
9
+ handleFullScreen: (e: Event) => void;
10
+ fullScreenRef: Ref<boolean>;
11
+ };
@@ -0,0 +1,150 @@
1
+ import type { PropType, CSSProperties, VNodeChild } from 'vue';
2
+ import type { ButtonProps, ModalWrapperProps } from './typing';
3
+ type VueNode = VNodeChild | JSX.Element;
4
+ export declare const modalProps: {
5
+ visible: {
6
+ type: BooleanConstructor;
7
+ };
8
+ scrollTop: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ height: {
13
+ type: NumberConstructor;
14
+ };
15
+ minHeight: {
16
+ type: NumberConstructor;
17
+ };
18
+ draggable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ centered: {
23
+ type: BooleanConstructor;
24
+ };
25
+ closeFunc: PropType<() => Promise<boolean>>;
26
+ modalHeaderHeight: NumberConstructor;
27
+ modalFooterHeight: NumberConstructor;
28
+ };
29
+ export declare const basicProps: {
30
+ visible: {
31
+ type: BooleanConstructor;
32
+ };
33
+ scrollTop: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ height: {
38
+ type: NumberConstructor;
39
+ };
40
+ minHeight: {
41
+ type: NumberConstructor;
42
+ };
43
+ draggable: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ centered: {
48
+ type: BooleanConstructor;
49
+ };
50
+ closeFunc: PropType<() => Promise<boolean>>;
51
+ modalHeaderHeight: NumberConstructor;
52
+ modalFooterHeight: NumberConstructor;
53
+ } & {
54
+ defaultFullscreen: {
55
+ type: BooleanConstructor;
56
+ };
57
+ canFullscreen: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ wrapperFooterOffset: {
62
+ type: NumberConstructor;
63
+ default: number;
64
+ };
65
+ helpMessage: PropType<string | string[]>;
66
+ useWrapper: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ loading: {
71
+ type: BooleanConstructor;
72
+ };
73
+ loadingTip: {
74
+ type: StringConstructor;
75
+ };
76
+ /**
77
+ * @description: Show close button
78
+ */
79
+ showCancelBtn: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ /**
84
+ * @description: Show confirmation button
85
+ */
86
+ showOkBtn: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ wrapperProps: PropType<Partial<ModalWrapperProps>>;
91
+ afterClose: PropType<() => Promise<VueNode>>;
92
+ bodyStyle: PropType<CSSProperties>;
93
+ closable: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ closeIcon: PropType<VueNode>;
98
+ confirmLoading: {
99
+ type: BooleanConstructor;
100
+ };
101
+ destroyOnClose: {
102
+ type: BooleanConstructor;
103
+ };
104
+ footer: PropType<VueNode>;
105
+ getContainer: PropType<() => any>;
106
+ mask: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ maskClosable: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ keyboard: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ maskStyle: PropType<CSSProperties>;
119
+ okType: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ okButtonProps: PropType<ButtonProps>;
124
+ cancelButtonProps: PropType<ButtonProps>;
125
+ title: {
126
+ type: StringConstructor;
127
+ };
128
+ visible: {
129
+ type: BooleanConstructor;
130
+ };
131
+ open: {
132
+ type: BooleanConstructor;
133
+ };
134
+ width: PropType<string | number>;
135
+ wrapClassName: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
139
+ zIndex: {
140
+ type: NumberConstructor;
141
+ };
142
+ maxHeight: {
143
+ type: NumberConstructor;
144
+ };
145
+ enableComment: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ };
150
+ export {};
@@ -0,0 +1,204 @@
1
+ import type { CSSProperties, VNodeChild, ComputedRef } from 'vue';
2
+ export type SizeType = 'small' | 'middle' | 'large' | undefined;
3
+ export type ButtonType = 'link' | 'default' | 'primary' | 'ghost' | 'dashed' | 'text';
4
+ export type ButtonShape = 'default' | 'circle' | 'round';
5
+ export type ButtonHTMLType = 'submit' | 'button' | 'reset';
6
+ export type LegacyButtonType = ButtonType | 'danger';
7
+ export type MouseEventHandler = (e: MouseEvent) => void;
8
+ export type ButtonProps = {
9
+ htmlType?: ButtonHTMLType | undefined;
10
+ loading?: boolean | {
11
+ delay?: number;
12
+ } | undefined;
13
+ prefixCls?: string | undefined;
14
+ type?: ButtonType | undefined;
15
+ shape?: ButtonShape | undefined;
16
+ size?: SizeType;
17
+ disabled?: boolean | undefined;
18
+ ghost?: boolean | undefined;
19
+ block?: boolean | undefined;
20
+ danger?: boolean | undefined;
21
+ icon?: any;
22
+ href?: string | undefined;
23
+ target?: string | undefined;
24
+ title?: string | undefined;
25
+ onClick?: MouseEventHandler | MouseEventHandler[] | undefined;
26
+ onMousedown?: MouseEventHandler | MouseEventHandler[] | undefined;
27
+ };
28
+ /**
29
+ * @description: 弹窗对外暴露的方法
30
+ */
31
+ export interface ModalMethods {
32
+ setModalProps: (props: Partial<ModalProps>) => void;
33
+ emitVisible?: (visible: boolean, uid: number) => void;
34
+ redoModalHeight?: () => void;
35
+ }
36
+ export type RegisterFn = (modalMethods: ModalMethods, uuid: string) => void;
37
+ export interface ReturnMethods extends ModalMethods {
38
+ openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
39
+ closeModal: () => void;
40
+ getVisible?: ComputedRef<boolean>;
41
+ getOpen?: ComputedRef<boolean>;
42
+ }
43
+ export type UseModalReturnType = [RegisterFn, ReturnMethods];
44
+ export interface ReturnInnerMethods extends ModalMethods {
45
+ closeModal: () => void;
46
+ changeLoading: (loading: boolean) => void;
47
+ changeOkLoading: (loading: boolean) => void;
48
+ getVisible?: ComputedRef<boolean>;
49
+ getOpen?: ComputedRef<boolean>;
50
+ redoModalHeight: () => void;
51
+ }
52
+ export type UseModalInnerReturnType = [RegisterFn, ReturnInnerMethods];
53
+ export interface ModalProps {
54
+ minHeight?: number;
55
+ height?: number;
56
+ wrapperFooterOffset?: number;
57
+ draggable?: boolean;
58
+ scrollTop?: boolean;
59
+ canFullscreen?: boolean;
60
+ defaultFullscreen?: boolean;
61
+ visible?: boolean;
62
+ open?: boolean;
63
+ helpMessage: string | string[];
64
+ useWrapper: boolean;
65
+ loading: boolean;
66
+ loadingTip?: string;
67
+ wrapperProps: Omit<ModalWrapperProps, 'loading'>;
68
+ showOkBtn: boolean;
69
+ showCancelBtn: boolean;
70
+ closeFunc: () => Promise<any>;
71
+ /**
72
+ * Specify a function that will be called when modal is closed completely.
73
+ * @type Function
74
+ */
75
+ afterClose?: () => any;
76
+ /**
77
+ * Body style for modal body element. Such as height, padding etc.
78
+ * @default {}
79
+ * @type object
80
+ */
81
+ bodyStyle?: () => CSSProperties;
82
+ /**
83
+ * Text of the Cancel button
84
+ * @default 'cancel'
85
+ * @type string
86
+ */
87
+ cancelText?: string;
88
+ /**
89
+ * Centered Modal
90
+ * @default false
91
+ * @type boolean
92
+ */
93
+ centered?: boolean;
94
+ /**
95
+ * Whether a close (x) button is visible on top right of the modal dialog or not
96
+ * @default true
97
+ * @type boolean
98
+ */
99
+ closable?: boolean;
100
+ /**
101
+ * Whether a close (x) button is visible on top right of the modal dialog or not
102
+ */
103
+ closeIcon?: VNodeChild | JSX.Element;
104
+ /**
105
+ * Whether to apply loading visual effect for OK button or not
106
+ * @default false
107
+ * @type boolean
108
+ */
109
+ confirmLoading?: boolean;
110
+ /**
111
+ * Whether to unmount child components on onClose
112
+ * @default false
113
+ * @type boolean
114
+ */
115
+ destroyOnClose?: boolean;
116
+ /**
117
+ * Footer content, set as :footer="null" when you don't need default buttons
118
+ * @default OK and Cancel buttons
119
+ * @type any (string | slot)
120
+ */
121
+ footer?: VNodeChild | JSX.Element;
122
+ /**
123
+ * Return the mount node for Modal
124
+ * @default () => document.body
125
+ * @type Function
126
+ */
127
+ getContainer?: (instance: any) => HTMLElement;
128
+ /**
129
+ * Whether show mask or not.
130
+ * @default true
131
+ * @type boolean
132
+ */
133
+ mask?: boolean;
134
+ /**
135
+ * Whether to close the modal dialog when the mask (area outside the modal) is clicked
136
+ * @default true
137
+ * @type boolean
138
+ */
139
+ maskClosable?: boolean;
140
+ /**
141
+ * Style for modal's mask element.
142
+ * @default {}
143
+ * @type object
144
+ */
145
+ maskStyle?: () => CSSProperties;
146
+ /**
147
+ * Text of the OK button
148
+ * @default 'OK'
149
+ * @type string
150
+ */
151
+ okText?: string;
152
+ /**
153
+ * Button type of the OK button
154
+ * @default 'primary'
155
+ * @type string
156
+ */
157
+ okType?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
158
+ /**
159
+ * The ok button props, follow jsx rules
160
+ * @type object
161
+ */
162
+ okButtonProps?: ButtonProps;
163
+ /**
164
+ * The cancel button props, follow jsx rules
165
+ * @type object
166
+ */
167
+ cancelButtonProps?: ButtonProps;
168
+ /**
169
+ * The modal dialog's title
170
+ * @type any (string | slot)
171
+ */
172
+ title?: VNodeChild | JSX.Element;
173
+ /**
174
+ * Width of the modal dialog
175
+ * @default 520
176
+ * @type string | number
177
+ */
178
+ width?: string | number;
179
+ /**
180
+ * The class name of the container of the modal dialog
181
+ * @type string
182
+ */
183
+ wrapClassName?: string;
184
+ /**
185
+ * The z-index of the Modal
186
+ * @default 1000
187
+ * @type number
188
+ */
189
+ zIndex?: number;
190
+ enableComment?: boolean;
191
+ modalHeaderHeight: number;
192
+ modalFooterHeight: number;
193
+ }
194
+ export interface ModalWrapperProps {
195
+ footerOffset?: number;
196
+ loading: boolean;
197
+ modalHeaderHeight: number;
198
+ modalFooterHeight: number;
199
+ minHeight: number;
200
+ height: number;
201
+ visible: boolean;
202
+ fullScreen: boolean;
203
+ useWrapper: boolean;
204
+ }
@@ -1,12 +1,13 @@
1
1
  import type { InjectionKey } from 'vue';
2
- import type { UserInfo, CurrentRow, Role } from '../../edit-page-layout';
2
+ import type { UserInfo, CurrentRow, Role, RecordString } from '../../edit-page-layout';
3
3
  type Row = {
4
4
  currentRow: CurrentRow;
5
5
  userInfo: UserInfo;
6
6
  businessType: string;
7
7
  role?: Role;
8
+ token?: string;
8
9
  };
9
- export declare function getRemoteJsFilePath({ currentRow, userInfo, businessType, role }: Row, isLocal?: boolean): string;
10
+ export declare function getRemoteJsFilePath({ currentRow, userInfo, businessType, role, token }: Row): string;
10
11
  /**
11
12
  * description: 动态加载JS文件
12
13
  * param {string} file JS文件地址
@@ -20,4 +21,19 @@ export declare function loadJS(file: string): Promise<unknown>;
20
21
  * return {*}
21
22
  */
22
23
  export declare function requireInjection<T>(key: InjectionKey<T>, defaultValue?: T): NonNullable<T>;
24
+ /**
25
+ * 从对象中获取链式路径的值
26
+ * @param {object} obj - 源数据对象(如userInfo)
27
+ * @param {string} chain - 链式路径(如"address.city")
28
+ * @returns {any} 链式路径对应的值,不存在则返回 undefined
29
+ */
30
+ export declare function getChainValue(obj: RecordString, chain: string): RecordString;
31
+ export declare const TEMPLATE_REGEXP: RegExp;
32
+ /**
33
+ * 模板渲染函数
34
+ * @param {string} template - 带{{变量}}或{{date:格式}}的模板字符串
35
+ * @param {object} userInfo - 登录接口返回的用户数据对象
36
+ * @returns {string} 渲染后的最终字符串
37
+ */
38
+ export declare function renderTemplate(template: string, userInfo: RecordString): string;
23
39
  export {};
@@ -7,7 +7,7 @@ export { QRadio };
7
7
  declare const _default: SFCWithInstall<DefineComponent<{
8
8
  readonly required: {
9
9
  readonly type: PropType<"0" | "1">;
10
- readonly default: 1;
10
+ readonly default: "1";
11
11
  };
12
12
  readonly options: {
13
13
  readonly type: PropType<Option[]>;
@@ -50,10 +50,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
50
50
  isLayout: Ref<boolean>;
51
51
  colSpan: Ref<string | number>;
52
52
  onChange: (e: Event) => void;
53
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
53
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
54
54
  readonly required: {
55
55
  readonly type: PropType<"0" | "1">;
56
- readonly default: 1;
56
+ readonly default: "1";
57
57
  };
58
58
  readonly options: {
59
59
  readonly type: PropType<Option[]>;
@@ -91,9 +91,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
91
91
  onChange?: ((...args: any[]) => any) | undefined;
92
92
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
93
93
  }, {
94
+ readonly value: string;
94
95
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
95
96
  readonly busAccount: string;
96
- readonly value: string;
97
97
  readonly options: Option[];
98
98
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
99
99
  readonly dictCode: string;
@@ -10,7 +10,7 @@ export type realOptions = Option;
10
10
  export declare const rabioProps: {
11
11
  readonly required: {
12
12
  readonly type: PropType<"0" | "1">;
13
- readonly default: 1;
13
+ readonly default: "1";
14
14
  };
15
15
  readonly options: {
16
16
  readonly type: PropType<Option[]>;
@@ -3,7 +3,7 @@ import { Option } from './radio-types';
3
3
  declare const _sfc_main: DefineComponent<{
4
4
  readonly required: {
5
5
  readonly type: PropType<"0" | "1">;
6
- readonly default: 1;
6
+ readonly default: "1";
7
7
  };
8
8
  readonly options: {
9
9
  readonly type: PropType<Option[]>;
@@ -46,10 +46,10 @@ declare const _sfc_main: DefineComponent<{
46
46
  isLayout: Ref<boolean>;
47
47
  colSpan: Ref<string | number>;
48
48
  onChange: (e: Event) => void;
49
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
49
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
50
50
  readonly required: {
51
51
  readonly type: PropType<"0" | "1">;
52
- readonly default: 1;
52
+ readonly default: "1";
53
53
  };
54
54
  readonly options: {
55
55
  readonly type: PropType<Option[]>;
@@ -87,9 +87,9 @@ declare const _sfc_main: DefineComponent<{
87
87
  onChange?: ((...args: any[]) => any) | undefined;
88
88
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
89
89
  }, {
90
+ readonly value: string;
90
91
  readonly onChange: ((value: string) => void) | ((value: string) => void)[];
91
92
  readonly busAccount: string;
92
- readonly value: string;
93
93
  readonly options: Option[];
94
94
  readonly 'onUpdate:value': ((value: string) => void) | ((value: string) => void)[];
95
95
  readonly dictCode: string;
@@ -0,0 +1,6 @@
1
+ import QRelationGraph from './src/relation-graph.vue';
2
+ import type { Plugin } from 'vue';
3
+ export * from './src/relation-graph-types';
4
+ export { QRelationGraph };
5
+ declare const _default: Plugin<any[]>;
6
+ export default _default;
@@ -0,0 +1,89 @@
1
+ import type { SrmI18n } from '../../../utils/type';
2
+ import type { RecordString } from '../../select-modal';
3
+ import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import RelationGraph from 'relation-graph/vue3';
5
+ declare const _sfc_main: DefineComponent<{
6
+ readonly visible: {
7
+ readonly type: BooleanConstructor;
8
+ readonly default: false;
9
+ };
10
+ readonly documentId: {
11
+ readonly require: true;
12
+ readonly type: StringConstructor;
13
+ readonly default: "";
14
+ };
15
+ readonly id: {
16
+ readonly require: true;
17
+ readonly type: StringConstructor;
18
+ readonly default: "";
19
+ };
20
+ readonly onChange: {
21
+ type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
22
+ default: unknown;
23
+ };
24
+ }, {
25
+ modalVisibleDocket: Ref<boolean>;
26
+ relationGraph$: Ref<RelationGraph | undefined>;
27
+ options: {
28
+ showDebugPanel: boolean;
29
+ defaultFocusRootNode: boolean;
30
+ backgrounImageNoRepeat: boolean;
31
+ layouts: {
32
+ label: string;
33
+ layoutName: string;
34
+ layoutClassName: string;
35
+ defaultNodeShape: number;
36
+ defaultLineShape: number;
37
+ from: string;
38
+ min_per_width: string;
39
+ max_per_width: string;
40
+ min_per_height: string;
41
+ max_per_height: string;
42
+ levelDistance: string;
43
+ }[];
44
+ defaultLineMarker: {
45
+ markerWidth: number;
46
+ markerHeight: number;
47
+ refX: number;
48
+ refY: number;
49
+ data: string;
50
+ };
51
+ defaultExpandHolderPosition: string;
52
+ defaultNodeShape: number;
53
+ defaultNodeWidth: string;
54
+ defaultLineShape: number;
55
+ defaultJunctionPoint: string;
56
+ defaultNodeBorderWidth: number;
57
+ defaultLineColor: string;
58
+ defaultNodeColor: string;
59
+ };
60
+ handleCancel: () => void;
61
+ srmI18n: SrmI18n;
62
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:visible"[], "update:visible", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
63
+ readonly visible: {
64
+ readonly type: BooleanConstructor;
65
+ readonly default: false;
66
+ };
67
+ readonly documentId: {
68
+ readonly require: true;
69
+ readonly type: StringConstructor;
70
+ readonly default: "";
71
+ };
72
+ readonly id: {
73
+ readonly require: true;
74
+ readonly type: StringConstructor;
75
+ readonly default: "";
76
+ };
77
+ readonly onChange: {
78
+ type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
79
+ default: unknown;
80
+ };
81
+ }>> & {
82
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
83
+ }, {
84
+ readonly onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
85
+ readonly visible: boolean;
86
+ readonly id: string;
87
+ readonly documentId: string;
88
+ }, {}>;
89
+ export default _sfc_main;
@@ -1,4 +1,4 @@
1
- import type { MessageType } from 'ant-design-vue/lib/message';
1
+ import type { MessageType } from 'ant-design-vue/es/message';
2
2
  import type { SrmI18n } from '../../utils/type';
3
3
  import type { Config, RecordString } from './src/remote-select-types';
4
4
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
@@ -74,9 +74,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
74
74
  default: unknown;
75
75
  };
76
76
  }>>, {
77
+ value: string;
77
78
  row: Record<string | number, unknown>;
78
79
  onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
79
- value: string;
80
80
  config: Config;
81
81
  idx: number;
82
82
  }, {}>>;
@@ -1,4 +1,4 @@
1
- import type { MessageType } from 'ant-design-vue/lib/message';
1
+ import type { MessageType } from 'ant-design-vue/es/message';
2
2
  import type { SrmI18n } from '../../../utils/type';
3
3
  import type { Config, RecordString } from './remote-select-types';
4
4
  import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref, ComputedRef } from 'vue';
@@ -70,9 +70,9 @@ declare const _sfc_main: DefineComponent<{
70
70
  default: unknown;
71
71
  };
72
72
  }>>, {
73
+ value: string;
73
74
  row: Record<string | number, unknown>;
74
75
  onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
75
- value: string;
76
76
  config: Config;
77
77
  idx: number;
78
78
  }, {}>;
@@ -1,6 +1,7 @@
1
1
  import type { SrmI18n } from '../../utils/type';
2
+ import type { FormInstance } from 'ant-design-vue';
2
3
  import type { CurrentRow } from '../edit-page-layout';
3
- import type { RuleObject, FormInstance } from 'ant-design-vue/es/form';
4
+ import type { RuleObject } from 'ant-design-vue/es/form';
4
5
  import type { Payload } from './src/sale-template-types';
5
6
  import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
6
7
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
@@ -0,0 +1,14 @@
1
+ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
3
+ import ScrollContainer from './src/ScrollContainer.vue';
4
+ export * from './src/typing';
5
+ export { ScrollContainer };
6
+ declare const _default: SFCWithInstall<DefineComponent<{}, {
7
+ scrollbarRef: Ref<{
8
+ wrap: any;
9
+ } | null>;
10
+ scrollTo: (to: number, duration?: number) => void;
11
+ scrollBottom: () => void;
12
+ getScrollWrap: () => any;
13
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>>;
14
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ declare const _sfc_main: DefineComponent<{}, {
3
+ scrollbarRef: Ref<{
4
+ wrap: any;
5
+ } | null>;
6
+ scrollTo: (to: number, duration?: number) => void;
7
+ scrollBottom: () => void;
8
+ getScrollWrap: () => any;
9
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
10
+ export default _sfc_main;
@@ -0,0 +1,17 @@
1
+ type Nullable<T> = T | null;
2
+ export type ScrollType = 'default' | 'main';
3
+ export interface CollapseContainerOptions {
4
+ canExpand?: boolean;
5
+ title?: string;
6
+ helpMessage?: Array<any> | string;
7
+ }
8
+ export interface ScrollContainerOptions {
9
+ enableScroll?: boolean;
10
+ type?: ScrollType;
11
+ }
12
+ export type ScrollActionType = RefType<{
13
+ scrollBottom: () => void;
14
+ getScrollWrap: () => Nullable<HTMLElement>;
15
+ scrollTo: (top: number) => void;
16
+ }>;
17
+ export {};