@king-design/react 3.4.3 → 3.4.4
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__/React Demos.md +92 -0
- package/components/button/group.d.ts +1 -0
- package/components/button/group.js +4 -0
- package/components/button/group.vdt.js +3 -2
- package/components/button/styles.js +3 -3
- package/components/table/cell.d.ts +1 -0
- package/components/table/cell.vdt.js +5 -3
- package/components/table/column.vdt.js +16 -12
- package/components/table/row.d.ts +1 -0
- package/components/table/row.vdt.js +4 -2
- package/components/table/styles.d.ts +49 -0
- package/components/table/styles.js +2 -1
- package/components/table/table.d.ts +1 -0
- package/components/table/table.js +1 -0
- package/components/table/table.vdt.js +11 -2
- package/components/table/useColumns.d.ts +9 -0
- package/components/table/useColumns.js +29 -1
- package/components/tip/index.d.ts +6 -1
- package/components/tip/index.js +12 -1
- package/components/tip/index.vdt.js +25 -5
- package/components/tip/styles.js +44 -2
- package/components/tooltip/tooltip.js +5 -1
- package/components/transfer/index.vdt.js +2 -4
- package/components/upload/index.vdt.js +4 -1
- package/components/upload/styles.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
|
@@ -296,6 +296,12 @@
|
|
|
296
296
|
"<button class=\"kd-btn kd-default css-7ey7ie\" tabindex=\"0\" type=\"button\">Button</button><div style=\"margin-top: 8px;\"><div class=\"kd-input css-1ah5new\"><div class=\"kd-input-wrapper\"><input class=\"kd-input-inner\"></div></div></div><!-- react-mount-point-unstable -->"
|
|
297
297
|
```
|
|
298
298
|
|
|
299
|
+
#### `Config disableWave`
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
"<button class=\"k-btn k-default css-h31bz\" tabindex=\"0\" type=\"button\">Button</button><div class=\"k-input css-wa3w05\"><div class=\"k-input-wrapper\"><input class=\"k-input-inner\"></div></div><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span><span class=\"k-checkbox-text\">checkbox</span></label><label class=\"k-radio css-zzqsx1\" tabindex=\"0\"><span class=\"k-radio-wrapper\"><input type=\"radio\" tabindex=\"-1\" value=\"true\"></span><span class=\"k-radio-text\">radio</span></label><div class=\"k-select css-1ti24q0\" tabindex=\"0\"><div class=\"k-select-main\"><input type=\"hidden\"><div class=\"k-select-placeholder c-ellipsis\">请选择</div></div><span class=\"k-select-suffix\"><span class=\"k-select-suffix-icon\"><i class=\"k-icon k-select-arrow k-icon-down css-16qej3\"></i></span></span></div><!--portal-->"
|
|
303
|
+
```
|
|
304
|
+
|
|
299
305
|
## `copy`
|
|
300
306
|
|
|
301
307
|
#### `Copy basic`
|
|
@@ -372,6 +378,26 @@
|
|
|
372
378
|
"<div><div class=\"k-select k-datepicker css-1ti24q0\" tabindex=\"0\"><div class=\"k-select-main\"><input type=\"hidden\"><div class=\"k-input k-fluid k-inline css-l0vdz7\"><div class=\"k-input-wrapper\"><input class=\"k-input-inner\" readonly=\"\" placeholder=\"请选择年份\"></div></div></div><span class=\"k-select-suffix\"><span class=\"k-select-suffix-icon\"><i class=\"k-icon k-icon-calendar css-16qej3\"></i></span></span></div><!--portal--><div class=\"k-select k-datepicker css-1ti24q0\" tabindex=\"0\"><div class=\"k-select-main\"><input type=\"hidden\"><div class=\"k-input k-fluid k-inline css-l0vdz7\"><div class=\"k-input-wrapper\"><input class=\"k-input-inner\" readonly=\"\" placeholder=\"请选择月份\"></div></div></div><span class=\"k-select-suffix\"><i class=\"k-icon k-hoverable k-select-clear ion-ios-close css-16qej3\"></i><span class=\"k-select-suffix-icon\"><i class=\"k-icon k-icon-calendar css-16qej3\"></i></span></span></div><!--portal--></div>"
|
|
373
379
|
```
|
|
374
380
|
|
|
381
|
+
## `descriptions`
|
|
382
|
+
|
|
383
|
+
#### `Descriptions basic`
|
|
384
|
+
|
|
385
|
+
```
|
|
386
|
+
"<div><div class=\"k-descriptions css-1t0vgme\"><div class=\"k-descriptions-title\">基础信息</div><div class=\"k-descriptions-content\"><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label1</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试1</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label2</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试测试</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label3</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试3</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label4</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试4</div></div><div class=\"k-description-option\">option</div></div></div></div></div><div class=\"k-descriptions css-85ywe6\"><div class=\"k-descriptions-title\">基础信息</div><div class=\"k-descriptions-content\"><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试1</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试1</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试2</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长</div><!--portal--></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试3</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试3</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试4</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试4</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试5</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试5</div></div></div></div></div></div></div>"
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
#### `Descriptions custom`
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
"<div><div class=\"k-descriptions css-85ywe6\"><div class=\"k-descriptions-title\"><span>自定义标题</span><!-- react-mount-point-unstable --><i class=\"k-icon k-icon-question css-16qej3\"></i><!--portal--></div><div class=\"k-descriptions-content\"><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label1</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</div><!--portal--></div><div class=\"k-description-option\"><i class=\"k-icon k-hoverable k-icon-clone k-copy css-t3aops css-16qej3\" title=\"复制\"></i></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label2</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\"><span>自定义label</span><!-- react-mount-point-unstable --><i class=\"k-icon k-icon-question css-16qej3\"></i><!--portal--></div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label4</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\"><span>测试4</span><!-- react-mount-point-unstable --><button class=\"k-btn k-link css-h31bz\" tabindex=\"0\" type=\"button\">分配项目</button></div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label5</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试5</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">label6</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试6</div></div></div></div></div></div></div>"
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
#### `Descriptions vertical`
|
|
396
|
+
|
|
397
|
+
```
|
|
398
|
+
"<div><div class=\"k-descriptions k-vertical css-85ywe6\"><div class=\"k-descriptions-title\">基础信息</div><div class=\"k-descriptions-content\"><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试1</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试1</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试2</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试2</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试3</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试3</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试4</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试4</div></div></div></div><div class=\"k-description-item css-qruqir\"><div class=\"k-description-item-label\">测试5</div><div class=\"k-description-centent\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试5</div></div></div></div></div></div></div>"
|
|
399
|
+
```
|
|
400
|
+
|
|
375
401
|
## `diagram`
|
|
376
402
|
|
|
377
403
|
#### `Diagram basic`
|
|
@@ -558,6 +584,12 @@
|
|
|
558
584
|
"<div><div class=\"k-editable css-12kerrq\"><div class=\"c-ellipsis\"><i class=\"ion-ios-location\"></i><!-- react-mount-point-unstable --><a href=\"\">editable text</a><!-- react-mount-point-unstable --></div><i class=\"k-icon k-hoverable k-icon-edit k-editable-icon css-16qej3\"></i><!--portal--></div><br><div class=\"k-editable k-disabled css-12kerrq\"><div class=\"c-ellipsis\"><i class=\"ion-ios-location\"></i><!-- react-mount-point-unstable --><a href=\"\">disabled editable text</a><!-- react-mount-point-unstable --></div></div></div>"
|
|
559
585
|
```
|
|
560
586
|
|
|
587
|
+
#### `Editable textarea`
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
"<div><div class=\"k-editable css-12kerrq\"><div class=\"c-ellipsis\"><i class=\"ion-ios-location\"></i><!-- react-mount-point-unstable --><a href=\"\">editable text auto</a><!-- react-mount-point-unstable --></div><i class=\"k-icon k-hoverable k-icon-edit k-editable-icon css-16qej3\"></i><!--portal--></div><br><div class=\"k-editable css-12kerrq\"><div class=\"c-ellipsis\"><i class=\"ion-ios-location\"></i><!-- react-mount-point-unstable --><a href=\"\">editable text for 5 rows</a><!-- react-mount-point-unstable --></div><i class=\"k-icon k-hoverable k-icon-edit k-editable-icon css-16qej3\"></i><!--portal--></div><br><div class=\"k-editable css-12kerrq\"><div class=\"c-ellipsis\"><i class=\"ion-ios-location\"></i><!-- react-mount-point-unstable --><a href=\"\">editable text for many rows</a><!-- react-mount-point-unstable --></div><i class=\"k-icon k-hoverable k-icon-edit k-editable-icon css-16qej3\"></i><!--portal--></div></div>"
|
|
591
|
+
```
|
|
592
|
+
|
|
561
593
|
#### `Editable validate`
|
|
562
594
|
|
|
563
595
|
```
|
|
@@ -578,6 +610,12 @@
|
|
|
578
610
|
"<div style=\"width: 200px;\"><div class=\"k-ellipsis css-1o7ph7r\"><div class=\"c-ellipsis css-1hvr061 panel tooltip-class\" style=\"cursor: pointer;\"><i class=\"k-icon ion-heart css-16qej3\"></i><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">测试</button><i class=\"k-icon ion-heart css-16qej3\"></i><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">测试</button><i class=\"k-icon ion-heart css-16qej3\"></i><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">测试</button><i class=\"k-icon ion-heart css-16qej3\"></i><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">测试</button><i class=\"k-icon ion-heart css-16qej3\"></i><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">测试</button></div><!--portal--></div></div>"
|
|
579
611
|
```
|
|
580
612
|
|
|
613
|
+
#### `Ellipsis hoverable`
|
|
614
|
+
|
|
615
|
+
```
|
|
616
|
+
"<div><div class=\"k-ellipsis css-1jf5h5f\" style=\"width: 50px;\"><div class=\"c-ellipsis k-ellipsis-wrapper\">hoverable</div><!--portal--></div></div>"
|
|
617
|
+
```
|
|
618
|
+
|
|
581
619
|
#### `Ellipsis position`
|
|
582
620
|
|
|
583
621
|
```
|
|
@@ -1195,6 +1233,12 @@
|
|
|
1195
1233
|
"<div><div class=\"k-select css-1ti24q0\" tabindex=\"0\"><div class=\"k-select-main\"><input type=\"hidden\"><div class=\"k-input k-fluid k-inline css-l0vdz7\"><div class=\"k-input-wrapper\"><input class=\"k-input-inner\" readonly=\"\" placeholder=\"请选择\"></div></div></div><span class=\"k-select-suffix\"><span class=\"k-select-suffix-icon\"><i class=\"k-icon k-select-arrow k-icon-down css-16qej3\"></i></span></span></div><!--portal--><div class=\"k-select css-1ti24q0\" tabindex=\"0\"><div class=\"k-select-main\"><input type=\"hidden\"><div class=\"k-input k-fluid k-inline css-l0vdz7\"><div class=\"k-input-wrapper\"><input class=\"k-input-inner\" readonly=\"\" placeholder=\"请选择\"></div></div></div><span class=\"k-select-suffix\"><span class=\"k-select-suffix-icon\"><i class=\"k-icon k-select-arrow k-icon-down css-16qej3\"></i></span></span></div><!--portal--></div>"
|
|
1196
1234
|
```
|
|
1197
1235
|
|
|
1236
|
+
#### `Select immutable`
|
|
1237
|
+
|
|
1238
|
+
```
|
|
1239
|
+
"<div><div class=\"k-select css-1ti24q0\" tabindex=\"0\"><div class=\"k-select-main\"><input type=\"hidden\" value=\"Tuesday,Sunday,Wednesday\"><div class=\"k-select-values\"><div class=\"k-tags css-czb0gm\"><div class=\"k-tag k-none css-1weg519\">星期二</div><div class=\"k-tag k-none k-closable css-1weg519\">星期天<i class=\"k-icon k-hoverable k-tag-close ion-ios-close-empty css-16qej3\"></i></div><div class=\"k-tag k-none k-closable css-1weg519\">星期三<i class=\"k-icon k-hoverable k-tag-close ion-ios-close-empty css-16qej3\"></i></div><div class=\"k-input k-auto-width k-inline k-select-input css-wa3w05\"><div class=\"k-input-wrapper\"><input class=\"k-input-inner\" readonly=\"\" placeholder=\"\" style=\"width: px;\"><div class=\"k-input-fake\"><span></span></div></div></div></div></div></div><span class=\"k-select-suffix\"><i class=\"k-icon k-hoverable k-select-clear ion-ios-close k-show css-16qej3\"></i><span class=\"k-select-suffix-icon\"><i class=\"k-icon k-select-arrow k-icon-down css-16qej3\"></i></span></span></div><!--portal-->You selected: [\"Tuesday\",\"Sunday\",\"Wednesday\"]</div>"
|
|
1240
|
+
```
|
|
1241
|
+
|
|
1198
1242
|
#### `Select inline`
|
|
1199
1243
|
|
|
1200
1244
|
```
|
|
@@ -1462,6 +1506,12 @@
|
|
|
1462
1506
|
"<div><div class=\"k-switch k-default css-158h2we\" tabindex=\"0\"><input type=\"checkbox\" tabindex=\"-1\"><div class=\"k-switch-bar\"><div class=\"k-switch-wrapper\"><div class=\"k-switch-handle\"><img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"></div></div></div></div></div>"
|
|
1463
1507
|
```
|
|
1464
1508
|
|
|
1509
|
+
#### `Switch beforeChange`
|
|
1510
|
+
|
|
1511
|
+
```
|
|
1512
|
+
"<div><div class=\"k-switch k-default css-1kd39ob\" tabindex=\"0\"><input type=\"checkbox\" tabindex=\"-1\"><div class=\"k-switch-bar\"><div class=\"k-switch-wrapper\"><div class=\"k-switch-handle\"><img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"></div></div></div></div><div class=\"k-switch k-default css-1kd39ob\" tabindex=\"0\"><input type=\"checkbox\" tabindex=\"-1\"><div class=\"k-switch-bar\"><div class=\"k-switch-wrapper\"><div class=\"k-switch-handle\"><img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"></div></div></div></div></div>"
|
|
1513
|
+
```
|
|
1514
|
+
|
|
1465
1515
|
#### `Switch disabled`
|
|
1466
1516
|
|
|
1467
1517
|
```
|
|
@@ -1500,6 +1550,12 @@
|
|
|
1500
1550
|
"<div><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">增加一行</button><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">删除一行</button><button class=\"k-btn k-primary css-12pzj9v\" tabindex=\"0\" type=\"button\">增加一列</button><div class=\"k-table css-1kfv5pb\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Title 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 1</div></div></th><th title=\"Title 3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 3</div></div></th></tr></thead><tbody><tr data-key=\"Cell 1-1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 1-1\">Cell 1-1</td><td title=\"Cell 1-3\">Cell 1-3</td></tr><tr data-key=\"Cell 2-1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 2-1\">Cell 2-1</td><td title=\"Cell 2-3\">Cell 2-3</td></tr></tbody></table></div></div><div class=\"k-table css-1kfv5pb\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Title 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 1</div></div></th><th title=\"Title 3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 3</div></div></th></tr></thead><tbody><tr data-key=\"Cell 1-1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 1-1\">Cell 1-1</td><td title=\"Cell 1-3\">Cell 1-3</td></tr><tr data-key=\"Cell 2-1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 2-1\">Cell 2-1</td><td title=\"Cell 2-3\">Cell 2-3</td></tr></tbody></table></div></div></div>"
|
|
1501
1551
|
```
|
|
1502
1552
|
|
|
1553
|
+
#### `Table asyncTree`
|
|
1554
|
+
|
|
1555
|
+
```
|
|
1556
|
+
"<div class=\"k-table css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Name\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Name</div></div></th><th title=\"Size\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Size</div></div></th></tr></thead><tbody><tr data-key=\"Audios\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Audios\"><button class=\"k-btn k-mini k-none k-btn-icon k-table-arrow k-circle css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-icon-right k-small css-16qej3\"></i></button>Audios</td><td title=\"12MB\">12MB</td></tr><tr data-key=\"Images\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Images\"><button class=\"k-btn k-mini k-none k-btn-icon k-table-arrow k-circle css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-icon-right k-small css-16qej3\"></i></button>Images</td><td title=\"14MB\">14MB</td></tr><tr data-key=\"doc.pdf\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"doc.pdf\">doc.pdf</td><td title=\"18MB\">18MB</td></tr></tbody></table></div></div>"
|
|
1557
|
+
```
|
|
1558
|
+
|
|
1503
1559
|
#### `Table basic`
|
|
1504
1560
|
|
|
1505
1561
|
```
|
|
@@ -1530,6 +1586,12 @@
|
|
|
1530
1586
|
"<div class=\"k-table k-fix-header css-1kfv5pb\"><div class=\"k-table-wrapper\" style=\"max-height: 300px;\"><table><colgroup><col width=\"40\"><col><col><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Name\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Name</div></div></th><th title=\"IP\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">IP</div></div></th><th title=\"Operation\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Operation</div></div></th></tr></thead><tbody><tr data-key=\"name 1\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 1\">name 1</td><td title=\"127.0.0.1\">127.0.0.1</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 2\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 2\">name 2</td><td title=\"127.0.0.2\">127.0.0.2</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 3\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 3\">name 3</td><td title=\"127.0.0.3\">127.0.0.3</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 4\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 4\">name 4</td><td title=\"127.0.0.4\">127.0.0.4</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 5\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 5\">name 5</td><td title=\"127.0.0.5\">127.0.0.5</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 6\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 6\">name 6</td><td title=\"127.0.0.6\">127.0.0.6</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 7\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 7\">name 7</td><td title=\"127.0.0.7\">127.0.0.7</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 8\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 8\">name 8</td><td title=\"127.0.0.8\">127.0.0.8</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 9\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 9\">name 9</td><td title=\"127.0.0.9\">127.0.0.9</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 10\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 10\">name 10</td><td title=\"127.0.0.10\">127.0.0.10</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 11\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 11\">name 11</td><td title=\"127.0.0.11\">127.0.0.11</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 12\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 12\">name 12</td><td title=\"127.0.0.12\">127.0.0.12</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 13\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 13\">name 13</td><td title=\"127.0.0.13\">127.0.0.13</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 14\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 14\">name 14</td><td title=\"127.0.0.14\">127.0.0.14</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 15\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 15\">name 15</td><td title=\"127.0.0.15\">127.0.0.15</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 16\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 16\">name 16</td><td title=\"127.0.0.16\">127.0.0.16</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 17\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 17\">name 17</td><td title=\"127.0.0.17\">127.0.0.17</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 18\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 18\">name 18</td><td title=\"127.0.0.18\">127.0.0.18</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 19\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 19\">name 19</td><td title=\"127.0.0.19\">127.0.0.19</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"name 20\" draggable=\"true\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"name 20\">name 20</td><td title=\"127.0.0.20\">127.0.0.20</td><td title=\"\"><a>Remove</a><!-- react-mount-point-unstable --></td></tr></tbody></table></div></div>"
|
|
1531
1587
|
```
|
|
1532
1588
|
|
|
1589
|
+
#### `Table ellipsis`
|
|
1590
|
+
|
|
1591
|
+
```
|
|
1592
|
+
"<div class=\"k-table css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Title 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 1</div></div></th><th title=\"Title 2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 2</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长</div><!--portal--></div></td><td title=\"Cell 1-2\">Cell 1-2</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper\">Cell 2-1</div></div></td><td title=\"Cell 2-2\">Cell 2-2</td></tr></tbody></table></div></div>"
|
|
1593
|
+
```
|
|
1594
|
+
|
|
1533
1595
|
#### `Table empty`
|
|
1534
1596
|
|
|
1535
1597
|
```
|
|
@@ -1548,12 +1610,24 @@
|
|
|
1548
1610
|
"<div><div class=\"k-table k-scroll-left k-fix-columns css-1kfv5pb\"><div class=\"k-table-wrapper\"><div class=\"k-affix k-fixed k-table-affix-header css-8m3pex\" style=\"height: 40px;\"><div class=\"k-affix-wrapper\" style=\"position: fixed; width: 800px; top: 64px;\"><table><colgroup><col width=\"40\"><col class=\"name\" width=\"200\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"200\"></colgroup><thead><tr><th rowspan=\"1\" class=\"k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th class=\"name k-fixed-left\" title=\"Name\" colspan=\"1\" rowspan=\"1\" style=\"left: 40px;\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Name</div></div></th><th title=\"Column1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\"><div>Column1</div><!-- react-mount-point-unstable --></div></div></th><th title=\"Column2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column2</div></div></th><th title=\"Column3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column3</div></div></th><th title=\"Column4\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column4</div></div></th><th class=\"k-fixed-right\" title=\"Action\" colspan=\"1\" rowspan=\"1\" style=\"right: 0px;\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Action</div></div></th></tr></thead></table></div></div><table><colgroup><col width=\"40\"><col class=\"name\" width=\"200\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"200\"></colgroup><tbody><tr data-key=\"0\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"name k-fixed-left\" title=\"John\" style=\"left: 40px;\">John</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td class=\"k-fixed-right\" title=\"\" style=\"right: 0px;\"><a>action</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"1\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"name k-fixed-left\" title=\"Tom\" style=\"left: 40px;\">Tom</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td class=\"k-fixed-right\" title=\"\" style=\"right: 0px;\"><a>action</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"2\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"name k-fixed-left\" title=\"Javey\" style=\"left: 40px;\">Javey</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td class=\"k-fixed-right\" title=\"\" style=\"right: 0px;\"><a>action</a><!-- react-mount-point-unstable --></td></tr></tbody></table></div></div><div class=\"k-table k-fix-header k-scroll-left k-fix-columns k-grid css-1kfv5pb\"><div class=\"k-table-wrapper\" style=\"max-height: 150px;\"><div class=\"k-affix k-table-affix-header css-8m3pex\"><div class=\"k-affix-wrapper\"><table><colgroup><col width=\"40\"><col width=\"200\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"200\"></colgroup><thead><tr><th rowspan=\"1\" class=\"k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th class=\"k-fixed-left\" title=\"Name\" colspan=\"1\" rowspan=\"1\" style=\"left: 40px;\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Name</div></div></th><th title=\"Column1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column1</div></div></th><th title=\"Column2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column2</div></div></th><th title=\"Column3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column3</div></div></th><th class=\"k-fixed-right\" title=\"Column4\" colspan=\"1\" rowspan=\"1\" style=\"right: 200px;\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Column4</div></div></th><th class=\"k-fixed-right\" title=\"Action\" colspan=\"1\" rowspan=\"1\" style=\"right: 0px;\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Action</div></div></th></tr></thead></table></div></div><table><colgroup><col width=\"40\"><col width=\"200\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"300\"><col width=\"200\"></colgroup><tbody><tr data-key=\"0\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"John\" style=\"left: 40px;\">John</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td class=\"k-fixed-right\" title=\"test\" style=\"right: 200px;\">test</td><td class=\"k-fixed-right\" title=\"\" style=\"right: 0px;\"><a>action</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"1\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Tom\" style=\"left: 40px;\">Tom</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td class=\"k-fixed-right\" title=\"test\" style=\"right: 200px;\">test</td><td class=\"k-fixed-right\" title=\"\" style=\"right: 0px;\"><a>action</a><!-- react-mount-point-unstable --></td></tr><tr data-key=\"2\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Javey\" style=\"left: 40px;\">Javey</td><td title=\"test\">test</td><td title=\"test\">test</td><td title=\"test\">test</td><td class=\"k-fixed-right\" title=\"test\" style=\"right: 200px;\">test</td><td class=\"k-fixed-right\" title=\"\" style=\"right: 0px;\"><a>action</a><!-- react-mount-point-unstable --></td></tr></tbody></table></div></div></div>"
|
|
1549
1611
|
```
|
|
1550
1612
|
|
|
1613
|
+
#### `Table fixFooter`
|
|
1614
|
+
|
|
1615
|
+
```
|
|
1616
|
+
"<div class=\"wrapper\"><div class=\"k-table css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"footer不固定\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">footer不固定</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"footer不固定\">footer不固定</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"下拉\">下拉</td></tr><tr data-key=\"2\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"yeah!\">yeah!</td></tr><tr data-key=\"3\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"你好\">你好</td></tr><tr data-key=\"4\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"我很好\">我很好</td></tr></tbody><tfoot><tr><td class=\"k-table-footer\" colspan=\"2\"><span>自定义footer</span><!-- react-mount-point-unstable --></td></tr></tfoot></table></div></div><div class=\"k-table k-fix-footer css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"footer固定\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">footer固定</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"footer固定啦\">footer固定啦</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"下拉\">下拉</td></tr><tr data-key=\"2\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"yeah!\">yeah!</td></tr><tr data-key=\"3\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"你好\">你好</td></tr><tr data-key=\"4\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"我很好\">我很好</td></tr></tbody><tfoot><tr><td class=\"k-table-footer\" colspan=\"2\"><span>自定义footer</span><!-- react-mount-point-unstable --></td></tr></tfoot></table></div></div><div class=\"k-table k-fix-header k-fix-footer css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"footer,header同时固定\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">footer,header同时固定</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"footer固定啦\">footer固定啦</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"下拉\">下拉</td></tr><tr data-key=\"2\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"yeah!\">yeah!</td></tr><tr data-key=\"3\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"你好\">你好</td></tr><tr data-key=\"4\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"我很好\">我很好</td></tr></tbody><tfoot><tr><td class=\"k-table-footer\" colspan=\"2\"><span>自定义footer</span><!-- react-mount-point-unstable --></td></tr></tfoot></table></div></div></div>"
|
|
1617
|
+
```
|
|
1618
|
+
|
|
1551
1619
|
#### `Table fixHeader`
|
|
1552
1620
|
|
|
1553
1621
|
```
|
|
1554
1622
|
"<div class=\"wrapper\"><div class=\"k-table k-fix-header css-1kfv5pb\"><div class=\"k-table-wrapper\" style=\"max-height: 100px;\"><table><colgroup><col width=\"40\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"100px\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">100px</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"表头固定,但内容没有超出最高高度\">表头固定,但内容没有超出最高高度</td></tr></tbody></table></div></div><div class=\"k-table k-fix-header css-1kfv5pb\"><div class=\"k-table-wrapper\" style=\"max-height: 100px;\"><table><colgroup><col width=\"40\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"100px\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">100px</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"表头固定啦\">表头固定啦</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"下拉\">下拉</td></tr><tr data-key=\"2\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"yeah!\">yeah!</td></tr></tbody></table></div></div></div>"
|
|
1555
1623
|
```
|
|
1556
1624
|
|
|
1625
|
+
#### `Table footer`
|
|
1626
|
+
|
|
1627
|
+
```
|
|
1628
|
+
"<div><div class=\"k-table css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Title 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 1</div></div></th><th title=\"Title 2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 2</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 1-1\">Cell 1-1</td><td title=\"Cell 1-2\">Cell 1-2</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 2-1\">Cell 2-1</td><td title=\"Cell 2-2\">Cell 2-2</td></tr></tbody><tfoot><tr><td class=\"k-table-footer\" colspan=\"3\"><div class=\"footer\">自定义底部</div><!-- react-mount-point-unstable --></td></tr></tfoot></table></div></div></div>"
|
|
1629
|
+
```
|
|
1630
|
+
|
|
1557
1631
|
#### `Table group`
|
|
1558
1632
|
|
|
1559
1633
|
```
|
|
@@ -1566,6 +1640,12 @@
|
|
|
1566
1640
|
"<div class=\"k-table k-fix-columns k-grid css-1kfv5pb\"><div class=\"k-table-wrapper\"><div class=\"k-affix k-fixed k-table-affix-header css-8m3pex\" style=\"height: 120px;\"><div class=\"k-affix-wrapper\" style=\"position: fixed; width: 798px; top: 64px;\"><table><colgroup><col width=\"40\"><col><col><col><col><col><col><col><col><col><col></colgroup><thead><tr><th rowspan=\"3\" class=\"k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th class=\"k-fixed-left\" title=\"Weekday\" colspan=\"1\" rowspan=\"3\" style=\"left: 40px;\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Weekday</div></div></th><th title=\"Forenoon\" colspan=\"5\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Forenoon</div></div></th><th title=\"Afternoon\" colspan=\"4\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Afternoon</div></div></th></tr><tr><th class=\"k-fixed-left\" title=\"Time\" colspan=\"1\" rowspan=\"2\" style=\"left: 116px;\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Time</div></div></th><th title=\"Classes\" colspan=\"4\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Classes</div></div></th><th title=\"Time\" colspan=\"1\" rowspan=\"2\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Time</div></div></th><th title=\"Class 5\" colspan=\"1\" rowspan=\"2\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 5</div></div></th><th class=\"k-fixed-right\" title=\"Class 6\" colspan=\"1\" rowspan=\"2\" style=\"right: 76px;\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 6</div></div></th><th class=\"k-fixed-right\" title=\"Class 7\" colspan=\"1\" rowspan=\"2\" style=\"right: 0px;\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 7</div></div></th></tr><tr><th title=\"Class 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 1</div></div></th><th title=\"Class 2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 2</div></div></th><th title=\"Class 3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 3</div></div></th><th title=\"Class 4\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Class 4</div></div></th></tr></thead></table></div></div><table><colgroup><col width=\"40\"><col><col><col><col><col><col><col><col><col><col></colgroup><tbody><tr data-key=\"0\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Monday\" style=\"left: 40px;\">Monday</td><td class=\"k-fixed-left\" title=\"08:00 ~ 12:00\" style=\"left: 116px;\">08:00 ~ 12:00</td><td title=\"English\">English</td><td title=\"Mathematics\">Mathematics</td><td title=\"Chinese\">Chinese</td><td title=\"History\">History</td><td title=\"14:00 ~ 17:00\">14:00 ~ 17:00</td><td title=\"Geopraghy\">Geopraghy</td><td class=\"k-fixed-right\" title=\"English\" style=\"right: 76px;\">English</td><td class=\"k-fixed-right\" title=\"Mathematics\" style=\"right: 0px;\">Mathematics</td></tr><tr data-key=\"1\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Tuesday\" style=\"left: 40px;\">Tuesday</td><td class=\"k-fixed-left\" title=\"08:00 ~ 12:00\" style=\"left: 116px;\">08:00 ~ 12:00</td><td title=\"Mathematics\">Mathematics</td><td title=\"Chinese\">Chinese</td><td title=\"History\">History</td><td title=\"Geopraghy\">Geopraghy</td><td title=\"14:00 ~ 17:00\">14:00 ~ 17:00</td><td title=\"English\">English</td><td class=\"k-fixed-right\" title=\"Mathematics\" style=\"right: 76px;\">Mathematics</td><td class=\"k-fixed-right\" title=\"Chinese\" style=\"right: 0px;\">Chinese</td></tr><tr data-key=\"2\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Wendesday\" style=\"left: 40px;\">Wendesday</td><td class=\"k-fixed-left\" title=\"08:00 ~ 12:00\" style=\"left: 116px;\">08:00 ~ 12:00</td><td title=\"Chinese\">Chinese</td><td title=\"History\">History</td><td title=\"Geopraghy\">Geopraghy</td><td title=\"English\">English</td><td title=\"14:00 ~ 17:00\">14:00 ~ 17:00</td><td title=\"Mathematics\">Mathematics</td><td class=\"k-fixed-right\" title=\"Chinese\" style=\"right: 76px;\">Chinese</td><td class=\"k-fixed-right\" title=\"History\" style=\"right: 0px;\">History</td></tr><tr data-key=\"3\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Thursday\" style=\"left: 40px;\">Thursday</td><td class=\"k-fixed-left\" title=\"08:00 ~ 12:00\" style=\"left: 116px;\">08:00 ~ 12:00</td><td title=\"History\">History</td><td title=\"Geopraghy\">Geopraghy</td><td title=\"English\">English</td><td title=\"Mathematics\">Mathematics</td><td title=\"14:00 ~ 17:00\">14:00 ~ 17:00</td><td title=\"Chinese\">Chinese</td><td class=\"k-fixed-right\" title=\"History\" style=\"right: 76px;\">History</td><td class=\"k-fixed-right\" title=\"Geopraghy\" style=\"right: 0px;\">Geopraghy</td></tr><tr data-key=\"4\"><td class=\"k-table-check k-fixed-left\" style=\"left: 0px;\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td class=\"k-fixed-left\" title=\"Friday\" style=\"left: 40px;\">Friday</td><td class=\"k-fixed-left\" title=\"08:00 ~ 12:00\" style=\"left: 116px;\">08:00 ~ 12:00</td><td title=\"Geopraghy\">Geopraghy</td><td title=\"English\">English</td><td title=\"Mathematics\">Mathematics</td><td title=\"Chinese\">Chinese</td><td title=\"14:00 ~ 17:00\">14:00 ~ 17:00</td><td title=\"History\">History</td><td class=\"k-fixed-right\" title=\"Geopraghy\" style=\"right: 76px;\">Geopraghy</td><td class=\"k-fixed-right\" title=\"English\" style=\"right: 0px;\">English</td></tr></tbody></table></div></div>"
|
|
1567
1641
|
```
|
|
1568
1642
|
|
|
1643
|
+
#### `Table hidden`
|
|
1644
|
+
|
|
1645
|
+
```
|
|
1646
|
+
"<div><div class=\"k-table css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col class=\"k-hidden\" style=\"width: 300px;\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Title 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 1</div></div></th><th class=\"k-hidden\" title=\"Title 2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 2</div></div></th><th title=\"Title 3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 3</div></div></th></tr></thead><tbody><tr data-key=\"0\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 1-1\">Cell 1-1</td><td class=\"k-hidden\" title=\"Cell 1-2\">Cell 1-2</td><td title=\"cell 1-3\">cell 1-3</td></tr><tr data-key=\"1\"><td class=\"k-table-check\"><label class=\"k-checkbox css-rfvdpj\" tabindex=\"0\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" tabindex=\"-1\" value=\"true\"></span></label></td><td title=\"Cell 2-1\">Cell 2-1</td><td class=\"k-hidden\" title=\"Cell 2-2\">Cell 2-2</td><td title=\"cell 2-3\">cell 2-3</td></tr></tbody></table></div></div><p>无数据展示</p><div class=\"k-table css-m3ad6w\"><div class=\"k-table-wrapper\"><table><colgroup><col width=\"40\"><col><col class=\"k-hidden\"><col></colgroup><thead><tr><th rowspan=\"1\"><label class=\"k-checkbox k-disabled css-rfvdpj\"><span class=\"k-checkbox-wrapper\"><input type=\"checkbox\" disabled=\"\" tabindex=\"-1\" value=\"true\"></span></label></th><th title=\"Title 1\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 1</div></div></th><th class=\"k-hidden\" title=\"Title 2\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 2</div></div></th><th title=\"Title 3\" colspan=\"1\" rowspan=\"1\"><div class=\"k-table-resize\"></div><div class=\"k-table-title\"><div class=\"k-table-title-text c-ellipsis\">Title 3</div></div></th></tr></thead><tbody><tr><td class=\"k-table-empty\" colspan=\"3\">暂无数据</td></tr></tbody></table></div></div></div>"
|
|
1647
|
+
```
|
|
1648
|
+
|
|
1569
1649
|
#### `Table hideHeader`
|
|
1570
1650
|
|
|
1571
1651
|
```
|
|
@@ -1836,6 +1916,18 @@
|
|
|
1836
1916
|
"<div><div class=\"k-none k-closable css-1weg519 k-tip css-fqt0bq\"><div class=\"k-tip-wrapper\">default</div><button class=\"k-btn k-none k-btn-icon k-tip-close css-12pzj9v\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-primary k-none k-closable css-1weg519 k-tip css-fqt0bq\"><div class=\"k-tip-wrapper\">primary</div><button class=\"k-btn k-none k-btn-icon k-tip-close css-12pzj9v\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-success k-none k-closable css-1weg519 k-tip css-fqt0bq\"><div class=\"k-tip-wrapper\">success</div><button class=\"k-btn k-none k-btn-icon k-tip-close css-12pzj9v\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-warning k-none k-closable css-1weg519 k-tip css-fqt0bq\"><div class=\"k-tip-wrapper\">warning</div><button class=\"k-btn k-none k-btn-icon k-tip-close css-12pzj9v\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-danger k-none k-closable css-1weg519 k-tip css-fqt0bq\"><div class=\"k-tip-wrapper\">danger</div><button class=\"k-btn k-none k-btn-icon k-tip-close css-12pzj9v\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-dashed k-closable css-1weg519 k-tip css-fqt0bq\"><div class=\"k-tip-wrapper\">custom closing content</div><button class=\"k-btn k-link k-tip-close css-12pzj9v\" tabindex=\"0\" type=\"button\">No longer show</button></div></div>"
|
|
1837
1917
|
```
|
|
1838
1918
|
|
|
1919
|
+
#### `Tip icon`
|
|
1920
|
+
|
|
1921
|
+
```
|
|
1922
|
+
"<div><div class=\"k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-information-fill k-tip-icon css-16qej3\"></i><div class=\"k-tip-content\">default</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-primary k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-information-fill k-tip-icon css-16qej3\"></i><div class=\"k-tip-content\">primary</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-success k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-success-fill k-tip-icon css-16qej3\"></i><div class=\"k-tip-content\">success</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-warning k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-warning-fill k-tip-icon css-16qej3\"></i><div class=\"k-tip-content\">warning</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-danger k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-information-fill k-tip-icon css-16qej3\"></i><div class=\"k-tip-content\">danger</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-success k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-success-fill k-tip-icon css-16qej3\"></i><div class=\"k-tip-content\">这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容,这是一条测试内容。</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><h3>自定义Icon</h3><div class=\"k-none css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper k-with-icon\"><i class=\"k-icon k-icon-internet css-16qej3\"></i><div class=\"k-tip-content\">custom Icon</div></div></div><h3>标题带Icon</h3><div class=\"k-primary k-none css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-title k-with-icon\"><i class=\"k-icon k-icon-information-fill k-tip-icon css-16qej3\"></i><span class=\"k-title-content\">这是标题</span></div><div class=\"k-tip-content\">This is a tip.</div></div></div><h3>标题自定义Icon</h3><div class=\"k-primary k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-title k-with-icon\"><i class=\"k-icon k-icon-internet css-16qej3\"></i><span class=\"k-title-content\">这是标题</span></div><div class=\"k-tip-content\">This is a tip.</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div></div>"
|
|
1923
|
+
```
|
|
1924
|
+
|
|
1925
|
+
#### `Tip size`
|
|
1926
|
+
|
|
1927
|
+
```
|
|
1928
|
+
"<div><div class=\"k-primary k-large k-none css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">large</div></div></div><div class=\"k-primary k-none css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">default</div></div></div><div class=\"k-primary k-small k-none css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">small</div></div></div><div class=\"k-primary k-mini k-none css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">mini</div></div></div><h3>带关闭按钮</h3><div class=\"k-primary k-large k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">large</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-primary k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">default</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-primary k-small k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">small</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div><div class=\"k-primary k-mini k-none k-closable css-1weg519 k-tip css-a7sub3\"><div class=\"k-tip-wrapper\"><div class=\"k-tip-content\">mini</div></div><button class=\"k-btn k-none k-btn-icon k-tip-close css-h31bz\" tabindex=\"0\" type=\"button\"><i class=\"k-icon k-hoverable k-icon-close css-16qej3\"></i></button></div></div>"
|
|
1929
|
+
```
|
|
1930
|
+
|
|
1839
1931
|
#### `Tip title`
|
|
1840
1932
|
|
|
1841
1933
|
```
|
|
@@ -11,6 +11,7 @@ var typeDefs = {
|
|
|
11
11
|
fluid: Boolean,
|
|
12
12
|
checkType: ['none', 'radio', 'checkbox'],
|
|
13
13
|
seperate: Boolean,
|
|
14
|
+
separate: Boolean,
|
|
14
15
|
btnWidth: [Number, String]
|
|
15
16
|
};
|
|
16
17
|
var defaults = function defaults() {
|
|
@@ -33,6 +34,9 @@ export var ButtonGroup = /*#__PURE__*/function (_Component) {
|
|
|
33
34
|
var _proto = ButtonGroup.prototype;
|
|
34
35
|
_proto.init = function init() {
|
|
35
36
|
provide(BUTTON_GROUP, this);
|
|
37
|
+
if (typeof this.get().seperate === 'boolean') {
|
|
38
|
+
console.warn("`seperate` is a typo which will be removed in next version, please using `separate` instead");
|
|
39
|
+
}
|
|
36
40
|
};
|
|
37
41
|
_proto.setValue = function setValue(v) {
|
|
38
42
|
var _this$get = this.get(),
|
|
@@ -12,9 +12,10 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
12
12
|
vertical = _this$get.vertical,
|
|
13
13
|
children = _this$get.children,
|
|
14
14
|
fluid = _this$get.fluid,
|
|
15
|
-
seperate = _this$get.seperate
|
|
15
|
+
seperate = _this$get.seperate,
|
|
16
|
+
separate = _this$get.separate;
|
|
16
17
|
var k = this.config.k;
|
|
17
|
-
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-btns"] = true, _classNameObj[k + "-vertical"] = vertical, _classNameObj[k + "-fluid"] = fluid, _classNameObj[k + "-
|
|
18
|
+
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-btns"] = true, _classNameObj[k + "-vertical"] = vertical, _classNameObj[k + "-fluid"] = fluid, _classNameObj[k + "-separate"] = typeof separate === 'boolean' ? separate : separate, _classNameObj[className] = className, _classNameObj[makeButtonGroupStyles(k)] = true, _classNameObj);
|
|
18
19
|
return _$cv('div', _extends({
|
|
19
20
|
'className': _$cn(classNameObj)
|
|
20
21
|
}, getRestProps(this)), children);
|
|
@@ -219,13 +219,13 @@ export var makeButtonStyles = cache(function makeButtonStyles(k, iconSide, color
|
|
|
219
219
|
}), ";.", k, "-icon-loading{margin-left:-1em;}}}"), ";"));
|
|
220
220
|
});
|
|
221
221
|
export var makeButtonGroupStyles = cache(function makeButtonGroupStyles(k) {
|
|
222
|
-
return /*#__PURE__*/css("display:inline-flex;align-items:center;flex-wrap:wrap;vertical-align:middle;.", k, "-btn{margin:0;vertical-align:middle;&:hover,&:focus,&.", k, "-active{z-index:1;position:relative;}}&.", k, "-fluid{width:100%;}&:not(.", k, "-vertical):not(.", k, "-
|
|
222
|
+
return /*#__PURE__*/css("display:inline-flex;align-items:center;flex-wrap:wrap;vertical-align:middle;.", k, "-btn{margin:0;vertical-align:middle;&:hover,&:focus,&.", k, "-active{z-index:1;position:relative;}}&.", k, "-fluid{width:100%;}&:not(.", k, "-vertical):not(.", k, "-separate){>.", k, "-btn{", _mapInstanceProperty(types).call(types, function (type) {
|
|
223
223
|
if (type === 'active') return;
|
|
224
224
|
var borderColor = button.group[type].borderColor;
|
|
225
225
|
return /*#__PURE__*/css("&.", k, "-", type, ":not(:first-child){border-left-color:", borderColor, ";}&.", k, "-", type, ":not(:last-child){border-right-color:", borderColor, ";}");
|
|
226
|
-
}), ";&:not(:first-child){margin-left:-1px;&:not(:last-child){border-radius:0;}}&:not(:only-child):first-child{border-top-right-radius:0;border-bottom-right-radius:0;}&:not(:only-child):last-child{border-top-left-radius:0;border-bottom-left-radius:0;}}&.", k, "-fluid{display:flex;>.", k, "-btn{flex:1;}}}&.", k, "-vertical:not(.", k, "-
|
|
226
|
+
}), ";&:not(:first-child){margin-left:-1px;&:not(:last-child){border-radius:0;}}&:not(:only-child):first-child{border-top-right-radius:0;border-bottom-right-radius:0;}&:not(:only-child):last-child{border-top-left-radius:0;border-bottom-left-radius:0;}}&.", k, "-fluid{display:flex;>.", k, "-btn{flex:1;}}}&.", k, "-vertical:not(.", k, "-separate){flex-direction:column;>.", k, "-btn{", _mapInstanceProperty(types).call(types, function (type) {
|
|
227
227
|
if (type === 'active') return;
|
|
228
228
|
var borderColor = button.group[type].borderColor;
|
|
229
229
|
return /*#__PURE__*/css("&.", k, "-", type, ":not(:first-child){border-top-color:", borderColor, ";}&.", k, "-", type, ":not(:last-child){border-bottom-color:", borderColor, ";}");
|
|
230
|
-
}), ";&:not(.", k, "-btn-icon){width:100%;}&:not(:first-child){margin-top:-1px;&:not(:last-child){border-radius:0;}}&:not(:only-child):first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;}&:not(:only-child):last-child{border-top-left-radius:0;border-top-right-radius:0;}}}&.", k, "-
|
|
230
|
+
}), ";&:not(.", k, "-btn-icon){width:100%;}&:not(:first-child){margin-top:-1px;&:not(:last-child){border-radius:0;}}&:not(:only-child):first-child{border-bottom-left-radius:0;border-bottom-right-radius:0;}&:not(:only-child):last-child{border-top-left-radius:0;border-top-right-radius:0;}}}&.", k, "-separate{gap:8px;}");
|
|
231
231
|
});
|
|
@@ -16,6 +16,7 @@ export interface TableCellProps {
|
|
|
16
16
|
onClickArrow: (e: MouseEvent) => void;
|
|
17
17
|
hasChildren: boolean;
|
|
18
18
|
loaded: boolean;
|
|
19
|
+
spreadArrowIndex: number;
|
|
19
20
|
}
|
|
20
21
|
export declare class TableCell extends Component<TableCellProps> {
|
|
21
22
|
static template: string | import('intact-react').Template<any>;
|
|
@@ -23,10 +23,12 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
23
23
|
rowspan = _this$get.rowspan,
|
|
24
24
|
onClickArrow = _this$get.onClickArrow,
|
|
25
25
|
hasChildren = _this$get.hasChildren,
|
|
26
|
-
loaded = _this$get.loaded
|
|
26
|
+
loaded = _this$get.loaded,
|
|
27
|
+
spreadArrowIndex = _this$get.spreadArrowIndex;
|
|
27
28
|
var k = this.config.k;
|
|
28
29
|
var blocks = props.$blocks;
|
|
29
30
|
var children = get(data, props.key);
|
|
31
|
+
var isTree = !spreadArrowIndex ? columnIndex === 0 : columnIndex === spreadArrowIndex;
|
|
30
32
|
if (blocks) {
|
|
31
33
|
var template = blocks.template || blocks.default;
|
|
32
34
|
if (template) {
|
|
@@ -41,12 +43,12 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
41
43
|
var _getClassAndStyleForF = getClassAndStyleForFixed(props, offset, k, checkType),
|
|
42
44
|
className = _getClassAndStyleForF.className,
|
|
43
45
|
style = _getClassAndStyleForF.style;
|
|
44
|
-
if (
|
|
46
|
+
if (isTree && indent) {
|
|
45
47
|
style || (style = {});
|
|
46
48
|
style.paddingLeft = indent + "px";
|
|
47
49
|
}
|
|
48
50
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-hidden"] = props.hidden, _classNameObj[className] = className, _classNameObj);
|
|
49
|
-
return _$ce(2, 'td', [
|
|
51
|
+
return _$ce(2, 'td', [hasChildren && isTree ? _$cc(Button, {
|
|
50
52
|
'type': 'none',
|
|
51
53
|
'icon': true,
|
|
52
54
|
'circle': true,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _sortInstanceProperty from "@babel/runtime-corejs3/core-js/instance/sort";
|
|
2
2
|
import { createUnknownComponentVNode as _$cc, createElementVNode as _$ce, className as _$cn, noop as _$no, extend as _$ex, EMPTY_OBJ as _$em, map as _$ma } from 'intact-react';
|
|
3
3
|
import { getClassAndStyleForFixed } from './useFixedColumns';
|
|
4
|
+
import { getStyleForLastColumn } from './useColumns';
|
|
4
5
|
import { Dropdown, DropdownMenu, DropdownItem } from '../dropdown';
|
|
5
6
|
import { Button } from '../button';
|
|
6
7
|
import { Icon } from '../icon';
|
|
@@ -13,7 +14,7 @@ import { linkEvent } from 'intact-react';
|
|
|
13
14
|
import { context as TableContext } from './useColumns';
|
|
14
15
|
import { context as ResizableContext } from './useResizable';
|
|
15
16
|
import { context as FixedColumnsContext } from './useFixedColumns';
|
|
16
|
-
import { stopPropagation } from '../utils';
|
|
17
|
+
import { stopPropagation, addStyle } from '../utils';
|
|
17
18
|
import { Input } from '../input';
|
|
18
19
|
import { _$ } from '../../i18n';
|
|
19
20
|
import { ignoreSortable } from './useSortable';
|
|
@@ -49,19 +50,22 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
49
50
|
checkAll = _this$group.checkAll;
|
|
50
51
|
var k = this.config.k;
|
|
51
52
|
return _$cc(TableContext.Consumer, {
|
|
52
|
-
'children': function children(
|
|
53
|
+
'children': function children(_ref) {
|
|
54
|
+
var checkType = _ref.checkType,
|
|
55
|
+
lastCellKey = _ref.lastCellKey,
|
|
56
|
+
lastCellStyle = _ref.lastCellStyle;
|
|
53
57
|
return _$cc(GroupContext.Consumer, {
|
|
54
|
-
'children': function children(
|
|
55
|
-
var currentGroup =
|
|
56
|
-
onChange =
|
|
58
|
+
'children': function children(_ref2) {
|
|
59
|
+
var currentGroup = _ref2.group,
|
|
60
|
+
onChange = _ref2.onChange;
|
|
57
61
|
return _$cc(SortableContext.Consumer, {
|
|
58
|
-
'children': function children(
|
|
59
|
-
var sort = _sortInstanceProperty(
|
|
60
|
-
onChangeSort =
|
|
62
|
+
'children': function children(_ref3) {
|
|
63
|
+
var sort = _sortInstanceProperty(_ref3),
|
|
64
|
+
onChangeSort = _ref3.onChange;
|
|
61
65
|
return _$cc(ResizableContext.Consumer, {
|
|
62
|
-
'children': function children(
|
|
63
|
-
var resizable =
|
|
64
|
-
onStart =
|
|
66
|
+
'children': function children(_ref4) {
|
|
67
|
+
var resizable = _ref4.resizable,
|
|
68
|
+
onStart = _ref4.onStart;
|
|
65
69
|
return _$cc(FixedColumnsContext.Consumer, {
|
|
66
70
|
'children': function children(offsetMap) {
|
|
67
71
|
var _classNameObj, _$cn2, _$cn4;
|
|
@@ -168,7 +172,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
168
172
|
'className': _$cn(k + "-icon-down-bold " + k + "-desc"),
|
|
169
173
|
'size': 'mini'
|
|
170
174
|
})], 4, _$cn((_$cn4 = {}, _$cn4[k + "-column-sort"] = true, _$cn4[k + "-" + type] = type, _$cn4))) : undefined], 0, _$cn(k + "-table-title"))], 0, _$cn(classNameObj), {
|
|
171
|
-
'style': style,
|
|
175
|
+
'style': key === lastCellKey ? addStyle(style, lastCellStyle) : style,
|
|
172
176
|
'title': isStringOrNumber(title) ? title : null,
|
|
173
177
|
'ev-click': sortable ? linkEvent(key, onChangeSort) : null,
|
|
174
178
|
'colspan': cols,
|
|
@@ -34,7 +34,8 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
34
34
|
draggable = _this$get.draggable,
|
|
35
35
|
draggingKey = _this$get.draggingKey,
|
|
36
36
|
animation = _this$get.animation,
|
|
37
|
-
loaded = _this$get.loaded
|
|
37
|
+
loaded = _this$get.loaded,
|
|
38
|
+
spreadArrowIndex = _this$get.spreadArrowIndex;
|
|
38
39
|
var k = this.config.k;
|
|
39
40
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-disabled"] = disabled, _classNameObj[k + "-checked"] = checked, _classNameObj[k + "-selected"] = selected, _classNameObj[k + "-spreaded"] = spreaded, _classNameObj[k + "-dragging"] = draggingKey === key, _classNameObj[className] = className, _classNameObj);
|
|
40
41
|
var getGridItem = function getGridItem(columnIndex) {
|
|
@@ -92,7 +93,8 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
92
93
|
'rowspan': spans ? spans.rowspan : undefined,
|
|
93
94
|
'onClickArrow': _this.onClickArrow,
|
|
94
95
|
'hasChildren': hasChildren,
|
|
95
|
-
'key': columnKey
|
|
96
|
+
'key': columnKey,
|
|
97
|
+
'spreadArrowIndex': spreadArrowIndex
|
|
96
98
|
}, columnKey));
|
|
97
99
|
});
|
|
98
100
|
var rows = animation ? _$cc(TransitionGroup, {
|
|
@@ -1,4 +1,53 @@
|
|
|
1
1
|
import '../../styles/global';
|
|
2
|
+
declare const defaults: {
|
|
3
|
+
readonly transition: string;
|
|
4
|
+
border: string;
|
|
5
|
+
readonly borderRadius: string;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
bgColor: string;
|
|
8
|
+
readonly color: string;
|
|
9
|
+
fixLeftShadow: string;
|
|
10
|
+
fixRightShadow: string;
|
|
11
|
+
thead: {
|
|
12
|
+
readonly bgColor: string;
|
|
13
|
+
readonly color: string;
|
|
14
|
+
padding: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
textAlign: string;
|
|
18
|
+
height: string;
|
|
19
|
+
delimiterHeight: string;
|
|
20
|
+
delimiterColor: string;
|
|
21
|
+
};
|
|
22
|
+
tbody: {
|
|
23
|
+
readonly hoverBgcolor: string;
|
|
24
|
+
padding: string;
|
|
25
|
+
};
|
|
26
|
+
stripeBgColor: string;
|
|
27
|
+
group: {
|
|
28
|
+
gap: string;
|
|
29
|
+
menuMaxHeight: string;
|
|
30
|
+
menuMinWidth: string;
|
|
31
|
+
readonly activeColor: string;
|
|
32
|
+
headerPadding: string;
|
|
33
|
+
readonly headerBorder: string;
|
|
34
|
+
};
|
|
35
|
+
sort: {
|
|
36
|
+
iconHeight: string;
|
|
37
|
+
gap: string;
|
|
38
|
+
readonly enabledColor: string;
|
|
39
|
+
};
|
|
40
|
+
expandBgColor: string;
|
|
41
|
+
readonly selectedBgColor: string;
|
|
42
|
+
arrow: {
|
|
43
|
+
gap: string;
|
|
44
|
+
width: string;
|
|
45
|
+
};
|
|
46
|
+
resizeWidth: string;
|
|
47
|
+
draggingOpacity: string;
|
|
48
|
+
};
|
|
49
|
+
declare let table: typeof defaults;
|
|
50
|
+
export { table };
|
|
2
51
|
export declare const makeStyles: {
|
|
3
52
|
(k: string): string;
|
|
4
53
|
clearCache(): {};
|
|
@@ -89,8 +89,9 @@ setDefault(function () {
|
|
|
89
89
|
makeStyles == null || makeStyles.clearCache();
|
|
90
90
|
makeGroupMenuStyles == null || makeGroupMenuStyles.clearCache();
|
|
91
91
|
});
|
|
92
|
+
export { table };
|
|
92
93
|
export var makeStyles = cache(function makeStyles(k) {
|
|
93
|
-
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-collapse:separate;border-spacing:0;table-layout:fixed;}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";z-index:2;tr{height:", table.thead.height, ";&:not(:last-of-type) th{border-bottom:", table.border, ";}}}tfoot{z-index:2;tr{td{border-top:", 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%);}&.", k, "-fixed-right:before{left:-2px;}&: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, "-hidden{display:none;}.", 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) {
|
|
94
|
+
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-collapse:separate;border-spacing:0;table-layout:fixed;}thead{text-align:", table.thead.textAlign, ";font-size:", table.thead.fontSize, ";font-weight:", table.thead.fontWeight, ";z-index:2;tr{height:", table.thead.height, ";&:not(:last-of-type) th{border-bottom:", table.border, ";}}}tfoot{z-index:2;tr{td{border-top:", table.border, ";border-bottom-color:transparent;}}}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%);}&.", k, "-fixed-right:before{left:-2px;}&: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, "-hidden{display:none;}.", 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) {
|
|
94
95
|
return /*#__PURE__*/css(".", k, "-align-", type, "{text-align:", type, ";}");
|
|
95
96
|
}), ">.", k, "-pagination{margin:16px 0;}&.", k, "-fix-header{min-height:0;.", k, "-table-wrapper{height:100%;}thead{position:sticky;top:0;}}&.", k, "-fix-footer{min-height:0;.", k, "-table-wrapper{height:100%;}tfoot{position:sticky;bottom:0;}}");
|
|
96
97
|
});
|
|
@@ -39,6 +39,7 @@ export interface TableProps<T = any, K extends TableRowKey = TableRowKey, C exte
|
|
|
39
39
|
hideHeader?: boolean;
|
|
40
40
|
pagination?: boolean | PaginationProps;
|
|
41
41
|
fixFooter?: boolean;
|
|
42
|
+
spreadArrowIndex?: number;
|
|
42
43
|
load?: (value: T) => Promise<void> | void;
|
|
43
44
|
}
|
|
44
45
|
export interface TableEvents<T = any, K extends TableRowKey = number> {
|
|
@@ -55,13 +55,17 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
55
55
|
_animation = _this$get.animation,
|
|
56
56
|
hideHeader = _this$get.hideHeader,
|
|
57
57
|
pagination = _this$get.pagination,
|
|
58
|
-
fixFooter = _this$get.fixFooter
|
|
58
|
+
fixFooter = _this$get.fixFooter,
|
|
59
|
+
spreadArrowIndex = _this$get.spreadArrowIndex;
|
|
59
60
|
var animation = !Array.isArray(_animation) ? [_animation, _animation] : _animation;
|
|
60
61
|
var _this$columns$getData = this.columns.getData(),
|
|
61
62
|
columns = _this$columns$getData.columns,
|
|
62
63
|
cols = _this$columns$getData.cols,
|
|
63
64
|
maxRows = _this$columns$getData.maxRows,
|
|
64
65
|
maxCols = _this$columns$getData.maxCols;
|
|
66
|
+
var _this$columns$getStyl = this.columns.getStyleForLastColumn(),
|
|
67
|
+
lastCellKey = _this$columns$getStyl.lastCellKey,
|
|
68
|
+
lastCellStyle = _this$columns$getStyl.lastCellStyle;
|
|
65
69
|
var _this$fixedColumns = this.fixedColumns,
|
|
66
70
|
scrollPosition = _this$fixedColumns.scrollPosition,
|
|
67
71
|
hasFixed = _this$fixedColumns.hasFixed,
|
|
@@ -101,7 +105,11 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
101
105
|
onChangeChecked = _this$checked.onChangeChecked;
|
|
102
106
|
var allCheckedStatus = getAllCheckedStatus();
|
|
103
107
|
var thead = hideHeader ? null : _$cc(TableContext.Provider, {
|
|
104
|
-
'value':
|
|
108
|
+
'value': {
|
|
109
|
+
checkType: checkType,
|
|
110
|
+
lastCellKey: lastCellKey,
|
|
111
|
+
lastCellStyle: lastCellStyle
|
|
112
|
+
},
|
|
105
113
|
'children': _$cc(GroupContext.Provider, {
|
|
106
114
|
'value': {
|
|
107
115
|
group: group,
|
|
@@ -205,6 +213,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
205
213
|
'onBeforeUnmount': _this.resetRowStatus.onRowBeforeUnmount,
|
|
206
214
|
'offsetMap': offsetMap.value,
|
|
207
215
|
'animation': animation[1],
|
|
216
|
+
'spreadArrowIndex': spreadArrowIndex,
|
|
208
217
|
'draggable': draggable,
|
|
209
218
|
'draggingKey': draggingKey.value,
|
|
210
219
|
'onRowDragStart': onRowDragStart,
|
|
@@ -14,4 +14,13 @@ export declare function useColumns(): {
|
|
|
14
14
|
maxRows: number;
|
|
15
15
|
maxCols: number;
|
|
16
16
|
};
|
|
17
|
+
getStyleForLastColumn: () => {
|
|
18
|
+
lastCellKey: null;
|
|
19
|
+
lastCellStyle: null;
|
|
20
|
+
} | {
|
|
21
|
+
lastCellKey: import('intact-react').Key | null;
|
|
22
|
+
lastCellStyle: {
|
|
23
|
+
'border-right': string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
17
26
|
};
|
|
@@ -3,6 +3,7 @@ import { useInstance, directClone } from 'intact-react';
|
|
|
3
3
|
import { eachChildren, isComponentVNode } from '../utils';
|
|
4
4
|
import { TableColumn } from './column';
|
|
5
5
|
import { createContext } from '../context';
|
|
6
|
+
import { table as theme } from './styles';
|
|
6
7
|
export var context = createContext();
|
|
7
8
|
export function useColumns() {
|
|
8
9
|
var instance = useInstance();
|
|
@@ -89,9 +90,36 @@ export function useColumns() {
|
|
|
89
90
|
maxCols: maxCols
|
|
90
91
|
};
|
|
91
92
|
}
|
|
93
|
+
function getStyleForLastColumn() {
|
|
94
|
+
if (instance.get('type') !== 'grid' || !columns.length || !cols.length) {
|
|
95
|
+
return {
|
|
96
|
+
lastCellKey: null,
|
|
97
|
+
lastCellStyle: null
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
var lastRow = columns[columns.length - 1];
|
|
101
|
+
var lastTrItem = lastRow[lastRow.length - 1];
|
|
102
|
+
var lastCol = cols[cols.length - 1];
|
|
103
|
+
if (!lastTrItem || !lastCol) {
|
|
104
|
+
return {
|
|
105
|
+
lastCellKey: null,
|
|
106
|
+
lastCellStyle: null
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
return lastCol.key === lastTrItem.key ? {
|
|
110
|
+
lastCellKey: null,
|
|
111
|
+
lastCellStyle: null
|
|
112
|
+
} : {
|
|
113
|
+
lastCellKey: lastTrItem.key,
|
|
114
|
+
lastCellStyle: {
|
|
115
|
+
'border-right': "" + theme.border
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
92
119
|
return {
|
|
93
120
|
getColumns: getColumns,
|
|
94
121
|
getCols: getCols,
|
|
95
|
-
getData: getData
|
|
122
|
+
getData: getData,
|
|
123
|
+
getStyleForLastColumn: getStyleForLastColumn
|
|
96
124
|
};
|
|
97
125
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { TypeDefs } from 'intact-react';
|
|
1
2
|
import { Tag, TagProps, TagEvents, TagBlocks } from '../tag/base';
|
|
2
3
|
export interface TipProps extends TagProps {
|
|
4
|
+
showIcon?: boolean;
|
|
3
5
|
}
|
|
4
6
|
export interface TipEvents extends TagEvents {
|
|
5
7
|
}
|
|
6
8
|
export interface TipBlocks extends TagBlocks {
|
|
7
9
|
title: null;
|
|
8
10
|
close: null;
|
|
11
|
+
icon: null;
|
|
9
12
|
}
|
|
10
13
|
export declare class Tip extends Tag<TipProps, TipEvents, TipBlocks> {
|
|
11
|
-
static template: string | import(
|
|
14
|
+
static template: string | import('intact-react').Template<any>;
|
|
15
|
+
static typeDefs: Required<TypeDefs<TipProps>>;
|
|
16
|
+
static defaults: () => Partial<TipProps>;
|
|
12
17
|
}
|
package/components/tip/index.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
2
3
|
import template from './index.vdt';
|
|
3
4
|
import { Tag } from '../tag/base';
|
|
5
|
+
var typeDefs = _extends({}, Tag.typeDefs, {
|
|
6
|
+
showIcon: Boolean
|
|
7
|
+
});
|
|
8
|
+
var defaults = function defaults() {
|
|
9
|
+
return _extends({}, Tag.defaults(), {
|
|
10
|
+
showIcon: false
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
export var Tip = /*#__PURE__*/function (_Tag) {
|
|
5
14
|
_inheritsLoose(Tip, _Tag);
|
|
6
15
|
function Tip() {
|
|
@@ -8,4 +17,6 @@ export var Tip = /*#__PURE__*/function (_Tag) {
|
|
|
8
17
|
}
|
|
9
18
|
return Tip;
|
|
10
19
|
}(Tag);
|
|
11
|
-
Tip.template = template;
|
|
20
|
+
Tip.template = template;
|
|
21
|
+
Tip.typeDefs = typeDefs;
|
|
22
|
+
Tip.defaults = defaults;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnknownComponentVNode as _$cc, className as _$cn, noop as _$no, superCall as _$su, extend as _$ex, EMPTY_OBJ as _$em, createElementVNode as _$ce } from 'intact-react';
|
|
2
2
|
import { Button } from '../button';
|
|
3
3
|
import { Icon } from '../icon';
|
|
4
4
|
import { makeStyles } from './styles';
|
|
5
5
|
export default function ($props, $blocks, $__proto__) {
|
|
6
|
-
var _classNameObj;
|
|
6
|
+
var _classNameObj, _$cn2;
|
|
7
7
|
$blocks || ($blocks = {});
|
|
8
8
|
$props || ($props = {});
|
|
9
9
|
var $this = this;
|
|
@@ -13,9 +13,28 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
13
13
|
children = _this$get.children,
|
|
14
14
|
closable = _this$get.closable,
|
|
15
15
|
type = _this$get.type,
|
|
16
|
-
disabled = _this$get.disabled
|
|
16
|
+
disabled = _this$get.disabled,
|
|
17
|
+
showIcon = _this$get.showIcon;
|
|
17
18
|
var k = this.config.k;
|
|
19
|
+
var iconMap = {
|
|
20
|
+
default: 'information-fill',
|
|
21
|
+
info: 'information-fill',
|
|
22
|
+
warning: 'warning-fill',
|
|
23
|
+
success: 'success-fill',
|
|
24
|
+
error: 'error-fill'
|
|
25
|
+
};
|
|
18
26
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-tip"] = true, _classNameObj[makeStyles(k)] = true, _classNameObj);
|
|
27
|
+
var iconWrapper = !$blocks.icon ? _$cc(Icon, {
|
|
28
|
+
'className': _$cn((_$cn2 = {}, _$cn2[k + "-icon-" + (iconMap[type] || iconMap.info)] = true, _$cn2[k + "-tip-icon"] = true, _$cn2))
|
|
29
|
+
}) : (_$blocks['icon'] = function ($super) {
|
|
30
|
+
return null;
|
|
31
|
+
}, __$blocks['icon'] = function ($super, data) {
|
|
32
|
+
var block = $blocks['icon'];
|
|
33
|
+
var callBlock = function callBlock() {
|
|
34
|
+
return _$blocks['icon'].call($this, $super, data);
|
|
35
|
+
};
|
|
36
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
37
|
+
}, __$blocks['icon'](_$no));
|
|
19
38
|
return _$su.call($this, {
|
|
20
39
|
'className': _$cn(classNameObj),
|
|
21
40
|
'name': 'k-fade'
|
|
@@ -23,7 +42,8 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
23
42
|
var _$blocks = {},
|
|
24
43
|
__$blocks = _$ex({}, $blocks);
|
|
25
44
|
return (_$blocks['body'] = function ($super) {
|
|
26
|
-
|
|
45
|
+
var _$cn3, _$cn4;
|
|
46
|
+
return _$ce(2, 'div', [!$blocks.title && (showIcon || $blocks.icon) ? iconWrapper : undefined, $blocks.title ? _$ce(2, 'div', [showIcon ? iconWrapper : undefined, _$ce(2, 'span', (_$blocks['title'] = function ($super) {
|
|
27
47
|
return null;
|
|
28
48
|
}, __$blocks['title'] = function ($super, data) {
|
|
29
49
|
var block = $blocks['title'];
|
|
@@ -31,7 +51,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
31
51
|
return _$blocks['title'].call($this, $super, data);
|
|
32
52
|
};
|
|
33
53
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
34
|
-
}, __$blocks['title'](_$no)), 0, _$cn(k + "-tip-title")) : undefined, children], 0, _$cn(k + "-tip-wrapper"));
|
|
54
|
+
}, __$blocks['title'](_$no)), 0, _$cn(k + "-title-content"))], 0, _$cn((_$cn3 = {}, _$cn3[k + "-tip-title"] = true, _$cn3[k + "-with-icon"] = showIcon, _$cn3))) : undefined, _$ce(2, 'div', children, 0, _$cn(k + "-tip-content"))], 0, _$cn((_$cn4 = {}, _$cn4[k + "-tip-wrapper"] = true, _$cn4[k + "-with-icon"] = !$blocks.title && (showIcon || $blocks.icon), _$cn4)));
|
|
35
55
|
}, __$blocks['body'] = function ($super, data) {
|
|
36
56
|
var block = $blocks['body'];
|
|
37
57
|
var callBlock = function callBlock() {
|
package/components/tip/styles.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
|
|
1
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
2
3
|
import { css } from '@emotion/css';
|
|
3
4
|
import '../../styles/global';
|
|
4
|
-
import { deepDefaults } from '../../styles/utils';
|
|
5
|
+
import { deepDefaults, sizes } from '../../styles/utils';
|
|
5
6
|
import { cache } from '../utils';
|
|
6
7
|
var defaults = {
|
|
7
8
|
title: {
|
|
@@ -14,6 +15,39 @@ var defaults = {
|
|
|
14
15
|
},
|
|
15
16
|
get padding() {
|
|
16
17
|
return "6px " + theme.default.padding;
|
|
18
|
+
},
|
|
19
|
+
content: {
|
|
20
|
+
padding: '7px 33px 8px 8px'
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
fontSize: "18px",
|
|
24
|
+
left: "16px",
|
|
25
|
+
top: "6px"
|
|
26
|
+
},
|
|
27
|
+
large: {
|
|
28
|
+
padding: "12px",
|
|
29
|
+
get fontSize() {
|
|
30
|
+
return theme.default.fontSize;
|
|
31
|
+
},
|
|
32
|
+
close: {
|
|
33
|
+
height: '42px'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
small: {
|
|
37
|
+
padding: "4px 12px",
|
|
38
|
+
get fontSize() {
|
|
39
|
+
return theme.small.fontSize;
|
|
40
|
+
},
|
|
41
|
+
close: {
|
|
42
|
+
height: '26px'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
mini: {
|
|
46
|
+
padding: "2px 12px",
|
|
47
|
+
fontSize: '11px',
|
|
48
|
+
close: {
|
|
49
|
+
height: '20px'
|
|
50
|
+
}
|
|
17
51
|
}
|
|
18
52
|
};
|
|
19
53
|
var tip;
|
|
@@ -24,5 +58,13 @@ setDefault(function () {
|
|
|
24
58
|
makeStyles == null || makeStyles.clearCache();
|
|
25
59
|
});
|
|
26
60
|
export var makeStyles = cache(function makeStyles(k) {
|
|
27
|
-
|
|
61
|
+
var _context;
|
|
62
|
+
return /*#__PURE__*/css("&.", k, "-tip{display:flex;height:auto;padding:0;color:", tip.color, "!important;align-items:flex-start;", _mapInstanceProperty(sizes).call(sizes, function (s) {
|
|
63
|
+
if (s === 'default') return;
|
|
64
|
+
var styles = tip[s];
|
|
65
|
+
return /*#__PURE__*/css("&.", k, "-", s, "{padding:0;height:auto;font-size:", styles.fontSize, ";.", k, "-tip-wrapper{padding:", styles.padding, ";}.", k, "-tip-close{height:", styles.close.height, ";}}");
|
|
66
|
+
}), ";}.", k, "-tip-wrapper{flex:1;padding:", tip.padding, ";}.", k, "-tip-title{font-size:", tip.title.fontSize, ";margin-bottom:", tip.title.gap, ";font-weight:", tip.title.fontWeight, " display:flex;align-items:center;}&.", k, "-fade-leave-active{position:relative;}.", k, "-tip-close{height:30px;&:hover{background:none;}}.", k, "-with-icon{display:flex;.", k, "-tip-icon{font-size:18px;vertical-align:middle;}.", k, "-title-content{display:inline-block;padding-left:8px;}.", k, "-tip-content{display:inline-block;padding-left:8px;vertical-align:middle;word-break:break-word;overflow-wrap:break-word;}}", _mapInstanceProperty(_context = ['primary', 'danger', 'success', 'warning']).call(_context, function (type) {
|
|
67
|
+
var color = theme.color[type];
|
|
68
|
+
return /*#__PURE__*/css("&.", k, "-", type, "{.", k, "-tip-icon{color:", color, ";}}");
|
|
69
|
+
}), ";");
|
|
28
70
|
});
|
|
@@ -54,7 +54,11 @@ export var Tooltip = /*#__PURE__*/function (_Dropdown) {
|
|
|
54
54
|
if (shouldFocus === void 0) {
|
|
55
55
|
shouldFocus = false;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
var _this$get = this.get(),
|
|
58
|
+
disabled = _this$get.disabled,
|
|
59
|
+
always = _this$get.always,
|
|
60
|
+
value = _this$get.value;
|
|
61
|
+
if (disabled || always && !value) return;
|
|
58
62
|
clearTimeout(this.timer);
|
|
59
63
|
this.set('value', true);
|
|
60
64
|
};
|
|
@@ -128,8 +128,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
128
128
|
'icon': true,
|
|
129
129
|
'disabled': !enableRemove(),
|
|
130
130
|
'ev-click': remove,
|
|
131
|
-
'type': '
|
|
132
|
-
'size': 'large',
|
|
131
|
+
'type': 'secondary',
|
|
133
132
|
'children': _$cc(Icon, {
|
|
134
133
|
'className': _$cn(k + "-transfer-icon " + k + "-icon-left")
|
|
135
134
|
})
|
|
@@ -138,8 +137,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
138
137
|
'icon': true,
|
|
139
138
|
'disabled': !enableAdd(),
|
|
140
139
|
'ev-click': add,
|
|
141
|
-
'type': '
|
|
142
|
-
'size': 'large',
|
|
140
|
+
'type': 'secondary',
|
|
143
141
|
'children': _$cc(Icon, {
|
|
144
142
|
'className': _$cn(k + "-transfer-icon " + k + "-icon-right")
|
|
145
143
|
})
|
|
@@ -3,6 +3,7 @@ import { createVNode as _$cv, className as _$cn, noop as _$no, createUnknownComp
|
|
|
3
3
|
import { Button } from '../button';
|
|
4
4
|
import { Progress } from '../progress';
|
|
5
5
|
import { Dialog } from '../dialog';
|
|
6
|
+
import { Ellipsis } from '../ellipsis';
|
|
6
7
|
import { expandAnimationCallbacks, getRestProps } from '../utils';
|
|
7
8
|
import { makeStyles, makeUploadDialogStyles } from './styles';
|
|
8
9
|
import { TransitionGroup, Transition, linkEvent } from 'intact-react';
|
|
@@ -128,7 +129,9 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
128
129
|
var _$cn3;
|
|
129
130
|
return _$ce(2, 'div', [_$ce(2, 'div', [_$ce(2, 'div', [_$cc(Icon, {
|
|
130
131
|
'className': _$cn(k + "-upload-file-icon ion-document")
|
|
131
|
-
}), _$ce(2, 'span',
|
|
132
|
+
}), _$ce(2, 'span', _$cc(Ellipsis, {
|
|
133
|
+
'children': $value.name
|
|
134
|
+
}), 2, _$cn(k + "-upload-file-name")), $value.status === UploadFileStatus.Done ? _$cc(Icon, {
|
|
132
135
|
'className': _$cn(k + "-upload-status-icon " + k + "-icon-success-fill")
|
|
133
136
|
}) : $value.status === UploadFileStatus.Error ? _$cc(Icon, {
|
|
134
137
|
'className': _$cn(k + "-upload-status-icon " + k + "-icon-error-fill")
|
|
@@ -113,7 +113,7 @@ setDefault(function () {
|
|
|
113
113
|
makeUploadDialogStyles == null || makeUploadDialogStyles.clearCache();
|
|
114
114
|
});
|
|
115
115
|
export var makeStyles = cache(function makeStyles(k) {
|
|
116
|
-
return /*#__PURE__*/css("font-size:", upload.fontSize, ";position:relative;.", k, "-icon-upload{position:relative;top:-1px;}.", k, "-upload-handle{display:inline-block;vertical-align:middle;color:", upload.color, ";}.", k, "-upload-tip{margin-top:", upload.tip.gap, ";color:", upload.color, ";}.", k, "-upload-files{margin-top:", upload.filesGap, ";}.", k, "-upload-file{margin:", upload.file.margin, ";padding-right:", upload.file.delete.width, ";position:relative;&:hover{.", k, "-upload-close{display:inline-flex;position:absolute;right:", upload.file.delete.right, ";top:", upload.file.delete.top, ";}.", k, "-upload-file-main{background:", upload.file.bgColor, ";}}}.", k, "-upload-file-main{padding:", upload.file.padding, ";border-radius:", upload.file.borderRadius, ";}.", k, "-upload-name{display:flex;align-items:center;height:", upload.file.height, ";}.", k, "-upload-file-icon{margin-right:", upload.file.fileIconGap, ";}.", k, "-upload-file-name{flex:1;}.", k, "-upload-status-icon{color:", upload.file.status.color, ";margin-right:", upload.file.status.offsetRight, ";}.", k, "-upload-close{display:none;}.", k, "-upload-file.", k, "-error{color:", upload.file.errorColor, ";.", k, "-upload-status-icon{color:", upload.file.status.errorColor, ";}}.", k, "-upload-progress{.", k, "-progress-text{width:auto!important;}}&.", k, "-drag{.", k, "-upload-handle{display:block;border:", upload.drag.border, ";border-radius:", upload.drag.borderRadius, ";cursor:pointer;text-align:center;transition:border-color ", upload.transition, ";background:", upload.drag.bgColor, ";&:hover{border-color:", upload.drag.hoverBorderColor, ";}}.", k, "-upload-area{padding:", upload.drag.padding, ";.", k, "-icon{display:inline-block;font-size:", upload.drag.icon.fontSize, ";margin-bottom:", upload.drag.icon.gap, ";}}&.", k, "-dragover{.", k, "-upload-handle{border-color:", upload.drag.overBorderColor, ";}}}.", k, "-upload-pictures{display:inline-block;vertical-align:middle;}.", k, "-upload-picture{padding:", upload.gallery.padding, ";position:relative;vertical-align:middle;&.", k, "-error{border-color:", upload.gallery.errorBorderColor, ";}.", k, "-upload-close{display:inline-flex;}&:hover{.", k, "-upload-icons{opacity:1;}}.", k, "-upload-img{display:inline-block;width:100%;height:100%;}.", k, "-upload-icons{opacity:0;transition:opacity ", upload.transition, ";}}.", k, "-upload-picture-card{display:inline-flex;width:", upload.gallery.width, ";height:", upload.gallery.height, ";border-radius:", upload.gallery.borderRadius, ";border:", upload.gallery.border, ";margin:", upload.gallery.margin, ";background:", upload.gallery.bgColor, ";align-items:center;justify-content:center;flex-direction:column;}.", k, "-upload-add{border:", upload.gallery.add.border, ";cursor:pointer;&:hover{border-color:", upload.gallery.add.hoverBorderColor, ";}}.", k, "-upload-overlap{position:absolute;width:100%;height:100%;left:0;top:0;background:", upload.overlap.bgColor, ";display:flex;align-items:center;justify-content:center;gap:", upload.overlap.iconGap, ";color:", upload.overlap.color, ";.", k, "-icon:not(:hover){color:inherit;}.", k, "-upload-progress{position:absolute;width:100%;top:50%;padding:", upload.gallery.padding, ";transform:translateY(-50%);}}&.", k, "-disabled{.", k, "-upload-add,.", k, "-upload-handle{cursor:auto;a{color:", upload.color, ";}&:hover{border-color:", theme.color.border, ";}}}");
|
|
116
|
+
return /*#__PURE__*/css("font-size:", upload.fontSize, ";position:relative;.", k, "-icon-upload{position:relative;top:-1px;}.", k, "-upload-handle{display:inline-block;vertical-align:middle;color:", upload.color, ";}.", k, "-upload-tip{margin-top:", upload.tip.gap, ";color:", upload.color, ";}.", k, "-upload-files{margin-top:", upload.filesGap, ";}.", k, "-upload-file{margin:", upload.file.margin, ";padding-right:", upload.file.delete.width, ";position:relative;&:hover{.", k, "-upload-close{display:inline-flex;position:absolute;right:", upload.file.delete.right, ";top:", upload.file.delete.top, ";}.", k, "-upload-file-main{background:", upload.file.bgColor, ";}}}.", k, "-upload-file-main{padding:", upload.file.padding, ";border-radius:", upload.file.borderRadius, ";}.", k, "-upload-name{display:flex;align-items:center;height:", upload.file.height, ";}.", k, "-upload-file-icon{margin-right:", upload.file.fileIconGap, ";}.", k, "-upload-file-name{flex:1;min-width:0;}.", k, "-upload-status-icon{color:", upload.file.status.color, ";margin-right:", upload.file.status.offsetRight, ";}.", k, "-upload-close{display:none;}.", k, "-upload-file.", k, "-error{color:", upload.file.errorColor, ";.", k, "-upload-status-icon{color:", upload.file.status.errorColor, ";}}.", k, "-upload-progress{.", k, "-progress-text{width:auto!important;}}&.", k, "-drag{.", k, "-upload-handle{display:block;border:", upload.drag.border, ";border-radius:", upload.drag.borderRadius, ";cursor:pointer;text-align:center;transition:border-color ", upload.transition, ";background:", upload.drag.bgColor, ";&:hover{border-color:", upload.drag.hoverBorderColor, ";}}.", k, "-upload-area{padding:", upload.drag.padding, ";.", k, "-icon{display:inline-block;font-size:", upload.drag.icon.fontSize, ";margin-bottom:", upload.drag.icon.gap, ";}}&.", k, "-dragover{.", k, "-upload-handle{border-color:", upload.drag.overBorderColor, ";}}}.", k, "-upload-pictures{display:inline-block;vertical-align:middle;}.", k, "-upload-picture{padding:", upload.gallery.padding, ";position:relative;vertical-align:middle;&.", k, "-error{border-color:", upload.gallery.errorBorderColor, ";}.", k, "-upload-close{display:inline-flex;}&:hover{.", k, "-upload-icons{opacity:1;}}.", k, "-upload-img{display:inline-block;width:100%;height:100%;}.", k, "-upload-icons{opacity:0;transition:opacity ", upload.transition, ";}}.", k, "-upload-picture-card{display:inline-flex;width:", upload.gallery.width, ";height:", upload.gallery.height, ";border-radius:", upload.gallery.borderRadius, ";border:", upload.gallery.border, ";margin:", upload.gallery.margin, ";background:", upload.gallery.bgColor, ";align-items:center;justify-content:center;flex-direction:column;}.", k, "-upload-add{border:", upload.gallery.add.border, ";cursor:pointer;&:hover{border-color:", upload.gallery.add.hoverBorderColor, ";}}.", k, "-upload-overlap{position:absolute;width:100%;height:100%;left:0;top:0;background:", upload.overlap.bgColor, ";display:flex;align-items:center;justify-content:center;gap:", upload.overlap.iconGap, ";color:", upload.overlap.color, ";.", k, "-icon:not(:hover){color:inherit;}.", k, "-upload-progress{position:absolute;width:100%;top:50%;padding:", upload.gallery.padding, ";transform:translateY(-50%);}}&.", k, "-disabled{.", k, "-upload-add,.", k, "-upload-handle{cursor:auto;a{color:", upload.color, ";}&:hover{border-color:", theme.color.border, ";}}}");
|
|
117
117
|
});
|
|
118
118
|
export var makeUploadDialogStyles = cache(function makeUploadDialogStyles(k) {
|
|
119
119
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.4.
|
|
2
|
+
* @king-design v3.4.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -64,7 +64,7 @@ export * from './components/treeSelect';
|
|
|
64
64
|
export * from './components/upload';
|
|
65
65
|
export * from './components/view';
|
|
66
66
|
export * from './components/wave';
|
|
67
|
-
export declare const version = "3.4.
|
|
67
|
+
export declare const version = "3.4.4";
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
export {normalize} from 'intact-react';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.4.
|
|
2
|
+
* @king-design v3.4.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -65,7 +65,7 @@ export * from './components/treeSelect';
|
|
|
65
65
|
export * from './components/upload';
|
|
66
66
|
export * from './components/view';
|
|
67
67
|
export * from './components/wave';
|
|
68
|
-
export var version = '3.4.
|
|
68
|
+
export var version = '3.4.4';
|
|
69
69
|
/* generate end */
|
|
70
70
|
|
|
71
71
|
export {normalize} from 'intact-react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@king-design/react",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "King-Design UI components for React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@emotion/css": "^11.5.0",
|
|
37
37
|
"dayjs": "^1.10.7",
|
|
38
38
|
"enquire.js": "^2.1.6",
|
|
39
|
-
"intact-react": "3.0.
|
|
39
|
+
"intact-react": "3.0.39",
|
|
40
40
|
"monaco-editor": "^0.26.1",
|
|
41
41
|
"mxgraphx": "^4.0.7",
|
|
42
42
|
"resize-observer-polyfill": "^1.5.1",
|