Skip to content

Commit

Permalink
bug:流水线触发器配置查看时可编辑 TencentBlueKing#10827
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 15717
  • Loading branch information
useryuyu committed Aug 19, 2024
1 parent 20dc5c3 commit 9838ffb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
:handle-change="key === 'eventType' ? handleBlockEnable : handleMethods"
:value="element[key]"
:element="element"
:disabled="disabled"
v-bind="obj">
</component>
</form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
v-validate.initial="Object.assign({}, { max: getMaxLengthByType(i.component) }, i.rule, { required: !!i.required })"
:handle-change="i.key === 'eventType' ? handleBlockEnable : handleMethods"
:value="element[i.key] || atomPropsModel[key]?.children[index]?.default"
:disabled="disabled"
v-bind="i">
</component>
</form-field>
Expand All @@ -26,6 +27,7 @@
:handle-change="key === 'eventType' ? handleBlockEnable : handleMethods"
:value="element[key]"
:element="element"
:disabled="disabled"
v-bind="obj">
</component>
</form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
v-validate.initial="Object.assign({}, { max: getMaxLengthByType(i.component) }, i.rule, { required: !!i.required })"
:handle-change="handleMethods"
:value="element[i.key] || atomPropsModel[key]?.children[index]?.default"
:disabled="disabled"
v-bind="i">
</component>
</form-field>
Expand All @@ -26,6 +27,7 @@
:handle-change="handleMethods"
:value="element[key]"
:element="element"
:disabled="disabled"
v-bind="obj">
</component>
</form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</header>
<div slot="content" class="cron-build-tab">
<form-field :required="false" :label="$t('editPage.planRule')" :is-error="errors.has('advanceExpression')" :error-msg="errors.first('advanceExpression')">
<vuex-textarea name="advanceExpression" :handle-change="handleUpdateElement" :value="advanceValue" :placeholder="$t('editPage.crontabExpression')" v-validate.initial="{ 'required': advance }"></vuex-textarea>
<vuex-textarea name="advanceExpression" :handle-change="handleUpdateElement" :value="advanceValue" :placeholder="$t('editPage.crontabExpression')" v-validate.initial="{ 'required': advance }" :disabled="disabled"></vuex-textarea>
</form-field>
</div>
</accordion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
v-validate.initial="Object.assign({}, { required: !!curComponent.required })"
:handle-change="handleChange"
:value="element[curComponent.key]"
:disabled="disabled"
v-bind="curComponent">
</component>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
}
},
render (h) {
const { value, readOnly, handleInput, name, handleBlur, title, clickUnfold, hoverUnfold, placeholder } = this
const { value, readOnly, handleInput, name, handleBlur, title, clickUnfold, hoverUnfold, placeholder, disabled } = this
return (
<textarea placeholder={placeholder} title={title} onBlur={handleBlur} onInput={handleInput} class={['bk-form-textarea pointer-events-auto', clickUnfold ? 'textarea-styles' : '', hoverUnfold && readOnly ? 'hover-textarea-styles' : '']} name={name} disabled={readOnly} value={value} />
<textarea placeholder={placeholder} title={title} onBlur={handleBlur} onInput={handleInput} class={['bk-form-textarea pointer-events-auto', clickUnfold ? 'textarea-styles' : '', hoverUnfold && readOnly ? 'hover-textarea-styles' : '']} name={name} disabled={readOnly || disabled} value={value} />
)
}
}
Expand Down

0 comments on commit 9838ffb

Please sign in to comment.