الإنجليزية | 简体中文
يمكن أن يوفر هذا المكون الإضافي وظيفة مطالبة ذكية فائقة القوة، بما في ذلك الخصائص والأحداث والفتحات والتعليقات التوضيحية والأنواع المقابلة لها، وطرق المثيلات، وما إلى ذلك. وهو يدعم مكتبات واجهة المستخدم المتعددة، مما يرفع كفاءة التطوير لديك إلى المستوى التالي.
قم بتثبيت مكتبة مكونات واجهة المستخدم المدعومة في مشروعك وقم بتثبيت البرنامج الإضافي. إذا لم يعمل المكون الإضافي، فيمكنك إعادة تشغيل 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 "
}
}
تتم صيانة هذا المستودع بواسطة أفراد، ويجب تحديثه ببعض مكتبات واجهة المستخدم بشكل متكرر. إذا كنت مهتمًا بالمساهمة، فيمكنك إرسال تقرير العلاقات العامة إلى الإصدار المقابل من مكتبة واجهة المستخدم المقابلة ضمن @common-intellisense أو تقديم بعض مكتبات واجهة المستخدم الجديدة أو بعض الميزات الجديدة. التقديمات هي موضع ترحيب. مشكلة
إذا كان مشروعك عبارة عن مكتبة خاصة، فيمكنك أيضًا الرجوع إلى vuetify، وتوفير uri مُصدر، إذا كان uri الخاص بك عبارة عن عنوان dist/index.cjs
معبأ يمكن الوصول إليه، في vscode common-intellisense.remoteUris
، وقم بتكوين هذا الرابط، والمكون الإضافي سيطلب هذا الرابط ويحصل على المعلومات السريعة المقابلة. يمكنك أيضًا تكوين اسم حزمة npm مباشرةً (@xx/yy-ui)، وتكوينه في common-intellisense.remoteNpmUris
، بحيث يطلب المكون الإضافي dist/index.cjs
الذي تنتجه حزمة npm ويحصل على الملف المقابل معلومات سريعة. فيديو بيليبيلي
{
"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
، وأعد تشغيل vscode.fnm
أو nvm
أو أدوات أخرى لإصدار node
، وإذا واجهت مشكلات مثل التنزيلات غير الطبيعية أو مشكلات التنزيلات، فيرجى التحقق من تعيين متغيرات بيئة النظام.fnm
، فيرجى إضافة %USERPROFILE%AppDataRoamingfnmaliasesdefault
متغير البيئة. الراعي المشترك Intellisense
معهد ماساتشوستس للتكنولوجيا