holyes-table 1.0.0 → 1.0.2

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.
@@ -256,3 +256,56 @@ export type HolyesTableTreeConfig = {
256
256
  /** 是否显示树形图标, 默认是true */
257
257
  showIcon?: boolean;
258
258
  };
259
+ /** 计算表格每行的高度的 worker 选项 */
260
+ export type HolyesTableGetItemHeightOptions = {
261
+ /** 表格内容 */
262
+ tempData: any[];
263
+ /** 表格内容的索引 */
264
+ index: number;
265
+ /** 表格内容的样式 */
266
+ commonStyles: any;
267
+ /** 表格内容的样式 */
268
+ itemStyles: any;
269
+ /** 表格内容的高度 */
270
+ divLineHeight: number;
271
+ /** 每行的最小高度 */
272
+ cellMinHeight: number;
273
+ /** 预处理文本 */
274
+ prepare: any;
275
+ /** 布局文本 */
276
+ layout: any;
277
+ /** 行id的字段 */
278
+ keyNames: HolyesTableKeyNames;
279
+ /** 是否不自动换行 */
280
+ isNoAutoWrap: boolean;
281
+ /** 表格列属性 */
282
+ columns: {
283
+ title: string;
284
+ field: string;
285
+ minWidth: number | undefined;
286
+ width: number | undefined;
287
+ type: string;
288
+ slots?: {
289
+ /** 列自定义插槽 */
290
+ default?: string;
291
+ /** 列自定义插槽类型 */
292
+ defaultType?: HolyesTableSlotDefaultType;
293
+ /** 列自定义插槽高度,有插槽的话必填,插槽单元格不自动换行 */
294
+ defaultHeight?: number;
295
+ };
296
+ /** 是否树节点 */
297
+ treeNode?: boolean;
298
+ }[];
299
+ /** 树形结构配置项 */
300
+ treeConfig: HolyesTableTreeConfig;
301
+ /** 默认的树形结构配置项 */
302
+ defaultTreeConfig: any;
303
+ };
304
+ /** 计算表格每行的高度的 worker 回调 */
305
+ export type HolyesTableGetItemHeightCallbackData = {
306
+ tempItemHeights: number;
307
+ heightDatas: {
308
+ pretextHeight: number;
309
+ id: string;
310
+ }[];
311
+ };
@@ -1,50 +1 @@
1
- import { HolyesTableSlotDefaultType, HolyesTableKeyNames, HolyesTableTreeConfig } from '../type';
2
- /** 计算表格每行的高度的 worker 选项 */
3
- export type HolyesTableGetItemHeightOptions = {
4
- /** 表格内容 */
5
- tempData: any[];
6
- /** 表格内容的索引 */
7
- index: number;
8
- /** 表格内容的样式 */
9
- commonStyles: any;
10
- /** 表格内容的样式 */
11
- itemStyles: any;
12
- /** 表格内容的高度 */
13
- divLineHeight: number;
14
- /** 每行的最小高度 */
15
- cellMinHeight: number;
16
- /** 行id的字段 */
17
- keyNames: HolyesTableKeyNames;
18
- /** 是否不自动换行 */
19
- isNoAutoWrap: boolean;
20
- /** 表格列属性 */
21
- columns: {
22
- title: string;
23
- field: string;
24
- minWidth: number | undefined;
25
- width: number | undefined;
26
- type: string;
27
- slots?: {
28
- /** 列自定义插槽 */
29
- default?: string;
30
- /** 列自定义插槽类型 */
31
- defaultType?: HolyesTableSlotDefaultType;
32
- /** 列自定义插槽高度,有插槽的话必填,插槽单元格不自动换行 */
33
- defaultHeight?: number;
34
- };
35
- /** 是否树节点 */
36
- treeNode?: boolean;
37
- }[];
38
- /** 树形结构配置项 */
39
- treeConfig: HolyesTableTreeConfig;
40
- /** 默认的树形结构配置项 */
41
- defaultTreeConfig: any;
42
- };
43
- /** 计算表格每行的高度的 worker 回调 */
44
- export type HolyesTableGetItemHeightCallbackData = {
45
- tempItemHeights: number;
46
- heightDatas: {
47
- pretextHeight: number;
48
- id: string;
49
- }[];
50
- };
1
+ export {};
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "holyes-table",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "合力思虚拟滚动表格组件",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.js",
5
+ "main": "./dist/index.mjs",
6
+ "module": "./dist/index.mjs",
7
7
  "types": "./dist/lib/main.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/lib/main.d.ts",
11
- "import": "./dist/index.js",
12
- "default": "./dist/index.js"
13
- }
11
+ "import": "./dist/index.mjs",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "./style.css": "./dist/index.css"
14
15
  },
15
16
  "files": [
16
17
  "dist"