@king-design/react 3.1.0-beta.3 → 3.1.1-beta.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.
- package/__tests__/__snapshots__/Dialog.md +1 -1
- package/__tests__/__snapshots__/React Demos.md +216 -208
- package/components/affix/index.d.ts +1 -1
- package/components/badge/index.d.ts +1 -1
- package/components/breadcrumb/index.d.ts +1 -1
- package/components/breadcrumb/item.d.ts +1 -1
- package/components/button/group.d.ts +1 -1
- package/components/button/index.d.ts +1 -1
- package/components/card/column.d.ts +1 -1
- package/components/card/index.d.ts +1 -1
- package/components/carousel/index.d.ts +1 -1
- package/components/carousel/index.vdt.js +1 -1
- package/components/carousel/item.d.ts +1 -1
- package/components/carousel/item.vdt.js +1 -1
- package/components/carousel/useSlide.d.ts +1 -1
- package/components/cascader/index.d.ts +3 -3
- package/components/cascader/index.vdt.js +1 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/code/index.d.ts +1 -1
- package/components/collapse/index.d.ts +1 -1
- package/components/collapse/index.vdt.js +1 -1
- package/components/collapse/item.d.ts +1 -1
- package/components/collapse/item.vdt.js +1 -1
- package/components/colorpicker/drag.d.ts +1 -1
- package/components/colorpicker/index.d.ts +1 -1
- package/components/colorpicker/panel.d.ts +1 -1
- package/components/colorpicker/panel.vdt.js +1 -1
- package/components/config/index.d.ts +9 -2
- package/components/config/index.js +4 -3
- package/components/copy/index.d.ts +1 -1
- package/components/copy/index.vdt.js +1 -1
- package/components/datepicker/calendar.d.ts +1 -1
- package/components/datepicker/calendar.vdt.js +1 -1
- package/components/datepicker/index.d.ts +4 -4
- package/components/datepicker/index.vdt.js +1 -1
- package/components/datepicker/time.d.ts +1 -1
- package/components/datepicker/usePanel.d.ts +1 -1
- package/components/diagram/diagram.d.ts +1 -1
- package/components/diagram/layouts/layout.d.ts +1 -1
- package/components/diagram/shapes/line.d.ts +1 -1
- package/components/diagram/shapes/shape.d.ts +1 -1
- package/components/dialog/base.d.ts +2 -2
- package/components/dialog/base.vdt.js +1 -1
- package/components/dialog/index.spec.js +87 -5
- package/components/dialog/styles.js +2 -2
- package/components/drawer/index.d.ts +1 -1
- package/components/drawer/index.spec.js +6 -4
- package/components/dropdown/item.d.ts +1 -1
- package/components/dropdown/menu.d.ts +1 -1
- package/components/dropdown/menu.vdt.js +1 -1
- package/components/editable/index.d.ts +1 -1
- package/components/form/form.d.ts +1 -1
- package/components/form/item.d.ts +1 -1
- package/components/form/item.vdt.js +1 -1
- package/components/form/useError.d.ts +4 -4
- package/components/grid/col.d.ts +1 -1
- package/components/grid/row.d.ts +1 -1
- package/components/grid/useGutter.d.ts +3 -3
- package/components/icon/index.d.ts +1 -1
- package/components/input/index.d.ts +1 -1
- package/components/input/search.d.ts +1 -1
- package/components/input/styles.js +1 -1
- package/components/layout/aside.d.ts +1 -1
- package/components/layout/aside.vdt.js +1 -1
- package/components/layout/body.d.ts +1 -1
- package/components/layout/footer.d.ts +1 -1
- package/components/layout/header.d.ts +1 -1
- package/components/layout/layout.d.ts +1 -1
- package/components/menu/item.d.ts +1 -1
- package/components/menu/item.vdt.js +1 -1
- package/components/menu/menu.d.ts +1 -1
- package/components/menu/useDropdown.d.ts +1 -1
- package/components/message/message.d.ts +1 -1
- package/components/message/messages.d.ts +1 -1
- package/components/message/messages.vdt.js +1 -1
- package/components/pagination/index.d.ts +1 -1
- package/components/popover/content.d.ts +1 -1
- package/components/portal.d.ts +1 -1
- package/components/portal.js +7 -1
- package/components/progress/index.d.ts +1 -1
- package/components/radio/index.d.ts +1 -1
- package/components/rate/index.d.ts +1 -1
- package/components/rate/index.vdt.js +1 -1
- package/components/scrollSelect/index.d.ts +1 -1
- package/components/select/base.d.ts +1 -1
- package/components/select/base.vdt.js +1 -1
- package/components/select/group.d.ts +1 -1
- package/components/select/menu.d.ts +1 -1
- package/components/select/option.d.ts +1 -1
- package/components/select/option.vdt.js +1 -1
- package/components/select/select.d.ts +3 -3
- package/components/select/useCard.d.ts +1 -1
- package/components/select/useLabel.d.ts +1 -1
- package/components/select/useSearchable.d.ts +3 -3
- package/components/skeleton/item.d.ts +1 -1
- package/components/skeleton/skeleton.d.ts +1 -1
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.vdt.js +1 -1
- package/components/slider/useDraggable.d.ts +2 -2
- package/components/slider/useTooltip.d.ts +1 -1
- package/components/spin/index.d.ts +1 -1
- package/components/spin/index.vdt.js +1 -1
- package/components/spinner/index.d.ts +1 -1
- package/components/split/index.d.ts +1 -1
- package/components/split/memo.d.ts +1 -1
- package/components/split/useDraggable.d.ts +2 -2
- package/components/steps/context.d.ts +1 -1
- package/components/steps/index.d.ts +1 -1
- package/components/steps/step.d.ts +1 -1
- package/components/steps/step.vdt.js +1 -1
- package/components/switch/index.d.ts +1 -1
- package/components/table/cell.d.ts +1 -1
- package/components/table/column.d.ts +2 -2
- package/components/table/column.vdt.js +1 -1
- package/components/table/exportTable.d.ts +1 -0
- package/components/table/exportTable.js +33 -8
- package/components/table/index.spec.js +8 -3
- package/components/table/row.d.ts +1 -1
- package/components/table/row.vdt.js +2 -2
- package/components/table/styles.js +3 -2
- package/components/table/table.d.ts +2 -2
- package/components/table/table.vdt.js +1 -1
- package/components/table/useColumns.d.ts +5 -5
- package/components/table/useFixedColumns.d.ts +2 -2
- package/components/table/useGroup.d.ts +4 -4
- package/components/table/useResizable.d.ts +2 -2
- package/components/table/useSortable.d.ts +3 -3
- package/components/tabs/index.d.ts +1 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/useScroll.d.ts +1 -1
- package/components/tag/base.d.ts +1 -1
- package/components/tag/index.vdt.js +1 -1
- package/components/tag/tags.d.ts +1 -1
- package/components/tag/tags.vdt.js +1 -1
- package/components/tag/useChildren.d.ts +1 -1
- package/components/tag/useDraggable.d.ts +1 -1
- package/components/tag/useNowrap.d.ts +3 -3
- package/components/timeline/item.d.ts +1 -1
- package/components/timeline/timeline.d.ts +1 -1
- package/components/timepicker/index.d.ts +2 -2
- package/components/timepicker/panelPicker.d.ts +4 -4
- package/components/timepicker/selectPicker.d.ts +1 -1
- package/components/transfer/index.d.ts +1 -1
- package/components/transfer/index.vdt.js +1 -1
- package/components/tree/index.d.ts +1 -1
- package/components/tree/index.vdt.js +1 -1
- package/components/tree/useExpanded.js +21 -6
- package/components/treeSelect/index.d.ts +1 -1
- package/components/treeSelect/useValue.d.ts +1 -1
- package/components/upload/index.d.ts +7 -6
- package/components/upload/index.js +1 -0
- package/components/upload/index.vdt.js +1 -1
- package/components/upload/useFiles.js +21 -8
- package/components/utils.d.ts +1 -1
- package/components/virtual.d.ts +1 -1
- package/components/wave/index.d.ts +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ export declare function useDraggable(showValue: State<Value>, fixValue: (value:
|
|
|
4
4
|
onStart: (e: MouseEvent) => void;
|
|
5
5
|
dragging: State<boolean>;
|
|
6
6
|
trackRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
7
|
-
firstThumbRef: import(
|
|
8
|
-
secondThumbRef: import(
|
|
7
|
+
firstThumbRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
8
|
+
secondThumbRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
9
9
|
isFirst: () => boolean;
|
|
10
10
|
onFocusin: (_isFirst: boolean) => void;
|
|
11
11
|
getNewValue: (value: number) => Value;
|
|
@@ -3,7 +3,7 @@ import { State } from '../../hooks/useState';
|
|
|
3
3
|
import type { Value } from './useValue';
|
|
4
4
|
export declare function useTooltip(showValue: State<Value>): {
|
|
5
5
|
firstTooltipRef: import('intact-react').RefObject<Tooltip<TooltipProps, import("../tooltip/tooltip").TooltipEvents, import("../tooltip/tooltip").TooltipBlocks>>;
|
|
6
|
-
secondTooltipRef: import(
|
|
6
|
+
secondTooltipRef: import('intact-react').RefObject<Tooltip<TooltipProps, import("../tooltip/tooltip").TooltipEvents, import("../tooltip/tooltip").TooltipBlocks>>;
|
|
7
7
|
getTooltipProps: () => TooltipProps;
|
|
8
8
|
show: () => void;
|
|
9
9
|
hide: () => void;
|
|
@@ -11,7 +11,7 @@ export interface SpinBlocks {
|
|
|
11
11
|
canvas: null;
|
|
12
12
|
}
|
|
13
13
|
export declare class Spin extends Component<SpinProps, SpinEvents, SpinBlocks> {
|
|
14
|
-
static template: string | import(
|
|
14
|
+
static template: string | import('intact-react').Template<any>;
|
|
15
15
|
static typeDefs: Required<TypeDefs<SpinProps>>;
|
|
16
16
|
static defaults: () => Partial<SpinProps>;
|
|
17
17
|
private config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { createElementVNode as _$ce, className as _$cn, noop as _$no, createVNode as _$cv } from 'intact-react';
|
|
3
|
-
import { Transition } from 'intact';
|
|
3
|
+
import { Transition } from 'intact-react';
|
|
4
4
|
import { getRestProps } from '../utils';
|
|
5
5
|
import { makeStyles } from './styles';
|
|
6
6
|
var _$tmp0 = {
|
|
@@ -29,7 +29,7 @@ export declare type StepFunction = (value: number) => number;
|
|
|
29
29
|
declare type Formatter = (value: number) => string;
|
|
30
30
|
declare type Parser = (value: string) => number;
|
|
31
31
|
export declare class Spinner extends Component<SpinnerProps, SpinnerEvents> {
|
|
32
|
-
static template: string | import(
|
|
32
|
+
static template: string | import('intact-react').Template<any>;
|
|
33
33
|
static typeDefs: Required<TypeDefs<SpinnerProps>>;
|
|
34
34
|
static defaults: () => Partial<SpinnerProps>;
|
|
35
35
|
static events: Events<SpinnerEvents>;
|
|
@@ -19,7 +19,7 @@ export interface SplitBlocks {
|
|
|
19
19
|
drag: null;
|
|
20
20
|
}
|
|
21
21
|
export declare class Split extends Component<SplitProps, SplitEvents, SplitBlocks> {
|
|
22
|
-
static template: string | import(
|
|
22
|
+
static template: string | import('intact-react').Template<any>;
|
|
23
23
|
static typeDefs: Required<TypeDefs<SplitProps>>;
|
|
24
24
|
static defaults: () => Partial<SplitProps>;
|
|
25
25
|
static events: Events<SplitEvents>;
|
|
@@ -3,7 +3,7 @@ interface MemoBlockProps {
|
|
|
3
3
|
block: Function;
|
|
4
4
|
}
|
|
5
5
|
export declare class MemoBlock extends Component<MemoBlockProps> {
|
|
6
|
-
static template: (this: MemoBlock) => import(
|
|
6
|
+
static template: (this: MemoBlock) => import('intact-react').Children;
|
|
7
7
|
$update(lastVNode: VNodeComponentClass<this>, nextVNode: VNodeComponentClass<this>, parentDom: Element, anchor: IntactDom | null, mountedQueue: Function[], force: boolean): void;
|
|
8
8
|
}
|
|
9
9
|
export {};
|
|
@@ -3,6 +3,6 @@ export declare function useDraggable(firstSize: State<string>, lastSize: State<s
|
|
|
3
3
|
start: (e: MouseEvent) => void;
|
|
4
4
|
dragging: State<boolean>;
|
|
5
5
|
elementRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
6
|
-
firstRef: import(
|
|
7
|
-
lastRef: import(
|
|
6
|
+
firstRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
7
|
+
lastRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const context: {
|
|
2
2
|
Provider: import("misstime").ComponentConstructor<import('intact-react').Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
|
|
3
|
-
Consumer: import("misstime").ComponentConstructor<import(
|
|
3
|
+
Consumer: import("misstime").ComponentConstructor<import('intact-react').Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
|
|
4
4
|
useContext: () => import("misstime").RefObject<any>;
|
|
5
5
|
};
|
|
@@ -8,7 +8,7 @@ export interface StepsProps {
|
|
|
8
8
|
vertical?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare class Steps extends Component<StepsProps> {
|
|
11
|
-
static template: string | import(
|
|
11
|
+
static template: string | import('intact-react').Template<any>;
|
|
12
12
|
static typeDefs: Required<TypeDefs<StepsProps>>;
|
|
13
13
|
static defaults: () => Partial<StepsProps>;
|
|
14
14
|
private config;
|
|
@@ -4,7 +4,7 @@ export interface StepProps {
|
|
|
4
4
|
index?: number;
|
|
5
5
|
}
|
|
6
6
|
export declare class Step extends Component<StepProps> {
|
|
7
|
-
static template: string | import(
|
|
7
|
+
static template: string | import('intact-react').Template<any>;
|
|
8
8
|
static typeDefs: Required<TypeDefs<StepProps>>;
|
|
9
9
|
private config;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { createUnknownComponentVNode as _$cc, createVNode as _$cv, className as _$cn, createElementVNode as _$ce } from 'intact-react';
|
|
3
|
-
import { linkEvent } from 'intact';
|
|
3
|
+
import { linkEvent } from 'intact-react';
|
|
4
4
|
import { getRestProps, addStyle } from '../utils';
|
|
5
5
|
import { context as StepsContext } from './context';
|
|
6
6
|
import { Icon } from '../icon';
|
|
@@ -22,7 +22,7 @@ export interface SwitchBlocks {
|
|
|
22
22
|
on: null;
|
|
23
23
|
}
|
|
24
24
|
export declare class Switch<True = true, False = false> extends Component<SwitchProps<True, False>, SwitchEvents, SwitchBlocks> {
|
|
25
|
-
static template: string | import(
|
|
25
|
+
static template: string | import('intact-react').Template<any>;
|
|
26
26
|
static typeDefs: Required<TypeDefs<SwitchProps<any, any>>>;
|
|
27
27
|
static defaults: () => Partial<SwitchProps<any, any>>;
|
|
28
28
|
static events: Events<SwitchEvents>;
|
|
@@ -17,7 +17,7 @@ export interface TableCellProps {
|
|
|
17
17
|
hasChildren: boolean;
|
|
18
18
|
}
|
|
19
19
|
export declare class TableCell extends Component<TableCellProps> {
|
|
20
|
-
static template: string | import(
|
|
20
|
+
static template: string | import('intact-react').Template<any>;
|
|
21
21
|
private config;
|
|
22
22
|
$update(lastVNode: VNodeComponentClass<this>, nextVNode: VNodeComponentClass<this>, parentDom: Element, anchor: IntactDom | null, mountedQueue: Function[], force: boolean): void;
|
|
23
23
|
}
|
|
@@ -28,9 +28,9 @@ export declare type TableColumnGroupItem = {
|
|
|
28
28
|
value: any;
|
|
29
29
|
};
|
|
30
30
|
export declare class TableColumn<T = any> extends Component<TableColumnProps, TableColumnEvents, TableColumnBlocks<T>> {
|
|
31
|
-
static template: string | import(
|
|
31
|
+
static template: string | import('intact-react').Template<any>;
|
|
32
32
|
static typeDefs: Required<TypeDefs<TableColumnProps>>;
|
|
33
|
-
elementRef: import(
|
|
33
|
+
elementRef: import('intact-react').RefObject<HTMLElement>;
|
|
34
34
|
private group;
|
|
35
35
|
private config;
|
|
36
36
|
}
|
|
@@ -9,7 +9,7 @@ import { makeGroupMenuStyles } from './styles';
|
|
|
9
9
|
import { isStringOrNumber, get, isArray } from 'intact-shared';
|
|
10
10
|
import { context as GroupContext } from './useGroup';
|
|
11
11
|
import { context as SortableContext } from './useSortable';
|
|
12
|
-
import { linkEvent } from 'intact';
|
|
12
|
+
import { linkEvent } from 'intact-react';
|
|
13
13
|
import { context as TableContext } from './useColumns';
|
|
14
14
|
import { context as ResizableContext } from './useResizable';
|
|
15
15
|
import { context as FixedColumnsContext } from './useFixedColumns';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ComponentClass } from 'intact-react';
|
|
2
2
|
import type { useColumns } from './useColumns';
|
|
3
3
|
export declare function exportTable(getData: ReturnType<typeof useColumns>['getData'], data: any[] | undefined, childrenKey: string | undefined, parentComponet: ComponentClass, filename: string): Promise<string>;
|
|
4
|
+
export declare function download(content: string, filename: string): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
|
|
3
3
|
import _trimInstanceProperty from "@babel/runtime-corejs3/core-js/instance/trim";
|
|
4
|
+
import _URL from "@babel/runtime-corejs3/core-js/url";
|
|
4
5
|
import { findDomFromVNode, createVNode as h, mount } from 'intact-react';
|
|
5
6
|
import { loopDataWithChildrenKey } from './useTree';
|
|
6
7
|
import { get, noop, isNullOrUndefined } from 'intact-shared';
|
|
@@ -10,17 +11,12 @@ export function exportTable(_x, _x2, _x3, _x4, _x5) {
|
|
|
10
11
|
|
|
11
12
|
function _exportTable() {
|
|
12
13
|
_exportTable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(getData, data, childrenKey, parentComponet, filename) {
|
|
13
|
-
var
|
|
14
|
+
var collection, _getData, columns, cols, content;
|
|
14
15
|
|
|
15
16
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
16
17
|
while (1) {
|
|
17
18
|
switch (_context.prev = _context.next) {
|
|
18
19
|
case 0:
|
|
19
|
-
_context.next = 2;
|
|
20
|
-
return import('downloadjs');
|
|
21
|
-
|
|
22
|
-
case 2:
|
|
23
|
-
download = _context.sent.default;
|
|
24
20
|
collection = [];
|
|
25
21
|
_getData = getData(), columns = _getData.columns, cols = _getData.cols; // head
|
|
26
22
|
|
|
@@ -60,10 +56,10 @@ function _exportTable() {
|
|
|
60
56
|
collection.push(rows.join(','));
|
|
61
57
|
}, false);
|
|
62
58
|
content = collection.join('\r\n');
|
|
63
|
-
download(
|
|
59
|
+
download(content, filename + '.csv');
|
|
64
60
|
return _context.abrupt("return", content);
|
|
65
61
|
|
|
66
|
-
case
|
|
62
|
+
case 7:
|
|
67
63
|
case "end":
|
|
68
64
|
return _context.stop();
|
|
69
65
|
}
|
|
@@ -77,4 +73,33 @@ function pushTextContext(rows, dom, content) {
|
|
|
77
73
|
var text = isNullOrUndefined(content) ? dom.textContent : content;
|
|
78
74
|
text = '"' + String(_trimInstanceProperty(text).call(text)).replace(/"/g, '""') + '"';
|
|
79
75
|
rows.push(text);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function download(content, filename) {
|
|
79
|
+
if (navigator.msSaveBlob) {
|
|
80
|
+
// IE10+
|
|
81
|
+
var blob = new Blob([content], {
|
|
82
|
+
type: 'text/csv;charset=utf-8'
|
|
83
|
+
});
|
|
84
|
+
navigator.msSaveBlob(blob, filename);
|
|
85
|
+
} else {
|
|
86
|
+
var link = document.createElement('a');
|
|
87
|
+
|
|
88
|
+
if ('download' in link) {
|
|
89
|
+
var _blob = new Blob([content], {
|
|
90
|
+
type: 'text/csv;charset=utf-8'
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
var url = _URL.createObjectURL(_blob);
|
|
94
|
+
|
|
95
|
+
link.setAttribute('href', url);
|
|
96
|
+
link.setAttribute('download', filename);
|
|
97
|
+
link.style.display = 'none';
|
|
98
|
+
document.body.appendChild(link);
|
|
99
|
+
link.click();
|
|
100
|
+
document.body.removeChild(link);
|
|
101
|
+
} else {
|
|
102
|
+
window.open("data:text/csv,charset=utf-8,%EF%BB%BF" + encodeURI(content));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
80
105
|
}
|
|
@@ -24,6 +24,7 @@ import DraggableTable from '~/components/table/demos/draggable';
|
|
|
24
24
|
import MergeCellDemo from '~/components/table/demos/mergeCell';
|
|
25
25
|
import { AllCheckedStatus } from './useChecked';
|
|
26
26
|
import PaginationDemo from '~/components/table/demos/pagination';
|
|
27
|
+
import { download } from './exportTable';
|
|
27
28
|
describe('Table', function () {
|
|
28
29
|
afterEach(function () {
|
|
29
30
|
unmount();
|
|
@@ -682,7 +683,7 @@ describe('Table', function () {
|
|
|
682
683
|
}, _callee13);
|
|
683
684
|
})));
|
|
684
685
|
it('export', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
|
|
685
|
-
var _mount15, instance, element, content, content1;
|
|
686
|
+
var _mount15, instance, element, content, content1, csv;
|
|
686
687
|
|
|
687
688
|
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
688
689
|
while (1) {
|
|
@@ -705,9 +706,13 @@ describe('Table', function () {
|
|
|
705
706
|
|
|
706
707
|
case 8:
|
|
707
708
|
content1 = _context14.sent;
|
|
708
|
-
expect(content1.replace(/\r\n|\r/g, '\n')).to.matchSnapshot();
|
|
709
|
+
expect(content1.replace(/\r\n|\r/g, '\n')).to.matchSnapshot(); // it will be error codes if downloadjs exports below contents
|
|
710
|
+
// use custom download function instead
|
|
709
711
|
|
|
710
|
-
|
|
712
|
+
csv = '"镜像名称","系统大小","镜像类型","状态","操作系统","创建时间","是否支持快速开机","可用区","镜像描述","关联快照"\r\n"a12321","20GB","普通镜像","错误 详情","centos-7","2023-11-23 15:54:10","否","--","--","q"';
|
|
713
|
+
download(csv, 'test.csv');
|
|
714
|
+
|
|
715
|
+
case 12:
|
|
711
716
|
case "end":
|
|
712
717
|
return _context14.stop();
|
|
713
718
|
}
|
|
@@ -32,7 +32,7 @@ export interface TableRowProps {
|
|
|
32
32
|
}
|
|
33
33
|
declare type DragCallback = (e: MouseEvent, tableRow: TableRow) => void;
|
|
34
34
|
export declare class TableRow extends Component<TableRowProps> {
|
|
35
|
-
static template: string | import(
|
|
35
|
+
static template: string | import('intact-react').Template<any>;
|
|
36
36
|
private config;
|
|
37
37
|
$update(lastVNode: VNodeComponentClass<this>, nextVNode: VNodeComponentClass<this>, parentDom: Element, anchor: IntactDom | null, mountedQueue: Function[], force: boolean): void;
|
|
38
38
|
onClick(e: MouseEvent): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { createVNode as _$cv, createUnknownComponentVNode as _$cc } from 'intact-react';
|
|
3
|
-
import { TransitionGroup } from 'intact';
|
|
3
|
+
import { TransitionGroup } from 'intact-react';
|
|
4
4
|
import { getClassAndStyleForFixed } from './useFixedColumns';
|
|
5
5
|
import { Checkbox } from '../checkbox';
|
|
6
6
|
import { Radio } from '../radio';
|
|
7
7
|
import { TableCell } from './cell';
|
|
8
|
-
import { createElementVNode, className as cx, createFragment } from 'intact';
|
|
8
|
+
import { createElementVNode, className as cx, createFragment } from 'intact-react';
|
|
9
9
|
export default function ($props, $blocks, $__proto__) {
|
|
10
10
|
var _classNameObj,
|
|
11
11
|
_this = this;
|
|
@@ -89,7 +89,8 @@ var defaults = {
|
|
|
89
89
|
|
|
90
90
|
// tree
|
|
91
91
|
arrow: {
|
|
92
|
-
gap: "4px"
|
|
92
|
+
gap: "4px",
|
|
93
|
+
width: "16px"
|
|
93
94
|
},
|
|
94
95
|
resizeWidth: "5px",
|
|
95
96
|
draggingOpacity: ".4"
|
|
@@ -102,7 +103,7 @@ setDefault(function () {
|
|
|
102
103
|
}).table;
|
|
103
104
|
});
|
|
104
105
|
export function makeStyles(k) {
|
|
105
|
-
return /*#__PURE__*/css("font-size:", table.fontSize, ";color:", table.color, ";position:relative;z-index:0;.", k, "-table-wrapper{border-bottom:", table.border, ";overflow:auto;border-radius:", table.borderRadius, ";}table{width:100%;border-spacing:0;table-layout:fixed;td,th{transition:all ", table.transition, ";}}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";position:sticky;top:0;z-index:2;tr{height:", table.thead.height, ";&:not(:last-of-type) th{border-bottom:", table.border, ";}}}th{padding:", table.thead.padding, ";position:relative;background:", table.thead.bgColor, ";line-height:normal;&:before{content:'';height:", table.thead.delimiterHeight, ";position:absolute;background-color:", table.thead.delimiterColor, ";width:1px;left:1px;top:50%;transform:translateY(-50%);}&:first-of-type:before{display:none;}}.", k, "-table-title{display:inline-flex;align-items:center;max-width:100%;color:", table.thead.color, ";}.", k, "-table-title-text{flex:1;display:inline-flex;line-height:1.4;}tbody{tr{&:hover td{background:", table.tbody.hoverBgcolor, ";}&:last-of-type td{border-bottom-color:transparent;}}}td{padding:", table.tbody.padding, ";border-bottom:", table.border, ";background:", table.bgColor, ";word-wrap:break-word;}.", k, "-fixed-left,.", k, "-fixed-right{position:sticky;z-index:1;&:after{content:'';display:block;transition:box-shadow ", table.transition, ";position:absolute;top:0;bottom:0px;width:10px;pointer-events:none;}}.", k, "-fixed-left:after{right:-11px;}.", k, "-fixed-right:after{left:-11px;}&.", k, "-scroll-left .", k, "-fixed-right:after{box-shadow:", table.fixRightShadow, ";}&.", k, "-scroll-right .", k, "-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}&.", k, "-scroll-middle{.", k, "-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}.", k, "-fixed-right:after{box-shadow:", table.fixRightShadow, ";}}.", k, "-fixed-right+.", k, "-fixed-right:after{display:none;}.", k, "-table-affix-header{position:sticky;top:0;left:0;.", k, "-affix-wrapper{overflow:hidden;}&.", k, "-fixed{position:relative;}}&.", k, "-border,&.", k, "-grid{.", k, "-table-wrapper{border-top:", table.border, ";border-left:", table.border, ";border-right:", table.border, ";}}&.", k, "-grid{td:not(:last-of-type),th:not(:last-of-type){border-right:", table.border, ";}th:before{display:none;}}&.", k, "-stripe{tr:nth-child(even):not(:hover) td{background:", table.stripeBgColor, ";}}.", k, "-table-group{margin-left:", table.group.gap, ";}.", k, "-table-check{.", k, "-checkbox,.", k, "-radio{position:relative;top:-1px;}}.", k, "-column-sortable{cursor:pointer;}.", k, "-column-sort{.", k, "-icon{display:block;height:", _sortInstanceProperty(table).iconHeight, ";line-height:", _sortInstanceProperty(table).iconHeight, ";margin:0 0 1px ", _sortInstanceProperty(table).gap, ";}&.", k, "-desc .", k, "-icon.", k, "-desc,&.", k, "-asc .", k, "-icon.", k, "-asc{color:", _sortInstanceProperty(table).enabledColor, ";}}.", k, "-table-spin.", k, "-overlay{z-index:2;}.", k, "-table-empty{text-align:center;}tr.", k, "-expand{td{padding:0;background:#fdfcff;}}&.", k, "-with-expand{tr:not(.", k, "-expand){td{border-bottom:none;}}}.", k, "-table-expand{border-top:", table.border, ";box-sizing:content-box;}tbody tr.", k, "-selected td{background:", table.selectedBgColor, ";}.", k, "-table-arrow{margin-right:", table.arrow.gap, ";transition:transform ", table.transition, ";position:relative;top:-1px;}tr.", k, "-spreaded{.", k, "-table-arrow{transform:rotate(90deg);}}.", k, "-table-resize{height:100%;width:", table.resizeWidth, ";position:absolute;top:0;left:-1px;cursor:ew-resize;}tr.", k, "-dragging{opacity:", table.draggingOpacity, ";}.", k, "-table-scrollbar{overflow-x:auto;overflow-y:hidden;}.", k, "-table-scrollbar-inner{height:1px;}", _mapInstanceProperty(aligns).call(aligns, function (type) {
|
|
106
|
+
return /*#__PURE__*/css("font-size:", table.fontSize, ";color:", table.color, ";position:relative;z-index:0;.", k, "-table-wrapper{border-bottom:", table.border, ";overflow:auto;border-radius:", table.borderRadius, ";}table{width:100%;border-spacing:0;table-layout:fixed;td,th{transition:all ", table.transition, ";}}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";position:sticky;top:0;z-index:2;tr{height:", table.thead.height, ";&:not(:last-of-type) th{border-bottom:", table.border, ";}}}th{padding:", table.thead.padding, ";position:relative;background:", table.thead.bgColor, ";line-height:normal;&:before{content:'';height:", table.thead.delimiterHeight, ";position:absolute;background-color:", table.thead.delimiterColor, ";width:1px;left:1px;top:50%;transform:translateY(-50%);}&:first-of-type:before{display:none;}}.", k, "-table-title{display:inline-flex;align-items:center;max-width:100%;color:", table.thead.color, ";}.", k, "-table-title-text{flex:1;display:inline-flex;line-height:1.4;}tbody{tr{&:hover td{background:", table.tbody.hoverBgcolor, ";}&:last-of-type td{border-bottom-color:transparent;}}}td{padding:", table.tbody.padding, ";border-bottom:", table.border, ";background:", table.bgColor, ";word-wrap:break-word;}.", k, "-fixed-left,.", k, "-fixed-right{position:sticky;z-index:1;&:after{content:'';display:block;transition:box-shadow ", table.transition, ";position:absolute;top:0;bottom:0px;width:10px;pointer-events:none;}}.", k, "-fixed-left:after{right:-11px;}.", k, "-fixed-right:after{left:-11px;}&.", k, "-scroll-left .", k, "-fixed-right:after{box-shadow:", table.fixRightShadow, ";}&.", k, "-scroll-right .", k, "-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}&.", k, "-scroll-middle{.", k, "-fixed-left:after{box-shadow:", table.fixLeftShadow, ";}.", k, "-fixed-right:after{box-shadow:", table.fixRightShadow, ";}}.", k, "-fixed-right+.", k, "-fixed-right:after{display:none;}.", k, "-table-affix-header{position:sticky;top:0;left:0;.", k, "-affix-wrapper{overflow:hidden;}&.", k, "-fixed{position:relative;}}&.", k, "-border,&.", k, "-grid{.", k, "-table-wrapper{border-top:", table.border, ";border-left:", table.border, ";border-right:", table.border, ";}}&.", k, "-grid{td:not(:last-of-type),th:not(:last-of-type){border-right:", table.border, ";}th:before{display:none;}}&.", k, "-stripe{tr:nth-child(even):not(:hover) td{background:", table.stripeBgColor, ";}}.", k, "-table-group{margin-left:", table.group.gap, ";}.", k, "-table-check{.", k, "-checkbox,.", k, "-radio{position:relative;top:-1px;}}.", k, "-column-sortable{cursor:pointer;}.", k, "-column-sort{.", k, "-icon{display:block;height:", _sortInstanceProperty(table).iconHeight, ";line-height:", _sortInstanceProperty(table).iconHeight, ";margin:0 0 1px ", _sortInstanceProperty(table).gap, ";}&.", k, "-desc .", k, "-icon.", k, "-desc,&.", k, "-asc .", k, "-icon.", k, "-asc{color:", _sortInstanceProperty(table).enabledColor, ";}}.", k, "-table-spin.", k, "-overlay{z-index:2;}.", k, "-table-empty{text-align:center;}tr.", k, "-expand{td{padding:0;background:#fdfcff;}}&.", k, "-with-expand{tr:not(.", k, "-expand){td{border-bottom:none;}}}.", k, "-table-expand{border-top:", table.border, ";box-sizing:content-box;}tbody tr.", k, "-selected td{background:", table.selectedBgColor, ";}.", k, "-table-arrow{width:", table.arrow.width, "!important;margin-right:", table.arrow.gap, ";transition:transform ", table.transition, ";position:relative;top:-1px;}tr.", k, "-spreaded{.", k, "-table-arrow{transform:rotate(90deg);}}.", k, "-table-resize{height:100%;width:", table.resizeWidth, ";position:absolute;top:0;left:-1px;cursor:ew-resize;}tr.", k, "-dragging{opacity:", table.draggingOpacity, ";}.", k, "-table-scrollbar{overflow-x:auto;overflow-y:hidden;}.", k, "-table-scrollbar-inner{height:1px;}", _mapInstanceProperty(aligns).call(aligns, function (type) {
|
|
106
107
|
return /*#__PURE__*/css(".", k, "-align-", type, "{text-align:", type, ";}");
|
|
107
108
|
}), ">.", k, "-pagination{margin:16px 0;}");
|
|
108
109
|
}
|
|
@@ -70,7 +70,7 @@ export declare type TableSortValue<T = string> = {
|
|
|
70
70
|
};
|
|
71
71
|
export declare type TableGroupValue<T extends string | number | symbol = string | number | symbol> = Record<T, any | any[]>;
|
|
72
72
|
export declare class Table<T = any, RowKey extends TableRowKey = TableRowKey, Checkbox extends CheckType = 'checkbox', Sort extends string = string, Group extends TableGroupValue = TableGroupValue> extends Component<TableProps<T, RowKey, Checkbox, Sort, Group>, TableEvents<T, RowKey>, TableBlocks<T>> {
|
|
73
|
-
static template: string | import(
|
|
73
|
+
static template: string | import('intact-react').Template<any>;
|
|
74
74
|
static typeDefs: Required<TypeDefs<TableProps<unknown, TableRowKey, CheckType, string, TableGroupValue<string | number | symbol>>>>;
|
|
75
75
|
static defaults: () => Partial<TableProps<any, TableRowKey, CheckType, string, TableGroupValue<string | number | symbol>>>;
|
|
76
76
|
static events: Events<TableEvents<any, number>>;
|
|
@@ -79,7 +79,7 @@ export declare class Table<T = any, RowKey extends TableRowKey = TableRowKey, Ch
|
|
|
79
79
|
value: import("../../hooks/useState").State<number>;
|
|
80
80
|
limit: import("../../hooks/useState").State<number>;
|
|
81
81
|
onChange: (data: PaginationChangeData) => void;
|
|
82
|
-
paginationRef: import(
|
|
82
|
+
paginationRef: import('intact-react').RefObject<import("../pagination").Pagination>;
|
|
83
83
|
};
|
|
84
84
|
private tree;
|
|
85
85
|
private columns;
|
|
@@ -11,7 +11,7 @@ import { Checkbox } from '../checkbox';
|
|
|
11
11
|
import { context as GroupContext } from './useGroup';
|
|
12
12
|
import { context as SortableContext } from './useSortable';
|
|
13
13
|
import { Spin } from '../spin';
|
|
14
|
-
import { Transition, TransitionGroup, createComponentVNode } from 'intact';
|
|
14
|
+
import { Transition, TransitionGroup, createComponentVNode } from 'intact-react';
|
|
15
15
|
import { _$ } from '../../i18n';
|
|
16
16
|
import { context as TableContext } from './useColumns';
|
|
17
17
|
import { expandAnimationCallbacks } from '../utils';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { VNodeComponentClass, Props } from 'intact-react';
|
|
2
2
|
import { TableColumn, TableColumnProps } from './column';
|
|
3
3
|
export declare const context: {
|
|
4
|
-
Provider: import(
|
|
5
|
-
Consumer: import(
|
|
6
|
-
useContext: () => import(
|
|
4
|
+
Provider: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ProviderProps<("none" | "radio" | "checkbox") | undefined>, {}, {}, {}>>;
|
|
5
|
+
Consumer: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ConsumerProps<("none" | "radio" | "checkbox") | undefined>, {}, {}, {}>>;
|
|
6
|
+
useContext: () => import('intact-react').RefObject<("none" | "radio" | "checkbox") | undefined>;
|
|
7
7
|
};
|
|
8
8
|
export declare function useColumns(): {
|
|
9
9
|
getColumns: () => VNodeComponentClass<TableColumn<any>>[][];
|
|
10
|
-
getCols: () => Props<TableColumnProps, import(
|
|
10
|
+
getCols: () => Props<TableColumnProps, import('intact-react').ComponentClass<any> | Element>[];
|
|
11
11
|
getData: () => {
|
|
12
12
|
columns: VNodeComponentClass<TableColumn<any>>[][];
|
|
13
|
-
cols: Props<TableColumnProps, import(
|
|
13
|
+
cols: Props<TableColumnProps, import('intact-react').ComponentClass<any> | Element>[];
|
|
14
14
|
maxRows: number;
|
|
15
15
|
maxCols: number;
|
|
16
16
|
};
|
|
@@ -5,8 +5,8 @@ import { State } from '../../hooks/useState';
|
|
|
5
5
|
import type { useScroll } from './useScroll';
|
|
6
6
|
declare type ScrollPosition = 'left' | 'middle' | 'right';
|
|
7
7
|
export declare const context: {
|
|
8
|
-
Provider: import(
|
|
9
|
-
Consumer: import(
|
|
8
|
+
Provider: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
|
|
9
|
+
Consumer: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
|
|
10
10
|
useContext: () => RefObject<any>;
|
|
11
11
|
};
|
|
12
12
|
export declare function useFixedColumns(getColumns: () => VNodeComponentClass<TableColumn>[][], { scrollRef, callbacks }: ReturnType<typeof useScroll>, widthMap: State<Record<TableRowKey, number>>): {
|
|
@@ -5,9 +5,9 @@ declare type ContextValue = {
|
|
|
5
5
|
onChange: (key: string, groupValue: any) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const context: {
|
|
8
|
-
Provider: import('intact-react').ComponentConstructor<import(
|
|
9
|
-
Consumer: import(
|
|
10
|
-
useContext: () => import(
|
|
8
|
+
Provider: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ProviderProps<ContextValue>, {}, {}, {}>>;
|
|
9
|
+
Consumer: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ConsumerProps<ContextValue>, {}, {}, {}>>;
|
|
10
|
+
useContext: () => import('intact-react').RefObject<ContextValue | undefined>;
|
|
11
11
|
};
|
|
12
12
|
export declare function useGroup(): {
|
|
13
13
|
onSelect: (value: any, onChange: ContextValue['onChange']) => void;
|
|
@@ -17,7 +17,7 @@ export declare function useGroup(): {
|
|
|
17
17
|
onShow: (groupValue: any) => void;
|
|
18
18
|
reset: (onChange: ContextValue['onChange']) => void;
|
|
19
19
|
confirm: (onChange: ContextValue['onChange']) => void;
|
|
20
|
-
dropdownRef: import(
|
|
20
|
+
dropdownRef: import('intact-react').RefObject<Dropdown>;
|
|
21
21
|
localGroupValue: import("../../hooks/useState").State<any>;
|
|
22
22
|
isEmptyValue: (groupValue: any) => boolean | undefined;
|
|
23
23
|
};
|
|
@@ -2,8 +2,8 @@ import { RefObject } from 'intact-react';
|
|
|
2
2
|
import type { TableRowKey } from './table';
|
|
3
3
|
import { State } from '../../hooks/useState';
|
|
4
4
|
export declare const context: {
|
|
5
|
-
Provider: import(
|
|
6
|
-
Consumer: import(
|
|
5
|
+
Provider: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
|
|
6
|
+
Consumer: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
|
|
7
7
|
useContext: () => RefObject<any>;
|
|
8
8
|
};
|
|
9
9
|
export declare function useResizable(scrollRef: RefObject<HTMLElement>, tableRef: RefObject<HTMLElement>, tableWidth: State<number | null>, widthMap: State<Record<TableRowKey, number>>, storeWidth: () => void): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const context: {
|
|
2
|
-
Provider: import('intact-react').ComponentConstructor<import(
|
|
3
|
-
Consumer: import(
|
|
4
|
-
useContext: () => import(
|
|
2
|
+
Provider: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ProviderProps<any>, {}, {}, {}>>;
|
|
3
|
+
Consumer: import('intact-react').ComponentConstructor<import('intact-react').Component<import("../context").ConsumerProps<any>, {}, {}, {}>>;
|
|
4
|
+
useContext: () => import('intact-react').RefObject<any>;
|
|
5
5
|
};
|
|
6
6
|
export declare function useSortable(): {
|
|
7
7
|
onChange: (key: string, event: Event & {
|
|
@@ -15,7 +15,7 @@ export interface TabsEvents<T = any> {
|
|
|
15
15
|
remove: [T];
|
|
16
16
|
}
|
|
17
17
|
export declare class Tabs<T = any> extends Component<TabsProps<T>, TabsEvents<T>> {
|
|
18
|
-
static template: string | import(
|
|
18
|
+
static template: string | import('intact-react').Template<any>;
|
|
19
19
|
static typeDefs: Required<TypeDefs<TabsProps<any>>>;
|
|
20
20
|
static defaults: () => Partial<TabsProps<any>>;
|
|
21
21
|
static events: Events<TabsEvents<any>>;
|
package/components/tabs/tab.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface TabEvents {
|
|
|
9
9
|
click: [MouseEvent];
|
|
10
10
|
}
|
|
11
11
|
export declare class Tab extends Component<TabProps, TabEvents> {
|
|
12
|
-
static template: string | import(
|
|
12
|
+
static template: string | import('intact-react').Template<any>;
|
|
13
13
|
private tabs;
|
|
14
14
|
private config;
|
|
15
15
|
private onClick;
|
package/components/tag/base.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface TagBlocks {
|
|
|
16
16
|
}
|
|
17
17
|
export declare const typeDefs: Required<TypeDefs<TagProps>>;
|
|
18
18
|
export declare class Tag<T extends TagProps = TagProps, E extends TagEvents = TagEvents, B extends TagBlocks = TagBlocks> extends Component<T, E, B> {
|
|
19
|
-
static template: string | import(
|
|
19
|
+
static template: string | import('intact-react').Template<any>;
|
|
20
20
|
static typeDefs: Required<TypeDefs<TagProps>>;
|
|
21
21
|
static defaults: () => Partial<TagProps>;
|
|
22
22
|
static events: Events<TagEvents>;
|
|
@@ -3,7 +3,7 @@ import { createUnknownComponentVNode as _$cc, createVNode as _$cv, className as
|
|
|
3
3
|
import { Icon } from '../icon';
|
|
4
4
|
import { getRestProps } from '../utils';
|
|
5
5
|
import { makeStyles } from './styles';
|
|
6
|
-
import { Transition } from 'intact';
|
|
6
|
+
import { Transition } from 'intact-react';
|
|
7
7
|
export default function ($props, $blocks, $__proto__) {
|
|
8
8
|
var _classNameObj;
|
|
9
9
|
|
package/components/tag/tags.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface TagsEvents {
|
|
|
17
17
|
dragend: [TagsDragEndParam];
|
|
18
18
|
}
|
|
19
19
|
export declare class Tags extends Component<TagsProps, TagsEvents> {
|
|
20
|
-
static template: string | import(
|
|
20
|
+
static template: string | import('intact-react').Template<any>;
|
|
21
21
|
static typeDefs: Required<TypeDefs<TagsProps>>;
|
|
22
22
|
static defaults: () => Partial<TagsProps>;
|
|
23
23
|
static events: Events<TagsEvents>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
2
|
import { createVNode as _$cv, className as _$cn, createUnknownComponentVNode as _$cc, createTextVNode as _$ct, extend as _$ex, EMPTY_OBJ as _$em, createElementVNode as _$ce, noop as _$no } from 'intact-react';
|
|
3
|
-
import { TransitionGroup } from 'intact';
|
|
3
|
+
import { TransitionGroup } from 'intact-react';
|
|
4
4
|
import { getRestProps } from '../utils';
|
|
5
5
|
import { makeTagsStyles } from './styles';
|
|
6
6
|
import { Tag } from './';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VNode } from 'intact-react';
|
|
2
|
-
export declare function useChildren(): import("../../hooks/useState").State<VNode<import(
|
|
2
|
+
export declare function useChildren(): import("../../hooks/useState").State<VNode<import('intact-react').VNodeTag>[]>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { VNode } from 'intact-react';
|
|
2
2
|
import { State } from '../../hooks/useState';
|
|
3
|
-
export declare function useDraggable(originVNodes: State<VNode[]>): State<VNode<import(
|
|
3
|
+
export declare function useDraggable(originVNodes: State<VNode[]>): State<VNode<import('intact-react').VNodeTag>[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VNode } from 'intact-react';
|
|
2
2
|
import { State } from '../../hooks/useState';
|
|
3
3
|
export declare function useNowrap(originVNodes: State<VNode[]>): {
|
|
4
|
-
containerRef: import(
|
|
5
|
-
children: State<VNode<import(
|
|
6
|
-
hiddenChildren: State<VNode<import(
|
|
4
|
+
containerRef: import('intact-react').RefObject<HTMLDivElement>;
|
|
5
|
+
children: State<VNode<import('intact-react').VNodeTag>[]>;
|
|
6
|
+
hiddenChildren: State<VNode<import('intact-react').VNodeTag>[]>;
|
|
7
7
|
};
|
|
@@ -11,7 +11,7 @@ export interface TimelineItemBlocks {
|
|
|
11
11
|
dot: null;
|
|
12
12
|
}
|
|
13
13
|
export declare class TimelineItem extends Component<TimelineItemProps, TimelineItemEvents, TimelineItemBlocks> {
|
|
14
|
-
static template: string | import(
|
|
14
|
+
static template: string | import('intact-react').Template<any>;
|
|
15
15
|
static typeDefs: Required<TypeDefs<TimelineItemProps>>;
|
|
16
16
|
static defaults: () => Partial<TimelineItemProps>;
|
|
17
17
|
private config;
|
|
@@ -2,6 +2,6 @@ import { Component } from 'intact-react';
|
|
|
2
2
|
export interface TimelineProps {
|
|
3
3
|
}
|
|
4
4
|
export declare class Timeline extends Component<TimelineProps> {
|
|
5
|
-
static template: string | import(
|
|
5
|
+
static template: string | import('intact-react').Template<any>;
|
|
6
6
|
private config;
|
|
7
7
|
}
|
|
@@ -5,6 +5,6 @@ import { SelectPicker } from './selectPicker';
|
|
|
5
5
|
export type { TimepickerProps, TimepickerEvents, TimepickerBlocks };
|
|
6
6
|
export declare class Timepicker<Multipe extends boolean = false, Range extends boolean = false> extends Component<TimepickerProps<Multipe, Range>, TimepickerEvents, TimepickerBlocks<Range>> {
|
|
7
7
|
static $doubleVNodes: boolean;
|
|
8
|
-
static template(this: Timepicker): import(
|
|
9
|
-
static typeDefs: Required<import(
|
|
8
|
+
static template(this: Timepicker): import('intact-react').VNode<typeof SelectPicker> | import('intact-react').VNode<typeof PanelPicker>;
|
|
9
|
+
static typeDefs: Required<import('intact-react').TypeDefs<TimepickerProps<boolean, boolean>>>;
|
|
10
10
|
}
|