@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.
- package/README.md +18 -0
- package/es/component.d.ts +3 -0
- package/es/component.mjs +7 -0
- package/es/defaults.d.ts +5 -0
- package/es/defaults.mjs +6 -0
- package/es/fmcore/index.d.ts +2 -0
- package/es/fmcore/index.mjs +2 -0
- package/es/fmcore/types/axios/index.d.ts +11 -0
- package/es/fmcore/types/axios/index.mjs +2 -0
- package/es/fmcore/types/comm/index.d.ts +26 -0
- package/es/fmcore/types/comm/index.mjs +1 -0
- package/es/fmcore/types/emitt/index.d.ts +37 -0
- package/es/fmcore/types/emitt/index.mjs +1 -0
- package/es/fmcore/types/index.d.ts +8 -0
- package/es/fmcore/types/index.mjs +8 -0
- package/es/fmcore/types/layout/index.d.ts +47 -0
- package/es/fmcore/types/layout/index.mjs +1 -0
- package/es/fmcore/types/menu/MenuOutput.d.ts +131 -0
- package/es/fmcore/types/menu/MenuOutput.mjs +1 -0
- package/es/fmcore/types/menu/index.d.ts +1 -0
- package/es/fmcore/types/menu/index.mjs +1 -0
- package/es/fmcore/types/menu/menu-type-enum.d.ts +5 -0
- package/es/fmcore/types/menu/menu-type-enum.mjs +8 -0
- package/es/fmcore/types/menu/status-enum.d.ts +9 -0
- package/es/fmcore/types/menu/status-enum.mjs +7 -0
- package/es/fmcore/types/menu/sys-menu-meta.d.ts +57 -0
- package/es/fmcore/types/menu/sys-menu-meta.mjs +1 -0
- package/es/fmcore/types/pinia/index.d.ts +99 -0
- package/es/fmcore/types/pinia/index.mjs +1 -0
- package/es/fmcore/types/router/index.d.ts +41 -0
- package/es/fmcore/types/router/index.mjs +1 -0
- package/es/fmcore/types/table/index.d.ts +8 -0
- package/es/fmcore/types/table/index.mjs +1 -0
- package/es/fmcore/types/view/index.d.ts +316 -0
- package/es/fmcore/types/view/index.mjs +1 -0
- package/es/fmcore/ui/login/index.d.ts +3 -0
- package/es/fmcore/ui/login/index.mjs +7 -0
- package/es/fmcore/ui/login/src/index.vue.d.ts +3 -0
- package/es/fmcore/ui/login/src/index.vue.mjs +5 -0
- package/es/fmcore/ui/login/src/index.vue2.mjs +27 -0
- package/es/fmcore/ui/login/src/type.d.ts +1 -0
- package/es/fmcore/ui/login/src/type.mjs +1 -0
- package/es/fmcore/ui/login/style/css.d.ts +0 -0
- package/es/fmcore/ui/login/style/css.mjs +1 -0
- package/es/fmcore/ui/login/style/index.d.ts +0 -0
- package/es/fmcore/ui/login/style/index.mjs +1 -0
- package/es/index.d.ts +6 -0
- package/es/index.mjs +8 -0
- package/es/make-installer.d.ts +4 -0
- package/es/make-installer.mjs +10 -0
- package/es/version.d.ts +1 -0
- package/es/version.mjs +3 -0
- package/global.d.ts +9 -0
- package/index.css +0 -0
- package/index.d.ts +10 -0
- package/index.js +60 -0
- package/index.min.js +1 -0
- package/index.min.mjs +1 -0
- package/index.mjs +49 -0
- package/lib/component.d.ts +3 -0
- package/lib/component.js +11 -0
- package/lib/defaults.d.ts +5 -0
- package/lib/defaults.js +10 -0
- package/lib/fmcore/index.d.ts +2 -0
- package/lib/fmcore/index.js +8 -0
- package/lib/fmcore/types/axios/index.d.ts +11 -0
- package/lib/fmcore/types/axios/index.js +28 -0
- package/lib/fmcore/types/comm/index.d.ts +26 -0
- package/lib/fmcore/types/comm/index.js +2 -0
- package/lib/fmcore/types/emitt/index.d.ts +37 -0
- package/lib/fmcore/types/emitt/index.js +2 -0
- package/lib/fmcore/types/index.d.ts +8 -0
- package/lib/fmcore/types/index.js +11 -0
- package/lib/fmcore/types/layout/index.d.ts +47 -0
- package/lib/fmcore/types/layout/index.js +2 -0
- package/lib/fmcore/types/menu/MenuOutput.d.ts +131 -0
- package/lib/fmcore/types/menu/MenuOutput.js +2 -0
- package/lib/fmcore/types/menu/index.d.ts +1 -0
- package/lib/fmcore/types/menu/index.js +4 -0
- package/lib/fmcore/types/menu/menu-type-enum.d.ts +5 -0
- package/lib/fmcore/types/menu/menu-type-enum.js +10 -0
- package/lib/fmcore/types/menu/status-enum.d.ts +9 -0
- package/lib/fmcore/types/menu/status-enum.js +9 -0
- package/lib/fmcore/types/menu/sys-menu-meta.d.ts +57 -0
- package/lib/fmcore/types/menu/sys-menu-meta.js +2 -0
- package/lib/fmcore/types/pinia/index.d.ts +99 -0
- package/lib/fmcore/types/pinia/index.js +2 -0
- package/lib/fmcore/types/router/index.d.ts +41 -0
- package/lib/fmcore/types/router/index.js +2 -0
- package/lib/fmcore/types/table/index.d.ts +8 -0
- package/lib/fmcore/types/table/index.js +2 -0
- package/lib/fmcore/types/view/index.d.ts +316 -0
- package/lib/fmcore/types/view/index.js +2 -0
- package/lib/fmcore/ui/login/index.d.ts +3 -0
- package/lib/fmcore/ui/login/index.js +9 -0
- package/lib/fmcore/ui/login/src/index.vue.d.ts +3 -0
- package/lib/fmcore/ui/login/src/index.vue.js +9 -0
- package/lib/fmcore/ui/login/src/index.vue2.js +31 -0
- package/lib/fmcore/ui/login/src/type.d.ts +1 -0
- package/lib/fmcore/ui/login/src/type.js +2 -0
- package/lib/fmcore/ui/login/style/css.d.ts +0 -0
- package/lib/fmcore/ui/login/style/css.js +2 -0
- package/lib/fmcore/ui/login/style/index.d.ts +0 -0
- package/lib/fmcore/ui/login/style/index.js +2 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +15 -0
- package/lib/make-installer.d.ts +4 -0
- package/lib/make-installer.js +12 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +5 -0
- package/package.json +92 -0
- package/theme-chalk/index.css +0 -0
- 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,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,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
package/es/index.mjs
ADDED
package/es/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "1.0.0";
|
package/es/version.mjs
ADDED
package/global.d.ts
ADDED
package/index.css
ADDED
|
File without changes
|
package/index.d.ts
ADDED
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 };
|
package/lib/component.js
ADDED
package/lib/defaults.js
ADDED
|
@@ -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,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;
|