@fox-js/foxui-pc 4.1.1-1 → 4.1.1-11

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.
@@ -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;
@@ -298,9 +347,11 @@ export declare const DateUtils: {
298
347
  * 返回日期格式字符串
299
348
  * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
300
349
  * @param {Date} 起点日期
350
+ * @param {formatTemplate} 格式化模版
301
351
  * @return {string} '2014-12-31'
352
+ *
302
353
  */
303
- getDay(i: number, startDate?: Date): string;
354
+ getDay(i: number, startDate?: Date, formatTemplate?: string): string;
304
355
  /**
305
356
  * 时间比较
306
357
  * @return
@@ -534,25 +585,33 @@ export { _default_45 as FoxMoreButton }
534
585
  export { _default_45 as MoreButton }
535
586
 
536
587
  declare const _default_46: any;
537
- export { _default_46 as FoxTour }
538
- export { _default_46 as Tour }
588
+ export { _default_46 as FloatingButton }
589
+ export { _default_46 as FoxFloatingButton }
539
590
 
540
591
  declare const _default_47: any;
541
- export { _default_47 as FloatingWindow }
542
- export { _default_47 as FoxFloatingWindow }
592
+ export { _default_47 as FoxTour }
593
+ export { _default_47 as Tour }
543
594
 
544
595
  declare const _default_48: any;
545
- export { _default_48 as DomainProvider }
546
- export { _default_48 as FoxDomainProvider }
596
+ export { _default_48 as FloatingWindow }
597
+ export { _default_48 as FoxFloatingWindow }
547
598
 
548
599
  declare const _default_49: any;
549
- export { _default_49 as FoxRollingProvider }
550
- export { _default_49 as RollingProvider }
600
+ export { _default_49 as FoxPopoverDialog }
601
+ export { _default_49 as PopoverDialog }
551
602
 
552
603
  declare const _default_5: any;
553
604
  export { _default_5 as Content }
554
605
  export { _default_5 as FoxContent }
555
606
 
607
+ declare const _default_50: any;
608
+ export { _default_50 as DomainProvider }
609
+ export { _default_50 as FoxDomainProvider }
610
+
611
+ declare const _default_51: any;
612
+ export { _default_51 as FoxRollingProvider }
613
+ export { _default_51 as RollingProvider }
614
+
556
615
  declare const _default_6: any;
557
616
  export { _default_6 as FoxGroup }
558
617
  export { _default_6 as Group }
@@ -904,10 +963,14 @@ export { FoxInput }
904
963
 
905
964
  export { FoxInputNumber }
906
965
 
966
+ export { FoxInputTag }
967
+
907
968
  export { FoxLink }
908
969
 
909
970
  export { FoxMain }
910
971
 
972
+ export { FoxMention }
973
+
911
974
  export { FoxMenu }
912
975
 
913
976
  export { FoxMenuItem }
@@ -1163,12 +1226,6 @@ declare interface Installer {
1163
1226
  (app: App, options?: any): void;
1164
1227
  }
1165
1228
 
1166
- /**
1167
- * 安装校验规则
1168
- * @param proxy
1169
- */
1170
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1171
-
1172
1229
  /**
1173
1230
  * 获取整数长度
1174
1231
  * @param value
@@ -1350,8 +1407,11 @@ export declare interface Matched {
1350
1407
  name?: string | RegExp | {
1351
1408
  (name: string): boolean;
1352
1409
  };
1353
- maxLevel?: number;
1354
- level?: number;
1410
+ resolve?: Resolve;
1411
+ resolved?: boolean;
1412
+ uniqueId?: string;
1413
+ cachePolicy?: MessageCachePolicy;
1414
+ messagingPolicy?: MessagingPolicy;
1355
1415
  }
1356
1416
 
1357
1417
  /**
@@ -1362,6 +1422,18 @@ export declare interface Matched {
1362
1422
  */
1363
1423
  export declare function merge(first: any[], second: any[]): any[];
1364
1424
 
1425
+ /**
1426
+ * 消息缓存策略
1427
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1428
+ */
1429
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1430
+
1431
+ /**
1432
+ * 消息传递策略
1433
+ * broadcast
1434
+ */
1435
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1436
+
1365
1437
  export { multiply }
1366
1438
 
1367
1439
  export { negate }
@@ -1409,8 +1481,8 @@ export declare interface Padding {
1409
1481
  * page layout
1410
1482
  */
1411
1483
  export declare interface PageLayout {
1412
- width: number | string;
1413
- height: number | string;
1484
+ width?: number | string;
1485
+ height?: number | string;
1414
1486
  headerHeight?: number | string;
1415
1487
  footerHeight?: number | string;
1416
1488
  headerPadding?: Padding;
@@ -1439,6 +1511,15 @@ export declare interface PageState {
1439
1511
  footerMounted?: boolean;
1440
1512
  }
1441
1513
 
1514
+ /**
1515
+ * 持久消息
1516
+ */
1517
+ declare interface PersistantMessage {
1518
+ matched: Matched;
1519
+ action: string;
1520
+ args: any[];
1521
+ }
1522
+
1442
1523
  /**
1443
1524
  * 坐标
1444
1525
  */
@@ -1481,6 +1562,11 @@ declare interface Rect {
1481
1562
  height: number;
1482
1563
  }
1483
1564
 
1565
+ /**
1566
+ * 消息确认函数
1567
+ */
1568
+ declare type Resolve = (...args: any) => void;
1569
+
1484
1570
  /**
1485
1571
  * 结果类型
1486
1572
  */
@@ -1645,8 +1731,8 @@ export { unNumberFormat }
1645
1731
  /**
1646
1732
  * 更新 page state
1647
1733
  * @param state
1648
- * @param pageLayout
1649
- * @param overrideProps
1734
+ * @param pageLayout(领域设置)
1735
+ * @param overrideProps(组件属性)
1650
1736
  * @param root
1651
1737
  * @param rootWidth
1652
1738
  * @param rootHeight
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pc",
3
3
  "type": "module",
4
- "version": "4.1.1-1",
4
+ "version": "4.1.1-11",
5
5
  "description": "FoxUI PC端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",