sda-lib-demo

安装启动
9,814
Install
npm install sda-lib-demo
Latest Version:0.1.14
Vue:3
Last Updated:Mar 7, 2023
Links: npm
Maintainer: linwh

SDA2.0 组件库

安装启动

  1. 安装依赖 $ yarn

  2. 启动项目 $ yarn dev

发布版本

  1. 登录 NPM 仓库 $ npm login

  2. 修改版本 每次发布前需要更改 package.json version 字段, 提高版本号

  3. 发布依赖

  • 发布正式版本 $ npm publish

  • 添加 tag 发布测试版本 $ npm publish --tag=beta

  • 安装测试包 $ npm i <packageName>@beta

组件定义示例

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

cione-comp-lib

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

11,747
vite-plugin-vue2

Vite plugin for Vue2

1,474,659 618
@vue-vine/vite-plugin

Official Vite plugin for Vue Vine

95,680 1,442
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