1.0.0 • Published 5 years ago

tdseed v1.0.0

Weekly downloads
207
License
MIT
Repository
github
Last release
5 years ago

seed

A city map with components library by Vue2.0.js

文档

https://s-inmap.github.io/tdseed-doc/#/

CDN 引入

<link rel="stylesheet" href="https://unpkg.com/tdseed/dist/static/tdseed.css">
<script src="https://unpkg.com/vue@2.5.17/dist/vue.js"></script>
<script src="https://unpkg.com/iview@2.14.3/dist/iview.min.js"></script>
<script src="https://unpkg.com/lodash@4.17.11/lodash.js"></script>
<script type="text/javascript" src="https://unpkg.com/tdseed/dist/tdseed.min.js"></script>

NPM 安装

$ npm install tdseed --save

示例

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <title>tdseed example</title>
    <link rel="stylesheet" href="https://unpkg.com/tdseed/dist/static/tdseed.css">
    <script src="https://unpkg.com/vue@2.5.17/dist/vue.min.js"></script>
    <script src="https://unpkg.com/iview@2.14.3/dist/iview.min.js"></script>
    <script src="https://unpkg.com/lodash@4.17.11/lodash.js"></script>
    <script type="text/javascript" src="https://unpkg.com/tdseed/dist/tdseed.min.js"></script>
</head>

<body>
    <div id="app">
        <div style="width: 336px;">
            <i-button @click="show">Click me!</i-button>
            <mul-chooser v-model="indexs" :data="this.officeListState" :disable="false" @on-change="_onChooserChange"></mul-chooser>
        </div>
    </div>
</body>
<script>
new Vue({
    el: '#app',
    data: {
        indexs: [],
        officeListState: [{
            "id": 1,
            "city": "北京市",
            "name": "怀柔区"
        }, {
            "id": 2,
            "city": "北京市",
            "name": "平谷区"
        }, {
            "id": 3,
            "city": "北京市",
            "name": "昌平区"
        }, {
            "id": 4,
            "city": "北京市",
            "name": "大兴区"
        }, {
            "id": 5,
            "city": "北京市",
            "name": "通州区"
        }, {
            "id": 6,
            "city": "北京市",
            "name": "顺义区"
        }, {
            "id": 7,
            "city": "北京市",
            "name": "房山区"
        }, {
            "id": 8,
            "city": "北京市",
            "name": "朝阳区"
        }, {
            "id": 9,
            "city": "北京市",
            "name": "丰台区"
        }, {
            "id": 10,
            "city": "北京市",
            "name": "东城区"
        }, {
            "id": 11,
            "city": "北京市",
            "name": "西城区"
        }, {
            "id": 12,
            "city": "北京市",
            "name": "门头沟区"
        }, {
            "id": 13,
            "city": "北京市",
            "name": "石景山区"
        }, {
            "id": 14,
            "city": "北京市",
            "name": "海淀区"
        }, {
            "id": 16,
            "city": "北京市",
            "name": "密云区"
        }, {
            "id": 17,
            "city": "北京市",
            "name": "延庆区"
        }]
    },
    mounted() {},
    methods: {
        show: function() {
            console.log(1)
        },
        _onChooserChange(result) {
            console.log(result)
        }
    }
})
</script>

</html>
1.0.0

5 years ago

0.1.59

5 years ago

0.1.58

5 years ago

0.1.57

5 years ago

0.1.56

5 years ago

0.1.55

5 years ago

0.1.54

5 years ago

0.1.53

5 years ago

0.1.52

5 years ago

0.1.51

5 years ago

0.1.50

5 years ago

0.1.49

5 years ago

0.1.48

5 years ago

0.1.47

5 years ago

0.1.46

5 years ago

0.1.45

5 years ago

0.1.44

5 years ago

0.1.43

5 years ago

0.1.42

5 years ago

0.1.41

5 years ago

0.1.40

5 years ago

0.1.39

5 years ago

0.1.38

5 years ago

0.1.37

5 years ago

0.1.36

5 years ago

0.1.35

5 years ago

0.1.34

5 years ago

0.1.33

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago