sda-lib-demo
SDA2.0 组件库
安装启动
-
安装依赖
$ yarn -
启动项目
$ yarn dev
发布版本
-
登录 NPM 仓库
$ npm login -
修改版本 每次发布前需要更改 package.json version 字段, 提高版本号
-
发布依赖
-
发布正式版本
$ npm publish -
添加 tag 发布测试版本
$ npm publish --tag=beta -
安装测试包
$ npm i <packageName>@beta
组件定义示例
-
严禁使用 var 定义变量, require 引入文件
import { defineComponent, h, toRef } from 'vue'
export default defineComponent({
name: 'MLabel',
props: {
value: {
type: String,
required: true
}
},
setup(props) {
const label = toRef(props, 'value')
return {
label
}
},
render() {
return h('span', [`${this.label}`])
}
})
Related Packages
vite-plugin-git-revision
Vite plugin that generates VERSION and COMMITHASH files during build based on a...
21,961
11
vite-plugin-resolve-extension-vue
A temporary workaround for issue No loader is configured for ".vue"
6,993
5
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.14 | ^3.2.25 | ||
| 0.1.13 | ^3.2.25 | ||
| 0.1.12 | ^3.2.25 | ||
| 0.1.10 | ^3.2.25 | ||
| 0.1.9 | ^3.2.25 | ||
| 0.1.8 | ^3.2.25 | ||
| 0.1.7 | ^3.2.25 | ||
| 0.1.6 | ^3.2.25 | ||
| 0.1.5 | ^3.2.25 | ||
| 0.1.4 | ^3.2.25 | ||
| 0.1.3 | ^3.2.25 | ||
| 0.1.2 | ^3.2.25 | ||
| 0.1.1 | ^3.2.25 | ||
| 0.1.0 | ^3.2.25 | ||
| 0.0.10 | ^3.2.25 | ||
| 0.0.9 | ^3.2.25 | ||
| 0.0.8 | ^3.2.25 | ||
| 0.0.7 | ^3.2.25 | ||
| 0.0.6 | ^3.2.25 | ||
| 0.0.5 | ^3.2.25 | ||
| 0.0.4 | ^3.2.25 | ||
| 0.0.3 | ^3.2.25 | ||
| 0.0.2 | ^3.2.25 | ||
| 0.0.1 | ^3.2.25 | ||
| 0.0.0 | ^3.2.25 |