input place holder

This commit is contained in:
2021-05-23 00:41:06 +08:00
parent 2084d0046a
commit 9b38a26253

View File

@@ -15,7 +15,7 @@ const component_search_folders = {
}, },
template: ` template: `
<div class="search_toolbar"> <div class="search_toolbar">
<input type="text" v-model="search_foldernames" /> <input type="text" v-model="search_foldernames" placeholder="Enter folder name" />
<button @click="first_search_folders">Search Folders</Button> <button @click="first_search_folders">Search Folders</Button>
<button @click="last_page">Last Page</button> <button @click="last_page">Last Page</button>
<span>{{ offset }}~{{ offset + folders.length }}</span> <span>{{ offset }}~{{ offset + folders.length }}</span>
@@ -134,7 +134,7 @@ const component_token = {
template: ` template: `
<table><tbody><tr> <table><tbody><tr>
<td>Token</td> <td>Token</td>
<td><input type="text" v-model="token_tmp" @change="emit_set_token" /></td> <td><input type="text" v-model="token_tmp" @change="emit_set_token" placeholder="token" /></td>
</tr></tbody></table> </tr></tbody></table>
`, `,
methods: { methods: {
@@ -162,11 +162,11 @@ const component_manage= {
<tbody> <tbody>
<tr> <tr>
<td>Root</td> <td>Root</td>
<td><input type="text" v-model="root" /></td> <td><input type="text" v-model="root" placeholder="/path/to/root" /></td>
</tr> </tr>
<tr> <tr>
<td><button @click="add_pattern">Add Pattern</button></td> <td><button @click="add_pattern">Add Pattern</button></td>
<td><input type="text" v-model="pattern_tmp" /></td> <td><input type="text" v-model="pattern_tmp" placeholder=".wav" /></td>
</tr> </tr>
<tr> <tr>
<td colspan="2"><strong>Pattern List</strong></td> <td colspan="2"><strong>Pattern List</strong></td>
@@ -370,7 +370,7 @@ const component_search_files = {
emits: ['play_audio'], emits: ['play_audio'],
template: ` template: `
<div> <div>
<input type="text" name="filename" v-model="search_filenames" /> <input type="text" name="filename" v-model="search_filenames" placeholder="Enter filename" />
<button @click="first_search_files">Search</button> <button @click="first_search_files">Search</button>
<button @click="last_page">Last Page</button> <button @click="last_page">Last Page</button>
<span>{{ offset }}~{{ offset + files.length }}</span> <span>{{ offset }}~{{ offset + files.length }}</span>