@xinlian-frontend/lui 0.0.1-beta.5

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 (67) hide show
  1. package/README.md +22 -0
  2. package/assets/style.css +1 -0
  3. package/components/ApprovalSteps/index.d.ts +11 -0
  4. package/components/ApprovalSteps/index.vue.d.ts +10 -0
  5. package/components/ApprovalSteps/privite-type.d.ts +381 -0
  6. package/components/ApprovalSteps/type.d.ts +61 -0
  7. package/components/FilePreview/file-preview.vue.d.ts +6 -0
  8. package/components/FilePreview/index.d.ts +7 -0
  9. package/components/button/button.vue.d.ts +3 -0
  10. package/components/button/index.d.ts +4 -0
  11. package/components/button/type.d.ts +1 -0
  12. package/components/detail-layout/detail-layout.vue.d.ts +42 -0
  13. package/components/detail-layout/index.d.ts +2 -0
  14. package/components/detail-layout/type.d.ts +9 -0
  15. package/components/drawer/index.d.ts +107 -0
  16. package/components/drawer/index.vue.d.ts +51 -0
  17. package/components/drawer/type.d.ts +1 -0
  18. package/components/error-page/404.vue.d.ts +3 -0
  19. package/components/error-page/index.d.ts +4 -0
  20. package/components/filter-panel/filter-panel.vue.d.ts +36 -0
  21. package/components/filter-panel/index.d.ts +79 -0
  22. package/components/filter-panel/type.d.ts +28 -0
  23. package/components/fixed-footer/fixed-footer.vue.d.ts +13 -0
  24. package/components/fixed-footer/index.d.ts +2 -0
  25. package/components/form-footer/form-footer.vue.d.ts +13 -0
  26. package/components/form-footer/index.d.ts +15 -0
  27. package/components/form-footer/type.d.ts +36 -0
  28. package/components/form-section-page/form-section-page.vue.d.ts +13 -0
  29. package/components/form-section-page/index.d.ts +3 -0
  30. package/components/form-submit-page/form-submit-page-card.vue.d.ts +22 -0
  31. package/components/form-submit-page/form-submit-page.vue.d.ts +79 -0
  32. package/components/form-submit-page/index.d.ts +4 -0
  33. package/components/info-layout/index.d.ts +50 -0
  34. package/components/info-layout/info-layout.vue.d.ts +28 -0
  35. package/components/info-layout/type.d.ts +6 -0
  36. package/components/modal/index.d.ts +44 -0
  37. package/components/modal/index.vue.d.ts +25 -0
  38. package/components/page-table/index.d.ts +204 -0
  39. package/components/page-table/page-table.vue.d.ts +95 -0
  40. package/components/page-table/setting.vue.d.ts +10 -0
  41. package/components/page-table/type.d.ts +19 -0
  42. package/components/role-tree/index.d.ts +23 -0
  43. package/components/role-tree/role-tree-item.vue.d.ts +17 -0
  44. package/components/role-tree/role-tree.vue.d.ts +21 -0
  45. package/components/role-tree/type.d.ts +13 -0
  46. package/components/second-bar/SecondBar.vue.d.ts +16 -0
  47. package/components/second-bar/index.d.ts +22 -0
  48. package/components/section-block/index.d.ts +2 -0
  49. package/components/section-block/section-block.vue.d.ts +31 -0
  50. package/components/sign-status-flow/index.d.ts +12 -0
  51. package/components/sign-status-flow/sign-status-flow.vue.d.ts +9 -0
  52. package/components/sign-status-flow/type.d.ts +8 -0
  53. package/components/upload-file/constant.d.ts +18 -0
  54. package/components/upload-file/index.d.ts +170 -0
  55. package/components/upload-file/service.d.ts +4 -0
  56. package/components/upload-file/type.d.ts +8 -0
  57. package/components/upload-file/upload-file.vue.d.ts +48 -0
  58. package/components/upload-file/upload-image.vue.d.ts +46 -0
  59. package/exported-components.d.ts +19 -0
  60. package/index.d.ts +2 -0
  61. package/l-ui.es.js +3823 -0
  62. package/package.json +32 -0
  63. package/type.d.ts +9 -0
  64. package/utils/index.d.ts +3 -0
  65. package/vue-office-docx.js +5857 -0
  66. package/vue-office-excel.js +64323 -0
  67. package/vue-office-pdf.js +2012 -0
