@opendesign-plus-test/components 0.0.1-rc.24 → 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.
@@ -416,7 +416,7 @@ const confirm = async () => {
416
416
  });
417
417
  }
418
418
  } else {
419
- await props?.creatMeetingRequest({
419
+ await props?.createMeetingRequest({
420
420
  ...params,
421
421
  email_list: form.value.email_list.replaceAll(' ', ''),
422
422
  });
@@ -727,6 +727,10 @@ defineExpose({
727
727
  }
728
728
  }
729
729
 
730
+ .o-textarea {
731
+ --_box-radius: var(--o-radius-xs);
732
+ }
733
+
730
734
  input,
731
735
  textarea {
732
736
  color: var(--o-input-color);
@@ -1011,15 +1011,15 @@ const cancelActions = computed<DialogActionT[]>(() => {
1011
1011
  flex-grow: 1;
1012
1012
  background-color: var(--o-color-fill2);
1013
1013
 
1014
+ @include respond-to('phone') {
1015
+ margin-top: calc(var(--phone-padding-top) - var(--o-gap-4));
1016
+ }
1014
1017
  &.is-empty {
1015
1018
  display: flex;
1016
1019
  align-items: center;
1017
1020
  justify-content: center;
1018
1021
  }
1019
1022
 
1020
- @include respond-to('phone') {
1021
- margin-top: calc(var(--phone-padding-top) - var(--o-gap-4));
1022
- }
1023
1023
 
1024
1024
  .o-scroller {
1025
1025
  .o-scrollbar-rail {
@@ -1227,16 +1227,15 @@ const cancelActions = computed<DialogActionT[]>(() => {
1227
1227
  }
1228
1228
  }
1229
1229
 
1230
+ @include respond-to('phone') {
1231
+ --icon-size: 20px;
1232
+ }
1230
1233
  &.o-collapse-item-expanded {
1231
1234
  @include respond-to('<=pad_v') {
1232
1235
  --copy-display: inline-flex;
1233
1236
  }
1234
1237
  }
1235
1238
 
1236
- @include respond-to('phone') {
1237
- --icon-size: 20px;
1238
- }
1239
-
1240
1239
  &.o-collapse-item-expanded {
1241
1240
  background-color: var(--o-color-control2-light);
1242
1241
  }
@@ -1384,7 +1383,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
1384
1383
  font-size: 18px;
1385
1384
  height: 18px;
1386
1385
  width: 18px;
1387
- //display: var(--copy-display);
1386
+ display: var(--copy-display);
1388
1387
  @include respond-to('phone') {
1389
1388
  bottom: var(--o-gap-2);
1390
1389
  transform: revert;
@@ -4,6 +4,7 @@ import { computed, ref } from 'vue';
4
4
  import { MeetingItemT } from '@/components/meeting/types.ts';
5
5
  import MoreText from '@/components/common/MoreText.vue';
6
6
  import { Locales, useI18n } from '@/i18n';
7
+ import { formatDate } from '@/components/meeting/utils.ts';
7
8
 
8
9
  const props = defineProps<{
9
10
  data: MeetingItemT;
@@ -80,11 +81,11 @@ defineExpose({ copyInfo });
80
81
  <div
81
82
  ref="domRef"
82
83
  class="label-item"
83
- :class="`label-item_${data.id} type_${data.type} `"
84
+ :class="`label-item_${data.id} type_${data.type} ${!data[info.key]?.length ? 'is-empty' : ''}`"
84
85
  v-for="(info, infoIdx) in columns"
85
86
  :key="infoIdx"
86
87
  >
87
- <template v-if="data[info.key]">
88
+ <template v-if="data[info.key] && !info.isRecord">
88
89
  <span class="label">{{ info.label }}<i>{{ isZh ? ':' : ':' }}</i></span>
89
90
  <MoreText :show="show" v-if="info.ellipsis" :text="data[info.key] || '-'" />
90
91
  <OLink
@@ -102,6 +103,14 @@ defineExpose({ copyInfo });
102
103
  {{ data[info.key] || '-' }}
103
104
  </span>
104
105
  </template>
106
+ <template v-if="info.isRecord && data[info.key]?.length">
107
+ <span class="label">{{ info.label }}{{ isZh ? ':' : ':' }}</span>
108
+ <p v-for="re in data[info.key]" :key="re.create_time" class="value">
109
+ {{ re.reason }}&nbsp;&nbsp;
110
+ {{ formatDate(re.create_time, 'YYYY/MM/DD HH:mm:ss') }}
111
+ 审核{{ re.action === 1 ? '通过' : '驳回' }}
112
+ </p>
113
+ </template>
105
114
  </div>
106
115
  </div>
107
116
 
@@ -172,6 +181,10 @@ defineExpose({ copyInfo });
172
181
  margin-top: var(--o-gap-2);
173
182
  }
174
183
 
184
+ .label-item.is-empty {
185
+ margin: 0;
186
+ }
187
+
175
188
  .meeting-action {
176
189
  display: flex;
177
190
  align-items: center;