w-ui-v1 1.1.45 → 1.1.46

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": "w-ui-v1",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -280,13 +280,8 @@ const displayText = computed(() => {
280
280
  }
281
281
  // datetime
282
282
  if (props.subItem.controlType === 'datetime' || props.subItem.extControlType === 'datetime') {
283
- if (Array.isArray(val) && val.length === 2) {
284
- const fmt = props.subItem.extControlType === 'datetimerange' ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD'
285
- const v0 = dayjs(val[0])
286
- const v1 = dayjs(val[1])
287
- if (v0.isValid() && v1.isValid()) return `${v0.format(fmt)} ~ ${v1.format(fmt)}`
288
- }
289
- if (typeof val === 'string' && val.includes('~')) return val
283
+ if (typeof val === 'string') return dayjs(val).isValid() ? dayjs(val).format('YYYY-MM-DD HH:mm') : val
284
+ if (typeof val === 'number') return dayjs(val).isValid() ? dayjs(val).format('YYYY-MM-DD HH:mm') : ''
290
285
  return ''
291
286
  }
292
287
  // select 枚举 - 查找 label
@@ -398,9 +393,12 @@ const displayFormat2 = (value: any) => {
398
393
  overflow: hidden;
399
394
  text-overflow: ellipsis;
400
395
  white-space: nowrap;
401
- text-align: right;
396
+ text-align: left;
402
397
  }
403
398
  :deep(.form-control-item .form-select-clear) {
399
+ display: inline-flex;
400
+ align-items: center;
401
+ justify-content: center;
404
402
  flex-shrink: 0;
405
403
  margin-left: 4px;
406
404
  padding: 4px;
@@ -44,7 +44,7 @@
44
44
  <view class="search-btn">
45
45
  <wd-button size="small" icon="refresh" :round="false" @click="clear"
46
46
  type="info">{{changeLanguageConmon('重置')}}</wd-button>
47
- <wd-button size="small" icon="search" :round="false"
47
+ <wd-button size="small" icon="search-line" :round="false"
48
48
  @click="search">{{changeLanguageConmon('确定')}}</wd-button>
49
49
 
50
50
  </view>