This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +82
-0
lines changed Expand file tree Collapse file tree 6 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" mdc-chip" >
3
+ <div class =" mdc-chip__text" >
4
+ <slot />
5
+ </div >
6
+ </div >
7
+ </template >
8
+
9
+ <script >
10
+ import { MDCChip } from ' @material/chips'
11
+
12
+ export default {
13
+ data () {
14
+ return {
15
+ mdcChip: null
16
+ }
17
+ },
18
+ mounted () {
19
+ this .mdcChip = MDCChip .attachTo (this .$el )
20
+ }
21
+ }
22
+ </script >
23
+
24
+ <style lang="scss">
25
+ @import " @material/chips/mdc-chips" ;
26
+ </style >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" mdc-chip-set" />
3
+ </template >
4
+
5
+ <script >
6
+ import { MDCChipSet } from ' @material/chips'
7
+
8
+ export default {
9
+ data () {
10
+ return {
11
+ mdcChipSet: null
12
+ }
13
+ },
14
+ mounted () {
15
+ this .mdcChipSet = MDCChipSet .attachTo (this .$el )
16
+ }
17
+ }
18
+ </script >
19
+
20
+ <style lang="scss">
21
+ @import " @material/chips/mdc-chips" ;
22
+ </style >
Original file line number Diff line number Diff line change
1
+ ## ChipSet
2
+
3
+ ### Markup
4
+
5
+ ``` html
6
+ <m-chip-set >
7
+ <m-chip >Chip content</m-chip >
8
+ </m-chip-set >
9
+ ```
10
+
11
+ ## Chip
12
+
13
+ ### Slots
14
+
15
+ | Slot | Description |
16
+ | ------| -------------|
17
+ | default | chip content |
18
+
19
+ ### Reference
20
+
21
+ - https://github.com/material-components/material-components-web/tree/master/packages/mdc-chips
Original file line number Diff line number Diff line change
1
+ import Chip from './Chip.vue'
2
+ import ChipSet from './ChipSet.vue'
3
+
4
+ export default {
5
+ install ( vm ) {
6
+ vm . component ( 'm-chip' , Chip )
7
+ vm . component ( 'm-chip-set' , ChipSet )
8
+ }
9
+ }
Original file line number Diff line number Diff line change 1
1
import Button from './Button'
2
2
import Card from './Card'
3
3
import Checkbox from './Checkbox'
4
+ import Chips from './Chips'
4
5
import Dialog from './Dialog'
5
6
import Elevation from './Elevation'
6
7
import Fab from './Fab'
@@ -31,6 +32,7 @@ const plugin = {
31
32
vue . use ( Button )
32
33
vue . use ( Card )
33
34
vue . use ( Checkbox )
35
+ vue . use ( Chips )
34
36
vue . use ( Dialog )
35
37
vue . use ( Elevation )
36
38
vue . use ( Fab )
Original file line number Diff line number Diff line change
1
+ @import " @material/line-ripple/mdc-line-ripple" ;
1
2
@import " @material/button/mdc-button" ;
2
3
@import " @material/card/mdc-card" ;
3
4
@import " @material/checkbox/mdc-checkbox" ;
5
+ @import " @material/chips/mdc-chips" ;
4
6
@import " @material/dialog/mdc-dialog" ;
5
7
@import " @material/drawer/mdc-drawer" ;
6
8
@import " @material/elevation/mdc-elevation" ;
You can’t perform that action at this time.
0 commit comments