Skip to content

Commit

Permalink
feat: remove unnecessary buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jun 16, 2023
1 parent 5aef31e commit 43aab3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/form/FormTableField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
:value="op.value"
/>
</el-select>
<cl-input-with-button
<el-input
v-else-if="fieldType === FORM_FIELD_TYPE_INPUT_WITH_BUTTON"
v-model="internalValue"
:placeholder="t(placeholder)"
Expand Down
8 changes: 2 additions & 6 deletions src/components/schedule/ScheduleForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@
:label="t('components.schedule.form.command')"
prop="cmd"
>
<cl-input-with-button
<el-input
v-locate="'cmd'"
v-model="form.cmd"
:button-icon="['fa', 'edit']"
:disabled="isFormItemDisabled('cmd')"
:button-label="t('common.actions.edit')"
:placeholder="t('components.schedule.form.command')"
/>
</cl-form-item>
Expand All @@ -88,12 +86,10 @@
:label="t('components.schedule.form.param')"
prop="param"
>
<cl-input-with-button
<el-input
v-locate="'param'"
v-model="form.param"
:button-icon="['fa', 'edit']"
:disabled="isFormItemDisabled('param')"
:button-label="t('common.actions.edit')"
:placeholder="t('components.schedule.form.param')"
/>
</cl-form-item>
Expand Down
8 changes: 2 additions & 6 deletions src/components/spider/SpiderForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@
prop="cmd"
required
>
<cl-input-with-button
<el-input
v-model="form.cmd"
:button-icon="['fa', 'edit']"
:button-label="t('common.actions.edit')"
:placeholder="t('components.spider.form.command')"
:disabled="isFormItemDisabled('cmd')"
id="cmd"
Expand All @@ -59,10 +57,8 @@
:label="t('components.spider.form.param')"
prop="param"
>
<cl-input-with-button
<el-input
v-model="form.param"
:button-icon="['fa', 'edit']"
:button-label="t('common.actions.edit')"
:placeholder="t('components.spider.form.param')"
:disabled="isFormItemDisabled('param')"
id="cmd"
Expand Down

0 comments on commit 43aab3b

Please sign in to comment.