bhd-components 0.9.20 → 0.9.22

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.
@@ -64,7 +64,7 @@
64
64
  font-weight: 600;
65
65
  position: relative;
66
66
  padding-left: 36px;
67
-
67
+
68
68
  i {
69
69
  padding-right: 16px;
70
70
  color: #111;
@@ -240,7 +240,7 @@
240
240
  width: 100%;
241
241
  .main {
242
242
  max-width: 80%;
243
-
243
+
244
244
  .main_content_flag{
245
245
  width: 100%;
246
246
  }
@@ -340,7 +340,7 @@
340
340
 
341
341
  .main_content {
342
342
  position: relative;
343
-
343
+
344
344
  .content {
345
345
  position: relative;
346
346
  max-width: 100%;
@@ -359,6 +359,13 @@
359
359
  color: rgba(0, 0, 0, 0.85);
360
360
  }
361
361
 
362
+ li{
363
+ margin-top: 8px;
364
+ &:first-child{
365
+ margin-top: 0;
366
+ }
367
+ }
368
+
362
369
  & > h3 {
363
370
  font-size: 16px;
364
371
  font-weight: 600;
@@ -373,25 +380,30 @@
373
380
  }
374
381
 
375
382
  li p {
376
- padding: 4px 0;
383
+ // padding: 4px 0;
377
384
  font-size: 14px;
378
385
  font-weight: 600;
379
386
  }
380
387
  li > ul li {
381
- padding-top: 8px !important;
382
- padding-bottom: 8px;
388
+ // padding-bottom: 8px;
383
389
  list-style: inside;
384
390
  color: rgba(0, 0, 0, 0.85);
385
- &::marker{
391
+ &::marker{
386
392
  color: #D9D9D9 !important;
387
393
  }
394
+ &:first-child{
395
+ padding-top: 8px !important;
396
+ }
388
397
  }
389
398
  li > ol li {
390
- padding-top: 8px !important;
391
- padding-bottom: 8px;
392
- &::marker{
399
+ // padding-bottom: 8px;
400
+ &::marker{
393
401
  color: @color-text-tertiary-Tr !important;
394
402
  }
403
+
404
+ &:first-child{
405
+ padding-top: 8px !important;
406
+ }
395
407
  }
396
408
  > li:last-of-type{
397
409
  pre{
@@ -404,7 +416,7 @@
404
416
  // }
405
417
  // > * + ul, > * + ol {
406
418
  // margin-top:16px;
407
- // }
419
+ // }
408
420
  // > ul + *, > ol + * {
409
421
  // margin-top:16px;
410
422
  // }
@@ -428,6 +440,10 @@
428
440
  }
429
441
  > pre:last-of-type{
430
442
  margin-bottom:0 ;
443
+
444
+ &+ *{
445
+ margin-top: 8px;
446
+ }
431
447
  }
432
448
  }
433
449
  table {
@@ -460,7 +476,7 @@
460
476
  padding: 12px;
461
477
  line-height: 1.5;
462
478
  margin: 4px 0;
463
- margin-bottom: 16px;
479
+ margin-bottom: 8px;
464
480
  border-radius: 0 0 4px 4px;
465
481
  }
466
482
  // 最后一行操作按钮
@@ -509,7 +525,7 @@
509
525
  color: #fff;
510
526
  }
511
527
 
512
-
528
+
513
529
  // //视频摘要内容
514
530
  // .video_abstract{
515
531
  // .title{
@@ -529,9 +545,9 @@
529
545
  // background-color: @color-background-primary-weak-hover;
530
546
  // position: absolute;
531
547
  // bottom: 0px;
532
-
548
+
533
549
  // }
534
-
550
+
535
551
  // }
536
552
  // .abstract{
537
553
  // padding: 16px 0;
@@ -705,12 +721,12 @@
705
721
  cursor: pointer;
706
722
  list-style-type: none;
707
723
  }
708
-
724
+
709
725
  }
710
-
726
+
711
727
 
712
728
  .association_problem_flag{
713
-
729
+
714
730
  li{
715
731
  padding-left: 30px;
716
732
  position: relative;
@@ -742,7 +758,7 @@
742
758
  display: inline-block;
743
759
  height: 22px;
744
760
  }
745
-
761
+
746
762
  }
747
763
  }
748
764
 
@@ -778,7 +794,7 @@
778
794
  color: #fff;
779
795
  cursor: pointer;
780
796
  }
