อังกฤษ | 简体中文
ปลั๊กอินนี้สามารถให้ฟังก์ชันพรอมต์อัจฉริยะที่ทรงพลังอย่างยิ่ง รวมถึงคุณสมบัติ เหตุการณ์ สล็อต และคำอธิบายประกอบและประเภทที่เกี่ยวข้อง วิธีการบนอินสแตนซ์ ฯลฯ รองรับไลบรารี UI หลายไลบรารี ยกระดับประสิทธิภาพการพัฒนาของคุณไปอีกระดับ
ติดตั้งไลบรารีคอมโพเนนต์ UI ที่รองรับในโปรเจ็กต์ของคุณ และติดตั้งปลั๊กอิน หากปลั๊กอินไม่ทำงาน คุณสามารถรีสตาร์ท vscode ได้ หากคุณพบปัญหาคุณสามารถเปิดปัญหาได้
cmd+shift+p
-> เลือก Specify the UI library you need to prompt
{
"common-intellisense.showSlots" : {
"type" : " boolean " ,
"default" : true ,
"description" : " Whether to show the slots on template completion. "
},
"common-intellisense.alias" : {
"type" : " object " ,
"default" : {},
"description" : " If you need to integrate the supported ui library, the secondary encapsulated library, and the prompt to integrate a certain version of the original ui, you can use the alias { " @xxx/element " : " elementUi2 " } "
},
"common-intellisense.remoteUris" : {
"type" : " array " ,
"default" : [],
"description" : " Remote URIs "
},
"common-intellisense.remoteNpmUris" : {
"type" : " array " ,
"default" : [],
"description" : " Remote NPM URIs "
},
"common-intellisense.localUris" : {
"type" : " array " ,
"default" : [],
"description" : " Local URIs "
}
}
พื้นที่เก็บข้อมูลนี้ได้รับการดูแลโดยบุคคล และจำเป็นต้องอัปเดตด้วยไลบรารี UI บางแห่งบ่อยครั้ง หากคุณสนใจที่จะมีส่วนร่วม คุณสามารถส่ง PR ไปยังเวอร์ชันที่เกี่ยวข้องของไลบรารี UI ที่เกี่ยวข้องภายใต้ @common-intellisense หรือจัดเตรียมไลบรารี UI ใหม่บางส่วนหรือคุณลักษณะใหม่บางอย่าง ยินดีส่งผลงาน ปัญหา
หากโปรเจ็กต์ของคุณเป็นไลบรารีส่วนตัว คุณยังสามารถอ้างถึง vuetify จัดเตรียม uri ที่ส่งออก หาก uri ของคุณเป็นที่อยู่ dist/index.cjs
แบบแพ็กเกจที่สามารถเข้าถึงได้ ใน vscode common-intellisense.remoteUris
กำหนดค่าลิงก์นี้ ปลั๊กอิน จะขอลิงก์นี้และรับข้อมูลพร้อมท์ที่เกี่ยวข้อง คุณยังสามารถกำหนดค่าชื่อแพ็กเกจ npm ได้โดยตรง (@xx/yy-ui) กำหนดค่าใน common-intellisense.remoteNpmUris
เพื่อให้ปลั๊กอินร้องขอ dist/index.cjs
ที่สร้างโดยแพ็กเกจ npm และรับค่าที่สอดคล้องกัน ข้อมูลที่รวดเร็ว วิดีโอของ Bilibili
{
"name" : " componentName like Button.Group or VButton(Big CamelCase Format) " ,
"props" : {
"attributeName" : {
"default" : " defaultValue " ,
"value" : " if have will generate attribute with= " value " " ,
"type" : " if you use -> boolean / top / end / bottom / start will have option when create attribute " ,
"description" : " en description " ,
"description_zh" : " zh description " ,
"required" : true , // if with true when select component will auto has this attribute
"foreach" : false , // it only work with vue, when you want generate with v-for
"version" : " Hints are available only in a specified version "
}
},
"link" : " en link to document " ,
"link_zh" : " zh link to document " ,
"typeDetail" : { // Used to supplement other types of descriptions in the attribute dependencies
"AnchorItem" : [ // if name startsWith '$' like "$AnchorItem", will be type AnchorItem = 'x' | 'y'
{
"name" : " key " ,
"description" : " Unique ID " ,
"type" : " string | number "
}
]
},
"events" : [
{
"name" : " close " ,
"description" : " Emitted when close icon is clicked. " ,
"description_zh" : "单击关闭图标时发出。 " ,
"params" : " [MouseEvent] " ,
"version" : " Hints are available only in a specified version "
}
],
"exposed" : [ // when use ref get vm, vm.value or vm.current will get this hints
{
"name" : " [string] " ,
"description" : " MISSING DESCRIPTION (edit in github) " ,
"description_zh" : " MISSING DESCRIPTION (edit in github) " ,
"detail" : " any "
}
],
"suggestions" : [ // Some components are combined,when use button-group, inner tip will this `button` reminder will be brought forward, if this components with only one suggestions, it will select button-group auto create button
" v-alert-title "
]
}
code ~/.vscode/extensions
จากนั้นลบเวอร์ชันต่ำ simonhe.common-intellisense-low-version
แล้วรีสตาร์ท vscodefnm
หรือ nvm
หรือเครื่องมือการกำหนดเวอร์ชัน node
อื่นๆ และหากคุณประสบปัญหา เช่น การดาวน์โหลดที่ผิดปกติหรือปัญหาในการดาวน์โหลด โปรดตรวจสอบว่ามีการตั้งค่าตัวแปรสภาพแวดล้อมของระบบหรือไม่fnm
โปรดเพิ่ม %USERPROFILE%AppDataRoamingfnmaliasesdefault
ตัวแปรสภาพแวดล้อม สนับสนุน Common Intellisense
เอ็มไอที