1.2.6 • Published 7 years ago
san-iview v1.2.6
san-iview
一套桌面端 San Ui 组件库。基于 iView样式进行开发
使用指南
CDN引入
<!-- import san -->
<script src="//unpkg.com/san@latest"></script>
<!-- import stylesheet -->
<link rel="stylesheet" href="//unpkg.com/san-iview/dist/styles/san-iview.css">
<!-- import san-iview -->
<script src="//unpkg.com/san-iview/dist/san-iview.min.js"></script>示例
const {Button, Message} = window['san-iview'];
const Demo = san.defineComponent({
    template: `
        <div class="parent">
            <btn type="primary" on-select="change">
                add child
            </btn>
        </div>`,
    components: {
      btn: Button
    },
    change() {
        Message.success('hello world');
    }
});
const demo = new Demo();
demo.attach(document.body);NPM安装
- 通过npm安装
npm install san-iview --save- 全局引入样式
// main.js
import san from 'san';
import 'san-iview/dist/styles/san-iview.css';
import App from './App';
const app = new App();
app.attach(document.getElementById('app'));- 使用时引入所需组件
// App.san
<template>
<div>
    <icon type="ionic"></icon>
</div>
</template>
<script>
import {Icon} from 'san-iview';
export default {
    components: {
        'icon': Icon
    }
};
</script>Links
License
Copyright (c) 2017-present, san-view
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.20
8 years ago
1.0.19
8 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago