Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/xui/component/setting.html')
-rw-r--r--web/html/xui/component/setting.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/web/html/xui/component/setting.html b/web/html/xui/component/setting.html
index bc2c6e42..85220d25 100644
--- a/web/html/xui/component/setting.html
+++ b/web/html/xui/component/setting.html
@@ -21,7 +21,24 @@
{{define "component/setting"}}
<script>
Vue.component('a-setting-list-item', {
- props: ["title", "description", "paddings"],
+ props: {
+ 'title': {
+ type: String,
+ required: true,
+ },
+ 'description': {
+ type: String,
+ required: false,
+ },
+ 'paddings': {
+ type: String,
+ required: false,
+ defaultValue: "default",
+ validator: function (value) {
+ return ['small', 'default'].includes(value)
+ }
+ }
+ },
template: `{{ template "component/settingListItem" }}`,
computed: {
padding() {
@@ -29,7 +46,7 @@
case "small":
return "10px 20px !important"
break;
- default:
+ case "default":
return "20px !important"
break;
}