bkui-vue 0.0.1-beta.12 → 0.0.1-beta.15

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.
Files changed (131) hide show
  1. package/README.md +25 -17
  2. package/README_EN.md +89 -0
  3. package/dist/bkui-vue.cjs.js +1847 -467
  4. package/dist/bkui-vue.esm.js +1842 -468
  5. package/dist/bkui-vue.umd.js +1847 -467
  6. package/dist/style.css +454 -177
  7. package/lib/alert/index.js +1 -1
  8. package/lib/animate-number/index.js +1 -1
  9. package/lib/backtop/index.js +1 -1
  10. package/lib/badge/index.js +1 -1
  11. package/lib/breadcrumb/breadcrumb.css +10 -1
  12. package/lib/breadcrumb/breadcrumb.d.ts +20 -0
  13. package/lib/breadcrumb/breadcrumb.less +13 -2
  14. package/lib/breadcrumb/breadcrumb.variable.css +10 -1
  15. package/lib/breadcrumb/index.d.ts +38 -2
  16. package/lib/breadcrumb/index.js +1 -1
  17. package/lib/button/button.d.ts +2 -2
  18. package/lib/button/index.d.ts +8 -8
  19. package/lib/button/index.js +1 -1
  20. package/lib/card/index.js +1 -1
  21. package/lib/checkbox/index.d.ts +1 -1
  22. package/lib/checkbox/index.js +1 -1
  23. package/lib/checkbox/type.d.ts +1 -1
  24. package/lib/collapse/index.js +1 -1
  25. package/lib/components.d.ts +3 -1
  26. package/lib/date-picker/index.js +1 -1
  27. package/lib/dialog/index.js +1 -1
  28. package/lib/directives/index.js +1 -1
  29. package/lib/divider/index.js +1 -1
  30. package/lib/exception/index.js +1 -1
  31. package/lib/fixed-navbar/index.js +1 -1
  32. package/lib/form/index.js +1 -1
  33. package/lib/icon/angle-down-fill.d.ts +4 -0
  34. package/lib/icon/angle-up-fill.d.ts +4 -0
  35. package/lib/icon/arrows-left.d.ts +4 -0
  36. package/lib/icon/index.d.ts +4 -0
  37. package/lib/icon/index.js +1 -1
  38. package/lib/icon/spinner.d.ts +4 -0
  39. package/lib/index.d.ts +1 -0
  40. package/lib/input/index.d.ts +19 -11
  41. package/lib/input/index.js +2 -2
  42. package/lib/input/input.css +1 -0
  43. package/lib/input/input.d.ts +5 -3
  44. package/lib/input/input.less +4 -3
  45. package/lib/input/input.variable.css +1 -0
  46. package/lib/link/index.js +1 -1
  47. package/lib/loading/index.d.ts +21 -4
  48. package/lib/loading/index.js +1 -1
  49. package/lib/loading/loading.d.ts +13 -2
  50. package/lib/menu/index.js +1 -1
  51. package/lib/message/index.js +1 -1
  52. package/lib/modal/index.js +1 -1
  53. package/lib/navigation/index.js +1 -1
  54. package/lib/notify/index.js +1 -1
  55. package/lib/notify/notifyConstructor.d.ts +2 -2
  56. package/lib/popover/index.d.ts +103 -48
  57. package/lib/popover/index.js +1 -1
  58. package/lib/popover/popover.css +22 -13
  59. package/lib/popover/popover.d.ts +30 -23
  60. package/lib/popover/popover.less +55 -45
  61. package/lib/popover/popover.variable.css +22 -13
  62. package/lib/popover/props.d.ts +77 -0
  63. package/lib/preset.d.ts +2 -3
  64. package/lib/process/index.d.ts +145 -0
  65. package/lib/process/index.js +15 -0
  66. package/lib/process/process.css +139 -0
  67. package/lib/process/process.d.ts +116 -0
  68. package/lib/process/process.less +179 -0
  69. package/lib/process/process.variable.css +225 -0
  70. package/lib/progress/index.d.ts +23 -1
  71. package/lib/progress/index.js +1 -1
  72. package/lib/progress/progress.css +0 -3
  73. package/lib/progress/progress.d.ts +17 -1
  74. package/lib/progress/progress.less +0 -4
  75. package/lib/progress/progress.variable.css +0 -3
  76. package/lib/radio/index.d.ts +2 -2
  77. package/lib/radio/index.js +1 -1
  78. package/lib/rate/index.js +1 -1
  79. package/lib/select/common.d.ts +10 -1
  80. package/lib/select/index.d.ts +133 -190
  81. package/lib/select/index.js +2 -2
  82. package/lib/select/option.d.ts +1 -7
  83. package/lib/select/optionGroup.d.ts +22 -15
  84. package/lib/select/select.css +71 -14
  85. package/lib/select/select.d.ts +40 -55
  86. package/lib/select/select.less +73 -14
  87. package/lib/select/select.variable.css +71 -14
  88. package/lib/shared/bk-helper-core.d.ts +6 -0
  89. package/lib/shared/bk-popover.d.ts +45 -4
  90. package/lib/shared/index.d.ts +10 -0
  91. package/lib/shared/index.js +1 -1
  92. package/lib/shared/utils.d.ts +6 -0
  93. package/lib/sideslider/index.js +1 -1
  94. package/lib/slider/index.js +2 -2
  95. package/lib/steps/index.d.ts +8 -8
  96. package/lib/steps/index.js +2 -2
  97. package/lib/steps/steps.d.ts +2 -2
  98. package/lib/styles/index.d.ts +2 -0
  99. package/lib/styles/index.js +1 -1
  100. package/lib/switcher/index.js +1 -1
  101. package/lib/switcher/switcher.css +149 -135
  102. package/lib/switcher/switcher.less +210 -154
  103. package/lib/switcher/switcher.variable.css +149 -135
  104. package/lib/tab/index.js +1 -1
  105. package/lib/table/index.d.ts +76 -1
  106. package/lib/table/index.js +1 -1
  107. package/lib/table/props.d.ts +38 -0
  108. package/lib/table/render.d.ts +1 -1
  109. package/lib/table/table.css +6 -4
  110. package/lib/table/table.d.ts +34 -0
  111. package/lib/table/table.less +4 -4
  112. package/lib/table/table.variable.css +6 -4
  113. package/lib/table/utils.d.ts +7 -0
  114. package/lib/tag/index.js +1 -1
  115. package/lib/tree/index.d.ts +22 -8
  116. package/lib/tree/index.js +1 -1
  117. package/lib/tree/props.d.ts +52 -0
  118. package/lib/tree/tree.css +16 -7
  119. package/lib/tree/tree.d.ts +13 -7
  120. package/lib/tree/tree.less +24 -24
  121. package/lib/tree/tree.variable.css +16 -7
  122. package/lib/tree/util.d.ts +3 -44
  123. package/lib/virtual-render/index.d.ts +395 -0
  124. package/lib/virtual-render/index.js +1 -0
  125. package/lib/virtual-render/props.d.ts +147 -0
  126. package/lib/virtual-render/v-virtual-render.d.ts +7 -0
  127. package/lib/virtual-render/virtual-render.css +40 -0
  128. package/lib/virtual-render/virtual-render.d.ts +175 -0
  129. package/lib/virtual-render/virtual-render.less +51 -0
  130. package/lib/virtual-render/virtual-render.variable.css +40 -0
  131. package/package.json +10 -6
