vue-photonkit
Advanced tools
Comparing version 1.0.0 to 1.1.0
/** | ||
* vue-photon 1.0.0 | ||
* vue-photon 1.1.0 | ||
*/ | ||
@@ -4,0 +4,0 @@ |
module.exports = { | ||
props: ['src', 'title', 'text'], | ||
props: ['src', 'active'], | ||
render: function(h) { | ||
return h('li', { staticClass: 'list-group-item' }, [ | ||
var data = { | ||
staticClass: 'list-group-item', | ||
class: { active: this.active } | ||
} | ||
return h('li', data, [ | ||
@@ -11,8 +15,5 @@ this.src ? h('img', { | ||
h('div', { staticClass: 'media-body'}, [ | ||
h('strong', this.title), | ||
h('p', this.text) | ||
]) | ||
h('div', { staticClass: 'media-body'}, this.$slots.default) | ||
]) | ||
} | ||
} |
@@ -26,6 +26,2 @@ var Icon = require('./Icon') | ||
methods: { | ||
activate: function(e) { | ||
e.stopPropagation() | ||
this.$emit('activate') | ||
}, | ||
cancel: function(e) { | ||
@@ -32,0 +28,0 @@ e.stopPropagation() |
{ | ||
"name": "vue-photonkit", | ||
"description": "Vue.js component for Photon", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -18,7 +18,15 @@ "author": "kaorun343 <kaoru.h65536@live.jp>", | ||
"node-sass": "^4.1.1", | ||
"photon": "connors/photon#v0.1.2-alpha", | ||
"photon": "github:connors/photon#v0.1.2-alpha", | ||
"sass-loader": "^4.1.1", | ||
"vue-play": "^2.2.0", | ||
"vue-play-cli": "^1.0.4" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kaorun343/vue-photonkit.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/kaorun343/vue-photonkit/issues" | ||
}, | ||
"homepage": "https://github.com/kaorun343/vue-photonkit#readme" | ||
} |
@@ -9,2 +9,13 @@ # vue-photonkit | ||
## Usage | ||
```html | ||
<script> | ||
import { Icon } from 'vue-photonkit' | ||
const { Icon } = require('vue-photonkit') | ||
// or | ||
import Icon from 'vue-photonkit/lib/Icon' | ||
const Icon = require('vue-photonkit/lib/Icon') | ||
</script> | ||
``` | ||
See [vue-play scenarios](./play) | ||
@@ -11,0 +22,0 @@ |
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5692
1
0
26
0
168