1.0.2 • Published 1 year ago

codeman_design v1.0.2

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

说明

codeman_design,是uni-app生态优秀的UI框架,专注于微信小程序地开发,具备高质量、精美、好用的特点

特性

  • 体积更小、更适合微信小程序开发

  • 100+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用

  • 众多的常用页面和布局,让您专注逻辑,事半功倍

  • 详尽的文档支持,现代化的演示效果

  • 按需引入,精简打包体积

安装

# npm方式安装
npm i codeman_design --save
# yarn方式安装
yarn add codeman_design --save

快速上手

  1. main.js引入uView库
// main.js
import { createSSRApp } from 'vue'
import App from './App.vue'
import { setupCodeman } from './codeman_design'
export function createApp() {
  const app = createSSRApp(App)
  setupCodeman(app)
  return {
    app,
  }
}
  1. App.vue引入基础样式(注意style标签需声明scss属性支持)
/* App.vue */
<style lang="scss">
@import "uview-ui/index.scss";
</style>
  1. uni.scss引入全局scss变量文件
/* uni.scss */
@import "uview-ui/theme.scss";
  1. pages.json配置easycom规则(按需引入)
// pages.json
{
		"easycom": {
      "autoscan": true,
      "custom": {
        "^c-(.*)": "@/codeman_design/components/c-$1/c-$1.vue"
      }
	},
	// 此为本身已有的内容
	"pages": [
		// ......
	]
}

请通过快速上手了解更详细的内容

使用方法

配置easycom规则后,自动按需引入,无需import组件,直接引用即可。

<template>
	<c-button>按钮</c-button>
</template>

开发中,尽请期待...

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago