namirasoft-site-react 1.3.443 → 1.3.444
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/App.js +26 -3
- package/dist/App.js.map +1 -1
- package/dist/components/NSBoxDate.d.ts +1 -1
- package/dist/components/NSBoxDate.js +1 -1
- package/dist/components/NSBoxDate.js.map +1 -1
- package/dist/components/NSBoxFile.d.ts +2 -1
- package/dist/components/NSBoxFile.js.map +1 -1
- package/dist/components/NSCardScreenshot.d.ts +1 -1
- package/dist/components/NSCardScreenshot.js.map +1 -1
- package/dist/components/NSChartColumn.d.ts +1 -1
- package/dist/components/NSChartColumn.js.map +1 -1
- package/dist/components/NSChartPie.d.ts +1 -1
- package/dist/components/NSChartPie.js.map +1 -1
- package/dist/components/NSChartTable.d.ts +1 -1
- package/dist/components/NSChartTable.js.map +1 -1
- package/dist/components/NSDownload.d.ts +1 -1
- package/dist/components/NSDownload.js +2 -2
- package/dist/components/NSDownload.js.map +1 -1
- package/dist/components/NSTable.module.css +7 -1
- package/dist/components/NSTimeTable.d.ts +1 -1
- package/dist/components/NSTimeTable.js.map +1 -1
- package/package.json +1 -1
- package/src/App.tsx +27 -3
- package/src/components/NSBoxDate.tsx +2 -2
- package/src/components/NSBoxFile.tsx +104 -87
- package/src/components/NSCardScreenshot.tsx +27 -24
- package/src/components/NSChartColumn.tsx +97 -102
- package/src/components/NSChartPie.tsx +2 -2
- package/src/components/NSChartTable.tsx +85 -81
- package/src/components/NSDownload.tsx +55 -48
- package/src/components/NSTable.module.css +7 -1
- package/src/components/NSTimeTable.tsx +38 -35
|
@@ -1,47 +1,50 @@
|
|
|
1
1
|
import { ConfigProvider, Table } from 'antd';
|
|
2
2
|
import type { TableProps } from 'antd';
|
|
3
|
-
import { IBaseComponentProps } from '../
|
|
3
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
4
4
|
import Styles from "./NSTimeTable.module.css"
|
|
5
5
|
|
|
6
|
-
interface DataType
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
interface DataType
|
|
7
|
+
{
|
|
8
|
+
key: string;
|
|
9
|
+
year: string;
|
|
10
|
+
month: string;
|
|
11
|
+
week: string;
|
|
12
|
+
today: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export interface NSTimeTableProps extends IBaseComponentProps
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
export interface NSTimeTableProps extends IBaseComponentProps
|
|
16
|
+
{
|
|
17
|
+
rows: DataType[];
|
|
18
|
+
columns: TableProps<DataType>['columns'];
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
const NSTimeTable = (props: NSTimeTableProps) =>
|
|
21
|
+
const NSTimeTable = (props: NSTimeTableProps) =>
|
|
22
|
+
{
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
24
|
+
return (
|
|
25
|
+
<ConfigProvider theme={{
|
|
26
|
+
components: {
|
|
27
|
+
Table: {
|
|
28
|
+
headerBg: "#141B5C",
|
|
29
|
+
headerColor: "#fff",
|
|
30
|
+
headerSplitColor: "#141B5C",
|
|
31
|
+
cellFontSize: 16,
|
|
32
|
+
colorText: "#141B5C",
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}}>
|
|
36
|
+
<Table
|
|
37
|
+
columns={props.columns}
|
|
38
|
+
dataSource={props.rows}
|
|
39
|
+
bordered={false}
|
|
40
|
+
rowClassName={Styles.custom_row}
|
|
41
|
+
rowHoverable={false}
|
|
42
|
+
scroll={{
|
|
43
|
+
x: true
|
|
44
|
+
}}
|
|
45
|
+
/>
|
|
46
|
+
</ConfigProvider>
|
|
47
|
+
)
|
|
45
48
|
};
|
|
46
49
|
|
|
47
50
|
export default NSTimeTable;
|