781
-
797
+
782
798
  }
783
799
  &:hover{
784
800
  .mask_zoom{
@@ -794,7 +810,7 @@
794
810
  height: fit-content;
795
811
  }
796
812
  }
797
-
813
+
798
814
  .copyCode{
799
815
  display: flex;
800
816
  justify-content: flex-end;
@@ -830,7 +846,7 @@
830
846
  }
831
847
  :global{
832
848
  .copy_success{
833
-
849
+
834
850
  .copyCode{
835
851
  color:@color-text-primary;
836
852
  }
@@ -844,7 +860,7 @@
844
860
  }
845
861
  }
846
862
  }
847
-
863
+
848
864
  }
849
865
  p>code{
850
866
  border: none;
@@ -976,7 +992,7 @@
976
992
  color: #fff;
977
993
  cursor: pointer;
978
994
  }
979
-
995
+
980
996
  }
981
997
  &:hover{
982
998
  .mask_zoom{
@@ -1106,7 +1122,7 @@
1106
1122
  margin-bottom: 16px;
1107
1123
  line-height: 1.5;
1108
1124
  display: inline-block;
1109
-
1125
+
1110
1126
  cursor: pointer;
1111
1127
  &:hover{
1112
1128
  background-color: @color-background-primary-weak;
@@ -1152,7 +1168,7 @@
1152
1168
  background-color: #fff !important;
1153
1169
  }
1154
1170
  }
1155
-
1171
+
1156
1172
  .picture_layout{
1157
1173
  display: flex;
1158
1174
  align-items: center;
@@ -1232,7 +1248,7 @@
1232
1248
  vertical-align: middle !important;
1233
1249
  }
1234
1250
  }
1235
-
1251
+
1236
1252
  svg{
1237
1253
  color: @color-text-Tr;
1238
1254
  font-size: 20px;
@@ -1600,7 +1616,7 @@
1600
1616
  }
