congmao-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/bin/index.js +20 -0
- package/package.json +42 -0
- package/src/commands/create.js +171 -0
- package/src/commands/mcp.js +157 -0
- package/src/mcp/CURSOR_SETUP.md +259 -0
- package/src/mcp/README.md +134 -0
- package/src/mcp/USAGE_EXAMPLES.md +181 -0
- package/src/mcp/get-cursor-config.js +58 -0
- package/src/mcp/package.json +23 -0
- package/src/mcp/pnpm-lock.yaml +2441 -0
- package/src/mcp/src/handlers.js +211 -0
- package/src/mcp/src/http-server.js +332 -0
- package/src/mcp/src/index.js +195 -0
- package/src/mcp/src/schemas.js +54 -0
- package/src/mcp/test-create-project.js +49 -0
- package/src/mcp/test-mcp.js +89 -0
- package/src/mcp/test-show-tree.js +66 -0
- package/src/template/Uni-app/README.md +19 -0
- package/src/template/Uni-app/babel.config.js +81 -0
- package/src/template/Uni-app/package.json +107 -0
- package/src/template/Uni-app/postcss.config.js +27 -0
- package/src/template/Uni-app/public/index.html +25 -0
- package/src/template/Uni-app/shims-uni.d.ts +11 -0
- package/src/template/Uni-app/shims-vue.d.ts +4 -0
- package/src/template/Uni-app/src/App.vue +17 -0
- package/src/template/Uni-app/src/main.js +12 -0
- package/src/template/Uni-app/src/manifest.json +75 -0
- package/src/template/Uni-app/src/pages/index/index.vue +49 -0
- package/src/template/Uni-app/src/pages.json +16 -0
- package/src/template/Uni-app/src/static/logo.png +0 -0
- package/src/template/Uni-app/src/uni.promisify.adaptor.js +13 -0
- package/src/template/Uni-app/src/uni.scss +76 -0
- package/src/template/Uni-app/yarn.lock +11466 -0
- package/src/template/Vue2/.editorconfig +14 -0
- package/src/template/Vue2/.env +2 -0
- package/src/template/Vue2/.env.development +2 -0
- package/src/template/Vue2/.env.site +2 -0
- package/src/template/Vue2/.prettierrc.js +39 -0
- package/src/template/Vue2/.stylelintignore +8 -0
- package/src/template/Vue2/README-zh_CN.md +115 -0
- package/src/template/Vue2/commitlint.config.js +1 -0
- package/src/template/Vue2/docs/docs-starter.png +0 -0
- package/src/template/Vue2/docs/docs-startup.png +0 -0
- package/src/template/Vue2/docs/docs-structure.png +0 -0
- package/src/template/Vue2/globals.d.ts +13 -0
- package/src/template/Vue2/index.html +27 -0
- package/src/template/Vue2/jsx.d.ts +13 -0
- package/src/template/Vue2/mock/index.ts +147 -0
- package/src/template/Vue2/package.json +91 -0
- package/src/template/Vue2/package.json.ejs +91 -0
- package/src/template/Vue2/public/favicon.ico +0 -0
- package/src/template/Vue2/shims-vue.d.ts +5 -0
- package/src/template/Vue2/src/App.vue +19 -0
- package/src/template/Vue2/src/assets/assets-login-bg-black.png +0 -0
- package/src/template/Vue2/src/assets/assets-login-bg-white.png +0 -0
- package/src/template/Vue2/src/assets/assets-logo-full.svg +39 -0
- package/src/template/Vue2/src/assets/assets-product-1.svg +5 -0
- package/src/template/Vue2/src/assets/assets-product-2.svg +5 -0
- package/src/template/Vue2/src/assets/assets-product-3.svg +5 -0
- package/src/template/Vue2/src/assets/assets-product-4.svg +5 -0
- package/src/template/Vue2/src/assets/assets-result-403.svg +32 -0
- package/src/template/Vue2/src/assets/assets-result-404.svg +36 -0
- package/src/template/Vue2/src/assets/assets-result-500.svg +32 -0
- package/src/template/Vue2/src/assets/assets-result-ie.svg +33 -0
- package/src/template/Vue2/src/assets/assets-result-maintenance.svg +49 -0
- package/src/template/Vue2/src/assets/assets-result-wifi.svg +23 -0
- package/src/template/Vue2/src/assets/assets-setting-auto.svg +13 -0
- package/src/template/Vue2/src/assets/assets-setting-dark.svg +5 -0
- package/src/template/Vue2/src/assets/assets-setting-light.svg +13 -0
- package/src/template/Vue2/src/assets/assets-t-logo.svg +41 -0
- package/src/template/Vue2/src/assets/assets-tencent-logo.png +0 -0
- package/src/template/Vue2/src/components/color/index.vue +35 -0
- package/src/template/Vue2/src/components/product-card/index.vue +121 -0
- package/src/template/Vue2/src/components/result/index.vue +118 -0
- package/src/template/Vue2/src/components/thumbnail/index.vue +49 -0
- package/src/template/Vue2/src/components/trend/index.vue +105 -0
- package/src/template/Vue2/src/config/color.ts +30 -0
- package/src/template/Vue2/src/config/global.ts +2 -0
- package/src/template/Vue2/src/config/host.ts +26 -0
- package/src/template/Vue2/src/config/style.ts +14 -0
- package/src/template/Vue2/src/constants/index.ts +46 -0
- package/src/template/Vue2/src/interface.ts +39 -0
- package/src/template/Vue2/src/layouts/blank.vue +12 -0
- package/src/template/Vue2/src/layouts/components/Breadcrumb.vue +39 -0
- package/src/template/Vue2/src/layouts/components/Content.vue +43 -0
- package/src/template/Vue2/src/layouts/components/Footer.vue +27 -0
- package/src/template/Vue2/src/layouts/components/Header.vue +321 -0
- package/src/template/Vue2/src/layouts/components/LayoutContent.vue +168 -0
- package/src/template/Vue2/src/layouts/components/LayoutHeader.vue +52 -0
- package/src/template/Vue2/src/layouts/components/LayoutSidebar.vue +51 -0
- package/src/template/Vue2/src/layouts/components/MenuContent.vue +108 -0
- package/src/template/Vue2/src/layouts/components/Notice.vue +221 -0
- package/src/template/Vue2/src/layouts/components/Search.vue +134 -0
- package/src/template/Vue2/src/layouts/components/SideNav.vue +150 -0
- package/src/template/Vue2/src/layouts/index.vue +100 -0
- package/src/template/Vue2/src/layouts/setting.vue +404 -0
- package/src/template/Vue2/src/main.js +9 -0
- package/src/template/Vue2/src/main.jsx +51 -0
- package/src/template/Vue2/src/pages/dashboard/base/components/MiddleChart.vue +158 -0
- package/src/template/Vue2/src/pages/dashboard/base/components/OutputOverview.vue +189 -0
- package/src/template/Vue2/src/pages/dashboard/base/components/RankList.vue +111 -0
- package/src/template/Vue2/src/pages/dashboard/base/components/TopPanel.vue +246 -0
- package/src/template/Vue2/src/pages/dashboard/base/index.ts +702 -0
- package/src/template/Vue2/src/pages/dashboard/base/index.vue +44 -0
- package/src/template/Vue2/src/pages/dashboard/detail/index.ts +267 -0
- package/src/template/Vue2/src/pages/dashboard/detail/index.vue +242 -0
- package/src/template/Vue2/src/pages/detail/advanced/components/Product.vue +167 -0
- package/src/template/Vue2/src/pages/detail/advanced/index.less +74 -0
- package/src/template/Vue2/src/pages/detail/advanced/index.vue +219 -0
- package/src/template/Vue2/src/pages/detail/base/index.less +105 -0
- package/src/template/Vue2/src/pages/detail/base/index.vue +46 -0
- package/src/template/Vue2/src/pages/detail/deploy/index.ts +204 -0
- package/src/template/Vue2/src/pages/detail/deploy/index.vue +224 -0
- package/src/template/Vue2/src/pages/detail/secondary/index.less +71 -0
- package/src/template/Vue2/src/pages/detail/secondary/index.vue +131 -0
- package/src/template/Vue2/src/pages/form/base/index.less +57 -0
- package/src/template/Vue2/src/pages/form/base/index.vue +254 -0
- package/src/template/Vue2/src/pages/form/step/index.less +37 -0
- package/src/template/Vue2/src/pages/form/step/index.vue +259 -0
- package/src/template/Vue2/src/pages/frame/doc/index.vue +86 -0
- package/src/template/Vue2/src/pages/frame/tdesign/index.vue +86 -0
- package/src/template/Vue2/src/pages/list/base/index.vue +267 -0
- package/src/template/Vue2/src/pages/list/card/index.vue +221 -0
- package/src/template/Vue2/src/pages/list/components/CommonTable.vue +313 -0
- package/src/template/Vue2/src/pages/list/filter/index.vue +15 -0
- package/src/template/Vue2/src/pages/list/tree/index.vue +174 -0
- package/src/template/Vue2/src/pages/login/components/components-header.vue +74 -0
- package/src/template/Vue2/src/pages/login/components/components-login.vue +154 -0
- package/src/template/Vue2/src/pages/login/components/components-register.vue +144 -0
- package/src/template/Vue2/src/pages/login/index.less +202 -0
- package/src/template/Vue2/src/pages/login/index.vue +53 -0
- package/src/template/Vue2/src/pages/nest-menu/Index.vue +10 -0
- package/src/template/Vue2/src/pages/result/403/index.vue +14 -0
- package/src/template/Vue2/src/pages/result/404/index.vue +14 -0
- package/src/template/Vue2/src/pages/result/500/index.vue +14 -0
- package/src/template/Vue2/src/pages/result/browser-incompatible/index.vue +77 -0
- package/src/template/Vue2/src/pages/result/fail/index.vue +57 -0
- package/src/template/Vue2/src/pages/result/maintenance/index.vue +14 -0
- package/src/template/Vue2/src/pages/result/network-error/index.vue +24 -0
- package/src/template/Vue2/src/pages/result/success/index.vue +59 -0
- package/src/template/Vue2/src/pages/user/index.less +148 -0
- package/src/template/Vue2/src/pages/user/index.ts +157 -0
- package/src/template/Vue2/src/pages/user/index.vue +204 -0
- package/src/template/Vue2/src/permission.js +56 -0
- package/src/template/Vue2/src/router/index.js +43 -0
- package/src/template/Vue2/src/router/modules/base.ts +29 -0
- package/src/template/Vue2/src/router/modules/components.ts +175 -0
- package/src/template/Vue2/src/router/modules/others.ts +55 -0
- package/src/template/Vue2/src/service/service-advance.ts +233 -0
- package/src/template/Vue2/src/service/service-base.ts +205 -0
- package/src/template/Vue2/src/service/service-detail-base.ts +84 -0
- package/src/template/Vue2/src/service/service-detail-deploy.ts +234 -0
- package/src/template/Vue2/src/service/service-detail.ts +57 -0
- package/src/template/Vue2/src/service/service-user.ts +64 -0
- package/src/template/Vue2/src/store/index.ts +22 -0
- package/src/template/Vue2/src/store/modules/notification.ts +90 -0
- package/src/template/Vue2/src/store/modules/permission.ts +66 -0
- package/src/template/Vue2/src/store/modules/setting.ts +122 -0
- package/src/template/Vue2/src/store/modules/tab-router.ts +83 -0
- package/src/template/Vue2/src/store/modules/user.ts +98 -0
- package/src/template/Vue2/src/style/font-family.less +6 -0
- package/src/template/Vue2/src/style/index.less +5 -0
- package/src/template/Vue2/src/style/layout.less +201 -0
- package/src/template/Vue2/src/style/reset.less +78 -0
- package/src/template/Vue2/src/style/variables.less +27 -0
- package/src/template/Vue2/src/utils/charts.ts +38 -0
- package/src/template/Vue2/src/utils/color.ts +118 -0
- package/src/template/Vue2/src/utils/date.ts +12 -0
- package/src/template/Vue2/src/utils/request.ts +60 -0
- package/src/template/Vue2/stylelint.config.js +5 -0
- package/src/template/Vue2/tsconfig.json +26 -0
- package/src/template/Vue2/vite.config.js +58 -0
- package/src/template/Vue3/package.json.ejs +8 -0
- package/src/template/Vue3/pages.json +10 -0
- package/src/template/Vue3/src/main.js +7 -0
- package/src/utils/copy.js +17 -0
- package/src/utils/eslint.js +205 -0
- package/src/utils/logo.js +18 -0
- package/src/utils/render.js +20 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
+
<title>
|
|
8
|
+
<%= htmlWebpackPlugin.options.title %>
|
|
9
|
+
</title>
|
|
10
|
+
<script>
|
|
11
|
+
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
|
12
|
+
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
|
13
|
+
</script>
|
|
14
|
+
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<noscript>
|
|
19
|
+
<strong>Please enable JavaScript to continue.</strong>
|
|
20
|
+
</noscript>
|
|
21
|
+
<div id="app"></div>
|
|
22
|
+
<!-- built files will be auto injected -->
|
|
23
|
+
</body>
|
|
24
|
+
|
|
25
|
+
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types='@dcloudio/types' />
|
|
2
|
+
import Vue from 'vue'
|
|
3
|
+
declare module "vue/types/options" {
|
|
4
|
+
type Hooks = App.AppInstance & Page.PageInstance;
|
|
5
|
+
interface ComponentOptions<V extends Vue> extends Hooks {
|
|
6
|
+
/**
|
|
7
|
+
* 组件类型
|
|
8
|
+
*/
|
|
9
|
+
mpType?: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export default {
|
|
3
|
+
onLaunch: function() {
|
|
4
|
+
console.log('App Launch')
|
|
5
|
+
},
|
|
6
|
+
onShow: function() {
|
|
7
|
+
console.log('App Show')
|
|
8
|
+
},
|
|
9
|
+
onHide: function() {
|
|
10
|
+
console.log('App Hide')
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<style>
|
|
16
|
+
/*每个页面公共css */
|
|
17
|
+
</style>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "",
|
|
3
|
+
"appid": "",
|
|
4
|
+
"description": "",
|
|
5
|
+
"versionName": "1.0.0",
|
|
6
|
+
"versionCode": "100",
|
|
7
|
+
"transformPx": false,
|
|
8
|
+
"app-plus": { /* 5+App特有相关 */
|
|
9
|
+
"usingComponents": true,
|
|
10
|
+
"splashscreen": {
|
|
11
|
+
"alwaysShowBeforeRender": true,
|
|
12
|
+
"waiting": true,
|
|
13
|
+
"autoclose": true,
|
|
14
|
+
"delay": 0
|
|
15
|
+
},
|
|
16
|
+
"modules": { /* 模块配置 */
|
|
17
|
+
|
|
18
|
+
},
|
|
19
|
+
"distribute": { /* 应用发布信息 */
|
|
20
|
+
"android": { /* android打包配置 */
|
|
21
|
+
"permissions": ["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
|
22
|
+
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
|
23
|
+
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
|
|
24
|
+
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
|
25
|
+
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
|
26
|
+
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
|
27
|
+
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
|
28
|
+
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
|
29
|
+
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
|
30
|
+
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
|
31
|
+
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
|
|
32
|
+
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
|
33
|
+
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
|
34
|
+
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
|
35
|
+
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
|
36
|
+
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
|
37
|
+
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
|
|
38
|
+
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
|
39
|
+
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
|
40
|
+
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
|
41
|
+
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
|
42
|
+
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"ios": { /* ios打包配置 */
|
|
46
|
+
|
|
47
|
+
},
|
|
48
|
+
"sdkConfigs": { /* SDK配置 */
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"quickapp": { /* 快应用特有相关 */
|
|
54
|
+
|
|
55
|
+
},
|
|
56
|
+
"mp-weixin": { /* 微信小程序特有相关 */
|
|
57
|
+
"appid": "",
|
|
58
|
+
"setting": {
|
|
59
|
+
"urlCheck": false
|
|
60
|
+
},
|
|
61
|
+
"usingComponents": true
|
|
62
|
+
},
|
|
63
|
+
"mp-alipay" : {
|
|
64
|
+
"usingComponents" : true
|
|
65
|
+
},
|
|
66
|
+
"mp-baidu" : {
|
|
67
|
+
"usingComponents" : true
|
|
68
|
+
},
|
|
69
|
+
"mp-toutiao" : {
|
|
70
|
+
"usingComponents" : true
|
|
71
|
+
},
|
|
72
|
+
"mp-qq" : {
|
|
73
|
+
"usingComponents" : true
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="content">
|
|
3
|
+
<image class="logo" src="/static/logo.png"></image>
|
|
4
|
+
<view>
|
|
5
|
+
<text class="title">{{title}}</text>
|
|
6
|
+
</view>
|
|
7
|
+
</view>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
export default {
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
title: 'Hello'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
onLoad() {
|
|
18
|
+
|
|
19
|
+
},
|
|
20
|
+
methods: {
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style>
|
|
27
|
+
.content {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.logo {
|
|
35
|
+
height: 200rpx;
|
|
36
|
+
width: 200rpx;
|
|
37
|
+
margin: 200rpx auto 50rpx auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text-area {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.title {
|
|
46
|
+
font-size: 36rpx;
|
|
47
|
+
color: #8f8f94;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
|
3
|
+
{
|
|
4
|
+
"path": "pages/index/index",
|
|
5
|
+
"style": {
|
|
6
|
+
"navigationBarTitleText": "uni-app"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"globalStyle": {
|
|
11
|
+
"navigationBarTextStyle": "black",
|
|
12
|
+
"navigationBarTitleText": "uni-app",
|
|
13
|
+
"navigationBarBackgroundColor": "#F8F8F8",
|
|
14
|
+
"backgroundColor": "#F8F8F8"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
uni.addInterceptor({
|
|
2
|
+
returnValue (res) {
|
|
3
|
+
if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
|
|
4
|
+
return res;
|
|
5
|
+
}
|
|
6
|
+
return new Promise((resolve, reject) => {
|
|
7
|
+
if (!res) {
|
|
8
|
+
return resolve(res)
|
|
9
|
+
}
|
|
10
|
+
res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 这里是uni-app内置的常用样式变量
|
|
3
|
+
*
|
|
4
|
+
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
|
5
|
+
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
|
11
|
+
*
|
|
12
|
+
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/* 颜色变量 */
|
|
16
|
+
|
|
17
|
+
/* 行为相关颜色 */
|
|
18
|
+
$uni-color-primary: #007aff;
|
|
19
|
+
$uni-color-success: #4cd964;
|
|
20
|
+
$uni-color-warning: #f0ad4e;
|
|
21
|
+
$uni-color-error: #dd524d;
|
|
22
|
+
|
|
23
|
+
/* 文字基本颜色 */
|
|
24
|
+
$uni-text-color: #333; // 基本色
|
|
25
|
+
$uni-text-color-inverse: #fff; // 反色
|
|
26
|
+
$uni-text-color-grey: #999; // 辅助灰色,如加载更多的提示信息
|
|
27
|
+
$uni-text-color-placeholder: #808080;
|
|
28
|
+
$uni-text-color-disable: #c0c0c0;
|
|
29
|
+
|
|
30
|
+
/* 背景颜色 */
|
|
31
|
+
$uni-bg-color: #fff;
|
|
32
|
+
$uni-bg-color-grey: #f8f8f8;
|
|
33
|
+
$uni-bg-color-hover: #f1f1f1; // 点击状态颜色
|
|
34
|
+
$uni-bg-color-mask: rgba(0, 0, 0, 0.4); // 遮罩颜色
|
|
35
|
+
|
|
36
|
+
/* 边框颜色 */
|
|
37
|
+
$uni-border-color: #c8c7cc;
|
|
38
|
+
|
|
39
|
+
/* 尺寸变量 */
|
|
40
|
+
|
|
41
|
+
/* 文字尺寸 */
|
|
42
|
+
$uni-font-size-sm: 12px;
|
|
43
|
+
$uni-font-size-base: 14px;
|
|
44
|
+
$uni-font-size-lg: 16px;
|
|
45
|
+
|
|
46
|
+
/* 图片尺寸 */
|
|
47
|
+
$uni-img-size-sm: 20px;
|
|
48
|
+
$uni-img-size-base: 26px;
|
|
49
|
+
$uni-img-size-lg: 40px;
|
|
50
|
+
|
|
51
|
+
/* Border Radius */
|
|
52
|
+
$uni-border-radius-sm: 2px;
|
|
53
|
+
$uni-border-radius-base: 3px;
|
|
54
|
+
$uni-border-radius-lg: 6px;
|
|
55
|
+
$uni-border-radius-circle: 50%;
|
|
56
|
+
|
|
57
|
+
/* 水平间距 */
|
|
58
|
+
$uni-spacing-row-sm: 5px;
|
|
59
|
+
$uni-spacing-row-base: 10px;
|
|
60
|
+
$uni-spacing-row-lg: 15px;
|
|
61
|
+
|
|
62
|
+
/* 垂直间距 */
|
|
63
|
+
$uni-spacing-col-sm: 4px;
|
|
64
|
+
$uni-spacing-col-base: 8px;
|
|
65
|
+
$uni-spacing-col-lg: 12px;
|
|
66
|
+
|
|
67
|
+
/* 透明度 */
|
|
68
|
+
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
|
|
69
|
+
|
|
70
|
+
/* 文章场景相关 */
|
|
71
|
+
$uni-color-title: #2c405a; // 文章标题颜色
|
|
72
|
+
$uni-font-size-title: 20px;
|
|
73
|
+
$uni-color-subtitle: #555; // 二级标题颜色
|
|
74
|
+
$uni-font-size-subtitle: 18px;
|
|
75
|
+
$uni-color-paragraph: #3f536e; // 文章段落颜色
|
|
76
|
+
$uni-font-size-paragraph: 15px;
|