@fmdevui/fm-dev 1.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 (113) hide show
  1. package/README.md +18 -0
  2. package/es/component.d.ts +3 -0
  3. package/es/component.mjs +7 -0
  4. package/es/defaults.d.ts +5 -0
  5. package/es/defaults.mjs +6 -0
  6. package/es/fmcore/index.d.ts +2 -0
  7. package/es/fmcore/index.mjs +2 -0
  8. package/es/fmcore/types/axios/index.d.ts +11 -0
  9. package/es/fmcore/types/axios/index.mjs +2 -0
  10. package/es/fmcore/types/comm/index.d.ts +26 -0
  11. package/es/fmcore/types/comm/index.mjs +1 -0
  12. package/es/fmcore/types/emitt/index.d.ts +37 -0
  13. package/es/fmcore/types/emitt/index.mjs +1 -0
  14. package/es/fmcore/types/index.d.ts +8 -0
  15. package/es/fmcore/types/index.mjs +8 -0
  16. package/es/fmcore/types/layout/index.d.ts +47 -0
  17. package/es/fmcore/types/layout/index.mjs +1 -0
  18. package/es/fmcore/types/menu/MenuOutput.d.ts +131 -0
  19. package/es/fmcore/types/menu/MenuOutput.mjs +1 -0
  20. package/es/fmcore/types/menu/index.d.ts +1 -0
  21. package/es/fmcore/types/menu/index.mjs +1 -0
  22. package/es/fmcore/types/menu/menu-type-enum.d.ts +5 -0
  23. package/es/fmcore/types/menu/menu-type-enum.mjs +8 -0
  24. package/es/fmcore/types/menu/status-enum.d.ts +9 -0
  25. package/es/fmcore/types/menu/status-enum.mjs +7 -0
  26. package/es/fmcore/types/menu/sys-menu-meta.d.ts +57 -0
  27. package/es/fmcore/types/menu/sys-menu-meta.mjs +1 -0
  28. package/es/fmcore/types/pinia/index.d.ts +99 -0
  29. package/es/fmcore/types/pinia/index.mjs +1 -0
  30. package/es/fmcore/types/router/index.d.ts +41 -0
  31. package/es/fmcore/types/router/index.mjs +1 -0
  32. package/es/fmcore/types/table/index.d.ts +8 -0
  33. package/es/fmcore/types/table/index.mjs +1 -0
  34. package/es/fmcore/types/view/index.d.ts +316 -0
  35. package/es/fmcore/types/view/index.mjs +1 -0
  36. package/es/fmcore/ui/login/index.d.ts +3 -0
  37. package/es/fmcore/ui/login/index.mjs +7 -0
  38. package/es/fmcore/ui/login/src/index.vue.d.ts +3 -0
  39. package/es/fmcore/ui/login/src/index.vue.mjs +5 -0
  40. package/es/fmcore/ui/login/src/index.vue2.mjs +27 -0
  41. package/es/fmcore/ui/login/src/type.d.ts +1 -0
  42. package/es/fmcore/ui/login/src/type.mjs +1 -0
  43. package/es/fmcore/ui/login/style/css.d.ts +0 -0
  44. package/es/fmcore/ui/login/style/css.mjs +1 -0
  45. package/es/fmcore/ui/login/style/index.d.ts +0 -0
  46. package/es/fmcore/ui/login/style/index.mjs +1 -0
  47. package/es/index.d.ts +6 -0
  48. package/es/index.mjs +8 -0
  49. package/es/make-installer.d.ts +4 -0
  50. package/es/make-installer.mjs +10 -0
  51. package/es/version.d.ts +1 -0
  52. package/es/version.mjs +3 -0
  53. package/global.d.ts +9 -0
  54. package/index.css +0 -0
  55. package/index.d.ts +10 -0
  56. package/index.js +60 -0
  57. package/index.min.js +1 -0
  58. package/index.min.mjs +1 -0
  59. package/index.mjs +49 -0
  60. package/lib/component.d.ts +3 -0
  61. package/lib/component.js +11 -0
  62. package/lib/defaults.d.ts +5 -0
  63. package/lib/defaults.js +10 -0
  64. package/lib/fmcore/index.d.ts +2 -0
  65. package/lib/fmcore/index.js +8 -0
  66. package/lib/fmcore/types/axios/index.d.ts +11 -0
  67. package/lib/fmcore/types/axios/index.js +28 -0
  68. package/lib/fmcore/types/comm/index.d.ts +26 -0
  69. package/lib/fmcore/types/comm/index.js +2 -0
  70. package/lib/fmcore/types/emitt/index.d.ts +37 -0
  71. package/lib/fmcore/types/emitt/index.js +2 -0
  72. package/lib/fmcore/types/index.d.ts +8 -0
  73. package/lib/fmcore/types/index.js +11 -0
  74. package/lib/fmcore/types/layout/index.d.ts +47 -0
  75. package/lib/fmcore/types/layout/index.js +2 -0
  76. package/lib/fmcore/types/menu/MenuOutput.d.ts +131 -0
  77. package/lib/fmcore/types/menu/MenuOutput.js +2 -0
  78. package/lib/fmcore/types/menu/index.d.ts +1 -0
  79. package/lib/fmcore/types/menu/index.js +4 -0
  80. package/lib/fmcore/types/menu/menu-type-enum.d.ts +5 -0
  81. package/lib/fmcore/types/menu/menu-type-enum.js +10 -0
  82. package/lib/fmcore/types/menu/status-enum.d.ts +9 -0
  83. package/lib/fmcore/types/menu/status-enum.js +9 -0
  84. package/lib/fmcore/types/menu/sys-menu-meta.d.ts +57 -0
  85. package/lib/fmcore/types/menu/sys-menu-meta.js +2 -0
  86. package/lib/fmcore/types/pinia/index.d.ts +99 -0
  87. package/lib/fmcore/types/pinia/index.js +2 -0
  88. package/lib/fmcore/types/router/index.d.ts +41 -0
  89. package/lib/fmcore/types/router/index.js +2 -0
  90. package/lib/fmcore/types/table/index.d.ts +8 -0
  91. package/lib/fmcore/types/table/index.js +2 -0
  92. package/lib/fmcore/types/view/index.d.ts +316 -0
  93. package/lib/fmcore/types/view/index.js +2 -0
  94. package/lib/fmcore/ui/login/index.d.ts +3 -0
  95. package/lib/fmcore/ui/login/index.js +9 -0
  96. package/lib/fmcore/ui/login/src/index.vue.d.ts +3 -0
  97. package/lib/fmcore/ui/login/src/index.vue.js +9 -0
  98. package/lib/fmcore/ui/login/src/index.vue2.js +31 -0
  99. package/lib/fmcore/ui/login/src/type.d.ts +1 -0
  100. package/lib/fmcore/ui/login/src/type.js +2 -0
  101. package/lib/fmcore/ui/login/style/css.d.ts +0 -0
  102. package/lib/fmcore/ui/login/style/css.js +2 -0
  103. package/lib/fmcore/ui/login/style/index.d.ts +0 -0
  104. package/lib/fmcore/ui/login/style/index.js +2 -0
  105. package/lib/index.d.ts +6 -0
  106. package/lib/index.js +15 -0
  107. package/lib/make-installer.d.ts +4 -0
  108. package/lib/make-installer.js +12 -0
  109. package/lib/version.d.ts +1 -0
  110. package/lib/version.js +5 -0
  111. package/package.json +92 -0
  112. package/theme-chalk/index.css +0 -0
  113. package/theme-chalk/src/index.scss +0 -0
@@ -0,0 +1,316 @@
1
+ import { EmptyObjectType, SelectOptionType } from '../comm';
2
+ import { TableType } from '../table';
3
+ /**
4
+ * views personal
5
+ */
6
+ export type NewInfo = {
7
+ title: string;
8
+ date: string;
9
+ link: string;
10
+ };
11
+ export type Recommend = {
12
+ title: string;
13
+ msg: string;
14
+ icon: string;
15
+ bg: string;
16
+ iconColor: string;
17
+ };
18
+ export type PersonalState = {
19
+ newsInfoList: NewInfo[];
20
+ recommendList: Recommend[];
21
+ personalForm: {
22
+ name: string;
23
+ email: string;
24
+ autograph: string;
25
+ occupation: string;
26
+ phone: string;
27
+ sex: string;
28
+ };
29
+ };
30
+ /**
31
+ * views visualizing
32
+ */
33
+ export type Demo2State<T = any> = {
34
+ time: {
35
+ txt: string;
36
+ fun: number;
37
+ };
38
+ dropdownList: T[];
39
+ dropdownActive: string;
40
+ skyList: T[];
41
+ dBtnList: T[];
42
+ chartData4Index: number;
43
+ dBtnActive: number;
44
+ earth3DBtnList: T[];
45
+ chartData4List: T[];
46
+ myCharts: T[];
47
+ };
48
+ /**
49
+ * views params
50
+ */
51
+ export type ParamsState = {
52
+ value: string;
53
+ tagsViewName: string;
54
+ tagsViewNameIsI18n: boolean;
55
+ };
56
+ /**
57
+ * views system
58
+ */
59
+ export interface RowRoleType {
60
+ roleName: string;
61
+ roleSign: string;
62
+ describe: string;
63
+ sort: number;
64
+ status: boolean;
65
+ createTime: string;
66
+ }
67
+ export interface SysRoleTableType extends TableType {
68
+ data: RowRoleType[];
69
+ }
70
+ export interface SysRoleState {
71
+ tableData: SysRoleTableType;
72
+ }
73
+ export type TreeType = {
74
+ id: number;
75
+ label: string;
76
+ children?: TreeType[];
77
+ };
78
+ export type RowUserType<T = any> = {
79
+ userName: string;
80
+ userNickname: string;
81
+ roleSign: string;
82
+ department: string[];
83
+ phone: string;
84
+ email: string;
85
+ sex: string;
86
+ password: string;
87
+ overdueTime: T;
88
+ status: boolean;
89
+ describe: string;
90
+ createTime: T;
91
+ };
92
+ export interface SysUserTableType extends TableType {
93
+ data: RowUserType[];
94
+ }
95
+ export interface SysUserState {
96
+ tableData: SysUserTableType;
97
+ }
98
+ export type DeptTreeType = {
99
+ deptName: string;
100
+ createTime: string;
101
+ status: boolean;
102
+ sort: number;
103
+ describe: string;
104
+ id: number | string;
105
+ children?: DeptTreeType[];
106
+ };
107
+ export interface RowDeptType extends DeptTreeType {
108
+ deptLevel: string[];
109
+ person: string;
110
+ phone: string;
111
+ email: string;
112
+ }
113
+ export interface SysDeptTableType extends TableType {
114
+ data: DeptTreeType[];
115
+ }
116
+ export interface SysDeptState {
117
+ tableData: SysDeptTableType;
118
+ }
119
+ export type ListType = {
120
+ id: number;
121
+ label: string;
122
+ value: string;
123
+ };
124
+ export interface RowDicType {
125
+ dicName: string;
126
+ fieldName: string;
127
+ describe: string;
128
+ status: boolean;
129
+ createTime: string;
130
+ list: ListType[];
131
+ }
132
+ export interface SysDicTableType extends TableType {
133
+ data: RowDicType[];
134
+ }
135
+ export interface SysDicState {
136
+ tableData: SysDicTableType;
137
+ }
138
+ /**
139
+ * views pages
140
+ */
141
+ export type FilteringChilType = {
142
+ id: number | string;
143
+ label: string;
144
+ active: boolean;
145
+ };
146
+ export type FilterListType = {
147
+ img: string;
148
+ title: string;
149
+ evaluate: string;
150
+ collection: string;
151
+ price: string;
152
+ monSales: string;
153
+ id: number | string;
154
+ loading?: boolean;
155
+ };
156
+ export type FilteringRowType = {
157
+ title: string;
158
+ isMore: boolean;
159
+ isShowMore: boolean;
160
+ id: number | string;
161
+ children: FilteringChilType[];
162
+ };
163
+ export type TableRulesHeaderType = {
164
+ prop: string;
165
+ width: string | number;
166
+ label: string;
167
+ isRequired?: boolean;
168
+ isTooltip?: boolean;
169
+ type: string;
170
+ };
171
+ export type TableRulesState = {
172
+ tableData: {
173
+ data: EmptyObjectType[];
174
+ header: TableRulesHeaderType[];
175
+ option: SelectOptionType[];
176
+ };
177
+ };
178
+ export type TableRulesOneProps = {
179
+ name: string;
180
+ email: string;
181
+ autograph: string;
182
+ occupation: string;
183
+ };
184
+ export type RowTreeType = {
185
+ id: number;
186
+ label: string;
187
+ label1: string;
188
+ label2: string;
189
+ isShow: boolean;
190
+ children?: RowTreeType[];
191
+ };
192
+ export type NodeListState = {
193
+ id: string | number;
194
+ nodeId: string | undefined;
195
+ class: HTMLElement | string;
196
+ left: number | string;
197
+ top: number | string;
198
+ icon: string;
199
+ name: string;
200
+ };
201
+ export type LineListState = {
202
+ sourceId: string;
203
+ targetId: string;
204
+ label: string;
205
+ };
206
+ export type XyState = {
207
+ x: string | number;
208
+ y: string | number;
209
+ };
210
+ export type WorkflowState<T = any> = {
211
+ leftNavList: T[];
212
+ dropdownNode: XyState;
213
+ dropdownLine: XyState;
214
+ isShow: boolean;
215
+ jsPlumb: T;
216
+ jsPlumbNodeIndex: null | number;
217
+ jsplumbDefaults: T;
218
+ jsplumbMakeSource: T;
219
+ jsplumbMakeTarget: T;
220
+ jsplumbConnect: T;
221
+ jsplumbData: {
222
+ nodeList: NodeListState[];
223
+ lineList: LineListState[];
224
+ };
225
+ };
226
+ export type WorkflowDrawerNodeState<T = any> = {
227
+ node: {
228
+ [key: string]: T;
229
+ };
230
+ nodeRules: T;
231
+ form: T;
232
+ tabsActive: string;
233
+ loading: {
234
+ extend: boolean;
235
+ };
236
+ };
237
+ export type WorkflowDrawerLabelType = {
238
+ type: string;
239
+ label: string;
240
+ };
241
+ export type WorkflowDrawerState<T = any> = {
242
+ isOpen: boolean;
243
+ nodeData: {
244
+ type: string;
245
+ };
246
+ jsplumbConn: T;
247
+ };
248
+ /**
249
+ * views make
250
+ */
251
+ export type TableDemoPageType = {
252
+ page: number;
253
+ pageSize: number;
254
+ };
255
+ export type TableHeaderType = {
256
+ key: string;
257
+ width: string | number;
258
+ title: string;
259
+ type: string | number;
260
+ colWidth: string;
261
+ height?: string | number;
262
+ isCheck: boolean;
263
+ align: string;
264
+ headerAlign: string;
265
+ toolTip: boolean;
266
+ sortable: boolean;
267
+ };
268
+ export type TableSearchType = {
269
+ label: string;
270
+ prop: string;
271
+ placeholder: string;
272
+ required: boolean;
273
+ type: 'input' | 'date' | 'daterange' | 'monthrange' | 'select' | 'cascader';
274
+ options?: SelectOptionType[];
275
+ cascaderData?: object[];
276
+ cascaderProps?: object;
277
+ comProps?: object;
278
+ change?: (value: any) => {};
279
+ };
280
+ export type TableDemoState = {
281
+ tableData: {
282
+ columns: Object[];
283
+ config: {
284
+ isStripe: boolean;
285
+ isBorder: boolean;
286
+ isSelection: boolean;
287
+ showSelection: boolean;
288
+ isSerialNo: boolean;
289
+ pageSizes?: number[];
290
+ pageSize: number;
291
+ hideExport?: boolean;
292
+ exportFileName?: string;
293
+ hidePrint?: boolean;
294
+ printName?: string;
295
+ hideSet?: boolean;
296
+ hideRefresh?: boolean;
297
+ hidePagination?: boolean;
298
+ };
299
+ search: TableSearchType[];
300
+ param: EmptyObjectType;
301
+ defaultSort: EmptyObjectType;
302
+ };
303
+ };
304
+ export interface HttpJobMessage {
305
+ requestUri?: string | null;
306
+ httpMethod?: string | null;
307
+ body?: string | null;
308
+ timeout?: number | null;
309
+ }
310
+ export type ModifyRecord = {
311
+ createUserName?: string | null;
312
+ createTime?: string | null;
313
+ updateUserName?: string | null;
314
+ updateTime?: string | null;
315
+ remark?: string | null;
316
+ };
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export * from './src/type';
3
+ export declare const FMLogin: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ require('./src/index.vue.js');
4
+ require('./src/type.js');
5
+ var index_vue_vue_type_script_setup_true_lang = require('./src/index.vue2.js');
6
+
7
+ const FMLogin = index_vue_vue_type_script_setup_true_lang.default;
8
+
9
+ exports.FMLogin = FMLogin;
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
6
+
7
+
8
+
9
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+
7
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
8
+ ...{
9
+ name: "FMLogin"
10
+ },
11
+ __name: "index",
12
+ setup(__props) {
13
+ const login = vue.ref(false);
14
+ function handleLogin() {
15
+ login.value = true;
16
+ }
17
+ return (_ctx, _cache) => {
18
+ return vue.openBlock(), vue.createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
19
+ vue.createElementVNode(
20
+ "h1",
21
+ null,
22
+ "login",
23
+ -1
24
+ /* HOISTED */
25
+ )
26
+ ]));
27
+ };
28
+ }
29
+ });
30
+
31
+ exports.default = _sfc_main;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
File without changes
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
File without changes
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
package/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { default as installer } from './defaults';
2
+ import { App } from 'vue';
3
+ export * from 'fm-dev/es/core';
4
+ export { version } from './version';
5
+ export declare const install: (app: App) => void;
6
+ export default installer;
package/lib/index.js ADDED
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var defaults = require('./defaults.js');
6
+ require('./fmcore/index.js');
7
+ var version = require('./version.js');
8
+ var index = require('./fmcore/ui/login/index.js');
9
+
10
+ const install = defaults.default.install;
11
+
12
+ exports.default = defaults.default;
13
+ exports.version = version.version;
14
+ exports.FMLogin = index.FMLogin;
15
+ exports.install = install;
@@ -0,0 +1,4 @@
1
+ import { App, Component } from 'vue';
2
+ export declare const makeInstaller: (components?: Component[]) => {
3
+ install: (app: App) => void;
4
+ };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const makeInstaller = (components = []) => {
4
+ const install = (app) => {
5
+ components.forEach((component) => app.component(component.name, component));
6
+ };
7
+ return {
8
+ install
9
+ };
10
+ };
11
+
12
+ exports.makeInstaller = makeInstaller;
@@ -0,0 +1 @@
1
+ export declare const version = "1.0.0";
package/lib/version.js ADDED
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const version = "1.0.0";
4
+
5
+ exports.version = version;
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@fmdevui/fm-dev",
3
+ "version": "1.0.0",
4
+ "description": "Page level components developed based on Element Plus.",
5
+ "author": "fmdevui",
6
+ "keywords": [
7
+ "element-plus",
8
+ "vite",
9
+ "vite6",
10
+ "vue3",
11
+ "fm-dev",
12
+ "fmdevui",
13
+ "二次封装组件",
14
+ "封装组件",
15
+ "components"
16
+ ],
17
+ "homepage": "",
18
+ "license": "MIT",
19
+ "main": "lib/index.js",
20
+ "module": "es/index.mjs",
21
+ "types": "es/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./es/index.d.ts",
25
+ "import": "./es/index.mjs",
26
+ "require": "./lib/index.js"
27
+ },
28
+ "./global": {
29
+ "types": "./global.d.ts"
30
+ },
31
+ "./es": {
32
+ "types": "./es/index.d.ts",
33
+ "import": "./es/index.mjs"
34
+ },
35
+ "./lib": {
36
+ "types": "./lib/index.d.ts",
37
+ "require": "./lib/index.js"
38
+ },
39
+ "./es/*.mjs": {
40
+ "types": "./es/*.d.ts",
41
+ "import": "./es/*.mjs"
42
+ },
43
+ "./es/*": {
44
+ "types": [
45
+ "./es/*.d.ts",
46
+ "./es/*/index.d.ts"
47
+ ],
48
+ "import": "./es/*.mjs"
49
+ },
50
+ "./lib/*.js": {
51
+ "types": "./lib/*.d.ts",
52
+ "require": "./lib/*.js"
53
+ },
54
+ "./lib/*": {
55
+ "types": [
56
+ "./lib/*.d.ts",
57
+ "./lib/*/index.d.ts"
58
+ ],
59
+ "require": "./lib/*.js"
60
+ },
61
+ "./locale/*": {
62
+ "types": "./locale/*.d.ts",
63
+ "import": "./locale/*.mjs"
64
+ },
65
+ "./*": "./*"
66
+ },
67
+ "unpkg": "index.js",
68
+ "jsdelivr": "index.js",
69
+ "repository": {
70
+ "type": "git",
71
+ "url": ""
72
+ },
73
+ "publishConfig": {
74
+ "access": "public",
75
+ "registry": "https://registry.npmjs.org"
76
+ },
77
+ "style": "index.css",
78
+ "sideEffects": [
79
+ "dist/*",
80
+ "locale/*",
81
+ "index.css",
82
+ "theme-chalk/**/*.css",
83
+ "theme-chalk/src/**/*.scss",
84
+ "es/components/*/style/*",
85
+ "lib/components/*/style/*"
86
+ ],
87
+ "browserslist": [
88
+ "> 1%",
89
+ "not ie 11",
90
+ "not op_mini all"
91
+ ]
92
+ }
File without changes
File without changes