1601
1617
  .teacher_layout_newlabo {
1602
1618
  top: 50px;
1603
- right: 0;
1619
+ right: 0;
1604
1620
  .top{
1605
1621
  svg{
1606
1622
  transform: rotate(180deg);
@@ -1611,7 +1627,7 @@
1611
1627
  // background: @color-background-info-weak !important;
1612
1628
  background-color: #D1E4FF;
1613
1629
  }
1614
- }
1630
+ }
1615
1631
  .teacher_layout_modal {
1616
1632
  width: 328px;
1617
1633
  height: calc(100% - 48px);
@@ -1819,7 +1835,7 @@
1819
1835
  height: 36px;
1820
1836
  border-radius: 50%;
1821
1837
  margin-right: 16px;
1822
-
1838
+
1823
1839
  img{
1824
1840
  width: 36px;
1825
1841
  height: 36px;
@@ -1849,7 +1865,7 @@
1849
1865
  color: @color-text-Secondary-Tr;
1850
1866
  font-size: 14px;
1851
1867
  font-weight: 400;
1852
- line-height: 150%;
1868
+ line-height: 150%;
1853
1869
  overflow: hidden;
1854
1870
  text-overflow: ellipsis;
1855
1871
  white-space: nowrap;
@@ -1926,7 +1942,7 @@
1926
1942
  // -webkit-box-orient: vertical;
1927
1943
  // -webkit-line-clamp: 2;
1928
1944
  // display: -webkit-box;
1929
-
1945
+
1930
1946
  max-height: 21px;
1931
1947
  white-space: nowrap;
1932
1948
  span {
@@ -1980,7 +1996,7 @@
1980
1996
  .anticon {
1981
1997
  vertical-align: 0;
1982
1998
  }
1983
- .bhd-spin-nested-loading {
1999
+ .bhd-spin-nested-loading {
1984
2000
  height: calc(100% - 72px - 57px);
1985
2001
  & >div>.bhd-spin{
1986
2002
  max-height:436px;
@@ -2059,7 +2075,7 @@
2059
2075
  }
2060
2076
 
2061
2077
  }
2062
-
2078
+
2063
2079
  .screenshot_Modal_btn{
2064
2080
  position: fixed !important;
2065
2081
  z-index: 999;
@@ -2104,4 +2120,4 @@
2104
2120
  }
2105
2121
  strong {
2106
2122
  font-weight: bold !important;
2107
- }
2123
+ }
@@ -8,6 +8,7 @@ export interface AppViewImageProps {
8
8
  getSrc: (index?: number) => Promise<string>;
9
9
  filename?: string;
10
10
  multiSelect?: string[];
11
+ getContainer?: () => HTMLElement;
11
12
  }
12
13
  export interface AppViewImageRef {
13
14
  updateSrc: () => void;
@@ -37,7 +37,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
37
37
  curIndex: 0,
38
38
  multiSelect: false,
39
39
  imgError: false,
40
- actionCloseFlag: 0 // 关闭按钮位置 0是跟随图片 1固定右上角
40
+ actionCloseFlag: 0
41
41
  });
42
42
  _define_property(_assert_this_initialized(_this), "scaleChange", function(value) {
43
43
  var _this_state = _this.state, maxScale = _this_state.maxScale, minScale = _this_state.minScale;
@@ -390,7 +390,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
390
390
  className: "".concat(styles.viewImgAction, " ").concat(styles.actionTop),
391
391
  children: /*#__PURE__*/ _jsx("span", {
392
392
  // id="actionClose"
393
- // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
393
+ // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
394
394
  className: styles.viewImgActionClose,
395
395
  title: "关闭",
396
396
  onClick: this.close,
@@ -475,15 +475,15 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
475
475
  // this.state.actionCloseFlag===0&&(
476
476
  // <span
477
477
  // id="actionClose"
478
- // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
479
- // className={styles.viewImgActionClose}
480
- // title="关闭"
478
+ // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
479
+ // className={styles.viewImgActionClose}
480
+ // title="关闭"
481
481
  // onClick={this.close}>
482
482
  // <CustomClose />
483
483
  // </span>
484
484
  // )
485
485
  // }
486
- // </div>
486
+ // </div>
487
487
  /*#__PURE__*/ _jsxs(_Fragment, {
488
488
  children: [
489
489
  /*#__PURE__*/ _jsx("img", {
@@ -540,7 +540,9 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
540
540
  return ViewImage;
541
541
  }(React.Component);
542
542
  var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
543
- var visible = props.visible, className = props.className;
543
+ var visible = props.visible, className = props.className, _props_getContainer = props.getContainer, getContainer = _props_getContainer === void 0 ? function() {
544
+ return document.body;
545
+ } : _props_getContainer;
544
546
  var viewRef = useRef(null);
545
547
  useImperativeHandle(ref, function() {
546
548
  return {
@@ -563,6 +565,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
563
565
  background: "rgba(0, 0, 0, 0.65)"
564
566
  },
565
567
  wrapClassName: "".concat(styles.AppViewImage, " ").concat(className || ""),
568
+ getContainer: getContainer,
566
569
  children: visible && /*#__PURE__*/ _jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
567
570
  ref: viewRef
568
571
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bhd-components",
3
- "version": "0.9.20",
3
+ "version": "0.9.22",
4
4
  "description": "组件功能描述",
5
5
  "config": {
6
6
  "commitizen": {