mirror of https://github.com/halo-dev/halo
pref: allow annotations value to be empty (#4419)
#### What type of PR is this? /kind improvement #### What this PR does / why we need it: 由于后端 annotation 的值可以为空,而前端则规定 annotation 值为必填项,因此去除前端必填属性。 #### Which issue(s) this PR fixes: Fixes #4279 #### Does this PR introduce a user-facing change? ```release-note 将元数据值更改为非必填 ```pull/4431/head
parent
8e3bd7f3d8
commit
5779f01161
|
@ -234,7 +234,7 @@ defineExpose({
|
||||||
type="text"
|
type="text"
|
||||||
label="Key"
|
label="Key"
|
||||||
name="key"
|
name="key"
|
||||||
validation="required|keyValidationRule"
|
validation="required:trim|keyValidationRule"
|
||||||
:validation-rules="{ keyValidationRule }"
|
:validation-rules="{ keyValidationRule }"
|
||||||
:validation-messages="{
|
:validation-messages="{
|
||||||
keyValidationRule: $t(
|
keyValidationRule: $t(
|
||||||
|
@ -242,12 +242,7 @@ defineExpose({
|
||||||
),
|
),
|
||||||
}"
|
}"
|
||||||
></FormKit>
|
></FormKit>
|
||||||
<FormKit
|
<FormKit type="text" label="Value" name="value" value=""></FormKit>
|
||||||
type="text"
|
|
||||||
label="Value"
|
|
||||||
name="value"
|
|
||||||
validation="required"
|
|
||||||
></FormKit>
|
|
||||||
</FormKit>
|
</FormKit>
|
||||||
</FormKit>
|
</FormKit>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue