@fmdevui/fm-dev 1.0.12 → 1.0.14

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 CHANGED
@@ -1,12 +1,10 @@
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
+ import { FmTransfer, FmNoticeBar } from './packages/core/ui/components/index.mjs';
5
3
 
6
4
  const plugins = [
7
5
  FmLogin,
8
- _sfc_main,
9
- _sfc_main$1
6
+ FmTransfer,
7
+ FmNoticeBar
10
8
  ];
11
9
 
12
10
  export { plugins as default };
@@ -1,4 +1,172 @@
1
- import { default as FmTransfer } from './transfer/index.vue';
2
- import { default as FmNoticeBar } from './noticeBar/index.vue';
3
1
  import { elSvg } from './svgIcon';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const FmTransfer: DefineComponent<ExtractPropTypes<{
4
+ leftTitle: StringConstructor;
5
+ rightTitle: StringConstructor;
6
+ options: {
7
+ type: ObjectConstructor;
8
+ default: () => {
9
+ value: string;
10
+ label: string;
11
+ disabled: string;
12
+ };
13
+ };
14
+ leftData: {
15
+ type: ArrayConstructor;
16
+ default: () => never[];
17
+ };
18
+ rightData: {
19
+ type: ArrayConstructor;
20
+ default: () => never[];
21
+ };
22
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
+ left: (...args: any[]) => void;
24
+ right: (...args: any[]) => void;
25
+ allLeft: (...args: any[]) => void;
26
+ allRight: (...args: any[]) => void;
27
+ "update:leftData": (...args: any[]) => void;
28
+ "update:rightData": (...args: any[]) => void;
29
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
30
+ leftTitle: StringConstructor;
31
+ rightTitle: StringConstructor;
32
+ options: {
33
+ type: ObjectConstructor;
34
+ default: () => {
35
+ value: string;
36
+ label: string;
37
+ disabled: string;
38
+ };
39
+ };
40
+ leftData: {
41
+ type: ArrayConstructor;
42
+ default: () => never[];
43
+ };
44
+ rightData: {
45
+ type: ArrayConstructor;
46
+ default: () => never[];
47
+ };
48
+ }>> & Readonly<{
49
+ onLeft?: ((...args: any[]) => any) | undefined;
50
+ onRight?: ((...args: any[]) => any) | undefined;
51
+ onAllLeft?: ((...args: any[]) => any) | undefined;
52
+ onAllRight?: ((...args: any[]) => any) | undefined;
53
+ "onUpdate:leftData"?: ((...args: any[]) => any) | undefined;
54
+ "onUpdate:rightData"?: ((...args: any[]) => any) | undefined;
55
+ }>, {
56
+ options: Record<string, any>;
57
+ leftData: unknown[];
58
+ rightData: unknown[];
59
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
60
+ declare const FmNoticeBar: DefineComponent<ExtractPropTypes<{
61
+ mode: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ text: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ color: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ background: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ size: {
78
+ type: (StringConstructor | NumberConstructor)[];
79
+ default: number;
80
+ };
81
+ height: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ delay: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ speed: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ scrollable: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ leftIcon: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ rightIcon: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
106
+ close: (...args: any[]) => void;
107
+ link: (...args: any[]) => void;
108
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
109
+ mode: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ text: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ color: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ background: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ size: {
126
+ type: (StringConstructor | NumberConstructor)[];
127
+ default: number;
128
+ };
129
+ height: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ };
133
+ delay: {
134
+ type: NumberConstructor;
135
+ default: number;
136
+ };
137
+ speed: {
138
+ type: NumberConstructor;
139
+ default: number;
140
+ };
141
+ scrollable: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ leftIcon: {
146
+ type: StringConstructor;
147
+ default: string;
148
+ };
149
+ rightIcon: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ }>> & Readonly<{
154
+ onClose?: ((...args: any[]) => any) | undefined;
155
+ onLink?: ((...args: any[]) => any) | undefined;
156
+ }>, {
157
+ text: string;
158
+ size: string | number;
159
+ mode: string;
160
+ color: string;
161
+ background: string;
162
+ height: number;
163
+ delay: number;
164
+ speed: number;
165
+ scrollable: boolean;
166
+ leftIcon: string;
167
+ rightIcon: string;
168
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
169
+ noticeBarWarpRef: HTMLDivElement;
170
+ noticeBarTextRef: HTMLDivElement;
171
+ }, HTMLDivElement>;
4
172
  export { FmTransfer, FmNoticeBar, elSvg };
