Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Widgets/ListTools.vue
Show All 10 Lines | const ListSearch = { | ||||
}, | }, | ||||
data() { | data() { | ||||
return { | return { | ||||
search: '' | search: '' | ||||
} | } | ||||
}, | }, | ||||
template: `<form @submit.prevent="onSearch(search)" id="search-form" class="input-group" style="flex:1"> | template: `<form @submit.prevent="onSearch(search)" id="search-form" class="input-group" style="flex:1"> | ||||
<input class="form-control" type="text" :placeholder="placeholder" v-model="search"> | <input class="form-control" type="text" :placeholder="placeholder" v-model="search"> | ||||
<button type="submit" class="btn btn-primary"><svg-icon icon="search"></svg-icon> {{ $t('btn.search') }}</button> | <button type="submit" class="btn btn-primary"><svg-icon icon="magnifying-glass"></svg-icon> {{ $t('btn.search') }}</button> | ||||
</form>` | </form>` | ||||
} | } | ||||
const ListFoot = { | const ListFoot = { | ||||
props: { | props: { | ||||
colspan: { type: Number, default: 1 }, | colspan: { type: Number, default: 1 }, | ||||
text: { type: String, default: '' } | text: { type: String, default: '' } | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |