@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 @@
1
+
@@ -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,7 @@
1
+ import './src/index.vue.mjs';
2
+ import './src/type.mjs';
3
+ import _sfc_main from './src/index.vue2.mjs';
4
+
5
+ const FMLogin = _sfc_main;
6
+
7
+ export { 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,5 @@
1
+ import _sfc_main from './index.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,27 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, createElementVNode } from 'vue';
2
+
3
+ var _sfc_main = /* @__PURE__ */ defineComponent({
4
+ ...{
5
+ name: "FMLogin"
6
+ },
7
+ __name: "index",
8
+ setup(__props) {
9
+ const login = ref(false);
10
+ function handleLogin() {
11
+ login.value = true;
12
+ }
13
+ return (_ctx, _cache) => {
14
+ return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
15
+ createElementVNode(
16
+ "h1",
17
+ null,
18
+ "login",
19
+ -1
20
+ /* HOISTED */
21
+ )
22
+ ]));
23
+ };
24
+ }
25
+ });
26
+
27
+ export { _sfc_main as default };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+
File without changes
@@ -0,0 +1 @@
1
+
File without changes
@@ -0,0 +1 @@
1
+
package/es/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/es/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import installer from './defaults.mjs';
2
+ import './fmcore/index.mjs';
3
+ export { version } from './version.mjs';
4
+ export { FMLogin } from './fmcore/ui/login/index.mjs';
5
+
6
+ const install = installer.install;
7
+
8
+ export { installer as default, 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,10 @@
1
+ const makeInstaller = (components = []) => {
2
+ const install = (app) => {
3
+ components.forEach((component) => app.component(component.name, component));
4
+ };
5
+ return {
6
+ install
7
+ };
8
+ };
9
+
10
+ export { makeInstaller };
@@ -0,0 +1 @@
1
+ export declare const version = "1.0.0";
package/es/version.mjs ADDED
@@ -0,0 +1,3 @@
1
+ const version = "1.0.0";
2
+
3
+ export { version };
package/global.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ // GlobalComponents for Volar
2
+ declare module '@vue/runtime-core' {
3
+ export interface GlobalComponents {
4
+ FMLogin: typeof import('fm-dev') ['FMLogin']
5
+
6
+ }
7
+ }
8
+
9
+ export { }
package/index.css ADDED
File without changes
package/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ /* __APP_INFO__ */
2
+ declare const __APP_INFO__: {
3
+ pkg: {
4
+ name: string
5
+ version: string
6
+ dependencies: Recordable<string>
7
+ devDependencies: Recordable<string>
8
+ }
9
+ lastBuildTime: string
10
+ }
package/index.js ADDED
@@ -0,0 +1,60 @@
1
+ /*! fm-dev v1.0.0 */
2
+ (function (global, factory) {
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
4
+ typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
5
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FmPlus = {}, global.Vue));
6
+ })(this, (function (exports, vue) { 'use strict';
7
+
8
+ const makeInstaller = (components = []) => {
9
+ const install = (app) => {
10
+ components.forEach((component) => app.component(component.name, component));
11
+ };
12
+ return {
13
+ install
14
+ };
15
+ };
16
+
17
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...{
19
+ name: "FMLogin"
20
+ },
21
+ __name: "index",
22
+ setup(__props) {
23
+ const login = vue.ref(false);
24
+ function handleLogin() {
25
+ login.value = true;
26
+ }
27
+ return (_ctx, _cache) => {
28
+ return vue.openBlock(), vue.createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
29
+ vue.createElementVNode(
30
+ "h1",
31
+ null,
32
+ "login",
33
+ -1
34
+ /* HOISTED */
35
+ )
36
+ ]));
37
+ };
38
+ }
39
+ });
40
+
41
+ const FMLogin = _sfc_main;
42
+
43
+ const plugins = [
44
+ FMLogin
45
+ ];
46
+
47
+ var installer = makeInstaller([...plugins]);
48
+
49
+ const version = "1.0.0";
50
+
51
+ const install = installer.install;
52
+
53
+ exports.FMLogin = FMLogin;
54
+ exports.default = installer;
55
+ exports.install = install;
56
+ exports.version = version;
57
+
58
+ Object.defineProperty(exports, '__esModule', { value: true });
59
+
60
+ }));
package/index.min.js ADDED
@@ -0,0 +1 @@
1
+ /*! fm-dev v1.0.0 */(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.FmPlus={},e.Vue))})(this,function(e,n){"use strict";const a=(s=[])=>({install:t=>{s.forEach(i=>t.component(i.name,i))}});var f=n.defineComponent({name:"FMLogin",__name:"index",setup(s){const u=n.ref(!1);function t(){u.value=!0}return(i,r)=>(n.openBlock(),n.createElementBlock("div",{onClick:t},r[0]||(r[0]=[n.createElementVNode("h1",null,"login",-1)])))}});const l=f;var o=a([...[l]]);const c="1.0.0",d=o.install;e.FMLogin=l,e.default=o,e.install=d,e.version=c,Object.defineProperty(e,"__esModule",{value:!0})});
package/index.min.mjs ADDED
@@ -0,0 +1 @@
1
+ /*! fm-dev v1.0.0 */import{defineComponent as s,ref as i,createElementBlock as c,openBlock as m,createElementVNode as u}from"vue";const f=(t=[])=>({install:n=>{t.forEach(e=>n.component(e.name,e))}});var p=s({name:"FMLogin",__name:"index",setup(t){const l=i(!1);function n(){l.value=!0}return(e,o)=>(m(),c("div",{onClick:n},o[0]||(o[0]=[u("h1",null,"login",-1)])))}});const a=p,d=[a];var r=f([...d]);const g="1.0.0",_=r.install;export{a as FMLogin,r as default,_ as install,g as version};
package/index.mjs ADDED
@@ -0,0 +1,49 @@
1
+ /*! fm-dev v1.0.0 */
2
+ import { defineComponent, ref, createElementBlock, openBlock, createElementVNode } from 'vue';
3
+
4
+ const makeInstaller = (components = []) => {
5
+ const install = (app) => {
6
+ components.forEach((component) => app.component(component.name, component));
7
+ };
8
+ return {
9
+ install
10
+ };
11
+ };
12
+
13
+ var _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...{
15
+ name: "FMLogin"
16
+ },
17
+ __name: "index",
18
+ setup(__props) {
19
+ const login = ref(false);
20
+ function handleLogin() {
21
+ login.value = true;
22
+ }
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
25
+ createElementVNode(
26
+ "h1",
27
+ null,
28
+ "login",
29
+ -1
30
+ /* HOISTED */
31
+ )
32
+ ]));
33
+ };
34
+ }
35
+ });
36
+
37
+ const FMLogin = _sfc_main;
38
+
39
+ const plugins = [
40
+ FMLogin
41
+ ];
42
+
43
+ var installer = makeInstaller([...plugins]);
44
+
45
+ const version = "1.0.0";
46
+
47
+ const install = installer.install;
48
+
49
+ export { FMLogin, installer as default, install, version };
@@ -0,0 +1,3 @@
1
+ import { Component } from 'vue';
2
+ declare const plugins: Component[];
3
+ export default plugins;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('./fmcore/ui/login/index.js');
6
+
7
+ const plugins = [
8
+ index.FMLogin
9
+ ];
10
+
11
+ exports.default = plugins;
@@ -0,0 +1,5 @@
1
+ import { App } from 'vue';
2
+ declare const _default: {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var makeInstaller = require('./make-installer.js');
6
+ var component = require('./component.js');
7
+
8
+ var installer = makeInstaller.makeInstaller([...component.default]);
9
+
10
+ exports.default = installer;
@@ -0,0 +1,2 @@
1
+ export * from './ui/login';
2
+ export * from './types';
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var index = require('./ui/login/index.js');
4
+ require('./types/index.js');
5
+
6
+
7
+
8
+ exports.FMLogin = index.FMLogin;
@@ -0,0 +1,11 @@
1
+ import * as axios from 'axios';
2
+ declare module 'axios' {
3
+ interface AxiosResponse<T = any> {
4
+ code: number;
5
+ data: T;
6
+ message: string;
7
+ type?: string;
8
+ [key: string]: T;
9
+ }
10
+ }
11
+ export default axios;
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var axios = require('axios');
6
+
7
+ function _interopNamespaceDefault(e) {
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+
24
+ var axios__namespace = /*#__PURE__*/_interopNamespaceDefault(axios);
25
+
26
+
27
+
28
+ exports.default = axios__namespace;