package/es/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import installer from './defaults.mjs';
2
2
  import './packages/core/index.mjs';
3
3
  export { version } from './version.mjs';
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';
4
+ export { FmNoticeBar, FmTransfer } from './packages/core/ui/components/index.mjs';
6
5
  export { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
7
6
  export { FmLogin } from './packages/core/ui/login/index.mjs';
8
7
  export { NextLoading } from './packages/core/ui/loading/index.mjs';
@@ -4,7 +4,8 @@ import { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
4
4
  const makeInstaller = (components = []) => {
5
5
  const install = (app) => {
6
6
  components.forEach((component) => app.component(component.name, component));
7
- elSvg(app);
7
+ if (app)
8
+ elSvg(app);
8
9
  };
9
10
  return {
10
11
  install
@@ -1,4 +1,4 @@
1
- import './ui/components/index.mjs';
1
+ export { FmNoticeBar, FmTransfer } from './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,8 +10,6 @@ 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
13
  export { elSvg } from './ui/components/svgIcon/index.mjs';
16
14
  export { useBaseApi } from './api/base/index.mjs';
17
15
  export { feature, useSysApi } from './api/sys/index.mjs';
@@ -1,5 +1,10 @@
1
1
  import './transfer/index.vue.mjs';
2
2
  import './noticeBar/index.vue.mjs';
3
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';
4
+ import _sfc_main from './transfer/index.vue2.mjs';
5
+ import _sfc_main$1 from './noticeBar/index.vue2.mjs';
6
+
7
+ const FmTransfer = _sfc_main;
8
+ const FmNoticeBar = _sfc_main$1;
9
+
10
+ export { FmNoticeBar, FmTransfer };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.12 */
1
+ /*! fm-dev v1.0.14 */
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) :
@@ -6644,10 +6644,14 @@
6644
6644
  app.component("SvgIcon", _sfc_main$1);
6645
6645
  }
6646
6646
 
6647
+ const FmTransfer = _sfc_main$3;
6648
+ const FmNoticeBar = _sfc_main$2;
6649
+
6647
6650
  const makeInstaller = (components = []) => {
6648
6651
  const install = (app) => {
6649
6652
  components.forEach((component) => app.component(component.name, component));
6650
- elSvg(app);
6653
+ if (app)
6654
+ elSvg(app);
6651
6655
  };
6652
6656
  return {
6653
6657
  install
@@ -6682,8 +6686,8 @@
6682
6686
 
6683
6687
  const plugins = [
6684
6688
  FmLogin,
6685
- _sfc_main$3,
6686
- _sfc_main$2
6689
+ FmTransfer,
6690
+ FmNoticeBar
6687
6691
  ];
6688
6692
 
6689
6693
  var installer = makeInstaller([...plugins]);
@@ -51667,8 +51671,8 @@
51667
51671
  const install = installer.install;
51668
51672
 
51669
51673
  exports.FmLogin = FmLogin;
51670
- exports.FmNoticeBar = _sfc_main$2;
51671
- exports.FmTransfer = _sfc_main$3;
51674
+ exports.FmNoticeBar = FmNoticeBar;
51675
+ exports.FmTransfer = FmTransfer;
51672
51676
  exports.Local = Local;
51673
51677
  exports.NextLoading = NextLoading;
51674
51678
  exports.PUB = PUB;