cnhis-design-vue 0.3.7-beta → 0.3.8-beta

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.
@@ -2564,10 +2564,278 @@ defineExpose({
2564
2564
  })
2565
2565
 
2566
2566
  </script>
2567
- <style lang="less" scoped src="./assets/style/table-base.less">
2568
- // @import "./assets/style/table-base.less";
2567
+ <style lang="less" scoped>
2568
+ .big-table {
2569
+ position: relative;
2570
+
2571
+ &:deep(.img-wrap) {
2572
+ padding: 2px 0;
2573
+ line-height: 1;
2574
+ height: 100%;
2575
+ display: flex;
2576
+ align-items: center;
2577
+
2578
+ img {
2579
+ max-height: 100%;
2580
+ object-fit: contain;
2581
+ cursor: pointer;
2582
+ }
2583
+ &.img-circle {
2584
+ img {
2585
+ width: 28px;
2586
+ border-radius: 50%;
2587
+ object-fit: contain;
2588
+ }
2589
+ }
2590
+ }
2591
+ .bigTable-qr-span {
2592
+ position: relative;
2593
+ display: inline-block;
2594
+ height: 100%;
2595
+ .bigTable-qr-img {
2596
+ max-height: 96%;
2597
+ }
2598
+ > span {
2599
+ position: absolute;
2600
+ top: 0;
2601
+ left: 0;
2602
+ justify-content: center;
2603
+ align-items: center;
2604
+ width: 100%;
2605
+ height: 100%;
2606
+ background: rgba(0, 0, 0, 0.7);
2607
+ color: #fff;
2608
+ display: none;
2609
+ cursor: pointer;
2610
+ }
2611
+ &:hover {
2612
+ > span {
2613
+ display: inline-flex;
2614
+ }
2615
+ }
2616
+ }
2617
+
2618
+ /* 行内表单样式 */
2619
+ &:deep(.base-form) {
2620
+ overflow: hidden !important;
2621
+ display: flex;
2622
+ align-items: center;
2623
+ width: 100%;
2624
+ }
2625
+ &:deep(.base-form-content) {
2626
+ width: 100%;
2627
+ }
2628
+ &:deep(textarea) {
2629
+ height: 32px;
2630
+ margin-bottom: 0;
2631
+ resize: none;
2632
+ }
2633
+ &:deep(.formItem-select-multiple) {
2634
+ display: flex;
2635
+ align-items: center;
2636
+ width: 100%;
2637
+ line-height: 40px;
2638
+ }
2639
+ /* 行内表单样式 */
2640
+
2641
+ &.mt {
2642
+ margin-top: 26px;
2643
+ height: calc(100% - 78px) !important;
2644
+ }
2645
+
2646
+ &.expand-padding {
2647
+ &:deep(.vxe-table .vxe-body--expanded-cell) {
2648
+ padding-left: 66px !important;
2649
+ padding-right: 66px !important;
2650
+ }
2651
+ }
2652
+
2653
+ th.vxe-header--column {
2654
+ cursor: pointer;
2655
+ }
2656
+ .row-btn {
2657
+ margin-right: 10px;
2658
+ }
2659
+ &:deep(.vxe-table) {
2660
+ transform: translateZ(0);
2661
+ .vxe-table--empty-content {
2662
+ width: 100%;
2663
+ height: 100%;
2664
+ > div {
2665
+ width: 100%;
2666
+ height: 100%;
2667
+ .no-data-tip {
2668
+ display: inline-flex;
2669
+ }
2670
+ }
2671
+ }
2672
+ .col--checkbox,
2673
+ .col--seq {
2674
+ .vxe-cell {
2675
+ padding: 0;
2676
+ .vxe-checkbox--label {
2677
+ padding-left: 0;
2678
+ }
2679
+ }
2680
+ }
2681
+ .vxe-cell .vxe-tree-cell {
2682
+ height: 100%;
2683
+ }
2684
+
2685
+ .scan-multi-delete {
2686
+ color: #F06F64;
2687
+ }
2688
+
2689
+ .vxe-table--header {
2690
+ background-color: #f2f2f2;
2691
+ .vxe-header--column .vxe-cell--title {
2692
+ height: 100%;
2693
+ line-height: unset;
2694
+ width: 100%;
2695
+ }
2696
+ }
2697
+ .vxe-table--footer-wrapper.body--wrapper,
2698
+ .vxe-table--body-wrapper {
2699
+ &::-webkit-scrollbar {
2700
+ width: 10px;
2701
+ height: 10px;
2702
+ background-color: #f2f2f2;
2703
+ }
2704
+ &::-webkit-scrollbar-thumb:hover {
2705
+ background-color: #b2b2b2;
2706
+ }
2707
+ }
2708
+ .vxe-footer--row .vxe-footer--column {
2709
+ > .vxe-cell .vxe-cell--item {
2710
+ height: 30px;
2711
+ line-height: 30px;
2712
+ }
2713
+ }
2714
+ .vxe-cell--checkbox.is--disabled {
2715
+ .vxe-checkbox--icon {
2716
+ display: none;
2717
+ }
2718
+ }
2719
+ }
2720
+ &:deep(.filter-box) {
2721
+ display: flex;
2722
+ align-items: center;
2723
+ width: 100%;
2724
+ .text-over-tooltip-components {
2725
+ max-width: calc(100% - 20px);
2726
+ }
2727
+ .vxe-filter--btn {
2728
+ border-top-color: #c0c4cc;
2729
+ border-right-color: #c0c4cc;
2730
+ }
2731
+ .vxe-filter--btn.active {
2732
+ border-top-color: #35393c;
2733
+ border-right-color: #35393c;
2734
+ }
2735
+ .vxe-filter--btn.checked {
2736
+ border-top-color: #5585f5;
2737
+ border-right-color: #5585f5;
2738
+ }
2739
+ }
2740
+ &:deep(.disabled-checked-tips) {
2741
+ position: absolute;
2742
+ left: 6px;
2743
+ top: 50%;
2744
+ bottom: 0;
2745
+ right: 0;
2746
+ box-sizing: border-box;
2747
+ width: 16px;
2748
+ height: 16px;
2749
+ margin-top: -8px;
2750
+ overflow: hidden;
2751
+ border-radius: 50%;
2752
+ border: 2px solid #ff1818;
2753
+ background: #fff;
2754
+ &::after {
2755
+ position: absolute;
2756
+ content: '';
2757
+ width: 16px;
2758
+ height: 2px;
2759
+ background-color: #ff1818;
2760
+ transform: rotate(45deg);
2761
+ transform-origin: 0 2px;
2762
+ left: 0;
2763
+ top: 0;
2764
+ }
2765
+ }
2766
+ }
2767
+
2768
+ .refresh {
2769
+ display: flex;
2770
+ align-items: center;
2771
+ background-color: #fff;
2772
+ box-shadow: 0px 2px 4px 0px rgba(108, 108, 108, 0.13);
2773
+ color: #5585f5;
2774
+ font-size: 12px;
2775
+ height: 27px;
2776
+
2777
+ position: absolute;
2778
+ right: 0;
2779
+ top: 6px;
2780
+ z-index: 1;
2781
+
2782
+ padding-left: 14px;
2783
+ padding-right: 14px;
2784
+ border-top-left-radius: 14px;
2785
+ border-bottom-left-radius: 14px;
2786
+
2787
+ cursor: pointer;
2788
+ }
2789
+ .refresh-row {
2790
+ margin-left: 3px;
2791
+ margin-bottom: 0;
2792
+ }
2793
+
2794
+ .check-wrap {
2795
+ background: #ffffe9;
2796
+ display: block;
2797
+ width: 100%;
2798
+ line-height: 26px;
2799
+ display: flex;
2800
+ justify-content: center;
2801
+
2802
+ position: absolute;
2803
+ margin-top: -26px;
2804
+
2805
+ .check-wrap-title,
2806
+ .check-wrap-btn {
2807
+ color: #000000;
2808
+ font-size: 12px;
2809
+ margin-bottom: 0px;
2810
+ cursor: pointer;
2811
+ }
2812
+
2813
+ .check-wrap-btn {
2814
+ color: #5585f5;
2815
+ }
2816
+ }
2817
+
2818
+ .percent-wrap {
2819
+ display: flex;
2820
+ flex-direction: column;
2821
+ justify-content: center;
2822
+ align-items: center;
2823
+ text-align: center;
2824
+ .percent-value {
2825
+ line-height: 1;
2826
+ margin-bottom: -4px;
2827
+ margin-top: 4px;
2828
+ }
2829
+ }
2830
+ .domPropsInnerHTML-span {
2831
+ height: 100%;
2832
+ &:deep(img) {
2833
+ display: inline-block;
2834
+ height: var(--tableImageHeight);
2835
+ width: var(--tableImageWidth);
2836
+ }
2837
+ }
2569
2838
  </style>
2570
2839
 
2571
2840
  <style lang="less" src="./assets/style/table-global.less">
2572
- // @import "./assets/style/table-global.less";
2573
2841
  </style>
@@ -119,12 +119,7 @@ const bigTableProps = {
119
119
 
120
120
  // 曾经的mapActions
121
121
  resetInlineBatchEdit: Function,
122
- resetBatchEditRowStatus: Function,
123
-
124
- querySelectTableList: {
125
- type: Function,
126
- default: () => Promise.resolve({ rows: [], pageCount: 0 })
127
- }
122
+ resetBatchEditRowStatus: Function
128
123
  };
129
124
 
130
125
  export default bigTableProps;