File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
docs/.vitepress/theme/components Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ export default {
2727 },
2828 methods: {
2929 getOptionString(item : InstallOptions ): string {
30- if (item .textField && item . selected ) {
31- return item .text . length >= 2 ? ` ${item .param } '${item .text }' ` : " " ;
30+ if (item .textField ) {
31+ return item .selected ? ` ${item .param } '${item .text }' ` : " " ;
3232 }
3333
3434 if (item .selectField ) {
35- return ` ${item .param } '${item .text }' ` ;
35+ return item . selected ? ` ${item .param } '${item .text }' ` : " " ;
3636 }
3737
3838 return item .param .includes (" force" ) && item .selected
@@ -107,7 +107,13 @@ export default {
107107 <p >{{ item.desc }}</p >
108108 </template >
109109 <div v-if =" item.textField" >
110- <input type =" text" class =" form-control" v-model =" item.text" :id =" 'input-' + item.id" />
110+ <input
111+ type =" text"
112+ class =" form-control"
113+ v-model =" item.text"
114+ :id =" 'input-' + item.id"
115+ :type =" '+item.type+'"
116+ />
111117 </div >
112118 <div v-if =" item.selectField" >
113119 <select class =" form-select" v-model =" item.text" :id =" 'input-' + item.id" >
You can’t perform that action at this time.
0 commit comments