wui-components-v2 1.1.73 → 1.1.75

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.
@@ -11,6 +11,8 @@ const props = defineProps({
11
11
  labelKey: { type: String, default: 'label' },
12
12
  valueKey: { type: String, default: 'value' },
13
13
  type: { type: String, default: 'date' },
14
+ min: String,
15
+ max: String,
14
16
  })
15
17
 
16
18
  const emit = defineEmits<{
@@ -57,6 +59,7 @@ const labelText = computed(() => {
57
59
  return currentValue.value || ''
58
60
  }
59
61
  })
62
+ console.log('labelText', props)
60
63
  </script>
61
64
 
62
65
  <template>
@@ -74,6 +77,7 @@ const labelText = computed(() => {
74
77
  value-key="value"
75
78
  class="custom-date-picker"
76
79
  :type="type as any"
80
+ :min-date="props.min === '$$current' ? dayjs().startOf('day').valueOf() : undefined"
77
81
  />
78
82
  <wd-datetime-picker
79
83
  v-else
@@ -441,6 +441,7 @@ console.log('clearValueMap', clearValueMap)
441
441
  :title="item.title"
442
442
  >
443
443
  <customDatePicker
444
+ :min="item.min"
444
445
  v-model="model[item.sourceId]"
445
446
  type="datetime"
446
447
  :clearable="!item.disabled"
@@ -651,25 +652,23 @@ console.log('clearValueMap', clearValueMap)
651
652
  </view>
652
653
  </template>
653
654
 
654
- <style scoped>
655
- .custom-from-style {
656
- :deep(.custom-radio) {
657
- display: flex;
658
- padding: 4px;
659
- }
655
+ <style scoped lang="scss">
656
+ .custom-from-style :deep(.custom-radio) {
657
+ display: flex;
658
+ padding: 4px;
659
+ }
660
660
 
661
- :deep(.wd-form-item .wd-cell__wrapper) {
662
- gap: 12px;
663
- }
664
- :deep(.wd-form-item) {
665
- border-top: 0.6px solid #e8e8e8;
666
- padding: 12px 6px;
667
- margin: auto 6px;
668
- width: calc(100% - 12px);
669
- }
670
- :deep(.no-border-top) {
671
- border-top: none;
672
- }
661
+ .custom-from-style :deep(.wd-form-item .wd-cell__wrapper) {
662
+ gap: 12px;
663
+ }
664
+ .custom-from-style :deep(.wd-form-item) {
665
+ border-top: 0.6px solid #e8e8e8;
666
+ padding: 12px 6px;
667
+ margin: auto 6px;
668
+ width: calc(100% - 12px);
669
+ }
670
+ .custom-from-style :deep(.no-border-top) {
671
+ border-top: none;
673
672
  }
674
673
  :deep(.disabled-input) {
675
674
  background-color: #e8e8e8 !important;
@@ -679,7 +678,7 @@ console.log('clearValueMap', clearValueMap)
679
678
  :global(.wot-theme-dark) .custom-from-style :deep(.wd-form-item) {
680
679
  border-top-color: #3d3d3d;
681
680
  }
682
- :global(.wot-theme-dark) ::deep(.disabled-input) {
681
+ :global(.wot-theme-dark) :deep(.disabled-input) {
683
682
  background-color: #2f2f2f !important;
684
683
  }
685
684
  </style>
@@ -32,7 +32,6 @@ const props = defineProps({
32
32
  title: String,
33
33
  extControlType: String,
34
34
  })
35
- console.log('props11111', props)
36
35
 
37
36
  const emit = defineEmits<{
38
37
  'update:modelValue': [value: string]
@@ -496,13 +496,6 @@ console.log(props, 'props')
496
496
  :type="checkboxType"
497
497
  />
498
498
  </template>
499
-
500
- <template #addressInfo v-if="showAddressInfo">
501
- <div>{{ item.fieldMap[config.extDisplayConfig?.secondColumn?.sourceId] }}</div>
502
- </template>
503
- <template #detailAddress v-if="showAddressInfo">
504
- <div>{{ formatAddress(item.fieldMap[config.extDisplayConfig?.cardShowCols?.[0]?.sourceId]) }}</div>
505
- </template>
506
499
  </foldCard>
507
500
 
508
501
  <template #bottom>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.1.73",
3
+ "version": "1.1.75",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",