Browse Source

Merge branch 'dev' of https://github.com/jdf2e/nutui into dev

Franslee 7 years ago
parent
commit
65c8c75925
5 changed files with 62 additions and 0 deletions
  1. 7 0
      config.json
  2. 0 0
      src/demo/choose.vue
  3. 7 0
      src/package/choose/index.js
  4. 23 0
      src/package/choose/src/choose.vue
  5. 25 0
      src/view/choose.vue

+ 7 - 0
config.json

@@ -277,6 +277,13 @@
       "type": "component",
       "desc": "图片选取组件。",
       "showDemo": true
+    },
+    {
+      "name": "Choose",
+      "chnName": "抽屉式选择(含地址选�)",
+      "desc": "多用于地址选择,可配置参数",
+      "type": "component",
+      "showDemo": true
     }
   ]
 }

+ 0 - 0
src/demo/choose.vue


+ 7 - 0
src/package/choose/index.js

@@ -0,0 +1,7 @@
+import Choose from './src/choose.vue';
+
+Choose.install = function(Vue) {
+  Vue.component(Choose.name, Choose);
+};
+
+export default Choose

+ 23 - 0
src/package/choose/src/choose.vue

@@ -0,0 +1,23 @@
+<template>
+    <div class="nut-choose">
+    <nut-mask 
+		:visible.sync="maskShow"
+		></nut-mask>
+    </div>
+</template>
+<script>
+export default {
+    name:'nut-choose',
+    props: {
+    },
+    data() {
+        return {
+        	maskShow: false
+        };
+    },
+    methods: {
+    }
+}
+</script>
+<style lang="scss">
+</style>

+ 25 - 0
src/view/choose.vue

@@ -0,0 +1,25 @@
+<template>
+    <div>
+        <!-- 组件名和描述 -->
+        <nut-demoheader 
+        :name="$route.name"
+        ></nut-demoheader>
+
+        <!-- DEMO区域 -->
+        <!-- <nut-switch :height="30" :width="60" @switch-on="switchOn" @switch-off="switchOff"></nut-switch> -->
+    </div>
+</template>
+
+<script>
+export default {
+    data(){
+        return{
+        }
+    },
+    methods:{
+    }
+}
+</script>
+
+<style lang="scss">
+</style>