diff options
| author | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-08 19:18:51 +0300 |
|---|---|---|
| committer | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-08 19:18:51 +0300 |
| commit | 5e47b4e94925c2272a7f0a4cc355cede72c671a4 (patch) | |
| tree | 1cc0b2f5c8cea380b65c6d8bb1294e9c5eeb83a7 /web/html/xui/component | |
| parent | 549f230221d7139270efefd76ac81f37e1a747f9 (diff) | |
pagination and sub URI support #1300
Diffstat (limited to 'web/html/xui/component')
| -rw-r--r-- | web/html/xui/component/setting.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/html/xui/component/setting.html b/web/html/xui/component/setting.html index 568f03de..82c0ae75 100644 --- a/web/html/xui/component/setting.html +++ b/web/html/xui/component/setting.html @@ -13,10 +13,10 @@ </a-col> <a-col :lg="24" :xl="12"> <template v-if="type === 'text'"> - <a-input :value="value" @input="$emit('input', $event.target.value)"></a-input> + <a-input :value="value" @input="$emit('input', $event.target.value)" :placeholder="placeholder"></a-input> </template> <template v-else-if="type === 'number'"> - <a-input-number :value="value" @change="value => $emit('input', value)" :min="min" style="width: 100%;"></a-input-number> + <a-input-number :value="value" :step="step" @change="value => $emit('input', value)" :min="min" style="width: 100%;"></a-input-number> </template> <template v-else-if="type === 'switch'"> <a-switch :checked="value" @change="value => $emit('input', value)"></a-switch> @@ -29,7 +29,7 @@ {{define "component/setting"}} <script> Vue.component('setting-list-item', { - props: ["type", "title", "desc", "value", "min"], + props: ["type", "title", "desc", "value", "min", "step", "placeholder"], template: `{{template "component/settingListItem"}}`, }); </script> |
