1.2.6 • Published 5 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
5 years ago
1.2.5
5 years ago
1.2.4
5 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.20
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.2.5
7 years ago
0.2.4
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago