bkui-vue 1.0.3-beta.27 → 1.0.3-beta.29
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 +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.umd.js +1 -1
- package/lib/affix/index.js +15 -13
- package/lib/alert/index.js +24 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +22 -20
- package/lib/badge/index.js +21 -19
- package/lib/breadcrumb/index.js +26 -24
- package/lib/button/index.js +37 -28
- package/lib/card/index.js +43 -35
- package/lib/cascader/index.js +100 -80
- package/lib/checkbox/index.js +34 -32
- package/lib/code-diff/index.js +14 -12
- package/lib/collapse/index.js +41 -39
- package/lib/collapse-transition/index.js +9 -8
- package/lib/color-picker/index.js +50 -48
- package/lib/components.js +60 -505
- package/lib/config-provider/index.js +9 -8
- package/lib/container/index.js +21 -19
- package/lib/date-picker/index.js +73 -65
- package/lib/dialog/index.js +63 -49
- package/lib/directives/index.js +13 -12
- package/lib/dist.index.js +5 -62
- package/lib/divider/index.js +15 -13
- package/lib/dropdown/index.js +32 -24
- package/lib/exception/index.js +13 -11
- package/lib/fixed-navbar/index.js +15 -13
- package/lib/form/index.js +50 -48
- package/lib/hooks.js +1 -48
- package/lib/icon/index.js +1 -0
- package/lib/image/index.js +39 -38
- package/lib/index.js +7 -72
- package/lib/info-box/index.js +21 -13
- package/lib/input/index.js +61 -59
- package/lib/link/index.js +15 -13
- package/lib/loading/index.js +19 -17
- package/lib/locale/index.js +1 -0
- package/lib/menu/index.js +15 -13
- package/lib/message/index.js +40 -38
- package/lib/modal/index.js +43 -41
- package/lib/navigation/index.js +16 -14
- package/lib/notify/index.js +33 -31
- package/lib/overflow-title/index.js +22 -14
- package/lib/pagination/index.js +67 -51
- package/lib/plugin-popover/index.js +54 -53
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.js +42 -28
- package/lib/popover/index.js +54 -52
- package/lib/popover2/index.js +4 -3
- package/lib/preset.js +18 -64
- package/lib/process/index.js +27 -26
- package/lib/progress/index.js +28 -26
- package/lib/radio/index.js +34 -32
- package/lib/rate/index.js +24 -22
- package/lib/resize-layout/index.js +27 -25
- package/lib/search-select/index.js +68 -49
- package/lib/select/index.js +168 -129
- package/lib/shared/index.js +1 -0
- package/lib/sideslider/index.js +22 -14
- package/lib/slider/index.js +36 -22
- package/lib/steps/index.js +30 -28
- package/lib/swiper/index.js +16 -14
- package/lib/switcher/index.js +31 -29
- package/lib/tab/index.js +46 -44
- package/lib/table/index.js +207 -148
- package/lib/table-column/index.js +43 -42
- package/lib/tag/index.js +21 -19
- package/lib/tag-input/index.js +80 -65
- package/lib/time-picker/index.js +9 -7
- package/lib/timeline/index.js +13 -12
- package/lib/transfer/index.js +51 -36
- package/lib/tree/index.js +92 -72
- package/lib/upload/index.js +63 -48
- package/lib/virtual-render/index.js +35 -33
- package/package.json +1 -1
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
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
5
|
/******/ // The require scope
|
@@ -33,7 +34,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
33
34
|
;// CONCATENATED MODULE: external "../shared"
|
34
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
36
|
var y = x => () => x
|
36
|
-
const
|
37
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
37
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
38
39
|
function _typeof(o) {
|
39
40
|
"@babel/helpers - typeof";
|
@@ -365,16 +366,16 @@ var tableProps = {
|
|
365
366
|
/**
|
366
367
|
* 渲染列表
|
367
368
|
*/
|
368
|
-
data:
|
369
|
+
data: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def([]),
|
369
370
|
/**
|
370
371
|
* Table 列渲染
|
371
372
|
*/
|
372
|
-
columns:
|
373
|
+
columns: shared_namespaceObject.PropTypes.arrayOf(IColumnType).def([]),
|
373
374
|
/**
|
374
375
|
* 当前选中列
|
375
376
|
* 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
|
376
377
|
*/
|
377
|
-
activeColumn:
|
378
|
+
activeColumn: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number.def(-1), shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.number.def(-1))]),
|
378
379
|
/**
|
379
380
|
* 表格列选中方式
|
380
381
|
* 支持:单列(single),多列(multi),禁用(disabled)
|
@@ -390,7 +391,7 @@ var tableProps = {
|
|
390
391
|
/**
|
391
392
|
* 是否为斑马纹 Table
|
392
393
|
*/
|
393
|
-
stripe:
|
394
|
+
stripe: shared_namespaceObject.PropTypes.bool.def(false),
|
394
395
|
/**
|
395
396
|
* 设置表格最小高度
|
396
397
|
* 默认:300
|
@@ -409,18 +410,18 @@ var tableProps = {
|
|
409
410
|
/**
|
410
411
|
* Thead行高,可以为固定数值类型
|
411
412
|
*/
|
412
|
-
headHeight:
|
413
|
+
headHeight: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT),
|
413
414
|
/**
|
414
415
|
* 是否显示Head
|
415
416
|
*/
|
416
|
-
showHead:
|
417
|
+
showHead: shared_namespaceObject.PropTypes.bool.def(true),
|
417
418
|
/**
|
418
419
|
* 排序时对需要排序的字符串数值进行格式化
|
419
420
|
* 这里需要配置为正则或者回调函数,(str) => string | number | boolean
|
420
421
|
* 如果配置为正则,程序会提取匹配到的第一个结果尝试转换为数值
|
421
422
|
* 如果为多个,程序会顺序执行所有正则表达式,直到转换成功
|
422
423
|
*/
|
423
|
-
sortValFormat:
|
424
|
+
sortValFormat: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def(['']),
|
424
425
|
/**
|
425
426
|
* table header config
|
426
427
|
*/
|
@@ -433,42 +434,42 @@ var tableProps = {
|
|
433
434
|
* 是否启用虚拟渲染 & 滚动
|
434
435
|
* 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
|
435
436
|
*/
|
436
|
-
virtualEnabled:
|
437
|
+
virtualEnabled: shared_namespaceObject.PropTypes.bool.def(false),
|
437
438
|
/**
|
438
439
|
* 表格边框显示设置,可以是一个组合
|
439
440
|
* 生效规则: 除非单独设置 none,否则会追加每个设置
|
440
441
|
*/
|
441
|
-
border:
|
442
|
+
border: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.arrayOf((0,external_vue_types_namespaceObject.toType)('boderType', {})), shared_namespaceObject.PropTypes.string]).def([BORDER_OPTION.ROW]),
|
442
443
|
/**
|
443
444
|
* 分页配置
|
444
445
|
* 默认值为false,不启用分页
|
445
446
|
* 设置为 true,启用分页功能,默认值参考分页组件 Pagination
|
446
447
|
*/
|
447
|
-
pagination:
|
448
|
+
pagination: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool.def(false), shared_namespaceObject.PropTypes.object.def({})]).def(false),
|
448
449
|
/**
|
449
450
|
* 分页组件高度
|
450
451
|
* 在设置了分页配置之后才会生效
|
451
452
|
* 用于配置分页组件的高度,在不同项目中,分页组件高度会影响表格高度计算
|
452
453
|
* 这里设置为可配置项,避免自计算导致的性能问题以及不确定性样式问题
|
453
454
|
*/
|
454
|
-
paginationHeight:
|
455
|
+
paginationHeight: shared_namespaceObject.PropTypes.number.def(TB_FOOT_HEIGHT),
|
455
456
|
/**
|
456
457
|
* 是否启用远程分页
|
457
458
|
*/
|
458
|
-
remotePagination:
|
459
|
+
remotePagination: shared_namespaceObject.PropTypes.bool.def(false),
|
459
460
|
/**
|
460
461
|
* 是否支持跨页全选
|
461
462
|
*/
|
462
|
-
acrossAll:
|
463
|
+
acrossAll: shared_namespaceObject.PropTypes.bool.def(false),
|
463
464
|
/**
|
464
465
|
* 空数据展示
|
465
466
|
*/
|
466
467
|
// emptyText: PropTypes.string.def('暂无数据'),
|
467
|
-
emptyText:
|
468
|
+
emptyText: shared_namespaceObject.PropTypes.string,
|
468
469
|
/**
|
469
470
|
* 单元格数据为空展示
|
470
471
|
*/
|
471
|
-
emptyCellText:
|
472
|
+
emptyCellText: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func.def(function () {
|
472
473
|
return '';
|
473
474
|
})]).def(''),
|
474
475
|
/**
|
@@ -478,54 +479,54 @@ var tableProps = {
|
|
478
479
|
/**
|
479
480
|
* 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
480
481
|
*/
|
481
|
-
rowClass:
|
482
|
+
rowClass: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
482
483
|
/**
|
483
484
|
* 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
484
485
|
*/
|
485
|
-
rowStyle:
|
486
|
+
rowStyle: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
486
487
|
/**
|
487
488
|
* 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
|
488
489
|
*/
|
489
|
-
cellStyle:
|
490
|
+
cellStyle: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
490
491
|
/**
|
491
492
|
* 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
|
492
493
|
*/
|
493
|
-
cellClass:
|
494
|
+
cellClass: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.func]).def({}),
|
494
495
|
/**
|
495
496
|
* 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
|
496
497
|
* 详细配置可参考bk-loading组件
|
497
498
|
*/
|
498
|
-
scrollLoading:
|
499
|
+
scrollLoading: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.object, shared_namespaceObject.PropTypes.bool]).def(undefined),
|
499
500
|
/**
|
500
501
|
* 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的展开收起操作(需指定 row-key)
|
501
502
|
*/
|
502
|
-
reserveExpand:
|
503
|
+
reserveExpand: shared_namespaceObject.PropTypes.bool.def(false),
|
503
504
|
/**
|
504
505
|
* 仅对设置了selection的情况下生效
|
505
506
|
* 用于初始化或者更新row已选中状态
|
506
507
|
* 内部使用逻辑为:row[selectionKey],可以为多级选择,但是多级选择只支持 row.child.child
|
507
508
|
*/
|
508
|
-
selectionKey:
|
509
|
+
selectionKey: shared_namespaceObject.PropTypes.string.def(''),
|
509
510
|
/**
|
510
511
|
* 默认选中行
|
511
512
|
* 仅对设置了selection的情况下生效
|
512
513
|
* 值可以为 [key1, key2, key3, ...] 或者 [row1, row2, row3, ...]
|
513
514
|
* 如果设置为key,则 selectionKey 必须设置,内部匹配逻辑为:row[selectionKey] === key
|
514
515
|
*/
|
515
|
-
checked:
|
516
|
+
checked: shared_namespaceObject.PropTypes.array.def([]),
|
516
517
|
/**
|
517
518
|
* 提供自定义判定当前行是否选中
|
518
519
|
* 如果设置了此属性,其他判定均不生效
|
519
520
|
* ({ row, cell, data }) => bool
|
520
521
|
*/
|
521
|
-
isSelectedFn:
|
522
|
+
isSelectedFn: shared_namespaceObject.PropTypes.func.def(undefined),
|
522
523
|
/**
|
523
524
|
* 行数据的 Key,用来优化 Table 的渲染
|
524
525
|
* 此key用于渲染table row的key,便于大数据渲染时的性能优化
|
525
526
|
* 在使用 reserve-selection, reserve-expand 功能的情况下,该属性是必填的。
|
526
527
|
* 类型为 String 时,支持多层访问:user.info.id,同时支持 user.info[0].id
|
527
528
|
*/
|
528
|
-
rowKey:
|
529
|
+
rowKey: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.string, shared_namespaceObject.PropTypes.func]).def(TABLE_ROW_ATTRIBUTE.ROW_INDEX),
|
529
530
|
/**
|
530
531
|
* 当内容过长被隐藏时显示 tooltip, 此处为全局配置, 如果只配置此处,整个table都启用
|
531
532
|
* column内部可以单个配置覆盖此配置
|
@@ -537,17 +538,17 @@ var tableProps = {
|
|
537
538
|
* 设置此属性为true则会对源数据进行同步(如:启用selection,勾选时想要自动同步到源数据)
|
538
539
|
* 目前只会对指定了selectionKey的情况下才会对指定的字段数据进行更新,同时需要指定 rowKey,保证匹配到的row是正确的目标对象
|
539
540
|
*/
|
540
|
-
asyncData:
|
541
|
+
asyncData: shared_namespaceObject.PropTypes.bool.def(false),
|
541
542
|
/**
|
542
543
|
* 鼠标划过行样式行为
|
543
544
|
* @param { ROW_HOVER.AUTO }
|
544
545
|
* @param { ROW_HOVER.HIGHLIGHT }
|
545
546
|
*/
|
546
|
-
rowHover:
|
547
|
+
rowHover: shared_namespaceObject.PropTypes.oneOf(ROW_HOVER_OPTIONS).def(ROW_HOVER.HIGHLIGHT),
|
547
548
|
/**
|
548
549
|
* 默认的排序列的 prop 和顺序。它的 prop 属性指定默认的排序的列,order指定默认排序的顺序
|
549
550
|
*/
|
550
|
-
defaultSort:
|
551
|
+
defaultSort: shared_namespaceObject.PropTypes.shape({}).def({}),
|
551
552
|
/**
|
552
553
|
* 配合 column selection 使用
|
553
554
|
* 用于配置渲染行数据的勾选框是否可用
|
@@ -555,9 +556,9 @@ var tableProps = {
|
|
555
556
|
* 如果是函数,则返回 true|false
|
556
557
|
* ({ row, index, isCheckAll }) => boolean
|
557
558
|
*/
|
558
|
-
isRowSelectEnable:
|
559
|
+
isRowSelectEnable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func.def(function () {
|
559
560
|
return true;
|
560
|
-
}),
|
561
|
+
}), shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
|
561
562
|
/**
|
562
563
|
* 当外层容器尺寸改变时,当前组件用什么方式进行重新计算
|
563
564
|
* 默认为 throttle,按照指定频率重新计算
|
@@ -569,7 +570,7 @@ var tableProps = {
|
|
569
570
|
/**
|
570
571
|
* 是否监表格尺寸变化而响应式重新计算渲染
|
571
572
|
*/
|
572
|
-
observerResize:
|
573
|
+
observerResize: shared_namespaceObject.PropTypes.bool.def(true),
|
573
574
|
// 对齐方式
|
574
575
|
align: TableAlign,
|
575
576
|
headerAlign: TableAlign,
|
@@ -578,7 +579,7 @@ var tableProps = {
|
|
578
579
|
* 默认样式为固定在第一行
|
579
580
|
* 需要跟随滚动或者其他样式,可以通过此配置进行覆盖
|
580
581
|
*/
|
581
|
-
prependStyle:
|
582
|
+
prependStyle: shared_namespaceObject.PropTypes.style().def({}),
|
582
583
|
/**
|
583
584
|
* 列排序行为
|
584
585
|
* independent:列与列之间的排序是独立的,互斥的
|
@@ -591,11 +592,11 @@ var tableProps = {
|
|
591
592
|
/**
|
592
593
|
* 是否采用flex布局表格
|
593
594
|
*/
|
594
|
-
isFlex:
|
595
|
+
isFlex: shared_namespaceObject.PropTypes.bool.def(true),
|
595
596
|
/**
|
596
597
|
* 是否支持行拖拽排序
|
597
598
|
*/
|
598
|
-
rowDraggable:
|
599
|
+
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
|
599
600
|
};
|
600
601
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
601
602
|
|
@@ -633,13 +634,13 @@ var TableColumnProp = {
|
|
633
634
|
label: LabelFunctionStringType,
|
634
635
|
field: LabelFunctionStringType,
|
635
636
|
render: RenderFunctionStringType,
|
636
|
-
width:
|
637
|
+
width: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
637
638
|
minWidth: StringNumberType(COL_MIN_WIDTH),
|
638
|
-
columnKey:
|
639
|
+
columnKey: shared_namespaceObject.PropTypes.string.def(''),
|
639
640
|
showOverflowTooltip: IOverflowTooltipPropType,
|
640
641
|
type: columnType,
|
641
|
-
resizable:
|
642
|
-
fixed:
|
642
|
+
resizable: shared_namespaceObject.PropTypes.bool.def(true),
|
643
|
+
fixed: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, fixedType]).def(false),
|
643
644
|
sort: ISortType,
|
644
645
|
filter: IFilterType,
|
645
646
|
colspan: SpanFunctionStringType.def(1),
|
@@ -647,7 +648,7 @@ var TableColumnProp = {
|
|
647
648
|
align: TableAlign,
|
648
649
|
className: RowClassFunctionStringType,
|
649
650
|
prop: LabelFunctionStringType,
|
650
|
-
index:
|
651
|
+
index: shared_namespaceObject.PropTypes.number.def(undefined)
|
651
652
|
};
|
652
653
|
/* harmony default export */ const table_column = ((0,external_vue_namespaceObject.defineComponent)({
|
653
654
|
name: 'TableColumn',
|
@@ -829,7 +830,7 @@ var TableColumnProp = {
|
|
829
830
|
*/
|
830
831
|
|
831
832
|
|
832
|
-
var BkTableColumn = (0,
|
833
|
+
var BkTableColumn = (0,shared_namespaceObject.withInstall)(table_column);
|
833
834
|
/* harmony default export */ const src = (BkTableColumn);
|
834
835
|
var __webpack_exports__default = __webpack_exports__["default"];
|
835
836
|
export { __webpack_exports__default as default };
|
package/lib/tag/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "../styles/reset.css";
|
2
|
+
import "./tag.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
import * as
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
6
8
|
/******/ // The require scope
|
7
9
|
/******/ var __webpack_require__ = {};
|
8
10
|
/******/
|
@@ -35,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
35
37
|
;// CONCATENATED MODULE: external "../shared"
|
36
38
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
37
39
|
var y = x => () => x
|
38
|
-
const
|
40
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["TagThemeType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.TagThemeType, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
39
41
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
40
42
|
function _typeof(o) {
|
41
43
|
"@babel/helpers - typeof";
|
@@ -90,13 +92,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
90
92
|
var external_vue_types_y = x => () => x
|
91
93
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
92
94
|
;// CONCATENATED MODULE: external "../config-provider"
|
93
|
-
var
|
94
|
-
var
|
95
|
-
const
|
95
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
96
|
+
var config_provider_y = x => () => x
|
97
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
96
98
|
;// CONCATENATED MODULE: external "../icon"
|
97
|
-
var
|
98
|
-
var
|
99
|
-
const
|
99
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
100
|
+
var icon_y = x => () => x
|
101
|
+
const icon_namespaceObject = icon_x({ ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
|
100
102
|
;// CONCATENATED MODULE: ../../packages/tag/src/tag.tsx
|
101
103
|
|
102
104
|
|
@@ -139,20 +141,20 @@ var TagStrokeType;
|
|
139
141
|
/* harmony default export */ const tag = ((0,external_vue_namespaceObject.defineComponent)({
|
140
142
|
name: 'Tag',
|
141
143
|
props: {
|
142
|
-
theme: (0,
|
143
|
-
closable:
|
144
|
+
theme: (0,shared_namespaceObject.TagThemeType)().def(''),
|
145
|
+
closable: shared_namespaceObject.PropTypes.bool.def(false),
|
144
146
|
type: (0,external_vue_types_namespaceObject.toType)('tagStorkeType', {}).def(TagStrokeType.UNKNOWN),
|
145
|
-
checkable:
|
146
|
-
checked:
|
147
|
-
radius:
|
148
|
-
size:
|
147
|
+
checkable: shared_namespaceObject.PropTypes.bool.def(false),
|
148
|
+
checked: shared_namespaceObject.PropTypes.bool.def(false),
|
149
|
+
radius: shared_namespaceObject.PropTypes.string.def('2px'),
|
150
|
+
size: shared_namespaceObject.PropTypes.size()
|
149
151
|
},
|
150
152
|
emits: ['change', 'close'],
|
151
153
|
// slots: ['icon'],
|
152
154
|
slots: Object,
|
153
155
|
setup: function setup(props, _ref) {
|
154
156
|
var emit = _ref.emit;
|
155
|
-
var _usePrefix = (0,
|
157
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
156
158
|
resolveClassName = _usePrefix.resolveClassName;
|
157
159
|
var wrapperStyle = (0,external_vue_namespaceObject.computed)(function () {
|
158
160
|
return {
|
@@ -189,7 +191,7 @@ var TagStrokeType;
|
|
189
191
|
"class": "".concat(this.resolveClassName('tag-icon'))
|
190
192
|
}, [this.$slots.icon()]) : '', (0,external_vue_namespaceObject.createVNode)("span", {
|
191
193
|
"class": "".concat(this.resolveClassName('tag-text'))
|
192
|
-
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), this.closable && (0,external_vue_namespaceObject.createVNode)(
|
194
|
+
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), this.closable && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
193
195
|
"class": "".concat(this.resolveClassName('tag-close')),
|
194
196
|
"onClick": this.handleClose
|
195
197
|
}, null)]);
|
@@ -223,7 +225,7 @@ var TagStrokeType;
|
|
223
225
|
*/
|
224
226
|
|
225
227
|
|
226
|
-
var BkTag = (0,
|
228
|
+
var BkTag = (0,shared_namespaceObject.withInstall)(tag);
|
227
229
|
/* harmony default export */ const src = (BkTag);
|
228
230
|
var __webpack_exports__default = __webpack_exports__["default"];
|
229
231
|
export { __webpack_exports__default as default };
|