@bit-sun/business-component 1.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.
package/.editorconfig ADDED
@@ -0,0 +1,16 @@
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = false
14
+
15
+ [Makefile]
16
+ indent_style = tab
package/.fatherrc.ts ADDED
@@ -0,0 +1,4 @@
1
+ export default {
2
+ esm: 'rollup',
3
+ cjs: 'rollup',
4
+ };
@@ -0,0 +1,7 @@
1
+ **/*.svg
2
+ **/*.ejs
3
+ **/*.html
4
+ package.json
5
+ .umi
6
+ .umi-production
7
+ .umi-test
package/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "printWidth": 80,
5
+ "overrides": [
6
+ {
7
+ "files": ".prettierrc",
8
+ "options": { "parser": "json" }
9
+ }
10
+ ]
11
+ }
package/.umirc.ts ADDED
@@ -0,0 +1,28 @@
1
+ /*
2
+ * @Description:
3
+ * @Author: rodchen
4
+ * @Date: 2021-11-30 22:59:39
5
+ * @LastEditTime: 2021-12-07 18:47:10
6
+ * @LastEditors: rodchen
7
+ */
8
+ import { defineConfig } from 'dumi';
9
+
10
+ export default defineConfig({
11
+ title: 'business-component',
12
+ favicon:
13
+ 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
14
+ logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
15
+ outputPath: 'docs-dist',
16
+ mode: 'site',
17
+ scripts: [
18
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/js/plugin.js',
19
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/luckysheet.umd.js',
20
+ ],
21
+ styles: [
22
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/css/pluginsCss.css',
23
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/plugins/plugins.css',
24
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/css/luckysheet.css',
25
+ 'https://bitsun-website.oss-cn-shanghai.aliyuncs.com/cdn/dist/assets/iconfont/iconfont.css',
26
+ ],
27
+ // more config: https://d.umijs.org/config
28
+ });
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # business-component
2
+
3
+ ## Getting Started
4
+
5
+ Install dependencies,
6
+
7
+ ```bash
8
+ $ npm i
9
+ ```
10
+
11
+ Start the dev server,
12
+
13
+ ```bash
14
+ $ npm start
15
+ ```
16
+
17
+ Build documentation,
18
+
19
+ ```bash
20
+ $ npm run docs:build
21
+ ```
22
+
23
+ Build library via `father-build`,
24
+
25
+ ```bash
26
+ $ npm run build
27
+ ```
@@ -0,0 +1,141 @@
1
+ import React from 'react';
2
+ import 'antd/dist/antd.css';
3
+ import './index.less';
4
+ declare class Luckysheet extends React.Component {
5
+ constructor(props: any);
6
+ onDragEnd(result: any): void;
7
+ getCount: () => {
8
+ total: any;
9
+ error: any;
10
+ };
11
+ setConfig: (data: any) => {
12
+ container: string;
13
+ showtoolbar: boolean;
14
+ hook: {
15
+ columnTitleCellRenderBefore: (columnAbc: any, postion: any, ctx: any) => void;
16
+ cellRenderAfter: (cell: any, postion: any, sheetFile: any, ctx: any) => void;
17
+ cellAllRenderBefore: (data: any, sheetFile: any, ctx: any) => void;
18
+ };
19
+ data: {
20
+ name: string;
21
+ color: string;
22
+ index: number;
23
+ status: number;
24
+ order: number;
25
+ hide: number;
26
+ row: number;
27
+ column: number;
28
+ defaultRowHeight: number;
29
+ defaultColWidth: number;
30
+ config: {};
31
+ celldata: any;
32
+ scrollLeft: number;
33
+ luckysheet_select_save: never[];
34
+ calcChain: never[];
35
+ isPivotTable: boolean;
36
+ pivotTable: {};
37
+ filter_select: {};
38
+ filter: null;
39
+ luckysheet_alternateformat_save: {
40
+ cellrange: {
41
+ row: number[];
42
+ column: number[];
43
+ };
44
+ format: {
45
+ head: {
46
+ fc: string;
47
+ bc: string;
48
+ };
49
+ one: {
50
+ bc: string;
51
+ };
52
+ two: {
53
+ bc: string;
54
+ };
55
+ foot: {
56
+ fc: string;
57
+ bc: string;
58
+ };
59
+ };
60
+ hasRowHeader: boolean;
61
+ hasRowFooter: boolean;
62
+ }[];
63
+ luckysheet_alternateformat_save_modelCustom: {
64
+ head: {
65
+ fc: string;
66
+ bc: string;
67
+ };
68
+ one: {
69
+ fc: string;
70
+ bc: string;
71
+ };
72
+ two: {
73
+ fc: string;
74
+ bc: string;
75
+ };
76
+ foot: {
77
+ fc: string;
78
+ bc: string;
79
+ };
80
+ }[];
81
+ luckysheet_conditionformat_save: {};
82
+ frozen: {};
83
+ chart: never[];
84
+ zoomRatio: number;
85
+ image: never[];
86
+ showGridLines: number;
87
+ dataVerification: {};
88
+ }[];
89
+ cellRightClickConfig: {
90
+ copy: boolean;
91
+ copyAs: boolean;
92
+ paste: boolean;
93
+ insertRow: boolean;
94
+ insertColumn: boolean;
95
+ deleteCell: boolean;
96
+ hideRow: boolean;
97
+ hideColumn: boolean;
98
+ rowHeight: boolean;
99
+ columnWidth: boolean;
100
+ clear: boolean;
101
+ matrix: boolean;
102
+ sort: boolean;
103
+ filter: boolean;
104
+ chart: boolean;
105
+ image: boolean;
106
+ link: boolean;
107
+ data: boolean;
108
+ cellFormat: boolean;
109
+ };
110
+ showsheetbar: boolean;
111
+ optionstate: boolean;
112
+ showstatisticBarConfig: {
113
+ count: boolean;
114
+ view: boolean;
115
+ zoom: boolean;
116
+ };
117
+ column: number;
118
+ columnHeaderHeight: number;
119
+ lang: string;
120
+ defaultFontSize: string;
121
+ frozen: {
122
+ type: string;
123
+ range: {
124
+ row_focus: number;
125
+ column_focus: number;
126
+ };
127
+ };
128
+ };
129
+ componentDidMount(): void;
130
+ componentWillUnmount(): void;
131
+ getData: () => any;
132
+ resetData: () => void;
133
+ filterData: (type: string) => void;
134
+ toggleData: () => void;
135
+ onChange: (e: any) => void;
136
+ errorChange: (e: any) => void;
137
+ menuList: JSX.Element;
138
+ leftMenu: JSX.Element;
139
+ render(): JSX.Element;
140
+ }
141
+ export default Luckysheet;
@@ -0,0 +1 @@
1
+ export { default as SheetTable } from './SheetTable';