foucui 1.0.2 → 2.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.
Files changed (144) hide show
  1. package/README.md +8 -8
  2. package/README.publish.md +19 -0
  3. package/dist/components/{QiuAnchor → FouAnchor}/context.d.ts +4 -4
  4. package/dist/components/{QiuBadge → FouBadge}/composables/useTableHostHeight.d.ts +1 -1
  5. package/dist/components/FouBadge/index.d.ts +18 -0
  6. package/dist/components/{QiuBadge → FouBadge}/shared/BadgeTemplateRenderer.vue.d.ts +1 -1
  7. package/dist/components/{QiuBadge → FouBadge}/shared/badgeTemplate.d.ts +1 -1
  8. package/dist/components/{QiuButton → FouButton}/index.vue.d.ts +4 -4
  9. package/dist/components/{QiuCanvasKit/QiuCanvasEditor.vue.d.ts → FouCanvasKit/FouCanvasEditor.vue.d.ts} +1 -1
  10. package/dist/components/{QiuCanvasKit → FouCanvasKit}/index.d.ts +4 -4
  11. package/dist/components/{QiuCanvasKit → FouCanvasKit}/types.d.ts +1 -1
  12. package/dist/components/{QiuCarousel → FouCarousel}/context.d.ts +4 -4
  13. package/dist/components/{QiuCascader → FouCascader}/types.d.ts +7 -7
  14. package/dist/components/{QiuCheckbox → FouCheckbox}/types.d.ts +1 -1
  15. package/dist/components/{QiuCollapse → FouCollapse}/context.d.ts +2 -2
  16. package/dist/components/{QiuDescriptions → FouDescriptions}/context.d.ts +4 -4
  17. package/dist/components/{QiuDropdown → FouDropdown}/context.d.ts +2 -2
  18. package/dist/components/{QiuForm → FouForm}/types.d.ts +10 -10
  19. package/dist/components/FouLoading/index.d.ts +26 -0
  20. package/dist/components/{QiuLoading → FouLoading}/spinner.vue.d.ts +3 -3
  21. package/dist/components/{QiuLoading → FouLoading}/types.d.ts +2 -2
  22. package/dist/components/{QiuMenu → FouMenu}/context.d.ts +2 -2
  23. package/dist/components/{QiuMenuNav → FouMenuNav}/context.d.ts +2 -2
  24. package/dist/components/{QiuMsg/QiuMsgItem.vue.d.ts → FouMsg/FouMsgItem.vue.d.ts} +3 -3
  25. package/dist/components/FouMsg/index.d.ts +30 -0
  26. package/dist/components/{QiuMsg → FouMsg}/types.d.ts +5 -5
  27. package/dist/components/{QiuMsgBox → FouMsgBox}/index.d.ts +3 -3
  28. package/dist/components/{QiuNotification/QiuNotificationItem.vue.d.ts → FouNotification/FouNotificationItem.vue.d.ts} +3 -3
  29. package/dist/components/FouNotification/index.d.ts +30 -0
  30. package/dist/components/FouNotification/types.d.ts +12 -0
  31. package/dist/components/{QiuRadio → FouRadio}/types.d.ts +1 -1
  32. package/dist/components/FouRow/types.d.ts +4 -0
  33. package/dist/components/{QiuSelect → FouSelect}/index.vue.d.ts +3 -3
  34. package/dist/components/{QiuSelect → FouSelect}/types.d.ts +3 -3
  35. package/dist/components/{QiuStep → FouStep}/index.vue.d.ts +1 -1
  36. package/dist/components/{QiuSteps → FouSteps}/context.d.ts +5 -5
  37. package/dist/components/{QiuTabBar → FouTabBar}/index.vue.d.ts +3 -3
  38. package/dist/components/{QiuTabBar → FouTabBar}/types.d.ts +5 -5
  39. package/dist/components/{QiuTable → FouTable}/export.d.ts +5 -5
  40. package/dist/components/FouTable/index.d.ts +3 -0
  41. package/dist/components/{QiuTable → FouTable}/index.vue.d.ts +49 -49
  42. package/dist/components/FouTable/registry.d.ts +39 -0
  43. package/dist/components/{QiuTable → FouTable}/types.d.ts +60 -60
  44. package/dist/components/{QiuTable → FouTable}/useArea.d.ts +10 -10
  45. package/dist/components/{QiuTable → FouTable}/useColumns.d.ts +5 -5
  46. package/dist/components/FouTable/useEdit.d.ts +36 -0
  47. package/dist/components/{QiuTable → FouTable}/useHistory.d.ts +5 -5
  48. package/dist/components/{QiuTable → FouTable}/useMerge.d.ts +6 -6
  49. package/dist/components/{QiuTable → FouTable}/useScrollSync.d.ts +1 -1
  50. package/dist/components/{QiuTable → FouTable}/utils.d.ts +17 -17
  51. package/dist/components/FouTree/types.d.ts +13 -0
  52. package/dist/components/{QiuUpload → FouUpload}/index.vue.d.ts +17 -17
  53. package/dist/foucui.css +1 -1
  54. package/dist/foucui.js +7362 -7362
  55. package/dist/foucui.umd.cjs +37 -37
  56. package/dist/index.d.ts +43 -43
  57. package/dist/src/bridge/@/config/index.d.ts +1 -1
  58. package/dist/src/bridge/@fou/plugins/shortcuts.d.ts +2 -0
  59. package/package.json +5 -3
  60. package/dist/components/QiuBadge/index.d.ts +0 -18
  61. package/dist/components/QiuLoading/index.d.ts +0 -26
  62. package/dist/components/QiuMsg/index.d.ts +0 -30
  63. package/dist/components/QiuNotification/index.d.ts +0 -30
  64. package/dist/components/QiuNotification/types.d.ts +0 -12
  65. package/dist/components/QiuRow/types.d.ts +0 -4
  66. package/dist/components/QiuTable/index.d.ts +0 -3
  67. package/dist/components/QiuTable/registry.d.ts +0 -39
  68. package/dist/components/QiuTable/useEdit.d.ts +0 -36
  69. package/dist/components/QiuTree/types.d.ts +0 -13
  70. package/dist/src/bridge/@qiu/plugins/shortcuts.d.ts +0 -2
  71. /package/dist/components/{QiuAnchorLink → FouAnchorLink}/index.vue.d.ts +0 -0
  72. /package/dist/components/{QiuBadge → FouBadge}/api/index.d.ts +0 -0
  73. /package/dist/components/{QiuBadge → FouBadge}/components/BadgeImagePickerDialog.vue.d.ts +0 -0
  74. /package/dist/components/{QiuBadge → FouBadge}/components/BadgeLibraryManagerDialog.vue.d.ts +0 -0
  75. /package/dist/components/{QiuBadge → FouBadge}/components/BadgeLibraryPanel.vue.d.ts +0 -0
  76. /package/dist/components/{QiuBadge → FouBadge}/shared/assetUrl.d.ts +0 -0
  77. /package/dist/components/{QiuBadge → FouBadge}/utils/chinaAreaData.d.ts +0 -0
  78. /package/dist/components/{QiuBadge → FouBadge}/utils/hostRegion.d.ts +0 -0
  79. /package/dist/components/{QiuBadge → FouBadge}/utils/pdfFromElement.d.ts +0 -0
  80. /package/dist/components/{QiuBadge → FouBadge}/views/BadgeLibraryView.vue.d.ts +0 -0
  81. /package/dist/components/{QiuBadge → FouBadge}/views/BadgeManageView.vue.d.ts +0 -0
  82. /package/dist/components/{QiuBadge → FouBadge}/views/BadgeTemplateListView.vue.d.ts +0 -0
  83. /package/dist/components/{QiuBadge → FouBadge}/views/DeskLabelTemplateListView.vue.d.ts +0 -0
  84. /package/dist/components/{QiuBadge → FouBadge}/views/DeskLabelView.vue.d.ts +0 -0
  85. /package/dist/components/{QiuCanvasKit/QiuCanvasRenderer.vue.d.ts → FouCanvasKit/FouCanvasRenderer.vue.d.ts} +0 -0
  86. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/assetUrl.d.ts +0 -0
  87. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/components/DataModulesPanel.vue.d.ts +0 -0
  88. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/export/html.d.ts +0 -0
  89. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/export/pdf.d.ts +0 -0
  90. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/export/png.d.ts +0 -0
  91. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/modules/badgeCompat.d.ts +0 -0
  92. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/modules/dataRegistry.d.ts +0 -0
  93. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/modules/merge.d.ts +0 -0
  94. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/presets/badge.d.ts +0 -0
  95. /package/dist/components/{QiuCanvasKit → FouCanvasKit}/presets/banner.d.ts +0 -0
  96. /package/dist/components/{QiuCarouselItem → FouCarouselItem}/index.vue.d.ts +0 -0
  97. /package/dist/components/{QiuCheckbox/QiuCheckboxGroup.vue.d.ts → FouCheckbox/FouCheckboxGroup.vue.d.ts} +0 -0
  98. /package/dist/components/{QiuCheckbox → FouCheckbox}/index.vue.d.ts +0 -0
  99. /package/dist/components/{QiuCode → FouCode}/index.vue.d.ts +0 -0
  100. /package/dist/components/{QiuCollapseItem → FouCollapseItem}/index.vue.d.ts +0 -0
  101. /package/dist/components/{QiuColorField → FouColorField}/index.vue.d.ts +0 -0
  102. /package/dist/components/{QiuColorPicker → FouColorPicker}/index.vue.d.ts +0 -0
  103. /package/dist/components/{QiuCombobox → FouCombobox}/index.vue.d.ts +0 -0
  104. /package/dist/components/{QiuContextMenu → FouContextMenu}/index.vue.d.ts +0 -0
  105. /package/dist/components/{QiuDescriptionsItem → FouDescriptionsItem}/index.vue.d.ts +0 -0
  106. /package/dist/components/{QiuDigitalCard → FouDigitalCard}/index.vue.d.ts +0 -0
  107. /package/dist/components/{QiuDropdown/QiuDropdownItem.vue.d.ts → FouDropdown/FouDropdownItem.vue.d.ts} +0 -0
  108. /package/dist/components/{QiuDropdown/QiuDropdownMenu.vue.d.ts → FouDropdown/FouDropdownMenu.vue.d.ts} +0 -0
  109. /package/dist/components/{QiuDropdown → FouDropdown}/index.vue.d.ts +0 -0
  110. /package/dist/components/{QiuHoverCard → FouHoverCard}/index.vue.d.ts +0 -0
  111. /package/dist/components/{QiuIcon → FouIcon}/index.vue.d.ts +0 -0
  112. /package/dist/components/{QiuIconPicker → FouIconPicker}/iconify.libraries.d.ts +0 -0
  113. /package/dist/components/{QiuIconPicker → FouIconPicker}/icons.catalog.d.ts +0 -0
  114. /package/dist/components/{QiuInput → FouInput}/index.vue.d.ts +0 -0
  115. /package/dist/components/{QiuInputNumber → FouInputNumber}/index.vue.d.ts +0 -0
  116. /package/dist/components/{QiuInputOtp → FouInputOtp}/index.vue.d.ts +0 -0
  117. /package/dist/components/{QiuKbd → FouKbd}/index.vue.d.ts +0 -0
  118. /package/dist/components/{QiuLayoutContainer → FouLayoutContainer}/index.vue.d.ts +0 -0
  119. /package/dist/components/{QiuLinkPreview → FouLinkPreview}/index.vue.d.ts +0 -0
  120. /package/dist/components/{QiuMention → FouMention}/index.vue.d.ts +0 -0
  121. /package/dist/components/{QiuMenu/QiuMenuRoot.vue.d.ts → FouMenu/FouMenuRoot.vue.d.ts} +0 -0
  122. /package/dist/components/{QiuMenuNav/QiuMenuNavItem.vue.d.ts → FouMenuNav/FouMenuNavItem.vue.d.ts} +0 -0
  123. /package/dist/components/{QiuMenuNav/QiuMenuNavSub.vue.d.ts → FouMenuNav/FouMenuNavSub.vue.d.ts} +0 -0
  124. /package/dist/components/{QiuMenuNav → FouMenuNav}/index.vue.d.ts +0 -0
  125. /package/dist/components/{QiuPageMain → FouPageMain}/index.vue.d.ts +0 -0
  126. /package/dist/components/{QiuPagination → FouPagination}/index.vue.d.ts +0 -0
  127. /package/dist/components/{QiuPasswordStrength → FouPasswordStrength}/index.vue.d.ts +0 -0
  128. /package/dist/components/{QiuQrcode → FouQrcode}/index.vue.d.ts +0 -0
  129. /package/dist/components/{QiuRadio/QiuRadioGroup.vue.d.ts → FouRadio/FouRadioGroup.vue.d.ts} +0 -0
  130. /package/dist/components/{QiuSearchBar → FouSearchBar}/index.vue.d.ts +0 -0
  131. /package/dist/components/{QiuSelect/QiuOption.vue.d.ts → FouSelect/FouOption.vue.d.ts} +0 -0
  132. /package/dist/components/{QiuSparkline → FouSparkline}/index.vue.d.ts +0 -0
  133. /package/dist/components/{QiuSwitch → FouSwitch}/index.vue.d.ts +0 -0
  134. /package/dist/components/{QiuTabPane → FouTabPane}/index.vue.d.ts +0 -0
  135. /package/dist/components/{QiuTable → FouTable}/columns.d.ts +0 -0
  136. /package/dist/components/{QiuTable → FouTable}/useExtras.d.ts +0 -0
  137. /package/dist/components/{QiuTable → FouTable}/useResize.d.ts +0 -0
  138. /package/dist/components/{QiuTable → FouTable}/useVirtual.d.ts +0 -0
  139. /package/dist/components/{QiuTime → FouTime}/index.vue.d.ts +0 -0
  140. /package/dist/components/{QiuTimeAgo → FouTimeAgo}/index.vue.d.ts +0 -0
  141. /package/dist/components/{QiuTimelineItem → FouTimelineItem}/index.vue.d.ts +0 -0
  142. /package/dist/components/{QiuTooltip → FouTooltip}/index.vue.d.ts +0 -0
  143. /package/dist/components/{QiuTrend → FouTrend}/index.vue.d.ts +0 -0
  144. /package/dist/components/{QiuUploadCrop → FouUploadCrop}/index.vue.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { QiuTableColumnConfig } from './types';
3
- export type QiuTableCellPos = {
2
+ import { FouTableColumnConfig } from './types';
3
+ export type FouTableCellPos = {
4
4
  rowId: string;
5
5
  /** 叶子列 prop / field */
6
6
  prop: string;
@@ -12,18 +12,18 @@ export type QiuTableCellPos = {
12
12
  */
13
13
  export declare function useTableArea(opts: {
14
14
  getRows: () => any[];
15
- getColumns: () => (QiuTableColumnConfig & {
15
+ getColumns: () => (FouTableColumnConfig & {
16
16
  _key: string;
17
17
  })[];
18
18
  getRowId: (row: any) => string;
19
19
  }): {
20
- activeCell: Ref<QiuTableCellPos | null>;
20
+ activeCell: Ref<FouTableCellPos | null>;
21
21
  areaEnd: Ref<{
22
22
  rowId: string;
23
23
  prop: string;
24
24
  rowIndex: number;
25
25
  colIndex: number;
26
- }, QiuTableCellPos | {
26
+ }, FouTableCellPos | {
27
27
  rowId: string;
28
28
  prop: string;
29
29
  rowIndex: number;
@@ -35,17 +35,17 @@ export declare function useTableArea(opts: {
35
35
  c0: number;
36
36
  c1: number;
37
37
  }>;
38
- setActive: (row: any, col: QiuTableColumnConfig, extend?: boolean) => void;
38
+ setActive: (row: any, col: FouTableColumnConfig, extend?: boolean) => void;
39
39
  clearArea: () => void;
40
- isCellInArea: (row: any, col: QiuTableColumnConfig) => boolean;
41
- isActiveCell: (row: any, col: QiuTableColumnConfig) => boolean;
40
+ isCellInArea: (row: any, col: FouTableColumnConfig) => boolean;
41
+ isActiveCell: (row: any, col: FouTableColumnConfig) => boolean;
42
42
  moveActive: (dRow: number, dCol: number, extend?: boolean) => {
43
43
  row: any;
44
44
  prop: string;
45
- pos: QiuTableCellPos;
45
+ pos: FouTableCellPos;
46
46
  };
47
47
  buildTsv: (formatCell: (row: any, prop: string) => string) => string;
48
48
  pasteTsv: (text: string, apply: (row: any, prop: string, value: string) => void) => void;
49
49
  clearAreaValues: (apply: (row: any, prop: string, value: string) => void) => void;
50
- findPos: (rowId: string, prop: string) => QiuTableCellPos | null;
50
+ findPos: (rowId: string, prop: string) => FouTableCellPos | null;
51
51
  };
@@ -1,5 +1,5 @@
1
- import { QiuTableColumnConfig, QiuTableHeaderCell } from './types';
2
- export type LeafColumn = QiuTableColumnConfig & {
1
+ import { FouTableColumnConfig, FouTableHeaderCell } from './types';
2
+ export type LeafColumn = FouTableColumnConfig & {
3
3
  _key: string;
4
4
  _defaultSlot?: (scope: any) => any;
5
5
  _headerSlot?: (scope: any) => any;
@@ -59,9 +59,9 @@ export declare function isLastFixedLeft(leafColumns: LeafColumn[], colKey: strin
59
59
  /** 是否右侧固定列中的第一列(从右往左的最内侧,用于阴影) */
60
60
  export declare function isFirstFixedRight(leafColumns: LeafColumn[], colKey: string): boolean;
61
61
  /** 生成稳定且唯一的列 key(同 prop 多列也不会冲突) */
62
- export declare function makeColumnKey(col: QiuTableColumnConfig, index: number, prefix?: string): string;
62
+ export declare function makeColumnKey(col: FouTableColumnConfig, index: number, prefix?: string): string;
63
63
  export { makeColumnKey as createColumnKey };
64
64
  /** 扁平化叶子列(跳过仅分组的父列) */
65
- export declare function flattenLeafColumns(columns: QiuTableColumnConfig[], prefix?: string): LeafColumn[];
65
+ export declare function flattenLeafColumns(columns: FouTableColumnConfig[], prefix?: string): LeafColumn[];
66
66
  /** 生成多级表头矩阵(每行一组 th) */
67
- export declare function buildHeaderRows(columns: QiuTableColumnConfig[], keyPrefix?: string): QiuTableHeaderCell[][];
67
+ export declare function buildHeaderRows(columns: FouTableColumnConfig[], keyPrefix?: string): FouTableHeaderCell[][];
@@ -0,0 +1,36 @@
1
+ import { Ref } from 'vue';
2
+ import { FouTableColumnConfig, FouTableEditConfig } from './types';
3
+ export declare function useTableEdit(opts: {
4
+ editable: Ref<boolean> | (() => boolean);
5
+ editTrigger: Ref<string> | (() => string);
6
+ editConfig: Ref<FouTableEditConfig | undefined> | (() => FouTableEditConfig | undefined);
7
+ getRowId: (row: any) => string;
8
+ emit: (event: string, payload: any) => void;
9
+ }): {
10
+ editing: Ref<{
11
+ rowId: string;
12
+ prop: string;
13
+ }, {
14
+ rowId: string;
15
+ prop: string;
16
+ } | {
17
+ rowId: string;
18
+ prop: string;
19
+ }>;
20
+ getColEditor: (col: FouTableColumnConfig) => string;
21
+ getEditRender: (col: FouTableColumnConfig) => import('./types').FouTableEditRender;
22
+ getProp: (col: FouTableColumnConfig) => string;
23
+ canEditCol: (col: FouTableColumnConfig) => boolean;
24
+ hasAlwaysEditor: (col: FouTableColumnConfig) => boolean;
25
+ isInputEditor: (col: FouTableColumnConfig) => boolean;
26
+ isEditing: (row: any, col: FouTableColumnConfig) => boolean;
27
+ isInputFill: (row: any, col: FouTableColumnConfig) => boolean;
28
+ startEdit: (row: any, col: FouTableColumnConfig, focusRoot?: HTMLElement | null) => void;
29
+ clearEdit: () => void;
30
+ commitEdit: (row: any, col: FouTableColumnConfig, value: any) => void;
31
+ inEditGuard: () => boolean;
32
+ getTrigger: () => string;
33
+ getMode: () => "cell" | "row";
34
+ getAutoClear: () => boolean;
35
+ getShowIcon: () => boolean;
36
+ };
@@ -1,4 +1,4 @@
1
- export type QiuTableHistoryPatch = {
1
+ export type FouTableHistoryPatch = {
2
2
  rowId: string;
3
3
  prop: string;
4
4
  oldValue: any;
@@ -11,14 +11,14 @@ export declare function useTableHistory(opts: {
11
11
  enabled: () => boolean;
12
12
  size?: () => number;
13
13
  findRow: (rowId: string) => any | null;
14
- onApply?: (patch: QiuTableHistoryPatch, direction: 'undo' | 'redo') => void;
14
+ onApply?: (patch: FouTableHistoryPatch, direction: 'undo' | 'redo') => void;
15
15
  }): {
16
16
  undoStack: globalThis.Ref<{
17
17
  rowId: string;
18
18
  prop: string;
19
19
  oldValue: any;
20
20
  newValue: any;
21
- }[], QiuTableHistoryPatch[] | {
21
+ }[], FouTableHistoryPatch[] | {
22
22
  rowId: string;
23
23
  prop: string;
24
24
  oldValue: any;
@@ -29,13 +29,13 @@ export declare function useTableHistory(opts: {
29
29
  prop: string;
30
30
  oldValue: any;
31
31
  newValue: any;
32
- }[], QiuTableHistoryPatch[] | {
32
+ }[], FouTableHistoryPatch[] | {
33
33
  rowId: string;
34
34
  prop: string;
35
35
  oldValue: any;
36
36
  newValue: any;
37
37
  }[]>;
38
- push: (patch: QiuTableHistoryPatch) => void;
38
+ push: (patch: FouTableHistoryPatch) => void;
39
39
  undo: () => boolean;
40
40
  redo: () => boolean;
41
41
  clear: () => void;
@@ -1,4 +1,4 @@
1
- import { QiuTableColumnConfig, QiuTableMergeCell, QiuTableSpanMethod } from './types';
1
+ import { FouTableColumnConfig, FouTableMergeCell, FouTableSpanMethod } from './types';
2
2
  export type SpanResult = {
3
3
  rowspan: number;
4
4
  colspan: number;
@@ -10,19 +10,19 @@ export type SpanResult = {
10
10
  */
11
11
  export declare function resolveCellSpan(opts: {
12
12
  row: any;
13
- column: QiuTableColumnConfig;
13
+ column: FouTableColumnConfig;
14
14
  rowIndex: number;
15
15
  columnIndex: number;
16
16
  data: any[];
17
- spanMethod?: QiuTableSpanMethod;
18
- mergeCells?: QiuTableMergeCell[];
17
+ spanMethod?: FouTableSpanMethod;
18
+ mergeCells?: FouTableMergeCell[];
19
19
  /** 预计算:被合并覆盖的格子 key `${rowIndex}:${columnIndex}` */
20
20
  covered?: Set<string>;
21
21
  }): SpanResult;
22
22
  /** 根据 mergeCells 生成被覆盖格子集合 */
23
- export declare function buildMergeCoveredSet(mergeCells?: QiuTableMergeCell[]): Set<string>;
23
+ export declare function buildMergeCoveredSet(mergeCells?: FouTableMergeCell[]): Set<string>;
24
24
  /**
25
25
  * 将 mergeHeaderCells 应用到表头矩阵(按 row/col 下标合并 th)
26
26
  * children 多级表头已自动合并;本 API 用于扁平表头额外合并。
27
27
  */
28
- export declare function applyMergeHeaderCells(headerRows: import('./types').QiuTableHeaderCell[][], merges?: QiuTableMergeCell[]): import('./types').QiuTableHeaderCell[][];
28
+ export declare function applyMergeHeaderCells(headerRows: import('./types').FouTableHeaderCell[][], merges?: FouTableMergeCell[]): import('./types').FouTableHeaderCell[][];
@@ -6,7 +6,7 @@ import { Ref } from 'vue';
6
6
  * 2. header/footer wrap 用 paddingRight 留出同宽空隙
7
7
  * 3. 强制 header/footer 内 table 的像素宽 = body table 宽
8
8
  * 4. 把 body 各 col 的实际像素宽抄到 header/footer
9
- * 5. 有纵向条时由根节点 --qiu-table-v-scrollbar + --scroll-y 在 padding 内侧补竖线
9
+ * 5. 有纵向条时由根节点 --fou-table-v-scrollbar + --scroll-y 在 padding 内侧补竖线
10
10
  *
11
11
  * @author qiuye
12
12
  * @email yjk150@qq.com
@@ -1,33 +1,33 @@
1
- import { QiuTableColumnConfig } from './types';
2
- export interface QiuTableMenuItem {
1
+ import { FouTableColumnConfig } from './types';
2
+ export interface FouTableMenuItem {
3
3
  code: string;
4
4
  name: string;
5
5
  disabled?: boolean;
6
6
  visible?: boolean;
7
- children?: QiuTableMenuItem[];
7
+ children?: FouTableMenuItem[];
8
8
  }
9
- export interface QiuTableMenuConfig {
9
+ export interface FouTableMenuConfig {
10
10
  enabled?: boolean;
11
11
  body?: {
12
- options?: QiuTableMenuItem[][];
12
+ options?: FouTableMenuItem[][];
13
13
  };
14
14
  header?: {
15
- options?: QiuTableMenuItem[][];
15
+ options?: FouTableMenuItem[][];
16
16
  };
17
17
  /** 点击菜单项回调;也可监听 @menu-click */
18
18
  visibleMethod?: (params: {
19
19
  type: 'body' | 'header';
20
20
  row?: any;
21
- column?: QiuTableColumnConfig;
22
- options: QiuTableMenuItem[][];
21
+ column?: FouTableColumnConfig;
22
+ options: FouTableMenuItem[][];
23
23
  }) => boolean;
24
24
  }
25
- export interface QiuTableCustomConfig {
25
+ export interface FouTableCustomConfig {
26
26
  enabled?: boolean;
27
27
  storage?: boolean;
28
- checkMethod?: (column: QiuTableColumnConfig) => boolean;
28
+ checkMethod?: (column: FouTableColumnConfig) => boolean;
29
29
  }
30
- export interface QiuTableValidRule {
30
+ export interface FouTableValidRule {
31
31
  required?: boolean;
32
32
  min?: number;
33
33
  max?: number;
@@ -36,19 +36,19 @@ export interface QiuTableValidRule {
36
36
  validator?: (params: {
37
37
  cellValue: any;
38
38
  row: any;
39
- column: QiuTableColumnConfig;
39
+ column: FouTableColumnConfig;
40
40
  }) => Error | string | boolean | void | Promise<any>;
41
41
  }
42
- export type QiuTableEditRules = Record<string, QiuTableValidRule | QiuTableValidRule[]>;
43
- export interface QiuTableValidConfig {
42
+ export type FouTableEditRules = Record<string, FouTableValidRule | FouTableValidRule[]>;
43
+ export interface FouTableValidConfig {
44
44
  autoClear?: boolean;
45
45
  showMessage?: boolean;
46
46
  }
47
47
  export declare function validateCell(opts: {
48
- rules?: QiuTableValidRule | QiuTableValidRule[];
48
+ rules?: FouTableValidRule | FouTableValidRule[];
49
49
  cellValue: any;
50
50
  row: any;
51
- column: QiuTableColumnConfig;
51
+ column: FouTableColumnConfig;
52
52
  }): Promise<string | null>;
53
53
  export declare function parseCsv(text: string): string[][];
54
- export declare function csvToObjects(rows: string[][], columns: QiuTableColumnConfig[]): any[];
54
+ export declare function csvToObjects(rows: string[][], columns: FouTableColumnConfig[]): any[];
@@ -0,0 +1,13 @@
1
+ export interface FouTreeNodeData {
2
+ [key: string]: unknown;
3
+ children?: FouTreeNodeData[];
4
+ }
5
+ export interface FouTreePropsConfig {
6
+ label?: string;
7
+ children?: string;
8
+ value?: string;
9
+ }
10
+ export declare const defaultTreeProps: Required<FouTreePropsConfig>;
11
+ export declare function getNodeKey(node: FouTreeNodeData, config: FouTreePropsConfig): string | number;
12
+ export declare function getNodeLabel(node: FouTreeNodeData, config: FouTreePropsConfig): string;
13
+ export declare function getNodeChildren(node: FouTreeNodeData, config: FouTreePropsConfig): FouTreeNodeData[];
@@ -1,4 +1,4 @@
1
- export type QiuUploadFile = {
1
+ export type FouUploadFile = {
2
2
  uid: number;
3
3
  name: string;
4
4
  size: number;
@@ -11,7 +11,7 @@ export type QiuUploadFile = {
11
11
  response?: unknown;
12
12
  };
13
13
  type __VLS_Props = {
14
- modelValue?: QiuUploadFile[];
14
+ modelValue?: FouUploadFile[];
15
15
  accept?: string;
16
16
  multiple?: boolean;
17
17
  limit?: number;
@@ -43,25 +43,25 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
43
43
  clearFiles: () => void;
44
44
  submit: () => void;
45
45
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
- "update:modelValue": (args_0: QiuUploadFile[]) => any;
47
- change: (file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
48
- progress: (percent: number, file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
49
- error: (error: Error, file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
50
- success: (response: unknown, file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
51
- remove: (file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
52
- exceed: (files: File[], fileList: QiuUploadFile[]) => any;
46
+ "update:modelValue": (args_0: FouUploadFile[]) => any;
47
+ change: (file: FouUploadFile, fileList: FouUploadFile[]) => any;
48
+ progress: (percent: number, file: FouUploadFile, fileList: FouUploadFile[]) => any;
49
+ error: (error: Error, file: FouUploadFile, fileList: FouUploadFile[]) => any;
50
+ success: (response: unknown, file: FouUploadFile, fileList: FouUploadFile[]) => any;
51
+ remove: (file: FouUploadFile, fileList: FouUploadFile[]) => any;
52
+ exceed: (files: File[], fileList: FouUploadFile[]) => any;
53
53
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
54
- "onUpdate:modelValue"?: (args_0: QiuUploadFile[]) => any;
55
- onChange?: (file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
56
- onProgress?: (percent: number, file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
57
- onError?: (error: Error, file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
58
- onSuccess?: (response: unknown, file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
59
- onRemove?: (file: QiuUploadFile, fileList: QiuUploadFile[]) => any;
60
- onExceed?: (files: File[], fileList: QiuUploadFile[]) => any;
54
+ "onUpdate:modelValue"?: (args_0: FouUploadFile[]) => any;
55
+ onChange?: (file: FouUploadFile, fileList: FouUploadFile[]) => any;
56
+ onProgress?: (percent: number, file: FouUploadFile, fileList: FouUploadFile[]) => any;
57
+ onError?: (error: Error, file: FouUploadFile, fileList: FouUploadFile[]) => any;
58
+ onSuccess?: (response: unknown, file: FouUploadFile, fileList: FouUploadFile[]) => any;
59
+ onRemove?: (file: FouUploadFile, fileList: FouUploadFile[]) => any;
60
+ onExceed?: (files: File[], fileList: FouUploadFile[]) => any;
61
61
  }>, {
62
62
  name: string;
63
63
  data: Record<string, string | Blob>;
64
- modelValue: QiuUploadFile[];
64
+ modelValue: FouUploadFile[];
65
65
  disabled: boolean;
66
66
  drag: boolean;
67
67
  multiple: boolean;