@opendesign-plus-test/components 0.0.1-rc.25 → 0.0.1-rc.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.25",
3
+ "version": "0.0.1-rc.26",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -288,8 +288,9 @@ const cancelActions = computed<DialogActionT[]>(() => {
288
288
  id: 'confirm',
289
289
  loading: loading.value,
290
290
  color: 'primary',
291
- variant: lePadV.value ? 'text' : 'outline',
291
+ variant: lePadV.value ? 'text' : 'solid',
292
292
  round: 'pill',
293
+ size: 'large',
293
294
  label: '确定',
294
295
  onClick: () => {
295
296
  confirmCancel();
@@ -297,8 +298,9 @@ const cancelActions = computed<DialogActionT[]>(() => {
297
298
  }, {
298
299
  id: 'cancel',
299
300
  color: 'primary',
300
- variant: lePadV.value ? 'text' : 'solid',
301
+ variant: lePadV.value ? 'text' : 'outline',
301
302
  round: 'pill',
303
+ size: 'large',
302
304
  label: '取消',
303
305
  onClick: () => {
304
306
  cancel();
@@ -312,6 +314,7 @@ const reviewActions = computed<DialogActionT[]>(() => {
312
314
  color: 'primary',
313
315
  variant: lePadV.value ? 'text' : 'solid',
314
316
  round: 'pill',
317
+ size: 'large',
315
318
  label: '确定',
316
319
  onClick: () => {
317
320
  confirm();
@@ -321,6 +324,7 @@ const reviewActions = computed<DialogActionT[]>(() => {
321
324
  color: 'primary',
322
325
  variant: lePadV.value ? 'text' : 'outline',
323
326
  round: 'pill',
327
+ size: 'large',
324
328
  label: '取消',
325
329
  onClick: () => {
326
330
  cancel();
@@ -524,7 +528,6 @@ const reviewActions = computed<DialogActionT[]>(() => {
524
528
  <OTextarea
525
529
  size="large"
526
530
  placeholder="请输入审核的备注信息"
527
- style="width: 100%"
528
531
  :rows="4"
529
532
  resize="none"
530
533
  :max-length="1000"
@@ -539,7 +542,7 @@ const reviewActions = computed<DialogActionT[]>(() => {
539
542
  <ODialog
540
543
  v-model:visible="cancelVisible"
541
544
  :phone-half-full="lePadV"
542
- main-class="handle-dialog-approval"
545
+ main-class="handle-dialog-approval cancel-dialog"
543
546
  :actions="cancelActions"
544
547
  >
545
548
  <template #header>{{ cancelTitle }}</template>
@@ -550,284 +553,273 @@ const reviewActions = computed<DialogActionT[]>(() => {
550
553
  </div>
551
554
  </template>
552
555
 
553
- <style lang="scss" scoped>
554
- .my-approval {
555
- height: 100%;
556
- }
557
-
558
- .title {
559
- color: var(--o-color-info1);
560
- font-weight: 500;
561
- @include h2;
562
- }
563
-
564
- .desc {
565
- color: var(--o-color-info2);
566
- margin-top: 12px;
567
- @include tip1;
568
- }
569
-
570
- .o-divider {
571
- --o-divider-gap: 24px;
572
- }
556
+ <style lang="scss">
557
+ .o-activity-table {
573
558
 
574
- .expand-detail {
575
- padding: 16px 60px;
576
- background-color: rgba(243, 246, 250, 1);
577
- }
559
+ .expand-detail {
560
+ padding: 16px 60px;
561
+ background-color: rgba(243, 246, 250, 1);
562
+ }
578
563
 
579
- .o-form {
580
- &.o-form-layout-v {
581
- .o-form-item-label {
582
- margin-bottom: var(--o-gap-2);
564
+ .activity-btn {
565
+ .o-btn + .o-btn {
566
+ margin-left: 24px;
583
567
  }
584
- }
585
- }
586
568
 
587
- .activity-btn {
588
- .o-btn + .o-btn {
589
- margin-left: 24px;
569
+ @include respond-to('<=pad_v') {
570
+ .o-btn + .o-btn {
571
+ margin-left: 16px;
572
+ }
573
+ }
574
+ @include respond-to('phone') {
575
+ margin-top: 8px;
576
+ .o-btn + .o-btn {
577
+ margin-left: 12px;
578
+ }
579
+ }
590
580
  }
591
581
 
592
- @include respond-to('<=pad_v') {
593
- .o-btn + .o-btn {
594
- margin-left: 16px;
582
+ .o-btn-text {
583
+ @include hover {
584
+ background-color: transparent;
585
+ color: var(--o-color-primary1);
595
586
  }
596
587
  }
597
- @include respond-to('phone') {
598
- margin-top: 8px;
599
- .o-btn + .o-btn {
600
- margin-left: 12px;
601
- }
588
+
589
+ .o-btn.o-btn-text {
590
+ padding-left: 0 !important;
591
+ padding-right: 0 !important;
592
+ min-width: auto;
602
593
  }
603
- }
604
594
 
605
- .o-btn-text {
606
- @include hover {
607
- background-color: transparent;
608
- color: var(--o-color-primary1);
595
+ .o-tag {
596
+ --tag-radius: 100px;
597
+ --tag-bg-color: rgba(0, 113, 243, 0.1);
598
+ --tag-bd-color: transparent;
609
599
  }
610
- }
611
600
 
612
- .o-btn.o-btn-text {
613
- padding-left: 0 !important;
614
- padding-right: 0 !important;
615
- min-width: auto;
616
- }
601
+ .tag-draft,
602
+ .tag-cancel {
603
+ --tag-color: var(--o-color-info3);
604
+ --tag-bg-color: rgba(222, 222, 227, 1);
605
+ }
617
606
 
618
- .o-tag {
619
- --tag-radius: 100px;
620
- --tag-bg-color: rgba(0, 113, 243, 0.1);
621
- --tag-bd-color: transparent;
622
- }
607
+ .tag-registration,
608
+ .tag-in-progress,
609
+ .tag-ended {
610
+ --tag-color: rgba(36, 171, 54, 1);
611
+ --tag-bg-color: rgba(36, 171, 54, 0.1);
612
+ }
623
613
 
624
- .tag-draft,
625
- .tag-cancel {
626
- --tag-color: var(--o-color-info3);
627
- --tag-bg-color: rgba(222, 222, 227, 1);
628
- }
614
+ .tag-reject {
615
+ --tag-color: rgba(294, 118, 17, 1);
616
+ --tag-bg-color: rgba(294, 118, 17, 0.1);
617
+ }
629
618
 
630
- .tag-registration,
631
- .tag-in-progress,
632
- .tag-ended {
633
- --tag-color: rgba(36, 171, 54, 1);
634
- --tag-bg-color: rgba(36, 171, 54, 0.1);
635
- }
619
+ .sort-time {
620
+ display: flex;
621
+ align-items: center;
622
+ cursor: pointer;
623
+ }
636
624
 
637
- .tag-reject {
638
- --tag-color: rgba(294, 118, 17, 1);
639
- --tag-bg-color: rgba(294, 118, 17, 0.1);
640
- }
625
+ .sort-btn {
626
+ margin-left: 4px;
627
+ }
641
628
 
642
- .sort-time {
643
- display: flex;
644
- align-items: center;
645
- cursor: pointer;
646
- }
629
+ .sort-item {
630
+ width: 0;
631
+ height: 0;
632
+ border: 5px solid transparent;
633
+ }
647
634
 
648
- .sort-btn {
649
- margin-left: 4px;
650
- }
635
+ .sort-asc {
636
+ border-bottom-color: var(--o-color-info2);
637
+ margin-bottom: 2px;
651
638
 
652
- .sort-item {
653
- width: 0;
654
- height: 0;
655
- border: 5px solid transparent;
656
- }
639
+ &.active {
640
+ border-bottom-color: var(--o-color-primary1);
641
+ }
642
+ }
657
643
 
658
- .sort-asc {
659
- border-bottom-color: var(--o-color-info2);
660
- margin-bottom: 2px;
644
+ .sort-desc {
645
+ border-top-color: var(--o-color-info2);
646
+ margin-top: 2px;
661
647
 
662
- &.active {
663
- border-bottom-color: var(--o-color-primary1);
648
+ &.active {
649
+ border-top-color: var(--o-color-primary1);
650
+ }
664
651
  }
665
- }
666
652
 
667
- .sort-desc {
668
- border-top-color: var(--o-color-info2);
669
- margin-top: 2px;
653
+ .el-table {
654
+ --el-table-header-bg-color: rgba(235, 241, 250, 1);
655
+ color: var(--o-color-info1);
656
+ @include text1;
670
657
 
671
- &.active {
672
- border-top-color: var(--o-color-primary1);
673
- }
674
- }
658
+ .el-table__header-wrapper {
659
+ border-radius: 12px 12px 0 0;
675
660
 
676
- .el-table {
677
- --el-table-header-bg-color: rgba(235, 241, 250, 1);
678
- color: var(--o-color-info1);
679
- @include text1;
661
+ .el-table__cell {
662
+ padding: 12px 0 11px;
663
+ }
680
664
 
681
- .el-table__header-wrapper {
682
- border-radius: 12px 12px 0 0;
665
+ .cell {
666
+ color: var(--o-color-info2);
667
+ font-weight: 600;
668
+ @include text1;
669
+ }
670
+ }
683
671
 
684
- .el-table__cell {
685
- padding: 12px 0 11px;
672
+ .el-table__expanded-cell {
673
+ padding: 0;
686
674
  }
687
675
 
688
676
  .cell {
689
- color: var(--o-color-info2);
690
- font-weight: 600;
691
- @include text1;
677
+ white-space: nowrap;
692
678
  }
693
679
  }
694
680
 
695
- .el-table__expanded-cell {
696
- padding: 0;
681
+ .pagination {
682
+ margin-top: 32px;
683
+ display: flex;
684
+ align-items: center;
685
+ justify-content: flex-end;
697
686
  }
698
687
 
699
- .cell {
700
- white-space: nowrap;
688
+ .o-textarea {
689
+ --_box-radius: 16px;
701
690
  }
702
- }
703
-
704
- .pagination {
705
- margin-top: 32px;
706
- display: flex;
707
- align-items: center;
708
- justify-content: flex-end;
709
- }
710
691
 
711
- .review-dialog {
712
- .review-content {
713
- width: 100%;
714
- }
715
- }
716
-
717
- .o-textarea {
718
- --_box-radius: 16px;
719
- }
692
+ .dialog-footer {
693
+ display: flex;
694
+ justify-content: center;
695
+ align-items: center;
720
696
 
721
- .dialog-footer {
722
- display: flex;
723
- justify-content: center;
724
- align-items: center;
697
+ .o-btn + .o-btn {
698
+ margin-left: 16px;
699
+ }
725
700
 
726
- .o-btn + .o-btn {
727
- margin-left: 16px;
701
+ @include respond-to('<=pad_v') {
702
+ .o-btn {
703
+ width: 140px;
704
+ color: var(--o-color-info1);
705
+ padding: 6px 24px !important;
706
+ }
707
+ .o-btn + .o-btn {
708
+ margin-left: 0;
709
+ }
710
+ }
728
711
  }
729
712
 
730
- @include respond-to('<=pad_v') {
731
- .o-btn {
732
- width: 140px;
733
- color: var(--o-color-info1);
734
- padding: 6px 24px !important;
735
- }
736
- .o-btn + .o-btn {
737
- margin-left: 0;
713
+ .collapse-wrapper {
714
+ .o-tag {
715
+ height: 24px;
738
716
  }
739
- }
740
- }
741
717
 
742
- .collapse-wrapper {
743
- .o-tag {
744
- height: 24px;
745
- }
718
+ .o-collapse {
719
+ padding: 0;
720
+ border-radius: 12px;
746
721
 
747
- .o-collapse {
748
- padding: 0;
749
- border-radius: 12px;
722
+ .o-collapse-item {
723
+ --collapse-item-header-padding: 8px 0 12px;
750
724
 
751
- .o-collapse-item {
752
- --collapse-item-header-padding: 8px 0 12px;
725
+ &:last-child {
726
+ padding-bottom: 16px;
727
+ }
728
+ }
753
729
 
754
- &:last-child {
755
- padding-bottom: 16px;
730
+ .act-sponsor {
731
+ display: flex;
732
+ align-items: center;
733
+ color: var(--o-color-info3);
734
+ margin-right: 16px;
735
+ @include text1;
756
736
  }
757
- }
758
737
 
759
- .act-sponsor {
760
- display: flex;
761
- align-items: center;
762
- color: var(--o-color-info3);
763
- margin-right: 16px;
764
- @include text1;
765
- }
738
+ .sponsor {
739
+ margin-right: 12px;
740
+ @include text-truncate(1);
741
+ }
766
742
 
767
- .sponsor {
768
- margin-right: 12px;
769
- @include text-truncate(1);
770
- }
743
+ .o-collapse-item-icon {
744
+ transform: rotate(0deg);
745
+ width: 24px;
746
+ height: 24px;
747
+ }
771
748
 
772
- .o-collapse-item-icon {
773
- transform: rotate(0deg);
774
- width: 24px;
775
- height: 24px;
749
+ .o-collapse-item-expanded .o-collapse-item-icon {
750
+ transform: rotate(90deg);
751
+ }
752
+
753
+ .o-collapse-item-header {
754
+ border-bottom: 1px solid var(--o-color-control4);
755
+ margin: 0 16px;
756
+ }
776
757
  }
777
758
 
778
- .o-collapse-item-expanded .o-collapse-item-icon {
779
- transform: rotate(90deg);
759
+ .activity-detail {
760
+ padding: 12px 16px;
761
+ background-color: rgba(243, 246, 250, 1);
780
762
  }
781
763
 
782
- .o-collapse-item-header {
783
- border-bottom: 1px solid var(--o-color-control4);
784
- margin: 0 16px;
764
+ .pagination {
765
+ justify-content: center;
766
+ margin-top: 24px;
785
767
  }
786
768
  }
787
769
 
788
- .activity-detail {
789
- padding: 12px 16px;
790
- background-color: rgba(243, 246, 250, 1);
791
- }
770
+ .title-top {
771
+ display: flex;
772
+ align-items: center;
773
+ justify-content: space-between;
774
+ padding: 12px 16px 0;
792
775
 
793
- .pagination {
794
- justify-content: center;
795
- margin-top: 24px;
776
+ .act-title {
777
+ color: var(--o-color-info1);
778
+ margin-right: 12px;
779
+ font-weight: 600;
780
+ @include text1;
781
+ @include text-truncate(1);
782
+ }
796
783
  }
797
784
  }
798
785
 
799
- .title-top {
800
- display: flex;
801
- align-items: center;
802
- justify-content: space-between;
803
- padding: 12px 16px 0;
804
-
805
- .act-title {
806
- color: var(--o-color-info1);
807
- margin-right: 12px;
808
- font-weight: 600;
809
- @include text1;
810
- @include text-truncate(1);
811
- }
812
- }
813
786
  </style>
814
787
 
815
788
  <style lang="scss">
816
- .review-dialog {
817
- width: 690px;
818
- --dlg-radius: 16px;
789
+ .handle-dialog-approval {
790
+ --dlg-width: 450px;
791
+ --dlg-radius: var(--o-radius-xs);
819
792
  @include respond-to('<=pad_v') {
820
793
  width: 100%;
821
- --dlg-radius: 16px 16px 0 0;
794
+ --dlg-radius: var(--o-radius-xs) var(--o-radius-xs) 0 0;
822
795
  }
823
796
  }
824
797
 
825
- .handle-dialog-approval {
826
- width: 450px;
827
- --dlg-radius: 16px;
828
- @include respond-to('<=pad_v') {
829
- width: 100%;
830
- --dlg-radius: 16px 16px 0 0;
798
+ .cancel-dialog {
799
+ .o-dlg-footer {
800
+ margin-top: var(--o-gap-5);
801
+ }
802
+ }
803
+ .review-dialog {
804
+ --dlg-width: 690px;
805
+
806
+ .o-form {
807
+ width: 450px;
808
+ margin: 0 auto;
809
+
810
+ .o-form-item-label {
811
+ margin-bottom: var(--o-gap-2);
812
+ }
813
+
814
+ .o-textarea {
815
+ width: 100%;
816
+ --_box-radius: var(--o-radius-xs);
817
+ }
818
+ }
819
+
820
+ .o-dlg-footer {
821
+ margin-top: var(--o-gap-6);
831
822
  }
832
823
  }
824
+
833
825
  </style>
@@ -298,11 +298,11 @@ const confirm = async (val: boolean) => {
298
298
  }
299
299
  loading.value = true;
300
300
  form.value.is_publish = `${ val }`;
301
- if (isEdit.value && props.status === 3) {
301
+ if (isEdit.value && props.data?.status === 3) {
302
302
  form.value.update_activity_id = props.data?.id;
303
303
  await props.creatActivity?.(form.value);
304
304
  } else if (isEdit.value) {
305
- await props.editActivity?.(props.data.id, form.value);
305
+ await props.editActivity?.(props.data?.id, form.value);
306
306
  } else {
307
307
  await props.creatActivity?.(form.value);
308
308
  }