bkui-vue 0.0.2-beta.137 → 0.0.2-beta.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +26 -26
- package/dist/index.esm.js +5015 -5050
- package/dist/index.umd.js +26 -26
- package/lib/affix/index.js +14 -13
- package/lib/alert/index.js +23 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +21 -20
- package/lib/badge/index.js +20 -19
- package/lib/breadcrumb/index.js +25 -24
- package/lib/button/index.js +36 -28
- package/lib/card/index.js +42 -35
- package/lib/cascader/index.js +99 -80
- package/lib/checkbox/index.js +33 -32
- package/lib/code-diff/index.js +13 -12
- package/lib/collapse/index.js +40 -39
- package/lib/collapse-transition/index.js +8 -8
- package/lib/color-picker/index.js +49 -48
- package/lib/config-provider/index.js +8 -8
- package/lib/container/index.js +20 -19
- package/lib/date-picker/common.d.ts +2 -0
- package/lib/date-picker/index.js +146 -152
- package/lib/dialog/index.js +62 -49
- package/lib/directives/index.js +12 -12
- package/lib/dist.index.js +3 -3
- package/lib/divider/index.js +14 -13
- package/lib/dropdown/index.js +31 -24
- package/lib/exception/index.js +12 -11
- package/lib/fixed-navbar/index.js +14 -13
- package/lib/form/index.js +49 -48
- package/lib/image/index.js +37 -37
- package/lib/index.js +6 -6
- package/lib/info-box/index.js +63 -50
- package/lib/input/index.js +60 -59
- package/lib/link/index.js +14 -13
- package/lib/loading/index.js +18 -17
- package/lib/menu/index.js +14 -13
- package/lib/message/index.js +39 -38
- package/lib/modal/index.js +32 -31
- package/lib/navigation/index.js +15 -14
- package/lib/notify/index.js +32 -31
- package/lib/overflow-title/index.js +21 -14
- package/lib/pagination/index.js +64 -50
- package/lib/plugin-popover/index.js +53 -53
- package/lib/pop-confirm/index.js +41 -28
- package/lib/popover/index.js +53 -52
- package/lib/popover2/index.js +3 -3
- package/lib/preset.js +4 -4
- package/lib/process/index.js +26 -26
- package/lib/progress/index.js +27 -26
- package/lib/radio/index.js +33 -32
- package/lib/rate/index.js +23 -22
- package/lib/resize-layout/index.js +26 -25
- package/lib/search-select/index.js +67 -49
- package/lib/select/index.js +188 -146
- package/lib/sideslider/index.js +21 -14
- package/lib/slider/index.js +35 -22
- package/lib/steps/index.js +29 -28
- package/lib/swiper/index.js +15 -14
- package/lib/switcher/index.js +30 -29
- package/lib/tab/index.js +45 -44
- package/lib/table/index.js +189 -137
- package/lib/table-column/index.js +40 -40
- package/lib/tag/index.js +21 -20
- package/lib/tag-input/index.js +78 -64
- package/lib/time-picker/index.js +8 -7
- package/lib/timeline/index.js +12 -12
- package/lib/transfer/index.js +50 -36
- package/lib/tree/index.js +91 -72
- package/lib/upload/index.js +62 -48
- package/lib/virtual-render/index.js +34 -33
- package/package.json +1 -1
package/lib/table/index.js
CHANGED
@@ -1,21 +1,29 @@
|
|
1
|
-
import
|
1
|
+
import "./table.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
|
7
|
+
import "../virtual-render/virtual-render.less";
|
6
8
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
|
7
9
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
8
|
-
import * as
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__ from "../loading";
|
11
|
+
import "../loading/loading.less";
|
9
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
10
13
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
11
|
-
import * as
|
12
|
-
import
|
13
|
-
import * as
|
14
|
-
import * as
|
15
|
-
import
|
16
|
-
import * as
|
17
|
-
import * as
|
18
|
-
import
|
14
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
15
|
+
import "../checkbox/checkbox.less";
|
16
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__ from "../pagination";
|
18
|
+
import "../pagination/pagination.less";
|
19
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
20
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__ from "../exception";
|
21
|
+
import "../exception/exception.less";
|
22
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
|
23
|
+
import "../button/button.less";
|
24
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__ from "../icon/";
|
25
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
26
|
+
import "../popover/popover.less";
|
19
27
|
/******/ // The require scope
|
20
28
|
/******/ var __webpack_require__ = {};
|
21
29
|
/******/
|
@@ -62,7 +70,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
62
70
|
;// CONCATENATED MODULE: external "../shared"
|
63
71
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
64
72
|
var y = x => () => x
|
65
|
-
const
|
73
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.debounce, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
66
74
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
67
75
|
function typeof_typeof(obj) {
|
68
76
|
"@babel/helpers - typeof";
|
@@ -395,16 +403,16 @@ var tableProps = {
|
|
395
403
|
/**
|
396
404
|
* 渲染列表
|
397
405
|
*/
|
398
|
-
data:
|
406
|
+
data: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def([]),
|
399
407
|
/**
|
400
408
|
* Table 列渲染
|
401
409
|
*/
|
402
|
-
columns:
|
410
|
+
columns: shared_namespaceObject.PropTypes.arrayOf(IColumnType).def([]),
|
403
411
|
/**
|
404
412
|
* 当前选中列
|
405
413
|
* 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
|
406
414
|
*/
|
407
|
-
activeColumn:
|
415
|
+
activeColumn: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number.def(-1), shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.number.def(-1))]),
|
408
416
|
/**
|
409
417
|
* 表格列选中方式
|
410
418
|
* 支持:单列(single),多列(multi),禁用(disabled)
|
@@ -420,7 +428,7 @@ var tableProps = {
|
|
420
428
|
/**
|
421
429
|
* 是否为斑马纹 Table
|
422
430
|
*/
|
423
|
-
stripe:
|
431
|
+
stripe: shared_namespaceObject.PropTypes.bool.def(false),
|
424
432
|
/**
|
425
433
|
* 设置表格最小高度
|
426
434
|
* 默认:300
|
@@ -439,11 +447,11 @@ var tableProps = {
|
|
439
447
|
/**
|
440
448
|
* Thead行高,可以为固定数值类型
|
441
449
|
*/
|
442
|
-
headHeight:
|
450
|
+
headHeight: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT),
|
443
451
|
/**
|
444
452
|
* 是否显示Head
|
445
453
|
*/
|
446
|
-
showHead:
|
454
|
+
showHead: shared_namespaceObject.PropTypes.bool.def(true),
|
447
455
|
/**
|
448
456
|
* table header config
|
449
457
|
*/
|
@@ -456,42 +464,42 @@ var tableProps = {
|
|
456
464
|
* 是否启用虚拟渲染 & 滚动
|
457
465
|
* 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
|
458
466
|
*/
|
459
|
-
virtualEnabled:
|
467
|
+
virtualEnabled: shared_namespaceObject.PropTypes.bool.def(false),
|
460
468
|
/**
|
461
469
|
* 表格边框显示设置,可以是一个组合
|
462
470
|
* 生效规则: 除非单独设置 none,否则会追加每个设置
|
463
471
|
*/
|
464
|
-
border:
|
472
|
+
border: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.arrayOf((0,external_vue_types_namespaceObject.toType)('boderType', {})), shared_namespaceObject.PropTypes.string]).def([BORDER_OPTION.ROW]),
|
465
473
|
/**
|
466
474
|
* 分页配置
|
467
475
|
* 默认值为false,不启用分页
|
468
476
|
* 设置为 true,启用分页功能,默认值参考分页组件 Pagination
|
469
477
|
*/
|
470
|
-
pagination:
|
478
|
+
pagination: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool.def(false), shared_namespaceObject.PropTypes.object.def({})]).def(false),
|
471
479
|
/**
|
472
480
|
* 分页组件高度
|
473
481
|
* 在设置了分页配置之后才会生效
|
474
482
|
* 用于配置分页组件的高度,在不同项目中,分页组件高度会影响表格高度计算
|
475
483
|
* 这里设置为可配置项,避免自计算导致的性能问题以及不确定性样式问题
|
476
484
|
*/
|
477
|
-
paginationHeight:
|
485
|
+
paginationHeight: shared_namespaceObject.PropTypes.number.def(TB_FOOT_HEIGHT),
|
478
486
|
/**
|
479
487
|
* 是否启用远程分页
|
480
488
|
*/
|
481
|
-
remotePagination:
|
489
|
+
remotePagination: shared_namespaceObject.PropTypes.bool.def(false),
|
482
490
|
/**
|
483
491
|
* 是否支持跨页全选
|
484
492
|
*/
|
485
|
-
acrossAll:
|
493
|
+
acrossAll: shared_namespaceObject.PropTypes.bool.def(false),
|
486
494
|
/**
|
487
495
|
* 空数据展示
|
488
496
|
*/
|
489
497
|
// emptyText: PropTypes.string.def('暂无数据'),
|
490
|
-
emptyText:
|
498
|
+
emptyText: shared_namespaceObject.PropTypes.string,
|
491
499
|
/**
|
492
500
|
* 单元格数据为空展示
|
493
501
|
*/
|
494
|
-
emptyCellText:
|
502
|
+
emptyCellText: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func.def(function () {
|
495
503
|
return '';
|
496
504
|
})]).def(''),
|
497
505
|
/**
|
@@ -501,54 +509,54 @@ var tableProps = {
|
|
501
509
|
/**
|
502
510
|
* 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
503
511
|
*/
|
504
|
-
rowClass:
|
512
|
+
rowClass: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
505
513
|
/**
|
506
514
|
* 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
507
515
|
*/
|
508
|
-
rowStyle:
|
516
|
+
rowStyle: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
509
517
|
/**
|
510
518
|
* 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
|
511
519
|
*/
|
512
|
-
cellStyle:
|
520
|
+
cellStyle: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
513
521
|
/**
|
514
522
|
* 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
|
515
523
|
*/
|
516
|
-
cellClass:
|
524
|
+
cellClass: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
517
525
|
/**
|
518
526
|
* 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
|
519
527
|
* 详细配置可参考bk-loading组件
|
520
528
|
*/
|
521
|
-
scrollLoading:
|
529
|
+
scrollLoading: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.bool]).def(undefined),
|
522
530
|
/**
|
523
531
|
* 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的展开收起操作(需指定 row-key)
|
524
532
|
*/
|
525
|
-
reserveExpand:
|
533
|
+
reserveExpand: shared_namespaceObject.PropTypes.bool.def(false),
|
526
534
|
/**
|
527
535
|
* 仅对设置了selection的情况下生效
|
528
536
|
* 用于初始化或者更新row已选中状态
|
529
537
|
* 内部使用逻辑为:row[selectionKey],可以为多级选择,但是多级选择只支持 row.child.child
|
530
538
|
*/
|
531
|
-
selectionKey:
|
539
|
+
selectionKey: shared_namespaceObject.PropTypes.string.def(''),
|
532
540
|
/**
|
533
541
|
* 默认选中行
|
534
542
|
* 仅对设置了selection的情况下生效
|
535
543
|
* 值可以为 [key1, key2, key3, ...] 或者 [row1, row2, row3, ...]
|
536
544
|
* 如果设置为key,则 selectionKey 必须设置,内部匹配逻辑为:row[selectionKey] === key
|
537
545
|
*/
|
538
|
-
checked:
|
546
|
+
checked: shared_namespaceObject.PropTypes.array.def([]),
|
539
547
|
/**
|
540
548
|
* 提供自定义判定当前行是否选中
|
541
549
|
* 如果设置了此属性,其他判定均不生效
|
542
550
|
* ({ row, cell, data }) => bool
|
543
551
|
*/
|
544
|
-
isSelectedFn:
|
552
|
+
isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
|
545
553
|
/**
|
546
554
|
* 行数据的 Key,用来优化 Table 的渲染
|
547
555
|
* 此key用于渲染table row的key,便于大数据渲染时的性能优化
|
548
556
|
* 在使用 reserve-selection, reserve-expand 功能的情况下,该属性是必填的。
|
549
557
|
* 类型为 String 时,支持多层访问:user.info.id,同时支持 user.info[0].id
|
550
558
|
*/
|
551
|
-
rowKey:
|
559
|
+
rowKey: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func]).def(TABLE_ROW_ATTRIBUTE.ROW_INDEX),
|
552
560
|
/**
|
553
561
|
* 当内容过长被隐藏时显示 tooltip, 此处为全局配置, 如果只配置此处,整个table都启用
|
554
562
|
* column内部可以单个配置覆盖此配置
|
@@ -560,17 +568,17 @@ var tableProps = {
|
|
560
568
|
* 设置此属性为true则会对源数据进行同步(如:启用selection,勾选时想要自动同步到源数据)
|
561
569
|
* 目前只会对指定了selectionKey的情况下才会对指定的字段数据进行更新,同时需要指定 rowKey,保证匹配到的row是正确的目标对象
|
562
570
|
*/
|
563
|
-
asyncData:
|
571
|
+
asyncData: shared_namespaceObject.PropTypes.bool.def(false),
|
564
572
|
/**
|
565
573
|
* 鼠标划过行样式行为
|
566
574
|
* @param { ROW_HOVER.AUTO }
|
567
575
|
* @param { ROW_HOVER.HIGHLIGHT }
|
568
576
|
*/
|
569
|
-
rowHover:
|
577
|
+
rowHover: shared_namespaceObject.PropTypes.oneOf(ROW_HOVER_OPTIONS).def(ROW_HOVER.HIGHLIGHT),
|
570
578
|
/**
|
571
579
|
* 默认的排序列的 prop 和顺序。它的 prop 属性指定默认的排序的列,order指定默认排序的顺序
|
572
580
|
*/
|
573
|
-
defaultSort:
|
581
|
+
defaultSort: shared_namespaceObject.PropTypes.shape({}).def({}),
|
574
582
|
/**
|
575
583
|
* 配合 column selection 使用
|
576
584
|
* 用于配置渲染行数据的勾选框是否可用
|
@@ -578,9 +586,9 @@ var tableProps = {
|
|
578
586
|
* 如果是函数,则返回 true|false
|
579
587
|
* ({ row, index, isCheckAll }) => boolean
|
580
588
|
*/
|
581
|
-
isRowSelectEnable:
|
589
|
+
isRowSelectEnable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func.def(function () {
|
582
590
|
return true;
|
583
|
-
}),
|
591
|
+
}), shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
|
584
592
|
/**
|
585
593
|
* 当外层容器尺寸改变时,当前组件用什么方式进行重新计算
|
586
594
|
* 默认为 throttle,按照指定频率重新计算
|
@@ -592,7 +600,7 @@ var tableProps = {
|
|
592
600
|
/**
|
593
601
|
* 是否监表格尺寸变化而响应式重新计算渲染
|
594
602
|
*/
|
595
|
-
observerResize:
|
603
|
+
observerResize: shared_namespaceObject.PropTypes.bool.def(true),
|
596
604
|
// 对齐方式
|
597
605
|
align: TableAlign,
|
598
606
|
headerAlign: TableAlign,
|
@@ -601,7 +609,7 @@ var tableProps = {
|
|
601
609
|
* 默认样式为固定在第一行
|
602
610
|
* 需要跟随滚动或者其他样式,可以通过此配置进行覆盖
|
603
611
|
*/
|
604
|
-
prependStyle:
|
612
|
+
prependStyle: shared_namespaceObject.PropTypes.style().def({}),
|
605
613
|
/**
|
606
614
|
* 列排序行为
|
607
615
|
* independent:列与列之间的排序是独立的,互斥的
|
@@ -614,7 +622,7 @@ var tableProps = {
|
|
614
622
|
/**
|
615
623
|
* 是否采用flex布局表格
|
616
624
|
*/
|
617
|
-
isFlex:
|
625
|
+
isFlex: shared_namespaceObject.PropTypes.bool.def(true)
|
618
626
|
};
|
619
627
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
620
628
|
|
@@ -652,13 +660,13 @@ var TableColumnProp = {
|
|
652
660
|
label: LabelFunctionStringType,
|
653
661
|
field: LabelFunctionStringType,
|
654
662
|
render: RenderFunctionStringType,
|
655
|
-
width:
|
663
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
656
664
|
minWidth: StringNumberType(COL_MIN_WIDTH),
|
657
|
-
columnKey:
|
665
|
+
columnKey: shared_namespaceObject.PropTypes.string.def(''),
|
658
666
|
showOverflowTooltip: IOverflowTooltipPropType,
|
659
667
|
type: columnType,
|
660
|
-
resizable:
|
661
|
-
fixed:
|
668
|
+
resizable: shared_namespaceObject.PropTypes.bool.def(true),
|
669
|
+
fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
|
662
670
|
sort: ISortType,
|
663
671
|
filter: IFilterType,
|
664
672
|
colspan: SpanFunctionStringType.def(1),
|
@@ -666,7 +674,7 @@ var TableColumnProp = {
|
|
666
674
|
align: TableAlign,
|
667
675
|
className: RowClassFunctionStringType,
|
668
676
|
prop: LabelFunctionStringType,
|
669
|
-
index:
|
677
|
+
index: shared_namespaceObject.PropTypes.number.def(undefined)
|
670
678
|
};
|
671
679
|
/* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
|
672
680
|
name: 'TableColumn',
|
@@ -771,13 +779,17 @@ var TableColumnProp = {
|
|
771
779
|
}
|
772
780
|
}));
|
773
781
|
;// CONCATENATED MODULE: external "../config-provider"
|
774
|
-
var
|
775
|
-
var
|
776
|
-
const
|
782
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
783
|
+
var config_provider_y = x => () => x
|
784
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
777
785
|
;// CONCATENATED MODULE: external "../virtual-render"
|
778
|
-
var
|
779
|
-
var
|
780
|
-
const
|
786
|
+
var virtual_render_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
787
|
+
var virtual_render_y = x => () => x
|
788
|
+
const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__["default"] });
|
789
|
+
;// CONCATENATED MODULE: external "../virtual-render/virtual-render.less"
|
790
|
+
var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
791
|
+
var virtual_render_less_y = x => () => x
|
792
|
+
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
781
793
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
782
794
|
function _classCallCheck(instance, Constructor) {
|
783
795
|
if (!(instance instanceof Constructor)) {
|
@@ -1398,7 +1410,7 @@ function _toConsumableArray(arr) {
|
|
1398
1410
|
Object.assign(item.className, className);
|
1399
1411
|
});
|
1400
1412
|
};
|
1401
|
-
var _usePrefix = (0,
|
1413
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1402
1414
|
resolveClassName = _usePrefix.resolveClassName;
|
1403
1415
|
var fixedWrapperClass = resolveClassName('table-fixed');
|
1404
1416
|
return {
|
@@ -1412,9 +1424,13 @@ function _toConsumableArray(arr) {
|
|
1412
1424
|
};
|
1413
1425
|
});
|
1414
1426
|
;// CONCATENATED MODULE: external "../loading"
|
1415
|
-
var
|
1416
|
-
var
|
1417
|
-
const
|
1427
|
+
var loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1428
|
+
var loading_y = x => () => x
|
1429
|
+
const loading_namespaceObject = loading_x({ ["BkLoadingMode"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingMode, ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"] });
|
1430
|
+
;// CONCATENATED MODULE: external "../loading/loading.less"
|
1431
|
+
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1432
|
+
var loading_less_y = x => () => x
|
1433
|
+
const loading_less_namespaceObject = loading_less_x({ });
|
1418
1434
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-scroll-loading.tsx
|
1419
1435
|
|
1420
1436
|
|
@@ -1445,6 +1461,8 @@ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingMode"]:
|
|
1445
1461
|
*/
|
1446
1462
|
|
1447
1463
|
|
1464
|
+
|
1465
|
+
|
1448
1466
|
/* harmony default export */ const use_scroll_loading = (function (props, ctx) {
|
1449
1467
|
var refScrollLoading = (0,external_vue_namespaceObject.toRef)(props, 'scrollLoading');
|
1450
1468
|
var getLoadingOption = function getLoadingOption() {
|
@@ -1453,8 +1471,8 @@ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingMode"]:
|
|
1453
1471
|
loading: !!refScrollLoading.value,
|
1454
1472
|
inline: true,
|
1455
1473
|
title: '',
|
1456
|
-
size:
|
1457
|
-
mode:
|
1474
|
+
size: loading_namespaceObject.BkLoadingSize.Normal,
|
1475
|
+
mode: loading_namespaceObject.BkLoadingMode.Default,
|
1458
1476
|
indicator: null
|
1459
1477
|
};
|
1460
1478
|
}
|
@@ -1473,7 +1491,7 @@ const external_loading_namespaceObject = external_loading_x({ ["BkLoadingMode"]:
|
|
1473
1491
|
title = _getLoadingOption.title,
|
1474
1492
|
inline = _getLoadingOption.inline,
|
1475
1493
|
indicator = _getLoadingOption.indicator;
|
1476
|
-
return (_ctx$slots$fixedBotto = (_ctx$slots$fixedBotto2 = (_ctx$slots = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto2 === void 0 ? void 0 : _ctx$slots$fixedBotto2.call(_ctx$slots)) !== null && _ctx$slots$fixedBotto !== void 0 ? _ctx$slots$fixedBotto : (0,external_vue_namespaceObject.createVNode)(
|
1494
|
+
return (_ctx$slots$fixedBotto = (_ctx$slots$fixedBotto2 = (_ctx$slots = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto2 === void 0 ? void 0 : _ctx$slots$fixedBotto2.call(_ctx$slots)) !== null && _ctx$slots$fixedBotto !== void 0 ? _ctx$slots$fixedBotto : (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
1477
1495
|
loading: loading,
|
1478
1496
|
size: size,
|
1479
1497
|
mode: mode,
|
@@ -3972,7 +3990,7 @@ function use_common_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
3972
3990
|
*/
|
3973
3991
|
var useClass = function useClass(props, targetColumns, root, TableSchema, pageData) {
|
3974
3992
|
var _classes2;
|
3975
|
-
var _usePrefix = (0,
|
3993
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
3976
3994
|
resolveClassName = _usePrefix.resolveClassName;
|
3977
3995
|
var _useColumn = use_column(props, targetColumns),
|
3978
3996
|
getColumns = _useColumn.getColumns;
|
@@ -3989,9 +4007,9 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
3989
4007
|
});
|
3990
4008
|
var tableClass = (0,external_vue_namespaceObject.computed)(function () {
|
3991
4009
|
var _classes;
|
3992
|
-
return (0,
|
4010
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, defineProperty_defineProperty(_classes, resolveClassName('table'), true), defineProperty_defineProperty(_classes, 'has-footer', hasFooter.value), defineProperty_defineProperty(_classes, 'has-scroll-y', hasScrollY.value || props.virtualEnabled), defineProperty_defineProperty(_classes, resolveClassName('table-flex'), props.isFlex), _classes), resolvePropBorderToClassStr(props.border));
|
3993
4011
|
});
|
3994
|
-
var headClass = (0,
|
4012
|
+
var headClass = (0,shared_namespaceObject.classes)((_classes2 = {}, defineProperty_defineProperty(_classes2, resolveClassName('table-head'), true), defineProperty_defineProperty(_classes2, 'has-settings', !!props.settings), _classes2));
|
3995
4013
|
var resolvedColumns = (0,external_vue_namespaceObject.computed)(function () {
|
3996
4014
|
return getColumns();
|
3997
4015
|
});
|
@@ -4006,7 +4024,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4006
4024
|
var contentClass = defineProperty_defineProperty({}, resolveClassName('table-body'), true);
|
4007
4025
|
var footerClass = (0,external_vue_namespaceObject.computed)(function () {
|
4008
4026
|
var _classes3;
|
4009
|
-
return (0,
|
4027
|
+
return (0,shared_namespaceObject.classes)((_classes3 = {}, defineProperty_defineProperty(_classes3, resolveClassName('table-footer'), true), defineProperty_defineProperty(_classes3, 'is-hidden', !props.pagination || !props.data.length), _classes3));
|
4010
4028
|
});
|
4011
4029
|
var getTableHeight = function getTableHeight() {
|
4012
4030
|
if (props.height === 'number') {
|
@@ -4229,21 +4247,29 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
|
|
4229
4247
|
};
|
4230
4248
|
};
|
4231
4249
|
;// CONCATENATED MODULE: external "../checkbox"
|
4232
|
-
var
|
4233
|
-
var
|
4234
|
-
const
|
4250
|
+
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4251
|
+
var checkbox_y = x => () => x
|
4252
|
+
const checkbox_namespaceObject = checkbox_x({ ["BkCheckboxGroup"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__.BkCheckboxGroup, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
|
4253
|
+
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
4254
|
+
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4255
|
+
var checkbox_less_y = x => () => x
|
4256
|
+
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
4235
4257
|
;// CONCATENATED MODULE: external "../icon"
|
4236
|
-
var
|
4237
|
-
var
|
4238
|
-
const
|
4258
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4259
|
+
var icon_y = x => () => x
|
4260
|
+
const icon_namespaceObject = icon_x({ ["DownShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownShape, ["Funnel"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Funnel, ["RightShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightShape });
|
4239
4261
|
;// CONCATENATED MODULE: external "../pagination"
|
4240
|
-
var
|
4241
|
-
var
|
4242
|
-
const
|
4262
|
+
var pagination_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4263
|
+
var pagination_y = x => () => x
|
4264
|
+
const pagination_namespaceObject = pagination_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__["default"] });
|
4265
|
+
;// CONCATENATED MODULE: external "../pagination/pagination.less"
|
4266
|
+
var pagination_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4267
|
+
var pagination_less_y = x => () => x
|
4268
|
+
const pagination_less_namespaceObject = pagination_less_x({ });
|
4243
4269
|
;// CONCATENATED MODULE: external "../directives"
|
4244
|
-
var
|
4245
|
-
var
|
4246
|
-
const
|
4270
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4271
|
+
var directives_y = x => () => x
|
4272
|
+
const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkEllipsisInstance });
|
4247
4273
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-cell.tsx
|
4248
4274
|
|
4249
4275
|
|
@@ -4283,12 +4309,12 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4283
4309
|
name: 'TableCell',
|
4284
4310
|
props: {
|
4285
4311
|
column: IColumnType,
|
4286
|
-
row:
|
4312
|
+
row: shared_namespaceObject.PropTypes.any.def({}),
|
4287
4313
|
parentSetting: IOverflowTooltipPropType,
|
4288
|
-
title:
|
4289
|
-
observerResize:
|
4290
|
-
isHead:
|
4291
|
-
headExplain:
|
4314
|
+
title: shared_namespaceObject.PropTypes.string.def(undefined),
|
4315
|
+
observerResize: shared_namespaceObject.PropTypes.bool.def(true),
|
4316
|
+
isHead: shared_namespaceObject.PropTypes.bool.def(false),
|
4317
|
+
headExplain: shared_namespaceObject.PropTypes.string,
|
4292
4318
|
resizerWay: (0,external_vue_types_namespaceObject.toType)('ResizerWay', {
|
4293
4319
|
"default": ResizerWay.DEBOUNCE
|
4294
4320
|
})
|
@@ -4408,7 +4434,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4408
4434
|
};
|
4409
4435
|
var resolveOverflowTooltip = function resolveOverflowTooltip() {
|
4410
4436
|
var target = getEllipsisTarget();
|
4411
|
-
if (!target || !(0,
|
4437
|
+
if (!target || !(0,shared_namespaceObject.isElement)(target)) {
|
4412
4438
|
return;
|
4413
4439
|
}
|
4414
4440
|
var _resolveTooltipOption = resolveTooltipOption(),
|
@@ -4416,7 +4442,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4416
4442
|
disabled = _resolveTooltipOption.disabled;
|
4417
4443
|
isTipsEnabled.value = !disabled;
|
4418
4444
|
if (mode === 'auto') {
|
4419
|
-
isTipsEnabled.value = (0,
|
4445
|
+
isTipsEnabled.value = (0,shared_namespaceObject.hasOverflowEllipsis)(target);
|
4420
4446
|
}
|
4421
4447
|
if (mode === 'static') {
|
4422
4448
|
isTipsEnabled.value = true;
|
@@ -4424,7 +4450,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4424
4450
|
if (isTipsEnabled.value) {
|
4425
4451
|
var bindings = (0,external_vue_namespaceObject.ref)(resolveTooltipOption());
|
4426
4452
|
if (bkEllipsisIns === null) {
|
4427
|
-
bkEllipsisIns = (0,
|
4453
|
+
bkEllipsisIns = (0,directives_namespaceObject.bkEllipsisInstance)(target, {
|
4428
4454
|
disabled: bindings.value.disabled,
|
4429
4455
|
content: bindings.value.content,
|
4430
4456
|
mode: bindings.value.mode,
|
@@ -4507,9 +4533,13 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
|
|
4507
4533
|
}
|
4508
4534
|
}));
|
4509
4535
|
;// CONCATENATED MODULE: external "../exception"
|
4510
|
-
var
|
4511
|
-
var
|
4512
|
-
const
|
4536
|
+
var exception_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4537
|
+
var exception_y = x => () => x
|
4538
|
+
const exception_namespaceObject = exception_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__["default"] });
|
4539
|
+
;// CONCATENATED MODULE: external "../exception/exception.less"
|
4540
|
+
var exception_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4541
|
+
var exception_less_y = x => () => x
|
4542
|
+
const exception_less_namespaceObject = exception_less_x({ });
|
4513
4543
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/body-empty.tsx
|
4514
4544
|
|
4515
4545
|
/*
|
@@ -4541,16 +4571,17 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
4541
4571
|
|
4542
4572
|
|
4543
4573
|
|
4574
|
+
|
4544
4575
|
/* harmony default export */ const body_empty = ((0,external_vue_namespaceObject.defineComponent)({
|
4545
4576
|
name: 'BodyEmpty',
|
4546
4577
|
props: {
|
4547
|
-
list:
|
4548
|
-
filterList:
|
4549
|
-
emptyText:
|
4578
|
+
list: shared_namespaceObject.PropTypes.array.def([]),
|
4579
|
+
filterList: shared_namespaceObject.PropTypes.array.def([]),
|
4580
|
+
emptyText: shared_namespaceObject.PropTypes.string
|
4550
4581
|
},
|
4551
4582
|
emits: ['change'],
|
4552
4583
|
setup: function setup(props) {
|
4553
|
-
var t = (0,
|
4584
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4554
4585
|
var localEmptyText = (0,external_vue_namespaceObject.computed)(function () {
|
4555
4586
|
if (props.emptyText === undefined) {
|
4556
4587
|
return t.value.emptyText;
|
@@ -4561,7 +4592,7 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
4561
4592
|
return props.list.length === 0 ? 'empty' : 'search-empty';
|
4562
4593
|
});
|
4563
4594
|
return function () {
|
4564
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
4595
|
+
return (0,external_vue_namespaceObject.createVNode)(exception_namespaceObject["default"], {
|
4565
4596
|
"scene": "part",
|
4566
4597
|
"type": type.value,
|
4567
4598
|
"description": localEmptyText.value
|
@@ -4570,17 +4601,25 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
4570
4601
|
}
|
4571
4602
|
}));
|
4572
4603
|
;// CONCATENATED MODULE: external "../button"
|
4573
|
-
var
|
4574
|
-
var
|
4575
|
-
const
|
4604
|
+
var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4605
|
+
var button_y = x => () => x
|
4606
|
+
const button_namespaceObject = button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__["default"] });
|
4607
|
+
;// CONCATENATED MODULE: external "../button/button.less"
|
4608
|
+
var button_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4609
|
+
var button_less_y = x => () => x
|
4610
|
+
const button_less_namespaceObject = button_less_x({ });
|
4576
4611
|
;// CONCATENATED MODULE: external "../icon/"
|
4577
4612
|
var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4578
4613
|
var _y = x => () => x
|
4579
|
-
const _namespaceObject = _x({ ["AngleDownFill"]: () =>
|
4614
|
+
const _namespaceObject = _x({ ["AngleDownFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleDownFill, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.AngleUpFill, ["CloseLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.CloseLine, ["CogShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon__3efece53__.CogShape });
|
4580
4615
|
;// CONCATENATED MODULE: external "../popover"
|
4581
|
-
var
|
4582
|
-
var
|
4583
|
-
const
|
4616
|
+
var popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4617
|
+
var popover_y = x => () => x
|
4618
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"] });
|
4619
|
+
;// CONCATENATED MODULE: external "../popover/popover.less"
|
4620
|
+
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
4621
|
+
var popover_less_y = x => () => x
|
4622
|
+
const popover_less_namespaceObject = popover_less_x({ });
|
4584
4623
|
;// CONCATENATED MODULE: ../../packages/table/src/plugins/settings.tsx
|
4585
4624
|
|
4586
4625
|
|
@@ -4619,6 +4658,10 @@ const external_popover_namespaceObject = external_popover_x({ ["default"]: () =>
|
|
4619
4658
|
|
4620
4659
|
|
4621
4660
|
|
4661
|
+
|
4662
|
+
|
4663
|
+
|
4664
|
+
|
4622
4665
|
function _isSlot(s) {
|
4623
4666
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
4624
4667
|
}
|
@@ -4626,15 +4669,15 @@ function _isSlot(s) {
|
|
4626
4669
|
name: 'Settings',
|
4627
4670
|
props: {
|
4628
4671
|
settings: ITableSettings,
|
4629
|
-
columns:
|
4672
|
+
columns: shared_namespaceObject.PropTypes.arrayOf(IColumnType).def([])
|
4630
4673
|
},
|
4631
4674
|
emits: ['change'],
|
4632
4675
|
setup: function setup(props, _ref) {
|
4633
4676
|
var emit = _ref.emit,
|
4634
4677
|
slots = _ref.slots;
|
4635
|
-
var _usePrefix = (0,
|
4678
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
4636
4679
|
resolveClassName = _usePrefix.resolveClassName;
|
4637
|
-
var t = (0,
|
4680
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4638
4681
|
var defaultSizeList = createDefaultSizeList(t);
|
4639
4682
|
var resolvedColVal = function resolvedColVal(item, index) {
|
4640
4683
|
return resolvePropVal(item, ['id', 'field', 'type'], [item, index]);
|
@@ -4790,7 +4833,7 @@ function _isSlot(s) {
|
|
4790
4833
|
});
|
4791
4834
|
return function () {
|
4792
4835
|
var _localSettings$value$2;
|
4793
|
-
return props.settings ? (0,external_vue_namespaceObject.createVNode)(
|
4836
|
+
return props.settings ? (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
4794
4837
|
"trigger": (_localSettings$value$2 = localSettings.value.trigger) !== null && _localSettings$value$2 !== void 0 ? _localSettings$value$2 : 'manual',
|
4795
4838
|
"isShow": isShow.value,
|
4796
4839
|
"placement": "bottom-end",
|
@@ -4829,7 +4872,7 @@ function _isSlot(s) {
|
|
4829
4872
|
}, [t.value.setting.fields.subtitle(localSettings.value.limit)]) : '']), isLimit.value ? '' : (0,external_vue_namespaceObject.createVNode)("span", {
|
4830
4873
|
"class": "check-all",
|
4831
4874
|
"onClick": handleCheckAllClick
|
4832
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
4875
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
4833
4876
|
"label": t.value.setting.fields.selectAll,
|
4834
4877
|
"indeterminate": Boolean(indeterminate.value),
|
4835
4878
|
"modelValue": checkedFields.value.length > 0
|
@@ -4837,7 +4880,7 @@ function _isSlot(s) {
|
|
4837
4880
|
"default": function _default() {
|
4838
4881
|
return [t.value.setting.fields.selectAll];
|
4839
4882
|
}
|
4840
|
-
})])]), (0,external_vue_namespaceObject.createVNode)(
|
4883
|
+
})])]), (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject.BkCheckboxGroup, {
|
4841
4884
|
"class": "setting-body-fields",
|
4842
4885
|
"modelValue": checkedFields.value,
|
4843
4886
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
@@ -4847,7 +4890,7 @@ function _isSlot(s) {
|
|
4847
4890
|
var _slot;
|
4848
4891
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
4849
4892
|
"class": "field-item"
|
4850
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
4893
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
4851
4894
|
"checked": checkedFields.value.includes(resolvedColVal(item, index)),
|
4852
4895
|
"label": resolvedColVal(item, index),
|
4853
4896
|
"disabled": isItemReadonly(item, index)
|
@@ -4864,7 +4907,7 @@ function _isSlot(s) {
|
|
4864
4907
|
"class": "setting-body-line-height"
|
4865
4908
|
}, [t.value.setting.lineHeight.title, (0,external_vue_namespaceObject.createTextVNode)("\uFF1A"), renderSize()]) : '']), (0,external_vue_namespaceObject.createVNode)("div", {
|
4866
4909
|
"class": "setting-footer"
|
4867
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
4910
|
+
}, [(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
4868
4911
|
"theme": "primary",
|
4869
4912
|
"style": buttonStyle,
|
4870
4913
|
"onClick": handleSaveClick
|
@@ -4872,7 +4915,7 @@ function _isSlot(s) {
|
|
4872
4915
|
"default": function _default() {
|
4873
4916
|
return [t.value.setting.options.ok];
|
4874
4917
|
}
|
4875
|
-
}), (0,external_vue_namespaceObject.createVNode)(
|
4918
|
+
}), (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
4876
4919
|
"style": buttonStyle,
|
4877
4920
|
"onClick": handleCancelClick
|
4878
4921
|
}, {
|
@@ -4925,6 +4968,11 @@ function _isSlot(s) {
|
|
4925
4968
|
|
4926
4969
|
|
4927
4970
|
|
4971
|
+
|
4972
|
+
|
4973
|
+
|
4974
|
+
|
4975
|
+
|
4928
4976
|
function head_filter_isSlot(s) {
|
4929
4977
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
4930
4978
|
}
|
@@ -4932,14 +4980,14 @@ function head_filter_isSlot(s) {
|
|
4932
4980
|
name: 'HeadFilter',
|
4933
4981
|
props: {
|
4934
4982
|
column: IColumnType,
|
4935
|
-
height:
|
4983
|
+
height: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT)
|
4936
4984
|
},
|
4937
4985
|
emits: ['change', 'filterSave'],
|
4938
4986
|
setup: function setup(props, _ref) {
|
4939
4987
|
var emit = _ref.emit;
|
4940
|
-
var _usePrefix = (0,
|
4988
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
4941
4989
|
resolveClassName = _usePrefix.resolveClassName;
|
4942
|
-
var t = (0,
|
4990
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4943
4991
|
var column = props.column;
|
4944
4992
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props.column),
|
4945
4993
|
filter = _toRefs.filter;
|
@@ -4969,9 +5017,9 @@ function head_filter_isSlot(s) {
|
|
4969
5017
|
});
|
4970
5018
|
var headClass = (0,external_vue_namespaceObject.computed)(function () {
|
4971
5019
|
var _classes;
|
4972
|
-
return (0,
|
5020
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, defineProperty_defineProperty(_classes, resolveClassName('table-head-action'), true), defineProperty_defineProperty(_classes, 'column-filter', true), defineProperty_defineProperty(_classes, '--row-height', "".concat(props.height, "px")), defineProperty_defineProperty(_classes, "active", state.checked.length), defineProperty_defineProperty(_classes, "opened", state.isOpen), _classes));
|
4973
5021
|
});
|
4974
|
-
var headFilterContentClass = (0,
|
5022
|
+
var headFilterContentClass = (0,shared_namespaceObject.classes)(defineProperty_defineProperty({}, resolveClassName('table-head-filter'), true));
|
4975
5023
|
var refVirtualRender = (0,external_vue_namespaceObject.ref)(null);
|
4976
5024
|
var handlePopShow = function handlePopShow(isOpen) {
|
4977
5025
|
state.isOpen = isOpen;
|
@@ -5054,7 +5102,7 @@ function head_filter_isSlot(s) {
|
|
5054
5102
|
"class": "btn-filter-save disabled"
|
5055
5103
|
}, [text]);
|
5056
5104
|
}
|
5057
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5105
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
5058
5106
|
"theme": "primary",
|
5059
5107
|
"size": "small",
|
5060
5108
|
"style": "width: 56px; margin-right: 8px;",
|
@@ -5072,7 +5120,7 @@ function head_filter_isSlot(s) {
|
|
5072
5120
|
if (disabled) {
|
5073
5121
|
return '';
|
5074
5122
|
}
|
5075
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5123
|
+
return (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
5076
5124
|
"style": "width: 56px;",
|
5077
5125
|
"size": "small",
|
5078
5126
|
"disabled": state.checked.length === 0,
|
@@ -5100,7 +5148,7 @@ function head_filter_isSlot(s) {
|
|
5100
5148
|
return scope.data.map(function (item) {
|
5101
5149
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
5102
5150
|
"class": "list-item"
|
5103
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
5151
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
5104
5152
|
"label": item.value,
|
5105
5153
|
"key": item.$index,
|
5106
5154
|
"immediateEmitChange": false,
|
@@ -5131,11 +5179,11 @@ function head_filter_isSlot(s) {
|
|
5131
5179
|
});
|
5132
5180
|
*/
|
5133
5181
|
return function () {
|
5134
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5182
|
+
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
5135
5183
|
"trigger": "click",
|
5136
5184
|
"isShow": state.isOpen,
|
5137
5185
|
"placement": "bottom-start",
|
5138
|
-
"renderType":
|
5186
|
+
"renderType": shared_namespaceObject.RenderType.SHOWN,
|
5139
5187
|
"arrow": false,
|
5140
5188
|
"offset": 0
|
5141
5189
|
}, {
|
@@ -5149,18 +5197,18 @@ function head_filter_isSlot(s) {
|
|
5149
5197
|
}
|
5150
5198
|
}), {
|
5151
5199
|
"default": function _default() {
|
5152
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5200
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Funnel, {
|
5153
5201
|
"class": headClass.value
|
5154
5202
|
}, null);
|
5155
5203
|
},
|
5156
5204
|
content: function content() {
|
5157
5205
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
5158
5206
|
"class": headFilterContentClass
|
5159
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
5207
|
+
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject.BkCheckboxGroup, {
|
5160
5208
|
"class": "content-list"
|
5161
5209
|
}, {
|
5162
5210
|
"default": function _default() {
|
5163
|
-
return [(0,external_vue_namespaceObject.createVNode)(
|
5211
|
+
return [(0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
5164
5212
|
"maxHeight": maxHeight.value,
|
5165
5213
|
"height": height.value,
|
5166
5214
|
"lineHeight": 32,
|
@@ -5264,15 +5312,15 @@ function _slicedToArray(arr, i) {
|
|
5264
5312
|
name: 'HeadSort',
|
5265
5313
|
props: {
|
5266
5314
|
column: IColumnType,
|
5267
|
-
defaultSort:
|
5268
|
-
active:
|
5315
|
+
defaultSort: shared_namespaceObject.PropTypes.oneOf(SORT_OPTIONS).def(SORT_OPTION.NULL),
|
5316
|
+
active: shared_namespaceObject.PropTypes.bool
|
5269
5317
|
},
|
5270
5318
|
emits: ['change'],
|
5271
5319
|
setup: function setup(props, _ref) {
|
5272
5320
|
var _ref2, _props$column$sort$va, _props$column;
|
5273
5321
|
var emit = _ref.emit,
|
5274
5322
|
expose = _ref.expose;
|
5275
|
-
var _usePrefix = (0,
|
5323
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
5276
5324
|
resolveClassName = _usePrefix.resolveClassName;
|
5277
5325
|
var defSort = (_ref2 = (_props$column$sort$va = (_props$column = props.column) === null || _props$column === void 0 || (_props$column = _props$column.sort) === null || _props$column === void 0 ? void 0 : _props$column.value) !== null && _props$column$sort$va !== void 0 ? _props$column$sort$va : props.defaultSort) !== null && _ref2 !== void 0 ? _ref2 : SORT_OPTION.NULL;
|
5278
5326
|
var sortType = (0,external_vue_namespaceObject.ref)(defSort);
|
@@ -5371,6 +5419,7 @@ var use_head_cell_this = undefined;
|
|
5371
5419
|
|
5372
5420
|
|
5373
5421
|
|
5422
|
+
|
5374
5423
|
function use_head_cell_isSlot(s) {
|
5375
5424
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
5376
5425
|
}
|
@@ -5462,7 +5511,7 @@ function use_head_cell_isSlot(s) {
|
|
5462
5511
|
index: index,
|
5463
5512
|
isCheckAll: isAll
|
5464
5513
|
});
|
5465
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5514
|
+
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
5466
5515
|
"onChange": handleChecked,
|
5467
5516
|
"disabled": !isEnable,
|
5468
5517
|
"modelValue": isChecked,
|
@@ -5645,11 +5694,13 @@ function use_render_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
5645
5694
|
|
5646
5695
|
|
5647
5696
|
|
5697
|
+
|
5698
|
+
|
5648
5699
|
function use_render_isSlot(s) {
|
5649
5700
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
5650
5701
|
}
|
5651
5702
|
/* harmony default export */ const use_render = (function (props, context, tableResp, styleRef, head, root, resetTableHeight) {
|
5652
|
-
var t = (0,
|
5703
|
+
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
5653
5704
|
var uuid = esm_browser_v4();
|
5654
5705
|
var formatData = (0,external_vue_namespaceObject.computed)(function () {
|
5655
5706
|
return tableResp.formatData;
|
@@ -5741,7 +5792,7 @@ function use_render_isSlot(s) {
|
|
5741
5792
|
}, [renderColGroup(), renderTBody(rows)]);
|
5742
5793
|
};
|
5743
5794
|
var renderTableFooter = function renderTableFooter(options) {
|
5744
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
5795
|
+
return (0,external_vue_namespaceObject.createVNode)(pagination_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
5745
5796
|
"style": "width: 100%;"
|
5746
5797
|
}, options, {
|
5747
5798
|
"modelValue": options.current,
|
@@ -6041,7 +6092,7 @@ function use_render_isSlot(s) {
|
|
6041
6092
|
var getExpandCell = function getExpandCell(row) {
|
6042
6093
|
var _context$slots$expand3, _context$slots$expand4, _context$slots4;
|
6043
6094
|
var isExpand = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND);
|
6044
|
-
var icon = isExpand ? (0,external_vue_namespaceObject.createVNode)(
|
6095
|
+
var icon = isExpand ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownShape, null, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.RightShape, null, null);
|
6045
6096
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [[icon, (_context$slots$expand3 = (_context$slots$expand4 = (_context$slots4 = context.slots).expandContent) === null || _context$slots$expand4 === void 0 ? void 0 : _context$slots$expand4.call(_context$slots4, row)) !== null && _context$slots$expand3 !== void 0 ? _context$slots$expand3 : '']]);
|
6046
6097
|
};
|
6047
6098
|
var handleRowExpandClick = function handleRowExpandClick(row, column, index, rows, e) {
|
@@ -6098,7 +6149,7 @@ function use_render_isSlot(s) {
|
|
6098
6149
|
index: index,
|
6099
6150
|
isCheckAll: isAll
|
6100
6151
|
});
|
6101
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
6152
|
+
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
6102
6153
|
"onChange": handleChecked,
|
6103
6154
|
"disabled": !isEnable,
|
6104
6155
|
"modelValue": isChecked,
|
@@ -6190,7 +6241,7 @@ function use_render_isSlot(s) {
|
|
6190
6241
|
*/
|
6191
6242
|
var renderColGroup = function renderColGroup() {
|
6192
6243
|
return (0,external_vue_namespaceObject.createVNode)("colgroup", null, [(filterColGroups.value || []).map(function (column, _index) {
|
6193
|
-
var colCls = (0,
|
6244
|
+
var colCls = (0,shared_namespaceObject.classes)({
|
6194
6245
|
// active: isColActive(index),
|
6195
6246
|
});
|
6196
6247
|
var width = "".concat(resolveWidth(tableResp.getColumnOrderWidth(column))).replace(/px$/i, '');
|
@@ -6255,6 +6306,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6255
6306
|
|
6256
6307
|
|
6257
6308
|
|
6309
|
+
|
6258
6310
|
/* harmony default export */ const table = ((0,external_vue_namespaceObject.defineComponent)({
|
6259
6311
|
// eslint-disable-next-line vue/no-reserved-component-names
|
6260
6312
|
name: 'Table',
|
@@ -6305,7 +6357,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6305
6357
|
fixedColumns = _useFixedColumn.fixedColumns,
|
6306
6358
|
resolveFixedColumns = _useFixedColumn.resolveFixedColumns,
|
6307
6359
|
updateFixClass = _useFixedColumn.updateFixClass;
|
6308
|
-
var _usePrefix = (0,
|
6360
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
6309
6361
|
resolveClassName = _usePrefix.resolveClassName;
|
6310
6362
|
var styleRef = (0,external_vue_namespaceObject.computed)(function () {
|
6311
6363
|
return {
|
@@ -6388,7 +6440,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6388
6440
|
Object.assign(tableSchema.formatData.layout, pos || {});
|
6389
6441
|
var bottom = pos.bottom;
|
6390
6442
|
if (bottom <= 2 && preBottom > bottom) {
|
6391
|
-
(0,
|
6443
|
+
(0,shared_namespaceObject.debounce)(60, function () {
|
6392
6444
|
ctx.emit(EMIT_EVENTS.SCROLL_BOTTOM, table_objectSpread(table_objectSpread({}, pos), {}, {
|
6393
6445
|
translateX: translateX,
|
6394
6446
|
translateY: translateY
|
@@ -6443,7 +6495,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6443
6495
|
}, [renderTableHeadSchema(), (0,external_vue_namespaceObject.createVNode)("div", {
|
6444
6496
|
"class": "col-resize-drag",
|
6445
6497
|
"style": resizeHeadColStyle.value
|
6446
|
-
}, null)]), (0,external_vue_namespaceObject.createVNode)(
|
6498
|
+
}, null)]), (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
6447
6499
|
"ref": refVirtualRender,
|
6448
6500
|
"lineHeight": tableSchema.formatData.settings.height,
|
6449
6501
|
"height": contentStyle.height,
|
@@ -6499,7 +6551,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6499
6551
|
|
6500
6552
|
|
6501
6553
|
|
6502
|
-
var BkTable = (0,
|
6554
|
+
var BkTable = (0,shared_namespaceObject.withInstallProps)(table, {
|
6503
6555
|
Column: table_column
|
6504
6556
|
});
|
6505
6557
|
/* harmony default export */ const src = (BkTable);
|