ตัวอย่างที่นี่ | แผนงาน
โครงการนี้เป็นงานที่กำลังดำเนินอยู่ ดูหน้าโครงการเพื่อติดตามสถานะทั้งหมด
ระบบการออกแบบและข้อกำหนดยังคงเปิดอยู่ แต่ควรได้รับแรงบันดาลใจใน nebular, bootstrap และ tailwind
เขียนความคิดเห็นเกี่ยวกับระบบการออกแบบให้ข้อเสนอแนะของคุณ!
| โครเมี่ยม | ขอบใหม่ (โครเมียม) | ซาฟารี | Firefox | ขอบที่เก่ากว่า | เช่น |
|---|---|---|---|---|---|
| 60+ | 79+ | 10.1+ | 63+ | 16-18 (Polyfills) | > = 11 (polyfills) |
ดูเอกสารที่สมบูรณ์
ติดตั้งการพึ่งพา:
npm i @tiagoboeing/anywhere-webcomponents และนำเข้าได้ anywhere-webcomponents.js
< script src = "@tiagoboeing/anywhere-webcomponents/dist/anywhere-webcomponents/anywhere-webcomponents.js" > </ script >สำหรับใช้ในเฟรมเวิร์กดูหน้า stencil
ตอนนี้คุณสามารถทดสอบส่วนประกอบในหน้า HTML ที่นำเข้าผ่านสคริปต์จาก CDN
< script src =" https://cdn.tiagoboeing.com/anywhere-webcomponents/master/anywhere-webcomponents/anywhere-webcomponents.js " > </ script >
< aw-button label =" Primary " mode =" square " color =" outline " status =" success " > </ aw-button > (ความสนใจ !! ไม่ใช้สำหรับการผลิต!)
< script src =" https://cdn.tiagoboeing.com/anywhere-webcomponents/develop/anywhere-webcomponents/anywhere-webcomponents.js " > </ script >
< aw-button label =" Primary " mode =" square " color =" outline " status =" success " > </ aw-button >ทางเลือกอื่นคือใช้ UNPKG สำหรับสิ่งนี้เขียนทับด้วย URL ต่อไปนี้:
https://unpkg.com/@tiagoboeing/anywhere-webcomponents@latest/dist/anywhere-webcomponents/anywhere-webcomponents.js
npm i @tiagoboeing/anywhere-webcomponents ใน app.module.ts ของคุณประกาศ CUSTOM_ELEMENTS_SCHEMA :
import { NgModule , CUSTOM_ELEMENTS_SCHEMA } from '@angular/core' ;
@ NgModule ( {
declarations : [
AppComponent
] ,
imports : [
BrowserModule ,
AppRoutingModule
] ,
providers : [ ] ,
bootstrap : [ AppComponent ] ,
schemas : [ CUSTOM_ELEMENTS_SCHEMA ] // <-- declare this
} )
export class AppModule { } และใน main.ts สิ้นสุดของไฟล์เพิ่มการนำเข้าต่อไปนี้:
import { applyPolyfills , defineCustomElements } from '@tiagoboeing/anywhere-webcomponents/loader' ;
defineCustomElements ( ) ;
// for IE support (optional)
applyPolyfills ( ) . then ( ( ) => {
defineCustomElements ( )
} )yarn add @tiagoboeing/anywhere-webcomponents ในไฟล์ src/index.js หรือ src/index.tsx (Project) ของคุณเพิ่มการนำเข้าต่อไปนี้ก่อนที่จะแสดงปฏิกิริยา:
import { applyPolyfills , defineCustomElements } from '@tiagoboeing/anywhere-webcomponents/loader' ;
defineCustomElements ( ) ;
// for IE support (optional)
applyPolyfills ( ) . then ( ( ) => {
defineCustomElements ( )
} ) ดูหน้าโครงการเพื่อติดตามสถานะทั้งหมด
คู่มือดูผลงาน
ขอบคุณไปที่คนที่ยอดเยี่ยมเหล่านี้ (คีย์อีโมจิ):
Tiago Boeing - - - | Lucas Souza Matos |
โครงการนี้เป็นไปตามข้อกำหนดทั้งหมดของผู้เข้าร่วม การมีส่วนร่วมทุกชนิดยินดีต้อนรับ!