Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "elfd", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Mobile UI Components built on Web Components.", | ||
"main": "./components/index.js", | ||
"browser": "./components/index.js", | ||
"module": "./components/index.js", | ||
"exports": "./components/index.js", | ||
"unpkg": "./components/index.js", | ||
"main": "./src/index.js", | ||
"browser": "./src/index.js", | ||
"module": "./src/index.js", | ||
"exports": "./src/index.js", | ||
"unpkg": "./src/index.js", | ||
"files": [ | ||
@@ -19,3 +19,3 @@ "components", | ||
"keywords": [ | ||
"elf", | ||
"elfd", | ||
"ui", | ||
@@ -22,0 +22,0 @@ "Web Component" |
@@ -1,8 +0,39 @@ | ||
# Elf | ||
# Elf-design | ||
Mobile UI Components built on Web Components. | ||
Elf-design /elf/ 是一个基于 Web Components 的 UI 组件库。它是一个不局限于框架的组件复用(可在 Angular、React、Vue 等跨技术栈使用)。 | ||
## Features | ||
- Support Vue & React | ||
- Fast. | ||
- Web Components. | ||
- Simple. | ||
## cdn 使用 | ||
``` | ||
<script type="module" src="https://unpkg.com/xy-ui"></script> | ||
``` | ||
## Vue 技术栈使用 | ||
当作原生 dom 元素直接使用即可。 | ||
ps:直接使用 Web Component 会告警,`Unknown custom element: <user-card> - did you register the component correctly? For recursive components, make sure to provide the "name" option.`,因此请先注册需要忽略的标签: | ||
```js | ||
Vue.config.ignoredElements = [ | ||
'user-card', | ||
// 用一个 `RegExp` 忽略所有“ion-”开头的元素 | ||
// 仅在 2.5+ 支持 | ||
/^ion-/ | ||
] | ||
``` | ||
## React 技术栈使用 | ||
同理,当作原生 dom 元素直接使用即可。 | ||
## License | ||
@@ -9,0 +40,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4839
43
5
0
1