Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 70513c1

Browse files
committed
🎉 bump version to 1.0.0
1 parent e5b7820 commit 70513c1

19 files changed

+306
-15
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
docs
22
src
3+
lib
4+
test
35
dist/index.docs.css
46
dist/index.docs.js
57
.babelrc
68
.eslintrc.js
9+
.travis.yml
710
webpack.config.js
811
yarn.lock
912
index.html

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- '9'
4+
script:
5+
- yarn run lint
6+
- yarn run test

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Office UI Fabric implementation for Vue.js, build with [office-ui-fabric-js](https://github.com/OfficeDev/office-ui-fabric-js)
66

7+
## Dependencies
8+
9+
- vue.js 2.2.0+
10+
711
## Installation
812

913
```
@@ -44,6 +48,10 @@ $ yarn run server
4448
4549
$ yarn run bundle
4650
51+
// runing the test
52+
53+
$ yarn run test
54+
4755
```
4856

4957

dist/index.docs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "office-ui-fabric-vue",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "Office UI Fabric implementation for Vue.js",
55
"main": "dist/index.js",
66
"author": "aidewoode <[email protected]>",
@@ -22,7 +22,8 @@
2222
"server": "./node_modules/.bin/webpack-dev-server --inline --hot --env.development",
2323
"bundle": "./node_modules/.bin/webpack --env.production",
2424
"bundleLib": "./node_modules/.bin/webpack --env.production --env.lib",
25-
"test": "./node_modules/.bin/jest"
25+
"test": "./node_modules/.bin/jest",
26+
"lint": "./node_modules/.bin/eslint --ext .js,.vue src"
2627
},
2728
"devDependencies": {
2829
"babel-core": "^6.24.1",

src/components/pivot/Pivot.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
};
4242
}
4343
},
44+
4445
created() {
4546
this.eventHub.$on('addPivotItem', this.addPivotItem);
4647
},

src/components/table/Table.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
<script>
1818
// Note: The Selectable Table haven't create
1919
import type from '../../mixins/props/type';
20+
import eventHub from '../../mixins/eventHub';
2021
2122
export default {
2223
name: 'ou-table',
2324
24-
mixins: [type('fixed')],
25+
mixins: [type('fixed'), eventHub],
2526
2627
props: {
2728
data: {
@@ -47,6 +48,20 @@
4748
[`ms-Table--${this.type}`]: !!this.type
4849
};
4950
}
51+
},
52+
53+
created() {
54+
this.eventHub.$on('addTableColumnItems', this.addTableColumnItems);
55+
},
56+
57+
beforeDestroy() {
58+
this.eventHub.$off('addTableColumnItems', this.tableColumnItems);
59+
},
60+
61+
methods: {
62+
addTableColumnItems(value) {
63+
this.tableColumnItems.push(value);
64+
}
5065
}
5166
};
5267
</script>

src/components/table/TableColumn.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
export default {
88
name: 'ou-table-column',
99
10+
inject: ['eventHub'],
11+
1012
props: {
1113
prop: {
1214
type: String,
@@ -15,7 +17,7 @@
1517
},
1618
1719
beforeMount() {
18-
this.$parent.tableColumnItems.push(this.prop);
20+
this.eventHub.$emit('addTableColumnItems', this.prop);
1921
}
2022
};
2123
</script>

src/components/toggle/Toggle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ description }}
55
</span>
66
<input type='checkbox' class='ms-Toggle-input'/>
7-
<span @click='toggle'>
7+
<span class='ms-Toggle-trigger' @click='toggle'>
88
<label
99
class='ms-Toggle-field'
1010
tabindex='0'

0 commit comments

Comments
 (0)