@sigmaott/base-next 1.4.24 → 1.4.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigmaott/base-next",
3
3
  "type": "module",
4
- "version": "1.4.24",
4
+ "version": "1.4.26",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -26,13 +26,16 @@ const [modelValue, modelAttrs] = useElField<number>('channelConfig.forensicWater
26
26
  trigger: ['blur', 'change'],
27
27
  },
28
28
  ], { enabled: enableValue })
29
+ const isRequiredWm = computed(() => {
30
+ return typeValue.value === 'normal' && enableValue.value
31
+ })
29
32
 
30
33
  const [typeValue, typeAttrs] = useElField<string>('channelConfig.forensicWatermarkConfig.type', {
31
34
  message: t('forensic.type_is_required'),
32
35
  required: false,
33
36
  }, { enabled: enableValue })
34
37
  const [wmValue, wmAttrs] = useElField<string>('channelConfig.forensicWatermarkConfig.wm', [{
35
- message: t('forensic.enter_the_wm_in_format_e_g_0x64'),
38
+ message: t('forensic.wm_is_required'),
36
39
  required: true,
37
40
  }, {
38
41
  validator: (rule, value, callback) => {
@@ -49,7 +52,7 @@ const [wmValue, wmAttrs] = useElField<string>('channelConfig.forensicWatermarkCo
49
52
  callback()
50
53
  },
51
54
  trigger: ['blur', 'change'],
52
- }], { enabled: enableValue })
55
+ }], { enabled: isRequiredWm })
53
56
  const [wmBValue] = useElField<string>('channelConfig.forensicWatermarkConfig.wmB', [])
54
57
  const [crcValue, crcAttrs] = useElField<number>('channelConfig.forensicWatermarkConfig.crc', {
55
58
  required: false,
@@ -200,7 +203,10 @@ async function handleSelectConfig(id: string) {
200
203
  // message: $t('base_library.feature_mismatch_the_path_cannot_be_used_with_feature-name', ['<strong>Ads detect</strong>']),
201
204
  // })
202
205
  }
203
- formForensicRef.value?.validateField('channelConfig.forensicWatermarkConfig.wm')
206
+
207
+ nextTick(() => {
208
+ formForensicRef.value?.validateField('channelConfig.forensicWatermarkConfig.wm')
209
+ })
204
210
  }
205
211
  const currentRowId = ref()
206
212
 
@@ -334,7 +340,7 @@ function handleChangeType(value: string) {
334
340
  <template #default="{ row }">
335
341
  <el-form-item v-bind="wmAttrs" class="pt-2 [&_.el-form-item\_\_label]:hidden [&_.el-input-number]:!w-full">
336
342
  <el-input v-model.trim="wmValue" :disabled="typeValue !== 'normal' || !enableValue"
337
- :placeholder="t('forensic.enter_the_wm_in_hexadecimal_format_e_g_0x64')" />
343
+ :placeholder="t('forensic.enter_the_wm_in_format_e_g_0x64')" />
338
344
  </el-form-item>
339
345
  </template>
340
346
  </el-table-column>