package/dist/style.css CHANGED
@@ -547,8 +547,17 @@ optgroup {
547
547
  margin: 0 6px;
548
548
  font-weight: normal;
549
549
  }
550
+ .bk-breadcrumb-goback {
551
+ margin-right: 12px;
552
+ color: #0082ff;
553
+ cursor: pointer;
554
+ }
555
+ .bk-breadcrumb-goback svg {
556
+ font-size: 26px;
557
+ }
550
558
  .bk-breadcrumb-item-inner.is-link,
551
559
  .bk-breadcrumb-item-inner a {
560
+ color: #63656e;
552
561
  text-decoration: none;
553
562
  }
554
563
  .bk-breadcrumb-item-inner.is-link:hover,
@@ -557,7 +566,7 @@ optgroup {
557
566
  cursor: pointer;
558
567
  }
559
568
  .bk-breadcrumb-item:last-child {
560
- color: #63656e;
569
+ color: #979ba5;
561
570
  }
562
571
  .bk-breadcrumb-item:last-child .el-breadcrumb__inner,
563
572
  .bk-breadcrumb-item:last-child .el-breadcrumb__inner a,
@@ -1153,6 +1162,7 @@ optgroup {
1153
1162
  .bk-input--suffix-icon {
1154
1163
  padding-right: 10px;
1155
1164
  font-size: 16px;
1165
+ line-height: 1;
1156
1166
  color: #c4c6cc;
1157
1167
  align-self: center;
1158
1168
  }
@@ -1589,7 +1599,16 @@ optgroup {
1589
1599
  .bk-popover .bk-popover-reference {
1590
1600
  display: inline-block;
1591
1601
  }
1592
- .bk-popover .bk-popover-content {
1602
+ .bk-popover .fade-in-enter-active,
1603
+ .bk-popover .fade-in-linear-leave-active {
1604
+ transition: opacity 200ms linear;
1605
+ }
1606
+ .bk-popover .fade-in-enter,
1607
+ .bk-popover .fade-in-leave,
1608
+ .bk-popover .fade-in-leave-active {
1609
+ opacity: 0;
1610
+ }
1611
+ .bk-popover-content {
1593
1612
  display: none;
1594
1613
  padding: 7px 14px;
1595
1614
  font-size: 12px;
@@ -1598,29 +1617,29 @@ optgroup {
1598
1617
  border-radius: 4px;
1599
1618
  box-sizing: border-box;
1600
1619
  }
1601
- .bk-popover .bk-popover-content[data-theme='dark'] {
1620
+ .bk-popover-content[data-theme^='dark'] {
1602
1621
  color: #fff;
1603
1622
  background: #26323d;
1604
1623
  }
1605
- .bk-popover .bk-popover-content[data-theme='light'] {
1624
+ .bk-popover-content[data-theme^='light'] {
1606
1625
  color: #26323d;
1607
1626
  background-color: #fff;
1608
1627
  box-shadow: 0 0 6px 0 #dcdee5;
1609
1628
  }
1610
- .bk-popover .bk-popover-content[data-theme='light'][data-show] {
1629
+ .bk-popover-content[data-theme^='light'][data-show] {
1611
1630
  box-shadow: 0 0 6px 0 #dcdee5;
1612
1631
  }
1613
- .bk-popover .bk-popover-content[data-show] {
1632
+ .bk-popover-content[data-show] {
1614
1633
  display: block;
1615
1634
  }
1616
- .bk-popover .bk-popover-content .arrow {
1635
+ .bk-popover-content .arrow {
1617
1636
  position: absolute;
1618
1637
  width: 8px;
1619
1638
  height: 8px;
1620
1639
  background: inherit;
1621
1640
  visibility: hidden;
1622
1641
  }
1623
- .bk-popover .bk-popover-content .arrow::before {
1642
+ .bk-popover-content .arrow::before {
1624
1643
  position: absolute;
1625
1644
  width: 8px;
1626
1645
  height: 8px;
@@ -1629,17 +1648,17 @@ optgroup {
1629
1648
  visibility: visible;
1630
1649
  transform: rotate(45deg);
1631
1650
  }
1632
- .bk-popover .bk-popover-content[data-popper-placement^='top'] > .arrow {
1651
+ .bk-popover-content[data-popper-placement^='top'] > .arrow {
1633
1652
  bottom: -4px;
1634
1653
  }
1635
- .bk-popover .bk-popover-content[data-popper-placement^='bottom'] > .arrow {
1654
+ .bk-popover-content[data-popper-placement^='bottom'] > .arrow {
1636
1655
  top: -4px;
1637
1656
  }
1638
- .bk-popover .bk-popover-content[data-popper-placement^='left'] > .arrow {
1639
- right: 0;
1657
+ .bk-popover-content[data-popper-placement^='left'] > .arrow {
1658
+ right: -4px;
1640
1659
  }
1641
- .bk-popover .bk-popover-content[data-popper-placement^='right'] > .arrow {
1642
- left: -8px;
1660
+ .bk-popover-content[data-popper-placement^='right'] > .arrow {
1661
+ left: -4px;
1643
1662
  }
1644
1663
  @keyframes loading-scale-animate {
1645
1664
  0% {
@@ -1719,9 +1738,6 @@ optgroup {
1719
1738
  width: 7%;
1720
1739
  text-align: center;
1721
1740
  }
1722
- .bk-progress .process-circle-trail {
1723
- stroke: #f5f5f5;
1724
- }
1725
1741
  .bk-progress .progress-circle-text {
1726
1742
  position: absolute;
1727
1743
  top: 50%;
@@ -1963,6 +1979,7 @@ optgroup {
1963
1979
  position: absolute;
1964
1980
  top: 6px;
1965
1981
  left: 4px;
1982
+ font-size: 14px;
1966
1983
  }
1967
1984
  .bk-select .bk-select-trigger .angle-up {
1968
1985
  transform: rotate(180deg);
@@ -1994,6 +2011,38 @@ optgroup {
1994
2011
  .bk-select .bk-select-trigger .clear-icon:hover {
1995
2012
  color: #979ba5;
1996
2013
  }
2014
+ .bk-select .bk-select-trigger .spinner {
2015
+ position: absolute;
2016
+ top: 6px;
2017
+ right: 4px;
2018
+ display: flex;
2019
+ align-items: center;
2020
+ justify-content: center;
2021
+ width: 20px;
2022
+ height: 20px;
2023
+ font-size: 16px;
2024
+ color: #3A84FF;
2025
+ }
2026
+ .bk-select .bk-select-empty {
2027
+ display: flex;
2028
+ align-items: center;
2029
+ justify-content: center;
2030
+ height: 56px;
2031
+ color: #63656e;
2032
+ }
2033
+ .bk-select .bk-select-empty .spinner {
2034
+ display: flex;
2035
+ width: 14px;
2036
+ height: 14px;
2037
+ margin-right: 4px;
2038
+ font-size: 14px;
2039
+ color: #c4c6cc;
2040
+ align-items: center;
2041
+ justify-content: center;
2042
+ }
2043
+ .bk-select .bk-select-dropdown {
2044
+ overflow: auto;
2045
+ }
1997
2046
  .bk-select .bk-select-dropdown .bk-select-search {
1998
2047
  position: relative;
1999
2048
  padding: 0 5px;
@@ -2016,20 +2065,19 @@ optgroup {
2016
2065
  border-bottom: 1px solid #dcdee5;
2017
2066
  outline: 0;
2018
2067
  }
2019
- .bk-select .bk-select-empty {
2020
- height: 32px;
2021
- font-size: 12px;
2022
- line-height: 32px;
2023
- color: #63656e;
2024
- text-align: center;
2025
- user-select: none;
2068
+ .bk-select .bk-select-extension {
2069
+ display: flex;
2070
+ height: 40px;
2071
+ background-color: #fafbfd;
2072
+ align-items: center;
2026
2073
  }
2027
2074
  .bk-select .bk-select-options {
2028
- padding: 6px 0;
2075
+ padding: 8px 0;
2029
2076
  }
2030
2077
  .bk-select .bk-select-option {
2078
+ position: relative;
2031
2079
  height: 32px;
2032
- padding: 0 10px;
2080
+ padding: 0 20px 0 12px;
2033
2081
  line-height: 32px;
2034
2082
  color: #63656e;
2035
2083
  text-align: left;
@@ -2041,15 +2089,14 @@ optgroup {
2041
2089
  }
2042
2090
  .bk-select .bk-select-option:hover {
2043
2091
  color: #3a84ff;
2044
- background-color: #eaf3ff;
2092
+ background-color: #f5f7fa;
2045
2093
  }
2046
2094
  .bk-select .bk-select-option.is-selected {
2047
2095
  color: #3a84ff;
2048
- background-color: #f4f6fa;
2049
2096
  }
2050
2097
  .bk-select .bk-select-option.is-selected.is-multiple::after {
2051
2098
  position: absolute;
2052
- right: 20px;
2099
+ right: 12px;
2053
2100
  font-size: 12px;
2054
2101
  font-weight: 700;
2055
2102
  content: '\2713';
@@ -2061,11 +2108,37 @@ optgroup {
2061
2108
  }
2062
2109
  .bk-select .bk-option-group-label {
2063
2110
  height: 32px;
2064
- margin: 0 10px;
2111
+ padding: 0 8px;
2065
2112
  line-height: 32px;
2066
2113
  color: #979ba5;
2067
2114
  text-align: left;
2068
- border-bottom: 1px solid #dcdee5;
2115
+ }
2116
+ .bk-select .bk-option-group-label.collapsible {
2117
+ cursor: pointer;
2118
+ }
2119
+ .bk-select .bk-option-group.collapsible .bk-select-option {
2120
+ padding-left: 40px;
2121
+ }
2122
+ .bk-select .bk-option-group .default-group-label {
2123
+ display: flex;
2124
+ user-select: none;
2125
+ align-items: center;
2126
+ }
2127
+ .bk-select .bk-option-group .default-group-label-icon {
2128
+ display: flex;
2129
+ width: 12px;
2130
+ height: 12px;
2131
+ margin-right: 8px;
2132
+ font-size: 12px;
2133
+ transition: all 0.1s;
2134
+ align-items: center;
2135
+ justify-content: center;
2136
+ }
2137
+ .bk-select .bk-option-group .default-group-label-icon.collapse {
2138
+ transform: rotate(-90deg);
2139
+ }
2140
+ .bk-select .bk-option-group .bk-select-option {
2141
+ padding-left: 24px;
2069
2142
  }
2070
2143
  .bk-modal-wrapper.bk-sideslider-wrapper {
2071
2144
  position: fixed;
@@ -2160,181 +2233,181 @@ optgroup {
2160
2233
  .bk-switcher {
2161
2234
  position: relative;
2162
2235
  display: inline-block;
2163
- /* 默认尺寸 */
2164
- width: 36px;
2165
2236
  height: 20px;
2237
+ /* 默认尺寸 */
2238
+ min-width: 36px;
2239
+ padding: 0;
2240
+ margin: 0;
2241
+ font-size: 14px;
2166
2242
  line-height: 20px;
2167
2243
  text-align: left;
2168
2244
  vertical-align: middle;
2245
+ list-style: none;
2246
+ cursor: pointer;
2169
2247
  background-color: #c4c6cc;
2248
+ border: 1px solid transparent;
2170
2249
  border-radius: 50px;
2250
+ border-radius: 100px;
2251
+ box-sizing: border-box;
2171
2252
  transition: all 0.4s ease;
2253
+ transition: all 0.36s;
2254
+ user-select: none;
2172
2255
  /* 显示文本时固定尺寸 */
2173
2256
  }
2174
- .bk-switcher:focus {
2175
- box-shadow: 0px 0px 6px #c4c6cc;
2176
- }
2177
2257
  .bk-switcher:after {
2178
2258
  position: absolute;
2179
- top: 2px;
2180
- left: 2px;
2181
- display: block;
2182
- width: 24px;
2183
- height: 24px;
2259
+ top: 1px;
2260
+ left: 1px;
2261
+ width: 16px;
2262
+ height: 16px;
2184
2263
  cursor: pointer;
2185
2264
  background: #fff;
2186
- border-radius: 100px;
2187
- content: '';
2188
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
2265
+ background-color: #fff;
2266
+ border-radius: 18px;
2267
+ content: ' ';
2189
2268
  transition: all 0.3s ease;
2190
2269
  }
2191
- .bk-switcher:not(.show-label):after {
2192
- width: 16px;
2193
- height: 16px;
2194
- }
2195
- .bk-switcher:not(.show-label).is-checked:after {
2196
- margin-left: -18px;
2197
- }
2198
- .bk-switcher.is-loading {
2199
- cursor: defalt;
2270
+ .bk-switcher .switcher-text {
2271
+ display: block;
2272
+ margin-right: 6px;
2273
+ margin-left: 28px;
2274
+ font-size: 12px;
2275
+ font-weight: 400;
2276
+ color: #fff;
2277
+ text-align: center;
2278
+ transition: all 0.3s ease;
2200
2279
  }
2201
- .bk-switcher.is-loading input[type=checkbox] {
2202
- cursor: default;
2280
+ .bk-switcher .animating-node {
2281
+ position: absolute;
2282
+ top: 0;
2283
+ right: 0;
2284
+ bottom: 0;
2285
+ left: 0;
2286
+ display: block;
2287
+ pointer-events: none;
2288
+ border-radius: inherit;
2289
+ content: '';
2290
+ opacity: 0.2;
2291
+ box-shadow: 0 0 0 0 #1890ff;
2292
+ animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
2293
+ animation-fill-mode: forwards;
2203
2294
  }
2204
2295
  .bk-switcher .bk-switcher-loading {
2205
2296
  position: absolute;
2206
- top: 50%;
2297
+ top: 1px;
2207
2298
  left: 1px;
2208
- z-index: 10;
2209
- display: flex;
2210
- width: 18px;
2211
- height: 18px;
2212
- transform: translateY(-50%);
2299
+ z-index: 1;
2300
+ width: 16px;
2301
+ height: 16px;
2302
+ font-size: 12px;
2303
+ color: #c4c6cc;
2304
+ cursor: pointer;
2305
+ background: transparent;
2306
+ border-radius: 16px;
2307
+ content: ' ';
2308
+ transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
2213
2309
  }
2214
2310
  .bk-switcher .bk-switcher-loading svg {
2215
- color: #3a84ff;
2216
- }
2217
- .bk-switcher .switcher-label {
2218
- display: none;
2219
- width: 30px;
2220
- height: 28px;
2221
- margin: 0 0 0 26px;
2222
- font-size: 12px;
2223
- font-weight: normal;
2224
- color: #fff;
2225
- text-align: center;
2226
- vertical-align: top;
2227
- transition: all ease 0.3s;
2311
+ position: absolute;
2312
+ top: 0;
2313
+ right: 0;
2314
+ bottom: 0;
2315
+ left: 0;
2316
+ margin: auto;
2317
+ animation: loading 1s linear infinite;
2228
2318
  }
2229
- .bk-switcher .switcher-label .on-text {
2230
- display: none;
2319
+ .bk-switcher.is-loading {
2320
+ cursor: defalt;
2231
2321
  }
2232
- .bk-switcher .switcher-label .off-text {
2233
- display: inline-block;
2322
+ .bk-switcher.is-loading input[type=checkbox] {
2323
+ cursor: default;
2234
2324
  }
2235
2325
  .bk-switcher.show-label {
2236
- width: 60px;
2237
2326
  height: 28px;
2327
+ min-width: 60px;
2238
2328
  line-height: 28px;
2239
2329
  }
2240
- .bk-switcher.show-label .switcher-label {
2241
- display: inline-block;
2330
+ .bk-switcher.show-label::after {
2331
+ width: 24px;
2332
+ height: 24px;
2242
2333
  }
2243
2334
  .bk-switcher.show-label .bk-switcher-loading {
2244
- width: 26px;
2245
- height: 26px;
2246
- align-items: center;
2247
- justify-content: center;
2335
+ width: 24px;
2336
+ height: 24px;
2337
+ font-size: 20px;
2248
2338
  }
2249
- .bk-switcher.show-label .bk-switcher-loading svg {
2250
- font-size: 24px;
2339
+ .bk-switcher.show-label.is-checked .bk-switcher-loading {
2340
+ left: 100%;
2341
+ margin-left: -25px;
2251
2342
  }
2252
2343
  .bk-switcher.is-disabled {
2253
- cursor: default;
2254
- /* background-color: #eee !important; */
2344
+ cursor: not-allowed;
2255
2345
  opacity: 0.3;
2256
2346
  }
2257
- .bk-switcher.is-disabled input[type=checkbox] {
2347
+ .bk-switcher.is-disabled .bk-switcher-loading {
2348
+ cursor: not-allowed;
2349
+ }
2350
+ .bk-switcher.is-disabled::after {
2258
2351
  cursor: not-allowed;
2259
2352
  }
2260
2353
  .bk-switcher.is-checked {
2261
2354
  background: #2dcb56;
2262
2355
  }
2263
- .bk-switcher.is-checked:focus {
2264
- box-shadow: 0px 0px 6px #2dcb56;
2356
+ .bk-switcher.is-checked .bk-switcher-loading svg {
2357
+ color: #2dcb56;
2265
2358
  }
2266
- .bk-switcher.is-checked.primary {
2359
+ .bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary {
2267
2360
  background: #3a84ff;
2268
2361
  }
2269
- .bk-switcher.is-checked.primary:focus {
2270
- box-shadow: 0px 0px 6px #3a84ff;
2362
+ .bk-switcher.is-checked:not(.bk-switcher-outline).bk-switcher.is-checked.primary .bk-switcher-loading svg {
2363
+ color: #3a84ff;
2271
2364
  }
2272
2365
  .bk-switcher.is-checked:after {
2273
- top: 2px;
2274
2366
  left: 100%;
2275
- margin-left: -26px;
2276
- }
2277
- .bk-switcher.is-checked .switcher-label {
2278
- margin-left: 4px;
2279
- }
2280
- .bk-switcher.is-checked .switcher-label .on-text {
2281
- display: inline-block;
2367
+ margin-left: -1px;
2368
+ transform: translateX(-100%);
2282
2369
  }
2283
- .bk-switcher.is-checked .switcher-label .off-text {
2284
- display: none;
2370
+ .bk-switcher.is-checked .switcher-text {
2371
+ margin-right: 28px;
2372
+ margin-left: 6px;
2285
2373
  }
2286
- .bk-switcher.is-checked .bk-switcher-loading {
2287
- right: 1px;
2288
- left: auto;
2374
+ .bk-switcher:not(.show-label).is-checked .bk-switcher-loading {
2375
+ left: 100%;
2376
+ margin-left: -17px;
2289
2377
  }
2290
2378
  .bk-switcher.bk-switcher-outline {
2291
2379
  background: #fff;
2292
2380
  border: 1px solid #c4c6cc;
2293
2381
  }
2294
2382
  .bk-switcher.bk-switcher-outline:after {
2295
- width: 22px;
2296
- height: 22px;
2383
+ width: 24px;
2384
+ height: 24px;
2297
2385
  background-color: #c4c6cc;
2298
2386
  box-shadow: none;
2299
2387
  }
2300
- .bk-switcher.bk-switcher-outline .switcher-label {
2301
- height: 26px;
2302
- margin-left: 24px;
2388
+ .bk-switcher.bk-switcher-outline .switcher-text {
2303
2389
  color: #c4c6cc;
2304
2390
  }
2305
- .bk-switcher.bk-switcher-outline .bk-switcher-loading {
2306
- width: 22px;
2307
- height: 22px;
2308
- align-items: center;
2309
- justify-content: center;
2310
- }
2311
2391
  .bk-switcher.bk-switcher-outline.is-checked {
2312
2392
  border: 1px solid #2dcb56;
2313
2393
  }
2314
2394
  .bk-switcher.bk-switcher-outline.is-checked:after {
2315
- margin-left: -24px;
2316
2395
  background-color: #2dcb56;
2317
2396
  }
2318
- .bk-switcher.bk-switcher-outline.is-checked .switcher-label {
2319
- margin-left: 4px;
2397
+ .bk-switcher.bk-switcher-outline.is-checked .switcher-text {
2320
2398
  color: #2dcb56;
2321
2399
  }
2322
- .bk-switcher.bk-switcher-outline.is-disabled {
2323
- background-color: #fff;
2324
- border-color: #eee;
2325
- }
2326
- .bk-switcher.bk-switcher-outline.is-disabled .switcher-label {
2327
- color: #eee;
2400
+ .bk-switcher.bk-switcher-outline .bk-switcher-loading svg {
2401
+ color: #fff;
2328
2402
  }
2329
- .bk-switcher.bk-switcher-outline.is-disabled:after {
2330
- background-color: #eee;
2403
+ .bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked {
2404
+ border: 1px solid #3a84ff;
2331
2405
  }
2332
- .bk-switcher.bk-switcher-outline.bk-switcher-large:after {
2333
- width: 18px;
2334
- height: 18px;
2406
+ .bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked:after {
2407
+ background: #3a84ff;
2335
2408
  }
2336
- .bk-switcher.bk-switcher-outline.bk-switcher-large.is-checked:after {
2337
- margin-left: -20px;
2409
+ .bk-switcher.bk-switcher-outline.bk-switcher.primary.is-checked .switcher-text {
2410
+ color: #3a84ff;
2338
2411
  }
2339
2412
  .bk-switcher.bk-switcher-square {
2340
2413
  border-radius: 2px;
@@ -2342,61 +2415,76 @@ optgroup {
2342
2415
  .bk-switcher.bk-switcher-square:after {
2343
2416
  border-radius: 2px;
2344
2417
  }
2345
- .bk-switcher.bk-switcher-square .switcher-label {
2346
- width: 35px;
2347
- }
2348
2418
  .bk-switcher.bk-switcher-large {
2349
- width: 42px;
2350
2419
  height: 24px;
2420
+ min-width: 42px;
2351
2421
  line-height: 22px;
2352
- border-radius: 12px;
2353
2422
  }
2354
2423
  .bk-switcher.bk-switcher-large:after {
2355
2424
  width: 20px;
2356
2425
  height: 20px;
2357
2426
  }
2358
- .bk-switcher.bk-switcher-large.is-checked:after {
2359
- top: 2px;
2360
- left: 100%;
2361
- margin-left: -22px;
2362
- }
2363
2427
  .bk-switcher.bk-switcher-large .bk-switcher-loading {
2364
- width: 22px;
2365
- height: 22px;
2428
+ width: 20px;
2429
+ height: 20px;
2430
+ font-size: 16px;
2431
+ }
2432
+ .bk-switcher.bk-switcher-large.is-checked .bk-switcher-loading {
2433
+ margin-left: -21px;
2366
2434
  }
2367
2435
  .bk-switcher.bk-switcher-small {
2368
- width: 26px;
2369
2436
  height: 16px;
2437
+ min-width: 26px;
2370
2438
  line-height: 22px;
2371
2439
  }
2372
2440
  .bk-switcher.bk-switcher-small:after {
2373
2441
  width: 12px;
2374
2442
  height: 12px;
2375
2443
  }
2376
- .bk-switcher.bk-switcher-small.is-checked:after {
2377
- top: 2px;
2378
- left: 100%;
2379
- margin-left: -14px;
2380
- }
2381
2444
  .bk-switcher.bk-switcher-small .bk-switcher-loading {
2382
- width: 14px;
2383
- height: 14px;
2445
+ width: 12px;
2446
+ height: 12px;
2447
+ font-weight: 700;
2448
+ transform: scale(0.66667);
2384
2449
  }
2385
- .bk-switcher input[type=checkbox],
2386
- .bk-switcher input[type=radio] {
2387
- position: absolute;
2388
- top: 0;
2389
- left: 0;
2390
- z-index: 1;
2391
- width: 100%;
2392
- height: 100%;
2393
- margin: 0;
2394
- cursor: pointer;
2395
- opacity: 0;
2450
+ .bk-switcher.bk-switcher-small.is-checked .bk-switcher-loading {
2451
+ margin-left: -13px;
2396
2452
  }
2397
- .bk-table .bk-table-body {
2398
- height: 500px;
2453
+ :not(.show-label).bk-switcher-nomal.bk-switcher-outline::after {
2454
+ width: 16px;
2455
+ height: 16px;
2456
+ }
2457
+ :not(.show-label).bk-switcher-outline.is-checked.bk-switcher-small::after {
2458
+ width: 12px;
2459
+ height: 12px;
2460
+ }
2461
+ :not(.show-label).bk-switcher-outline.is-checked.bk-switcher-large::after {
2462
+ width: 20px;
2463
+ height: 20px;
2464
+ }
2465
+ :not(.show-label).bk-switcher-outline.is-checked::after {
2466
+ width: 16px;
2467
+ height: 16px;
2468
+ }
2469
+ @keyframes fadeEffect {
2470
+ 100% {
2471
+ opacity: 0;
2472
+ }
2473
+ }
2474
+ @keyframes waveEffect {
2475
+ 100% {
2476
+ box-shadow: 0 0 0 #1890ff;
2477
+ }
2478
+ }
2479
+ @keyframes loading {
2480
+ 100% {
2481
+ transform: rotate(1turn);
2482
+ }
2483
+ }
2484
+ .bk-table {
2399
2485
  overflow: auto;
2486
+ }
2487
+ .bk-table .bk-table-body {
2400
2488
  background: white;
2401
2489
  }
2402
2490
  .bk-table .bk-table-body table {
@@ -2404,10 +2492,10 @@ optgroup {
2404
2492
  border-collapse: collapse;
2405
2493
  }
2406
2494
  .bk-table .bk-table-body table .cell {
2407
- height: 40px;
2495
+ height: var(--row-height);
2408
2496
  padding: 0 15px;
2409
2497
  overflow: hidden;
2410
- line-height: 40px;
2498
+ line-height: var(--row-height);
2411
2499
  text-overflow: ellipsis;
2412
2500
  white-space: nowrap;
2413
2501
  }
@@ -2421,6 +2509,7 @@ optgroup {
2421
2509
  top: 0;
2422
2510
  z-index: 1;
2423
2511
  background-color: #fff;
2512
+ transform: translateY(var(--translate-y));
2424
2513
  }
2425
2514
  .bk-table .bk-table-body table thead th.active {
2426
2515
  background: #f0f1f5;
@@ -2871,13 +2960,13 @@ optgroup {
2871
2960
  line-height: var(--lineHeight);
2872
2961
  cursor: pointer;
2873
2962
  }
2874
- .bk-tree .bk-tree-node.is-open::after {
2963
+ .bk-tree .bk-tree-node.is-open:not(.is-virtual-render)::after {
2875
2964
  position: absolute;
2876
- top: calc(var(--lineHeight) / 2);
2877
- left: 0;
2965
+ top: calc(var(--lineHeight) / 2 + 6px);
2966
+ left: 6px;
2878
2967
  z-index: 1;
2879
2968
  width: 0;
2880
- height: calc(var(--lines) * var(--lineHeight));
2969
+ height: calc(var(--lines) * var(--lineHeight) - 6px);
2881
2970
  pointer-events: none;
2882
2971
  border-left: var(--level-line);
2883
2972
  content: '';
@@ -2887,15 +2976,24 @@ optgroup {
2887
2976
  }
2888
2977
  .bk-tree .bk-tree-node:not(.is-root)::before {
2889
2978
  position: absolute;
2890
- top: 50%;
2891
- left: calc(0px - var(--indent));
2979
+ top: calc(50% + 1px);
2980
+ left: calc(0px - var(--indent) + 6px);
2892
2981
  z-index: 1;
2893
- width: var(--indent);
2982
+ width: calc(var(--indent) - 6px);
2894
2983
  height: 0;
2895
2984
  pointer-events: none;
2896
2985
  border-bottom: var(--level-line);
2897
2986
  content: '';
2898
2987
  }
2988
+ .bk-tree .bk-tree-node .node-virtual-line {
2989
+ display: inline-block;
2990
+ position: absolute;
2991
+ left: calc(var(--depth) * var(--indent) * -1 + 6px);
2992
+ top: -12px;
2993
+ bottom: 50%;
2994
+ width: 0;
2995
+ border-left: var(--level-line);
2996
+ }
2899
2997
  .bk-tree .bk-tree-node .bk-tree-icon {
2900
2998
  margin: 0 6px 0 4px;
2901
2999
  }
@@ -4006,6 +4104,185 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em {
4006
4104
  .bk-tab-panel {
4007
4105
  height: 100%;
4008
4106
  }
4107
+ * {
4108
+ box-sizing: border-box;
4109
+ }
4110
+ .bk-process {
4111
+ position: relative;
4112
+ display: flex;
4113
+ }
4114
+ @keyframes loadingCircle {
4115
+ 100% {
4116
+ transform: rotate(360deg);
4117
+ }
4118
+ }
4119
+ .bk-process .bk-process-toggle {
4120
+ position: relative;
4121
+ left: 15px;
4122
+ width: 24px;
4123
+ height: 24px;
4124
+ font-size: 12px;
4125
+ line-height: 24px;
4126
+ color: #63656e;
4127
+ text-align: center;
4128
+ text-decoration: none;
4129
+ border: 1px solid #c4c6cc;
4130
+ border-radius: 50%;
4131
+ }
4132
+ .bk-process .bk-process-toggle.active,
4133
+ .bk-process .bk-process-toggle:hover {
4134
+ color: #fff;
4135
+ background: #3a84ff;
4136
+ border-color: #3a84ff;
4137
+ }
4138
+ .bk-process .bk-process-icon-done {
4139
+ display: inline-block;
4140
+ height: 20px;
4141
+ font-size: 21px;
4142
+ line-height: 20px;
4143
+ }
4144
+ .bk-process .bk-icon.icon-loading {
4145
+ display: inline-block;
4146
+ font-size: 14px;
4147
+ animation: loadingCircle 1s infinite linear;
4148
+ }
4149
+ .bk-process > ul {
4150
+ -ms-display: flex;
4151
+ -moz-display: flex;
4152
+ -webkit-display: flex;
4153
+ display: table;
4154
+ display: flex;
4155
+ width: 100%;
4156
+ padding: 0;
4157
+ margin: auto;
4158
+ }
4159
+ .bk-process li {
4160
+ position: relative;
4161
+ display: table-cell;
4162
+ height: 24px;
4163
+ font-family: PingFang SC,Microsoft Yahei,Helvetica,Aria;
4164
+ font-size: 12px;
4165
+ line-height: 24px;
4166
+ color: #63656e;
4167
+ text-align: center;
4168
+ background-color: #f0f1f5;
4169
+ flex: 1;
4170
+ }
4171
+ .bk-process li i {
4172
+ display: none;
4173
+ }
4174
+ .bk-process li:first-of-type {
4175
+ border-radius: 13px 0 0 13px;
4176
+ }
4177
+ .bk-process li:last-of-type {
4178
+ border-radius: 0 13px 13px 0;
4179
+ }
4180
+ .bk-process li:last-of-type::before {
4181
+ display: none;
4182
+ }
4183
+ .bk-process li:last-of-type::after {
4184
+ display: none;
4185
+ }
4186
+ .bk-process li::before {
4187
+ position: absolute;
4188
+ top: 0;
4189
+ right: -25px;
4190
+ z-index: 1;
4191
+ width: 0;
4192
+ height: 0;
4193
+ border: 12px solid;
4194
+ border-color: transparent transparent transparent #fff;
4195
+ content: '';
4196
+ }
4197
+ .bk-process li::after {
4198
+ position: absolute;
4199
+ top: 0;
4200
+ right: -23px;
4201
+ z-index: 1;
4202
+ width: 0;
4203
+ height: 0;
4204
+ border: 12px solid;
4205
+ border-color: transparent transparent transparent #f0f1f5;
4206
+ content: '';
4207
+ }
4208
+ .bk-process li .bk-process-step {
4209
+ font-size: 12px;
4210
+ }
4211
+ .bk-process li .bk-process-step dd {
4212
+ margin: 0;
4213
+ line-height: 32px;
4214
+ }
4215
+ .bk-process li .bk-process-step i {
4216
+ display: none;
4217
+ }
4218
+ .bk-process li .bk-process-step .success i {
4219
+ display: inline-block;
4220
+ color: #2dcb56;
4221
+ }
4222
+ .bk-process li .bk-process-step .steps-loading {
4223
+ top: -2px;
4224
+ }
4225
+ .bk-process li.success {
4226
+ color: #fff;
4227
+ background: #2dcb56;
4228
+ }
4229
+ .bk-process li.success::after {
4230
+ border-color: transparent transparent transparent #2dcb56;
4231
+ }
4232
+ .bk-process li.success .icon-done {
4233
+ font-size: 22px;
4234
+ line-height: 18px;
4235
+ }
4236
+ .bk-process li.current {
4237
+ color: #fff;
4238
+ background: #3a84ff;
4239
+ }
4240
+ .bk-process li.current::after {
4241
+ border-color: transparent transparent transparent #3a84ff;
4242
+ }
4243
+ .bk-process li.current > .bk-spin-loading {
4244
+ vertical-align: -3px;
4245
+ }
4246
+ .bk-virtual-render {
4247
+ position: relative;
4248
+ }
4249
+ .bk-virtual-render .bk-virtual-content,
4250
+ .bk-virtual-render.bk-virtual-content {
4251
+ position: absolute;
4252
+ top: 0;
4253
+ bottom: 0;
4254
+ left: 0;
4255
+ width: 100%;
4256
+ height: 100%;
4257
+ }
4258
+ .bk-virtual-render .bk-virtual-section {
4259
+ width: 1px;
4260
+ background: transparent;
4261
+ }
4262
+ .bk-virtual-render.bk-scroll-x {
4263
+ overflow-x: auto;
4264
+ scrollbar-color: #a0a0a0 transparent;
4265
+ scrollbar-width: thin;
4266
+ }
4267
+ .bk-virtual-render.bk-scroll-x::-webkit-scrollbar {
4268
+ height: 8px;
4269
+ background-color: transparent;
4270
+ }
4271
+ .bk-virtual-render.bk-scroll-x::-webkit-scrollbar-thumb {
4272
+ background-color: #a0a0a0;
4273
+ border-radius: 8px;
4274
+ }
4275
+ .bk-virtual-render.bk-scroll-y {
4276
+ overflow-y: auto;
4277
+ }
4278
+ .bk-virtual-render.bk-scroll-y::-webkit-scrollbar {
4279
+ width: 6px;
4280
+ background-color: transparent;
4281
+ }
4282
+ .bk-virtual-render.bk-scroll-y::-webkit-scrollbar-thumb {
4283
+ background-color: #dcdee5;
4284
+ border-radius: 6px;
4285
+ }
4009
4286
  .bk-popper {
4010
4287
  display: none;
4011
4288
  padding: 7px 14px;