@opendesign-plus/components 0.0.1-rc.33 → 0.0.1-rc.34

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/components",
3
- "version": "0.0.1-rc.33",
3
+ "version": "0.0.1-rc.34",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -35,7 +35,7 @@
35
35
  "vue": "^3.5.13",
36
36
  "element-plus": "2.13.1",
37
37
  "@opendesign-plus/styles": "0.0.1-rc.2",
38
- "@opendesign-plus/composables": "0.0.1-rc.9"
38
+ "@opendesign-plus/composables": "0.0.1-rc.10"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@vitejs/plugin-vue": "^5.2.1",
@@ -249,6 +249,18 @@
249
249
  --el-component-size-large: calc(var(--o-control_size-l) - 2px);
250
250
  }
251
251
 
252
+ .el-input__wrapper {
253
+
254
+ &:hover {
255
+ --el-input-border-color: var(--o-color-primary2);
256
+ }
257
+
258
+ &.is-focus {
259
+ --el-input-border-color: var(--o-color-primary3);
260
+ }
261
+
262
+ }
263
+
252
264
  .el-input-number__decrease,
253
265
  .el-input-number__increase {
254
266
  &:hover ~ .el-input:not(.is-disabled) .el-input__wrapper {
@@ -59,7 +59,7 @@ const clickText = () => {
59
59
  :class="['more-text-content', link && 'is-link']"
60
60
  ref="contentRef"
61
61
  :style="{
62
- 'max-height': expanded ? offsetHeight + 'px' : '66px',
62
+ 'max-height': expanded ? offsetHeight + 'px' : '4.5em',
63
63
  '-webkit-line-clamp': expanded ? 'initial' : lines,
64
64
  }"
65
65
  @click="clickText"
@@ -86,7 +86,7 @@ const clickText = () => {
86
86
  <style lang="scss" scoped>
87
87
  .more-text-wrapper {
88
88
  .more-text-content {
89
- line-height: 22px;
89
+ line-height: 1.5em;
90
90
  overflow: hidden;
91
91
  text-overflow: ellipsis;
92
92
  display: -webkit-box;
@@ -111,7 +111,7 @@ const clickText = () => {
111
111
  }
112
112
 
113
113
  & > div {
114
- height: 22px;
114
+ height: 1.5em;
115
115
  cursor: pointer;
116
116
  display: flex;
117
117
  align-items: center;
@@ -205,6 +205,7 @@ const changeMeetingDay = useDebounceFn((day: string, event?: Event) => {
205
205
 
206
206
  watch(() => latestDay.value,
207
207
  () => {
208
+ calendar.value?.pickDay(dayjs((latestDay.value)));
208
209
  changeMeetingDay(latestDay.value);
209
210
  },
210
211
  {
@@ -1153,7 +1153,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
1153
1153
 
1154
1154
  .group-title {
1155
1155
  font-weight: 500;
1156
- margin-bottom: var(--o-gap-2);
1157
1156
  color: var(--o-color-info1);
1158
1157
  @include text2;
1159
1158
  @include respond('phone') {
@@ -1229,19 +1228,31 @@ const cancelActions = computed<DialogActionT[]>(() => {
1229
1228
 
1230
1229
  .o-collapse-item {
1231
1230
  padding: var(--o-gap-4) var(--o-gap-5);
1232
- padding-bottom: calc(var(--o-gap-5) - var(--o-gap-4));
1233
1231
  border-top: none;
1234
1232
  border-radius: var(--meeting-card-radius);
1235
1233
  transition: margin var(--o-easing-standard) var(--o-duration-s);
1236
1234
  --icon-size: 24px;
1237
- @include respond('<=pad_v') {
1235
+ @include respond-to('pad_h') {
1238
1236
  padding: var(--o-gap-3) var(--o-gap-4);
1239
1237
  }
1238
+ @include respond('<=pad_v') {
1239
+ padding: var(--o-gap-2) var(--o-gap-4);
1240
+ }
1240
1241
 
1241
1242
  @include respond('phone') {
1242
1243
  --icon-size: 20px;
1243
1244
  }
1244
1245
 
1246
+ &.o-collapse-item-expanded {
1247
+ margin-top: var(--o-gap-4);
1248
+ @include respond-to('<=laptop') {
1249
+ margin-top: var(--o-gap-3);
1250
+ }
1251
+ @include respond-to('<=pad_v') {
1252
+ margin-top: var(--o-gap-2);
1253
+ }
1254
+ }
1255
+
1245
1256
  &:hover {
1246
1257
  .title-text {
1247
1258
  color: var(--o-color-primary1);
@@ -1289,6 +1300,9 @@ const cancelActions = computed<DialogActionT[]>(() => {
1289
1300
  bottom: 0;
1290
1301
  height: 1px;
1291
1302
  background-color: var(--o-color-control4);
1303
+ @include respond('phone') {
1304
+ left: 0;
1305
+ }
1292
1306
  }
1293
1307
 
1294
1308
  .o-collapse-item-title {
@@ -1398,7 +1412,11 @@ const cancelActions = computed<DialogActionT[]>(() => {
1398
1412
  }
1399
1413
 
1400
1414
  .title-text {
1415
+ @include text2;
1401
1416
  @include text-truncate(1);
1417
+ @include respond('phone') {
1418
+ @include h3;
1419
+ }
1402
1420
  }
1403
1421
  }
1404
1422
 
@@ -1493,7 +1511,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
1493
1511
  border-top: 1px solid var(--o-color-control4);
1494
1512
  margin-top: var(--o-gap-4);
1495
1513
  padding-top: var(--o-gap-4);
1496
- padding-bottom: calc(var(--o-gap-4) - var(--o-gap-2));
1497
1514
  display: flex;
1498
1515
  align-items: center;
1499
1516
  justify-content: flex-end;
@@ -1501,12 +1518,10 @@ const cancelActions = computed<DialogActionT[]>(() => {
1501
1518
  @include respond('pad_h') {
1502
1519
  margin-top: var(--o-gap-3);
1503
1520
  padding-top: var(--o-gap-3);
1504
- padding-bottom: calc(var(--o-gap-3) - var(--o-gap-2));
1505
1521
  }
1506
1522
  @include respond('<=pad_v') {
1507
1523
  margin-top: var(--o-gap-2);
1508
1524
  padding-top: var(--o-gap-2);
1509
- padding-bottom: 0;
1510
1525
  }
1511
1526
 
1512
1527
  .o-link {
@@ -1529,6 +1544,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
1529
1544
  @include tip1;
1530
1545
  }
1531
1546
  }
1547
+
1532
1548
  }
1533
1549
 
1534
1550
  @include in-dark {
@@ -192,8 +192,8 @@ const computedList = computed<any[]>(() => {
192
192
  cycleType = t('meeting.cycleMonth', [getPointStr(cycle_type, cycle_point as unknown as number[])]);
193
193
  }
194
194
  timeRange = t('meeting.cycleMeetingText2', {
195
- startDate: cycle_start_date,
196
- endDate: cycle_end_date,
195
+ startDate: formatDate(cycle_start_date),
196
+ endDate: formatDate(cycle_end_date),
197
197
  startTime: cycle_start,
198
198
  endTime: cycle_end,
199
199
  cycleType,
@@ -385,7 +385,7 @@ const computedList = computed<any[]>(() => {
385
385
 
386
386
  &.o-collapse-item-expanded {
387
387
  .o-collapse-item-header {
388
- padding-bottom: var(--o-gap-2);
388
+ padding-bottom: 0;
389
389
 
390
390
  .o-collapse-item-title {
391
391
  .copy-icon {
@@ -404,7 +404,7 @@ const computedList = computed<any[]>(() => {
404
404
 
405
405
  .o-collapse-item-header {
406
406
  align-items: center;
407
- padding: var(--o-gap-4) var(--o-gap-4) var(--o-gap-3) var(--o-gap-4);
407
+ padding: var(--o-gap-4) var(--o-gap-5) var(--o-gap-4) var(--o-gap-5);
408
408
  position: relative;
409
409
 
410
410
  @include hover {
@@ -422,9 +422,12 @@ const computedList = computed<any[]>(() => {
422
422
  }
423
423
  }
424
424
  }
425
- @include respond('<=pad_v') {
425
+ @include respond('pad_h') {
426
426
  padding: var(--o-gap-4) var(--o-gap-3) var(--o-gap-2) var(--o-gap-3);
427
427
  }
428
+ @include respond('<=pad_v') {
429
+ padding: var(--o-gap-3) var(--o-gap-4) var(--o-gap-1) var(--o-gap-4);
430
+ }
428
431
 
429
432
  .o-collapse-item-title {
430
433
  flex-grow: 1;
@@ -499,12 +502,11 @@ const computedList = computed<any[]>(() => {
499
502
  border-radius: var(--meeting-card-radius);
500
503
  @include tip1;
501
504
 
502
- @include respond('<=pad_v') {
503
- padding: 16px 16px 16px calc(var(--icon-right) + var(--icon-size2) + 16px - 12px);
504
-
505
+ @include respond('pad_h') {
506
+ padding: 16px 16px 16px calc(var(--icon-right) + var(--icon-size2));
505
507
  }
506
- @include respond('phone') {
507
- padding: 12px 16px;
508
+ @include respond('<=pad_v') {
509
+ padding: 16px 8px;
508
510
  }
509
511
 
510
512
  .info-item {
@@ -74,6 +74,12 @@ const getField = (key: string) => {
74
74
  if (key === 'register_end_date' && val) {
75
75
  return formatDate(val, 'YYYY/MM/DD HH:mm');
76
76
  }
77
+ if (key === 'date' && val) {
78
+ if (props.data.is_cycle) {
79
+ return '';
80
+ }
81
+ return formatDate(val);
82
+ }
77
83
  return val;
78
84
  };
79
85
 
@@ -152,8 +158,8 @@ defineExpose({ copyInfo });
152
158
  </OLink>
153
159
  <span v-else-if="info.key === 'platform'">{{ getPlatformLabel(getField(info.key)) }}</span>
154
160
  <span v-else class="value">
155
- <i v-if="info.extra" class="extra">{{ getField(info.extra) }}</i>
156
- {{ getField(info.key) || '-' }}
161
+ <i v-if="info.extra && getField(info.extra)" class="extra">{{ getField(info.extra) }}</i>
162
+ <span class="value-text">{{ getField(info.key) || '-' }}</span>
157
163
  </span>
158
164
  </template>
159
165
  <template v-if="info.isRecord && getField(info.key)?.length">
@@ -179,9 +185,13 @@ defineExpose({ copyInfo });
179
185
  row-gap: var(--o-gap-2);
180
186
  column-gap: var(--o-gap-4);
181
187
 
182
- @include respond('<=pad_v') {
183
- row-gap: var(--o-gap-1);
184
- column-gap: var(--o-gap-1);
188
+ @include respond('pad_v') {
189
+ row-gap: var(--o-gap-2);
190
+ column-gap: var(--o-gap-2);
191
+ }
192
+ @include respond('phone') {
193
+ row-gap: var(--o-gap-2);
194
+ column-gap: var(--o-gap-4);
185
195
  }
186
196
 
187
197
  .label-item {
@@ -223,11 +233,6 @@ defineExpose({ copyInfo });
223
233
  display: none;
224
234
  }
225
235
 
226
- .more-text-wrapper {
227
- //position: relative;
228
- //top: -2px;
229
- }
230
-
231
236
  .o-link {
232
237
  font-size: 14px;
233
238
  line-height: 22px;
@@ -242,10 +247,8 @@ defineExpose({ copyInfo });
242
247
  }
243
248
 
244
249
  .value {
245
- word-wrap: break-word;
246
- display: flex !important;
247
- align-items: center;
248
- @include text-truncate(3);
250
+ display: flex;
251
+ align-items: flex-start;
249
252
 
250
253
  &.link {
251
254
  color: var(--o-color-primary1);
package/src/i18n/en.ts CHANGED
@@ -40,7 +40,7 @@ export default {
40
40
  'meeting.meetingText': ' {1} at {0}.',
41
41
  'meeting.singleMeetingText': ' {1} at {0}.',
42
42
  'meeting.cycleMeetingText': ' scheduled at {startTime} to {endTime} {cycleType} from {startDate} to {endDate}.',
43
- 'meeting.cycleMeetingText2': '{startTime} to {endTime} (UTC+08:00)Beijing {cycleType} from {startDate} to {endDate}.',
43
+ 'meeting.cycleMeetingText2': '{startTime} to {endTime} (UTC+08:00) Beijing {cycleType} from {startDate} to {endDate}.',
44
44
  'meeting.cycleDay': ' every day',
45
45
  'meeting.cycleWeek.one': 'on {0} every week',
46
46
  'meeting.cycleWeek.other': 'on {0} every {1} weeks',
package/src/i18n/zh.ts CHANGED
@@ -40,7 +40,7 @@ export default {
40
40
  'meeting.meetingText': '{0} 的{1}',
41
41
  'meeting.singleMeetingText': '{0} 的{1}',
42
42
  'meeting.cycleMeetingText': '{startDate} 至 {endDate} {cycleType} {startTime} 到 {endTime}的周期会议',
43
- 'meeting.cycleMeetingText2': '{cycleType} {startTime} 到 {endTime} (UTC+08:00)Beijing 有效期从{startDate} 至 {endDate}',
43
+ 'meeting.cycleMeetingText2': '{cycleType} {startTime} 到 {endTime} (UTC+08:00) Beijing 有效期从{startDate} 至 {endDate}',
44
44
  'meeting.cycleDay': '每天',
45
45
  'meeting.cycleWeek.one': '每周{0}',
46
46
  'meeting.cycleWeek.other': '每{1}周{0}',