[+] 添加skid案例
diff --git a/example/skid/index.js b/example/skid/index.js
new file mode 100644
index 0000000..6191d83
--- /dev/null
+++ b/example/skid/index.js
@@ -0,0 +1,4 @@
+import entry from './index.vue'
+
+entry.el = '#root'
+export default new Vue(entry)
diff --git a/example/skid/index.vue b/example/skid/index.vue
new file mode 100644
index 0000000..0f032a6
--- /dev/null
+++ b/example/skid/index.vue
@@ -0,0 +1,86 @@
+<template>
+<div>
+ <WxcSkid @onNodeClick='onTest' :data='data'/>
+</div>
+</template>
+
+<script>
+import WxcSkid from '../../index';
+const modal = weex.requireModule("modal");
+
+export default {
+ data() {
+ return {
+ data: [
+ {
+ title: "标题1",
+ autoClose: true,
+ right: [
+ {
+ text: "置顶",
+ onPress: function() {
+ modal.toast({
+ message: "置顶",
+ duration: 0.3
+ });
+ }
+ },
+ {
+ text: "删除",
+ onPress: () => {
+ modal.toast({
+ message: "删除",
+ duration: 0.3
+ });
+ },
+ style: { backgroundColor: "#F4333C", color: "white" }
+ }
+ ]
+ },
+ {
+ title: "标题23",
+ right: [
+ {
+ text: "删除",
+ onPress: () => {
+ modal.toast({
+ message: "删除",
+ duration: 0.3
+ });
+ },
+ style: { backgroundColor: "#F4333C", color: "white" }
+ }
+ ]
+ },
+ {
+ title: "标题3",
+ right: [
+ {
+ text: "删除",
+ onPress: () => {
+ modal.toast({
+ message: "删除",
+ duration: 0.3
+ });
+ },
+ style: { backgroundColor: "#F4333C", color: "white" }
+ }
+ ]
+ }
+ ]
+ };
+ },
+ components: {
+ WxcSkid
+ },
+ methods: {
+ onTest(node, i) {
+ modal.toast({
+ message: node.title,
+ duration: 0.3
+ });
+ }
+ }
+};
+</script>
+