mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-27 02:24:40 +00:00 
			
		
		
		
	 6d97fd2395
			
		
	
	
		6d97fd2395
		
	
	
	
	
		
			
			* Update custom.css * Update setting.html * Update settings.html * Update antd.min.css * Update antd.min.css * Update settings.html * Update custom.css * Update custom.css * Update antd.min.css * Update setting.html * Update custom.css
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{define "component/settingListItem"}}
 | |
| <a-list-item style="padding: 20px">
 | |
|     <a-row v-if="type === 'textarea'">
 | |
|         <a-col>
 | |
|             <a-list-item-meta :title="title" :description="desc"/>
 | |
|             <a-textarea class="ant-setting-textarea" :value="value" @input="$emit('input', $event.target.value)" :auto-size="{ minRows: 10 }"></a-textarea>
 | |
|             <!--a-textarea :value="value" @input="$emit('input', $event.target.value)" :auto-size="{ minRows: 10, maxRows: 30 }"></a-textarea-->
 | |
|         </a-col>
 | |
|     </a-row>
 | |
|     <a-row v-else>
 | |
|         <a-col :lg="24" :xl="12">
 | |
|             <a-list-item-meta :title="title" :description="desc"/>
 | |
|         </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>
 | |
|             </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>
 | |
|             </template>
 | |
|             <template v-else-if="type === 'switch'">
 | |
|                 <a-switch :checked="value" @change="value => $emit('input', value)"></a-switch>
 | |
|             </template>
 | |
|         </a-col>
 | |
|     </a-row>
 | |
| </a-list-item>
 | |
| {{end}}
 | |
| 
 | |
| {{define "component/setting"}}
 | |
| <script>
 | |
|     Vue.component('setting-list-item', {
 | |
|         props: ["type", "title", "desc", "value", "min"],
 | |
|         template: `{{template "component/settingListItem"}}`,
 | |
|     });
 | |
| </script>
 | |
| {{end}}
 |