@fmdevui/fm-dev 1.0.11 → 1.0.12
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/es/component.mjs +6 -1
- package/es/core/hook/useVxeTableOptionsHook.d.ts +4 -4
- package/es/core/ui/components/index.d.ts +4 -2
- package/es/core/ui/components/noticeBar/index.vue.d.ts +4 -4
- package/es/index.mjs +3 -1
- package/es/make-installer.mjs +4 -0
- package/es/packages/core/index.mjs +4 -1
- package/es/packages/core/ui/components/index.mjs +3 -16
- package/index.js +49 -55
- package/index.min.js +25 -25
- package/index.min.mjs +25 -25
- package/index.mjs +48 -56
- package/lib/component.js +6 -1
- package/lib/core/hook/useVxeTableOptionsHook.d.ts +4 -4
- package/lib/core/ui/components/index.d.ts +4 -2
- package/lib/core/ui/components/noticeBar/index.vue.d.ts +4 -4
- package/lib/index.js +6 -2
- package/lib/make-installer.js +4 -0
- package/lib/packages/core/index.js +7 -2
- package/lib/packages/core/ui/components/index.js +5 -12
- package/package.json +1 -1
package/es/component.mjs
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { FmLogin } from './packages/core/ui/login/index.mjs';
|
|
2
|
+
import './packages/core/ui/components/index.mjs';
|
|
3
|
+
import _sfc_main from './packages/core/ui/components/transfer/index.vue2.mjs';
|
|
4
|
+
import _sfc_main$1 from './packages/core/ui/components/noticeBar/index.vue2.mjs';
|
|
2
5
|
|
|
3
6
|
const plugins = [
|
|
4
|
-
FmLogin
|
|
7
|
+
FmLogin,
|
|
8
|
+
_sfc_main,
|
|
9
|
+
_sfc_main$1
|
|
5
10
|
];
|
|
6
11
|
|
|
7
12
|
export { plugins as default };
|
|
@@ -688,13 +688,13 @@ export declare const useVxeTable: <T>(opt: iVxeOption, extras?: VxeGridProps<T>)
|
|
|
688
688
|
title?: import("vxe-table").VxeButtonPropTypes.Title | undefined;
|
|
689
689
|
circle?: import("vxe-table").VxeButtonPropTypes.Circle | undefined;
|
|
690
690
|
type?: import("vxe-table").VxeButtonPropTypes.Type | undefined;
|
|
691
|
-
|
|
691
|
+
disabled?: import("vxe-table").VxeButtonPropTypes.Disabled | undefined;
|
|
692
692
|
mode?: import("vxe-table").VxeButtonPropTypes.Mode | undefined;
|
|
693
|
+
icon?: import("vxe-table").VxeButtonPropTypes.Icon | undefined;
|
|
693
694
|
round?: import("vxe-table").VxeButtonPropTypes.Round | undefined;
|
|
694
695
|
loading?: import("vxe-table").VxeButtonPropTypes.Loading | undefined;
|
|
695
696
|
align?: import("vxe-table").VxeButtonPropTypes.Align | undefined;
|
|
696
697
|
className?: import("vxe-table").VxeButtonPropTypes.ClassName | undefined;
|
|
697
|
-
disabled?: import("vxe-table").VxeButtonPropTypes.Disabled | undefined;
|
|
698
698
|
content?: import("vxe-table").VxeButtonPropTypes.Content | undefined;
|
|
699
699
|
routerLink?: {
|
|
700
700
|
path?: string | undefined;
|
|
@@ -774,13 +774,13 @@ export declare const useVxeTable: <T>(opt: iVxeOption, extras?: VxeGridProps<T>)
|
|
|
774
774
|
title?: import("vxe-table").VxeButtonPropTypes.Title | undefined;
|
|
775
775
|
circle?: import("vxe-table").VxeButtonPropTypes.Circle | undefined;
|
|
776
776
|
type?: import("vxe-table").VxeButtonPropTypes.Type | undefined;
|
|
777
|
-
|
|
777
|
+
disabled?: import("vxe-table").VxeButtonPropTypes.Disabled | undefined;
|
|
778
778
|
mode?: import("vxe-table").VxeButtonPropTypes.Mode | undefined;
|
|
779
|
+
icon?: import("vxe-table").VxeButtonPropTypes.Icon | undefined;
|
|
779
780
|
round?: import("vxe-table").VxeButtonPropTypes.Round | undefined;
|
|
780
781
|
loading?: import("vxe-table").VxeButtonPropTypes.Loading | undefined;
|
|
781
782
|
align?: import("vxe-table").VxeButtonPropTypes.Align | undefined;
|
|
782
783
|
className?: import("vxe-table").VxeButtonPropTypes.ClassName | undefined;
|
|
783
|
-
disabled?: import("vxe-table").VxeButtonPropTypes.Disabled | undefined;
|
|
784
784
|
content?: import("vxe-table").VxeButtonPropTypes.Content | undefined;
|
|
785
785
|
routerLink?: {
|
|
786
786
|
path?: string | undefined;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as FmTransfer } from './transfer/index.vue';
|
|
2
|
+
import { default as FmNoticeBar } from './noticeBar/index.vue';
|
|
3
|
+
import { elSvg } from './svgIcon';
|
|
4
|
+
export { FmTransfer, FmNoticeBar, elSvg };
|
|
@@ -17,7 +17,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
|
-
type: (
|
|
20
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
21
|
default: number;
|
|
22
22
|
};
|
|
23
23
|
height: {
|
|
@@ -65,7 +65,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
65
65
|
default: string;
|
|
66
66
|
};
|
|
67
67
|
size: {
|
|
68
|
-
type: (
|
|
68
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
69
69
|
default: number;
|
|
70
70
|
};
|
|
71
71
|
height: {
|
|
@@ -99,9 +99,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
99
99
|
text: string;
|
|
100
100
|
size: string | number;
|
|
101
101
|
mode: string;
|
|
102
|
-
height: number;
|
|
103
|
-
background: string;
|
|
104
102
|
color: string;
|
|
103
|
+
background: string;
|
|
104
|
+
height: number;
|
|
105
105
|
delay: number;
|
|
106
106
|
speed: number;
|
|
107
107
|
scrollable: boolean;
|
package/es/index.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import installer from './defaults.mjs';
|
|
2
2
|
import './packages/core/index.mjs';
|
|
3
3
|
export { version } from './version.mjs';
|
|
4
|
-
export {
|
|
4
|
+
export { default as FmTransfer } from './packages/core/ui/components/transfer/index.vue2.mjs';
|
|
5
|
+
export { default as FmNoticeBar } from './packages/core/ui/components/noticeBar/index.vue2.mjs';
|
|
6
|
+
export { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
|
|
5
7
|
export { FmLogin } from './packages/core/ui/login/index.mjs';
|
|
6
8
|
export { NextLoading } from './packages/core/ui/loading/index.mjs';
|
|
7
9
|
export { useBaseApi } from './packages/core/api/base/index.mjs';
|
package/es/make-installer.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import './packages/core/ui/components/index.mjs';
|
|
2
|
+
import { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
|
|
3
|
+
|
|
1
4
|
const makeInstaller = (components = []) => {
|
|
2
5
|
const install = (app) => {
|
|
3
6
|
components.forEach((component) => app.component(component.name, component));
|
|
7
|
+
elSvg(app);
|
|
4
8
|
};
|
|
5
9
|
return {
|
|
6
10
|
install
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import './ui/components/index.mjs';
|
|
2
2
|
export { FmLogin } from './ui/login/index.mjs';
|
|
3
3
|
export { NextLoading } from './ui/loading/index.mjs';
|
|
4
4
|
import './api/index.mjs';
|
|
@@ -10,6 +10,9 @@ export { auth, authAll, auths, hAuth, hAuthAll, hAuths } from './auth/index.mjs'
|
|
|
10
10
|
export { useDateTimeShortCust } from './hook/dateTimeShortCust.mjs';
|
|
11
11
|
export { useVxeTable } from './hook/useVxeTableOptionsHook.mjs';
|
|
12
12
|
import './types/index.mjs';
|
|
13
|
+
export { default as FmTransfer } from './ui/components/transfer/index.vue2.mjs';
|
|
14
|
+
export { default as FmNoticeBar } from './ui/components/noticeBar/index.vue2.mjs';
|
|
15
|
+
export { elSvg } from './ui/components/svgIcon/index.mjs';
|
|
13
16
|
export { useBaseApi } from './api/base/index.mjs';
|
|
14
17
|
export { feature, useSysApi } from './api/sys/index.mjs';
|
|
15
18
|
export { useLoginApi } from './api/login/index.mjs';
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import './transfer/index.vue.mjs';
|
|
2
2
|
import './noticeBar/index.vue.mjs';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const components = {
|
|
8
|
-
FmTransfer: _sfc_main$1,
|
|
9
|
-
FmNoticeBar: _sfc_main
|
|
10
|
-
};
|
|
11
|
-
function initCommonUI(app) {
|
|
12
|
-
for (const key in components) {
|
|
13
|
-
app.component(key, components[key]);
|
|
14
|
-
}
|
|
15
|
-
elSvg(app);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { initCommonUI };
|
|
3
|
+
export { elSvg } from './svgIcon/index.mjs';
|
|
4
|
+
export { default as FmTransfer } from './transfer/index.vue2.mjs';
|
|
5
|
+
export { default as FmNoticeBar } from './noticeBar/index.vue2.mjs';
|
package/index.js
CHANGED
|
@@ -1,51 +1,10 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.12 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
|
|
5
5
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FmPlus = {}, global.Vue, global.crypto, global.require$$0, global.require$$1, global.require$$2, global.util, global.stream, global.require$$4, global.zlib, global.ElementPlus));
|
|
6
6
|
})(this, (function (exports, vue, crypto, require$$0, require$$1, require$$2, util, stream, require$$4, zlib, elementPlus) { 'use strict';
|
|
7
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$3 = /* @__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 xxxxx ",
|
|
33
|
-
-1
|
|
34
|
-
/* HOISTED */
|
|
35
|
-
)
|
|
36
|
-
]));
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const FmLogin = _sfc_main$3;
|
|
42
|
-
|
|
43
|
-
const plugins = [
|
|
44
|
-
FmLogin
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
var installer = makeInstaller([...plugins]);
|
|
48
|
-
|
|
49
8
|
const _hoisted_1$2 = { class: "fm-transfer-panel" };
|
|
50
9
|
const _hoisted_2$1 = { class: "fm-transfer-panel__header" };
|
|
51
10
|
const _hoisted_3 = { class: "fm-transfer-panel__body" };
|
|
@@ -56,7 +15,7 @@
|
|
|
56
15
|
const _hoisted_8 = { class: "fm-transfer-panel" };
|
|
57
16
|
const _hoisted_9 = { class: "fm-transfer-panel__header" };
|
|
58
17
|
const _hoisted_10 = { class: "fm-transfer-panel__body" };
|
|
59
|
-
var _sfc_main$
|
|
18
|
+
var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
60
19
|
...{
|
|
61
20
|
name: "FmTransfer"
|
|
62
21
|
},
|
|
@@ -415,7 +374,7 @@
|
|
|
415
374
|
|
|
416
375
|
const _hoisted_1$1 = { class: "notice-bar-warp-text-box" };
|
|
417
376
|
const _hoisted_2 = ["innerHTML"];
|
|
418
|
-
var _sfc_main$
|
|
377
|
+
var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
419
378
|
__name: "index",
|
|
420
379
|
props: {
|
|
421
380
|
mode: { type: String, default: "" },
|
|
@@ -6594,7 +6553,7 @@
|
|
|
6594
6553
|
});
|
|
6595
6554
|
|
|
6596
6555
|
const _hoisted_1 = ["src"];
|
|
6597
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6556
|
+
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
6598
6557
|
__name: "svgicon",
|
|
6599
6558
|
props: {
|
|
6600
6559
|
// svg 图标组件名字
|
|
@@ -6682,19 +6641,52 @@
|
|
|
6682
6641
|
for (const i in icons) {
|
|
6683
6642
|
app.component(`ele-${icons[i].name}`, icons[i]);
|
|
6684
6643
|
}
|
|
6685
|
-
app.component("SvgIcon", _sfc_main);
|
|
6644
|
+
app.component("SvgIcon", _sfc_main$1);
|
|
6686
6645
|
}
|
|
6687
6646
|
|
|
6688
|
-
const components = {
|
|
6689
|
-
|
|
6690
|
-
|
|
6647
|
+
const makeInstaller = (components = []) => {
|
|
6648
|
+
const install = (app) => {
|
|
6649
|
+
components.forEach((component) => app.component(component.name, component));
|
|
6650
|
+
elSvg(app);
|
|
6651
|
+
};
|
|
6652
|
+
return {
|
|
6653
|
+
install
|
|
6654
|
+
};
|
|
6691
6655
|
};
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6656
|
+
|
|
6657
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6658
|
+
...{
|
|
6659
|
+
name: "FmLogin"
|
|
6660
|
+
},
|
|
6661
|
+
__name: "index",
|
|
6662
|
+
setup(__props) {
|
|
6663
|
+
const login = vue.ref(false);
|
|
6664
|
+
function handleLogin() {
|
|
6665
|
+
login.value = true;
|
|
6666
|
+
}
|
|
6667
|
+
return (_ctx, _cache) => {
|
|
6668
|
+
return vue.openBlock(), vue.createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
|
|
6669
|
+
vue.createElementVNode(
|
|
6670
|
+
"h1",
|
|
6671
|
+
null,
|
|
6672
|
+
"login xxxxx ",
|
|
6673
|
+
-1
|
|
6674
|
+
/* HOISTED */
|
|
6675
|
+
)
|
|
6676
|
+
]));
|
|
6677
|
+
};
|
|
6695
6678
|
}
|
|
6696
|
-
|
|
6697
|
-
|
|
6679
|
+
});
|
|
6680
|
+
|
|
6681
|
+
const FmLogin = _sfc_main;
|
|
6682
|
+
|
|
6683
|
+
const plugins = [
|
|
6684
|
+
FmLogin,
|
|
6685
|
+
_sfc_main$3,
|
|
6686
|
+
_sfc_main$2
|
|
6687
|
+
];
|
|
6688
|
+
|
|
6689
|
+
var installer = makeInstaller([...plugins]);
|
|
6698
6690
|
|
|
6699
6691
|
const NextLoading = {
|
|
6700
6692
|
// 创建 loading
|
|
@@ -51675,6 +51667,8 @@
|
|
|
51675
51667
|
const install = installer.install;
|
|
51676
51668
|
|
|
51677
51669
|
exports.FmLogin = FmLogin;
|
|
51670
|
+
exports.FmNoticeBar = _sfc_main$2;
|
|
51671
|
+
exports.FmTransfer = _sfc_main$3;
|
|
51678
51672
|
exports.Local = Local;
|
|
51679
51673
|
exports.NextLoading = NextLoading;
|
|
51680
51674
|
exports.PUB = PUB;
|
|
@@ -51701,6 +51695,7 @@
|
|
|
51701
51695
|
exports.downloadByOnlineUrl = downloadByOnlineUrl;
|
|
51702
51696
|
exports.downloadByUrl = downloadByUrl;
|
|
51703
51697
|
exports.downloadStreamFile = downloadStreamFile;
|
|
51698
|
+
exports.elSvg = elSvg;
|
|
51704
51699
|
exports.feature = feature;
|
|
51705
51700
|
exports.fileToBase64 = fileToBase64;
|
|
51706
51701
|
exports.formatAxis = formatAxis;
|
|
@@ -51716,7 +51711,6 @@
|
|
|
51716
51711
|
exports.hAuthAll = hAuthAll;
|
|
51717
51712
|
exports.hAuths = hAuths;
|
|
51718
51713
|
exports.i18n = i18n;
|
|
51719
|
-
exports.initCommonUI = initCommonUI;
|
|
51720
51714
|
exports.install = install;
|
|
51721
51715
|
exports.isObjectValueEqual = isObjectValueEqual;
|
|
51722
51716
|
exports.iso_3166_1_CountryList = iso_3166_1_CountryList;
|