0.0.45 • Published 1 year ago

@sincerecloud/sc-common-components v0.0.45

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

sc-common-components

sincerecloud 通用组件库

最新版本0.0.45

npm地址

cnpm地址

如果cnpm 上的版本不是最新的,可以通过点击SYNC按钮来同步最新

cnd地址一 jsdelivr

cnd介绍页面 jsdelivr

cnd地址二 unpkg

引入 ant-design-vue

npm i ant-design-vue@2.2.8 -D
npm i @sincerecloud/sc-ui -D
npm i @sincerecloud/sc-common-components -D

封装业务组件

本项目是基于ant-design-vue组件库固定版本(2.2.8)基础上开发的,所以在使用本项目前请安装ant-design-vue@2.2.8;

使用简介:

main.js/main.ts根文件中引入index.css

import '@sincerecloud/sc-common-component/style.css'
// 或者 直接引入less文件
import '@sincerecloud/sc-common-component/style/index.less'

如需引入 less 文件 请注意一下几点

  1. 要本地安装ant-design-vue
  2. 新增webpack、vite 配置如下:
// config.js 文件
{
  resolve: {
    alias: [
      { find: /^~/, replacement: '' }
    ]
  },
  css: {
    preprocessorOptions: {
      less: {
        // modifyVars: themeVariables,
        javascriptEnabled: true
      },
    }
  }
}

本项目也支持按需加载

App.vue

import { createSensitiveOperationsModal } from '@sincerecloud/sc-common-components'

问题

如有问题请及时反馈

0.0.45

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.40

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago