-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
245 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# 更新日志 | ||
|
||
## v 0.3.0 | ||
|
||
- 支持多主题构建 | ||
|
||
## v 0.2.0 | ||
|
||
- 升级到 @vue/cli 4.1.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "vue-tpl", | ||
"author": "毛瑞 <[email protected]>", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"private": false, | ||
"license": "MIT", | ||
"keywords": [ | ||
|
@@ -21,7 +21,7 @@ | |
}, | ||
"scripts": { | ||
"dev": "npx --max_old_space_size=4096 vue-cli-service serve --open", | ||
"lint": "npx --max_old_space_size=4096 stylelint **/*.vue **/*.scss **/*.css --cache --cache-location node_modules/.cache/stylelint/ --fix && npx --max_old_space_size=4096 vue-cli-service lint --fix", | ||
"lint": "npx --max_old_space_size=4096 stylelint **/*.vue **/*.scss **/*.css --cache --cache-location node_modules/.cache/stylelint/ --fix & npx --max_old_space_size=4096 vue-cli-service lint --fix", | ||
"build": "npx --max_old_space_size=4096 vue-cli-service build --no-unsafe-inline", | ||
"test:e2e": "npx --max_old_space_size=4096 vue-cli-service test:e2e", | ||
"test:unit": "npx --max_old_space_size=4096 vue-cli-service test:unit --detectOpenHandles --coverage" | ||
|
@@ -81,7 +81,7 @@ | |
"fibers": "^4.0.2", | ||
"hard-source-webpack-plugin": "^0.13.1", | ||
"lint-staged": "^9.5.0", | ||
"mini-css-extract-plugin": "Maorey/alternate-css-extract-plugin#22acea3", | ||
"mini-css-extract-plugin": "Maorey/alternate-css-extract-plugin#d246d64ea", | ||
"regenerate": "^1.4.0", | ||
"regjsgen": "^0.5.1", | ||
"regjsparser": "^0.6.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,51 @@ | ||
/** 深色主题 | ||
*/ | ||
@import '~@/theme/light'; // 浅色主题 | ||
|
||
/* | ||
* @Description: 全局scss变量 | ||
* 【此文件中请勿出现具体样式,否则会打包到!所有!css chunk中】 | ||
* 【在此文件中导出的变量会混合到!所有!scss的导出中】 | ||
* 【请使用命名空间或规划好命名方式以避免变量名冲突】 | ||
* @Author: 毛瑞 | ||
* @Date: 2019-06-19 11:34:44 | ||
*/ | ||
/// 变量 (私有变量 _+camelCase)/// | ||
@import './colors'; // 颜色 | ||
@import './colors'; // 颜色 【colorCase】: colorRed | ||
@import '../light/border'; // 边框 【(border|shadow)Case】: borderSolidWidth | ||
@import '../light/fontSIzes'; // 字号 【cssCase】: xSmaller、xxxLarge | ||
@import '../light/zIndexes'; // z-index层级划分 【zCase】: zMessage | ||
@import '../light/layout'; // 固定布局尺寸 【(height|width)Case】: heightHeader、widthLfetColumn | ||
@import '../light/scrollBar'; // 滚动条变量 【scrollBarCase】 | ||
@import '../light/icon'; // 字体图标变量 【iconCase】 | ||
|
||
/* ---------------------- 我是一条分割线 (灬°ω°灬) ---------------------- */ | ||
|
||
/// 扩展(@extend %ellipsis;) /// | ||
|
||
// 单行文本溢出省略号 | ||
%ellipsis { | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
// 在页面居中【需要指定高宽】 | ||
%centerPage { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
margin: auto; | ||
} | ||
|
||
/* ---------------------- 我也是一条分割线 (*❦ω❦) ---------------------- */ | ||
|
||
/// 混入(@include name(args);) /// | ||
|
||
// 多行溢出省略号(-webkit-有效,其它截断) 参数为行数 | ||
@mixin ellipsis($clamp) { | ||
// -webkit-多行溢出省略号 | ||
-webkit-box-orient: vertical; /* stylelint-disable-line property-no-vendor-prefix */ | ||
-webkit-line-clamp: $clamp; | ||
display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */ | ||
overflow: hidden; | ||
word-break: break-word; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.