@phila/phila-ui-checkbox 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
## Usage
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
#### Import single component...
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```js
|
|
6
|
+
import { Checkbox } from '@phila/phila-ui';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
//register it locally...
|
|
9
|
+
components: {
|
|
10
|
+
Checkbox,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//... or register it globally
|
|
14
|
+
Vue.component('checkbox', Checkbox);
|
|
10
15
|
```
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
#### or import the whole library,
|
|
13
18
|
|
|
19
|
+
```js
|
|
20
|
+
import * as PhilaUI from "@phila/phila-ui";
|
|
21
|
+
|
|
22
|
+
//register it globally
|
|
23
|
+
Vue.use(PhilaUI);
|
|
14
24
|
```
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
|
|
26
|
+
#### then use it in the vue template
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<checkbox></checkbox>
|
|
30
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phila/phila-ui-checkbox",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"registry": "https://registry.npmjs.com/",
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f00518592815b1bf558d88f77fc4b6b3a30296e5"
|
|
47
47
|
}
|