From 818790ad278ab040a6bece693d83bbfbb11efb03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Fri, 18 Feb 2022 09:39:37 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
example/docs/zh-CN/guide/changelog.md | 3 ++-
script/build.less.ts | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md
index 335a8c5f..b2dd07fe 100644
--- a/example/docs/zh-CN/guide/changelog.md
+++ b/example/docs/zh-CN/guide/changelog.md
@@ -16,10 +16,11 @@
0.3.8 2022-02-14
+ - [新增] fullscreen 全屏组件。
- [新增] icon-picker 颜色选择器。
- [新增] config-provider 全局配置, 用于主题与国际化切换。
- - [修复] menu 组件导航模式下子菜单错位问题。
- [修复] container 容器在不同的分辨率无法自适应的问题
+ - [修复] menu 组件导航模式菜单错位问题。
- [修复] quote 引用的 nm 灰色主题失效。
- [升级] icons-vue 1.0.5 版本。
diff --git a/script/build.less.ts b/script/build.less.ts
index 7a1cae11..ffe368d4 100644
--- a/script/build.less.ts
+++ b/script/build.less.ts
@@ -5,19 +5,19 @@
var fs = require('fs');
var { resolve } = require('path');
+// @ts-ignore
const inputDir = resolve(process.cwd(), './src/component')
+// @ts-ignore
const inputsArray = fs.readdirSync(inputDir).filter((name) => {
const componentDir = resolve(inputDir, name)
const isDir = fs.lstatSync(componentDir).isDirectory()
return isDir && fs.readdirSync(componentDir).includes('index.ts')
})
-// 读取基础变量 与 公共样式
var content = fs.readFileSync("./src/theme/variable.less").toString() + '\n\n';
content += fs.readFileSync("./src/theme/index.less").toString() + '\n\n';
-// 组件样式
inputsArray.forEach(function (f) {
var path = "./src/component/" + f + "/index.less";
fs.exists(path, function (exists) {
@@ -29,4 +29,4 @@ inputsArray.forEach(function (f) {
fs.writeFileSync('./lib/index.less', content);
}
});
-})
+})
\ No newline at end of file