Skip to content

Commit

Permalink
add:在UI输入框(自定义组件)中添加了占位符 (#656)
Browse files Browse the repository at this point in the history
* add:在UI输入框中添加了占位符

* 补传 .prettierignore
  • Loading branch information
fuyn101 authored Jul 25, 2024
1 parent f4232ea commit 3a4634e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ui/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 各种自动生成的json
src/pages/basement_skill/*.json
src/pages/stage_data/event_data.json
5 changes: 5 additions & 0 deletions ui/src/components/SlickOperatorSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
multiple
filterable
:options="operators"
:placeholder="props.select_placeholder"
v-model:value="operatorValue"
:filter="(p, o) => match(o.label, p)"
:render-label="render_op_label"
Expand All @@ -37,6 +38,10 @@ const props = defineProps({
disabled: {
type: Boolean,
default: false
},
select_placeholder: {
type: String,
default: ''
}
})
const render_op_slick_tag = ({ option, handleClose }) => {
Expand Down
5 changes: 4 additions & 1 deletion ui/src/pages/Plan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ async function import_plan() {
</p>
</help-text>
</template>
<slick-operator-select v-model="current_conf.refresh_trading"></slick-operator-select>
<slick-operator-select
v-model="current_conf.refresh_trading"
select_placeholder="填入在贸易站外影响贸易效率的干员"
></slick-operator-select>
</n-form-item>
<n-form-item v-if="sub_plan != 'main'">
<template #label>
Expand Down
5 changes: 4 additions & 1 deletion ui/src/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ async function test_screenshot() {
</div>
</help-text>
</template>
<n-input v-model:value="simulator.hotkey" />
<n-input
v-model:value="simulator.hotkey"
placeholder="输入模拟器的老板键,组合键用分号隔开,或留空以停用"
/>
</n-form-item>
<n-form-item label="启动游戏">
<n-select v-model:value="tap_to_launch_game.enable" :options="launch_options" />
Expand Down

0 comments on commit 3a4634e

Please sign in to comment.