@@ -0,0 +1,170 @@
1
+ import { SFCWithInstall } from '../../utils';
2
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
3
+ import { LUploadFileList } from './type';
4
+ declare const LUploadFile: SFCWithInstall<{
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<{
6
+ type?: "normal" | "inline";
7
+ readonly?: boolean;
8
+ accept?: string;
9
+ hint?: string;
10
+ modelValue?: LUploadFileList;
11
+ action?: string;
12
+ uploadText?: string;
13
+ headers?: any;
14
+ maxCount?: number;
15
+ maxSizeMb?: number;
16
+ }>> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
18
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
19
+ "update:modelValue": (value?: LUploadFileList | undefined) => any;
20
+ }, PublicProps, {
21
+ type: "normal" | "inline";
22
+ modelValue: LUploadFileList;
23
+ accept: string;
24
+ action: string;
25
+ uploadText: string;
26
+ headers: any;
27
+ maxCount: number;
28
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
29
+ P: {};
30
+ B: {};
31
+ D: {};
32
+ C: {};
33
+ M: {};
34
+ Defaults: {};
35
+ }, Readonly<Partial<{
36
+ type?: "normal" | "inline";
37
+ readonly?: boolean;
38
+ accept?: string;
39
+ hint?: string;
40
+ modelValue?: LUploadFileList;
41
+ action?: string;
42
+ uploadText?: string;
43
+ headers?: any;
44
+ maxCount?: number;
45
+ maxSizeMb?: number;
46
+ }>> & Readonly<{
47
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
48
+ }>, {}, {}, {}, {}, {
49
+ type: "normal" | "inline";
50
+ modelValue: LUploadFileList;
51
+ accept: string;
52
+ action: string;
53
+ uploadText: string;
54
+ headers: any;
55
+ maxCount: number;
56
+ }>;
57
+ __isFragment?: never;
58
+ __isTeleport?: never;
59
+ __isSuspense?: never;
60
+ } & ComponentOptionsBase<Readonly<Partial<{
61
+ type?: "normal" | "inline";
62
+ readonly?: boolean;
63
+ accept?: string;
64
+ hint?: string;
65
+ modelValue?: LUploadFileList;
66
+ action?: string;
67
+ uploadText?: string;
68
+ headers?: any;
69
+ maxCount?: number;
70
+ maxSizeMb?: number;
71
+ }>> & Readonly<{
72
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
73
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
74
+ "update:modelValue": (value?: LUploadFileList | undefined) => any;
75
+ }, string, {
76
+ type: "normal" | "inline";
77
+ modelValue: LUploadFileList;
78
+ accept: string;
79
+ action: string;
80
+ uploadText: string;
81
+ headers: any;
82
+ maxCount: number;
83
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
84
+ $slots: {
85
+ default?: (props: {}) => any;
86
+ };
87
+ })> & Record<string, any>;
88
+ declare const LUploadImage: SFCWithInstall<{
89
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<Partial<{
90
+ type?: "normal" | "inline";
91
+ readonly?: boolean;
92
+ accept?: string;
93
+ hint?: string;
94
+ modelValue?: LUploadFileList;
95
+ action?: string;
96
+ uploadText?: string;
97
+ headers?: any;
98
+ maxCount?: number;
99
+ }>> & Readonly<{
100
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
101
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
102
+ "update:modelValue": (value?: LUploadFileList | undefined) => any;
103
+ }, PublicProps, {
104
+ type: "normal" | "inline";
105
+ modelValue: LUploadFileList;
106
+ accept: string;
107
+ action: string;
108
+ uploadText: string;
109
+ headers: any;
110
+ maxCount: number;
111
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
112
+ P: {};
113
+ B: {};
114
+ D: {};
115
+ C: {};
116
+ M: {};
117
+ Defaults: {};
118
+ }, Readonly<Partial<{
119
+ type?: "normal" | "inline";
120
+ readonly?: boolean;
121
+ accept?: string;
122
+ hint?: string;
123
+ modelValue?: LUploadFileList;
124
+ action?: string;
125
+ uploadText?: string;
126
+ headers?: any;
127
+ maxCount?: number;
128
+ }>> & Readonly<{
129
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
130
+ }>, {}, {}, {}, {}, {
131
+ type: "normal" | "inline";
132
+ modelValue: LUploadFileList;
133
+ accept: string;
134
+ action: string;
135
+ uploadText: string;
136
+ headers: any;
137
+ maxCount: number;
138
+ }>;
139
+ __isFragment?: never;
140
+ __isTeleport?: never;
141
+ __isSuspense?: never;
142
+ } & ComponentOptionsBase<Readonly<Partial<{
143
+ type?: "normal" | "inline";
144
+ readonly?: boolean;
145
+ accept?: string;
146
+ hint?: string;
147
+ modelValue?: LUploadFileList;
148
+ action?: string;
149
+ uploadText?: string;
150
+ headers?: any;
151
+ maxCount?: number;
152
+ }>> & Readonly<{
153
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
154
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
155
+ "update:modelValue": (value?: LUploadFileList | undefined) => any;
156
+ }, string, {
157
+ type: "normal" | "inline";
158
+ modelValue: LUploadFileList;
159
+ accept: string;
160
+ action: string;
161
+ uploadText: string;
162
+ headers: any;
163
+ maxCount: number;
164
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
165
+ $slots: {
166
+ default?: (props: {}) => any;
167
+ };
168
+ })> & Record<string, any>;
169
+ export default LUploadFile;
170
+ export { LUploadImage };
@@ -0,0 +1,4 @@
1
+ import { LUploadFileItem } from './type';
2
+ /** 将 UploadFile 或带 response 的项转换为 LUploadFileList 格式 */
3
+ export declare function mapItemToModel(item: any): LUploadFileItem;
4
+ export declare function removeFile(id: string): void;
@@ -0,0 +1,8 @@
1
+ export interface LUploadFileItem {
2
+ fileId: string;
3
+ url?: string;
4
+ fileUrl?: string;
5
+ /** 兼容老字段 originalFileName、新字段 originFileName */
6
+ originalFileName?: string;
7
+ }
8
+ export type LUploadFileList = LUploadFileItem[];
@@ -0,0 +1,48 @@
1
+ import { LUploadFileList } from './type';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare var __VLS_10: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_10) => any;
6
+ };
7
+ declare const __VLS_component: DefineComponent<Partial<{
8
+ type?: "normal" | "inline";
9
+ readonly?: boolean;
10
+ accept?: string;
11
+ hint?: string;
12
+ modelValue?: LUploadFileList;
13
+ action?: string;
14
+ uploadText?: string;
15
+ headers?: any;
16
+ maxCount?: number;
17
+ maxSizeMb?: number;
18
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
19
+ "update:modelValue": (value?: LUploadFileList | undefined) => any;
20
+ }, string, PublicProps, Readonly<Partial<{
21
+ type?: "normal" | "inline";
22
+ readonly?: boolean;
23
+ accept?: string;
24
+ hint?: string;
25
+ modelValue?: LUploadFileList;
26
+ action?: string;
27
+ uploadText?: string;
28
+ headers?: any;
29
+ maxCount?: number;
30
+ maxSizeMb?: number;
31
+ }>> & Readonly<{
32
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
33
+ }>, {
34
+ type: "normal" | "inline";
35
+ modelValue: LUploadFileList;
36
+ accept: string;
37
+ action: string;
38
+ uploadText: string;
39
+ headers: any;
40
+ maxCount: number;
41
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
43
+ export default _default;
44
+ type __VLS_WithSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,46 @@
1
+ import { LUploadFileList } from './type';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare var __VLS_10: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_10) => any;
6
+ };
7
+ declare const __VLS_component: DefineComponent<Partial<{
8
+ type?: "normal" | "inline";
9
+ readonly?: boolean;
10
+ accept?: string;
11
+ hint?: string;
12
+ modelValue?: LUploadFileList;
13
+ action?: string;
14
+ uploadText?: string;
15
+ headers?: any;
16
+ maxCount?: number;
17
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
18
+ "update:modelValue": (value?: LUploadFileList | undefined) => any;
19
+ }, string, PublicProps, Readonly<Partial<{
20
+ type?: "normal" | "inline";
21
+ readonly?: boolean;
22
+ accept?: string;
23
+ hint?: string;
24
+ modelValue?: LUploadFileList;
25
+ action?: string;
26
+ uploadText?: string;
27
+ headers?: any;
28
+ maxCount?: number;
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value?: LUploadFileList | undefined) => any) | undefined;
31
+ }>, {
32
+ type: "normal" | "inline";
33
+ modelValue: LUploadFileList;
34
+ accept: string;
35
+ action: string;
36
+ uploadText: string;
37
+ headers: any;
38
+ maxCount: number;
39
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
40
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,19 @@
1
+ export { default as LApprovalSteps } from './components/ApprovalSteps';
2
+ export { default as LDetailLayout } from './components/detail-layout';
3
+ export { default as LDrawer } from './components/drawer';
4
+ export { default as LPageNotFound } from './components/error-page';
5
+ export { default as LFilePreview } from './components/FilePreview';
6
+ export { default as LFilterPanel } from './components/filter-panel';
7
+ export { default as LFixedFooter } from './components/fixed-footer';
8
+ export { default as LFormSectionPage } from './components/form-section-page';
9
+ export { default as LFormSubmitPage } from './components/form-submit-page';
10
+ export { default as LFormSubmitPageCard } from './components/form-submit-page/form-submit-page-card.vue';
11
+ export { default as LInfoLayout } from './components/info-layout';
12
+ export { default as LModal } from './components/modal';
13
+ export { default as LPageTable } from './components/page-table';
14
+ export { default as LRoleTree } from './components/role-tree';
15
+ export { default as LSecondBar } from './components/second-bar';
16
+ export { default as LSectionBlock } from './components/section-block';
17
+ export { default as LSignStatusFlow } from './components/sign-status-flow';
18
+ export { default as LUploadFile } from './components/upload-file';
19
+ export { LUploadImage } from './components/upload-file';
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './exported-components';
2
+ export * from './type';