@fox-js/foxui-pad 4.1.1-4 → 4.1.1-6
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/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +7062 -6832
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +86 -10
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -56,8 +56,10 @@ import { ElImage as FoxImage } from './base';
|
|
|
56
56
|
import { ElImageViewer as FoxImageViewer } from './base';
|
|
57
57
|
import { ElInput as FoxInput } from './base';
|
|
58
58
|
import { ElInputNumber as FoxInputNumber } from './base';
|
|
59
|
+
import { ElInputTag as FoxInputTag } from './base';
|
|
59
60
|
import { ElLink as FoxLink } from './base';
|
|
60
61
|
import { ElMain as FoxMain } from './base';
|
|
62
|
+
import { ElMention as FoxMention } from './base';
|
|
61
63
|
import { ElMenu as FoxMenu } from './base';
|
|
62
64
|
import { ElMenuItem as FoxMenuItem } from './base';
|
|
63
65
|
import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
|
|
@@ -153,6 +155,10 @@ export declare class Broadcast {
|
|
|
153
155
|
* 名称
|
|
154
156
|
*/
|
|
155
157
|
private name?;
|
|
158
|
+
/**
|
|
159
|
+
* 持久消息注册表
|
|
160
|
+
*/
|
|
161
|
+
private persistantMessages;
|
|
156
162
|
/**
|
|
157
163
|
* 构造函数
|
|
158
164
|
* @param parent
|
|
@@ -174,6 +180,46 @@ export declare class Broadcast {
|
|
|
174
180
|
* 销毁
|
|
175
181
|
*/
|
|
176
182
|
destroy(): void;
|
|
183
|
+
/**
|
|
184
|
+
* 设置持久化消息
|
|
185
|
+
* @param matched
|
|
186
|
+
* @param action
|
|
187
|
+
* @param args
|
|
188
|
+
*/
|
|
189
|
+
private setPersistantMessage;
|
|
190
|
+
/**
|
|
191
|
+
* 删除持久化消息
|
|
192
|
+
* @param matched
|
|
193
|
+
* @param action
|
|
194
|
+
* @param args
|
|
195
|
+
*/
|
|
196
|
+
private deletePersistantMessage;
|
|
197
|
+
/**
|
|
198
|
+
* 获取持久化消息列表
|
|
199
|
+
* @returns
|
|
200
|
+
*/
|
|
201
|
+
getPersistantMessages(): PersistantMessage[];
|
|
202
|
+
/**
|
|
203
|
+
* 清空持久化消息列表
|
|
204
|
+
*/
|
|
205
|
+
clearPersistantMessage(): void;
|
|
206
|
+
/**
|
|
207
|
+
* 判断是否匹配
|
|
208
|
+
* @param name
|
|
209
|
+
* @param matched
|
|
210
|
+
* @returns
|
|
211
|
+
*/
|
|
212
|
+
private isMatched;
|
|
213
|
+
/**
|
|
214
|
+
* 触发函数
|
|
215
|
+
* @param action
|
|
216
|
+
* @param args
|
|
217
|
+
*/
|
|
218
|
+
private trigger;
|
|
219
|
+
/**
|
|
220
|
+
* 拉取持久消息
|
|
221
|
+
*/
|
|
222
|
+
pull(): void;
|
|
177
223
|
/**
|
|
178
224
|
* 发生消息
|
|
179
225
|
* @param matched
|
|
@@ -204,6 +250,9 @@ export declare interface BroadcastCallback {
|
|
|
204
250
|
(...args: any[]): Result;
|
|
205
251
|
}
|
|
206
252
|
|
|
253
|
+
/**
|
|
254
|
+
* broadcast key
|
|
255
|
+
*/
|
|
207
256
|
export declare const BroadcastKey: unique symbol;
|
|
208
257
|
|
|
209
258
|
export declare function cancelRaf(id: number): void;
|
|
@@ -946,10 +995,14 @@ export { FoxInput }
|
|
|
946
995
|
|
|
947
996
|
export { FoxInputNumber }
|
|
948
997
|
|
|
998
|
+
export { FoxInputTag }
|
|
999
|
+
|
|
949
1000
|
export { FoxLink }
|
|
950
1001
|
|
|
951
1002
|
export { FoxMain }
|
|
952
1003
|
|
|
1004
|
+
export { FoxMention }
|
|
1005
|
+
|
|
953
1006
|
export { FoxMenu }
|
|
954
1007
|
|
|
955
1008
|
export { FoxMenuItem }
|
|
@@ -1205,12 +1258,6 @@ declare interface Installer {
|
|
|
1205
1258
|
(app: App, options?: any): void;
|
|
1206
1259
|
}
|
|
1207
1260
|
|
|
1208
|
-
/**
|
|
1209
|
-
* 安装校验规则
|
|
1210
|
-
* @param proxy
|
|
1211
|
-
*/
|
|
1212
|
-
export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
|
|
1213
|
-
|
|
1214
1261
|
/**
|
|
1215
1262
|
* 获取整数长度
|
|
1216
1263
|
* @param value
|
|
@@ -1392,8 +1439,11 @@ export declare interface Matched {
|
|
|
1392
1439
|
name?: string | RegExp | {
|
|
1393
1440
|
(name: string): boolean;
|
|
1394
1441
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1442
|
+
resolve?: Resolve;
|
|
1443
|
+
resolved?: boolean;
|
|
1444
|
+
uniqueId?: string;
|
|
1445
|
+
cachePolicy?: MessageCachePolicy;
|
|
1446
|
+
messagingPolicy?: MessagingPolicy;
|
|
1397
1447
|
}
|
|
1398
1448
|
|
|
1399
1449
|
/**
|
|
@@ -1404,6 +1454,18 @@ export declare interface Matched {
|
|
|
1404
1454
|
*/
|
|
1405
1455
|
export declare function merge(first: any[], second: any[]): any[];
|
|
1406
1456
|
|
|
1457
|
+
/**
|
|
1458
|
+
* 消息缓存策略
|
|
1459
|
+
* None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
|
|
1460
|
+
*/
|
|
1461
|
+
export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* 消息传递策略
|
|
1465
|
+
* broadcast
|
|
1466
|
+
*/
|
|
1467
|
+
export declare type MessagingPolicy = 'Brodcast' | 'Once';
|
|
1468
|
+
|
|
1407
1469
|
export { multiply }
|
|
1408
1470
|
|
|
1409
1471
|
export { negate }
|
|
@@ -1481,6 +1543,15 @@ export declare interface PageState {
|
|
|
1481
1543
|
footerMounted?: boolean;
|
|
1482
1544
|
}
|
|
1483
1545
|
|
|
1546
|
+
/**
|
|
1547
|
+
* 持久消息
|
|
1548
|
+
*/
|
|
1549
|
+
declare interface PersistantMessage {
|
|
1550
|
+
matched: Matched;
|
|
1551
|
+
action: string;
|
|
1552
|
+
args: any[];
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1484
1555
|
/**
|
|
1485
1556
|
* 坐标
|
|
1486
1557
|
*/
|
|
@@ -1523,6 +1594,11 @@ declare interface Rect {
|
|
|
1523
1594
|
height: number;
|
|
1524
1595
|
}
|
|
1525
1596
|
|
|
1597
|
+
/**
|
|
1598
|
+
* 消息确认函数
|
|
1599
|
+
*/
|
|
1600
|
+
declare type Resolve = (...args: any) => void;
|
|
1601
|
+
|
|
1526
1602
|
/**
|
|
1527
1603
|
* 结果类型
|
|
1528
1604
|
*/
|
|
@@ -1687,8 +1763,8 @@ export { unNumberFormat }
|
|
|
1687
1763
|
/**
|
|
1688
1764
|
* 更新 page state
|
|
1689
1765
|
* @param state
|
|
1690
|
-
* @param pageLayout
|
|
1691
|
-
* @param overrideProps
|
|
1766
|
+
* @param pageLayout(领域设置)
|
|
1767
|
+
* @param overrideProps(组件属性)
|
|
1692
1768
|
* @param root
|
|
1693
1769
|
* @param rootWidth
|
|
1694
1770
|
* @param rootHeight
|