From bd76eb73255064305768841265a95c9040f16c6e Mon Sep 17 00:00:00 2001 From: Tyh2001 <1469442737@qq.com> Date: Mon, 18 Dec 2023 22:25:20 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E5=8F=91=E5=B8=83=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=200.66.0=20(2023-12-18)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.en-US.md | 9 +++++ CHANGELOG.md | 2 ++ docs/docs/changelog.md | 9 +++++ packages/fighting-design/package.json | 2 +- scripts/move-icon/index.js | 8 ++--- scripts/set-changelog/index.js | 8 ++--- scripts/set-version/index.js | 9 ++--- start/src/App.vue | 51 ++------------------------- 8 files changed, 32 insertions(+), 66 deletions(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index cf6b7c72fc..ad38b55fe2 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -4,6 +4,15 @@ English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md) +## 0.66.0 (2023-12-18) + +- Fix the issue of the `f-table` component not breaking line styles for English letter text +- Fix the return type of the `f-table` component +- Fix the issue of `f-aside` component styles being squeezed +- Fix the issue where the height of the `f header` component cannot be automatically expanded +- Fix the type judgment criteria for the selected value of the `f-select` component +- New `f-table` component `noData` slot added + ## 0.64.1 (2023-12-01) - Fix the issue of slow folding animation of `f-submenu` components diff --git a/CHANGELOG.md b/CHANGELOG.md index 51959dfcb8..81c11824ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ 中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md) +## 0.66.0 (2023-12-18) + - 修复 `f-table` 组件对于英文字母的文字不换行样式的问题 - 修复 `f-table` 组件返回类型 - 修复 `f-aside` 组件样式被挤压的问题 diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index 1d446ba490..81c11824ce 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -2,6 +2,15 @@ 中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md) +## 0.66.0 (2023-12-18) + +- 修复 `f-table` 组件对于英文字母的文字不换行样式的问题 +- 修复 `f-table` 组件返回类型 +- 修复 `f-aside` 组件样式被挤压的问题 +- 修复 `f-header` 组件高度无法自动撑开的问题 +- 修复 `f-select` 组件选中值的类型判断条件 +- 新增 `f-table` 组件 `noData` 插槽 + ## 0.65.0 (2023-12-12) - 更新 `f-menu` 组件 `on-menu-item-click` 和 `on-submenu-click` 方法参数接收顺序 diff --git a/packages/fighting-design/package.json b/packages/fighting-design/package.json index e59a444c0d..cd51be863c 100644 --- a/packages/fighting-design/package.json +++ b/packages/fighting-design/package.json @@ -1,6 +1,6 @@ { "name": "fighting-design", - "version": "0.65.0", + "version": "0.66.0", "description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.", "keywords": [ "fighting", diff --git a/scripts/move-icon/index.js b/scripts/move-icon/index.js index 96d063bea0..2db7a7d75c 100644 --- a/scripts/move-icon/index.js +++ b/scripts/move-icon/index.js @@ -5,10 +5,10 @@ const inputSvg = path.resolve(__dirname, '../packages/fighting-icon/svg') const inputSrc = path.resolve(__dirname, '../packages/fighting-icon/src') fs.readdirSync(inputSvg).forEach(name => { - /** 创建文件夹 */ + // 创建文件夹 fs.mkdirSync(`${inputSrc}/${name.slice(0, name.length - 4)}`) - /** 移动文件 */ + // 移动文件 fs.copyFileSync( `${inputSvg}/${name}`, `${inputSrc}/${name.slice(0, name.length - 4)}/index.vue` @@ -19,13 +19,13 @@ fs.readdirSync(inputSrc).forEach(name => { /** 文件路径 */ const newPath = `${inputSrc}/${name}/index.vue` - /** 读取 */ + // 读取 fs.readFile(newPath, (err, data) => { if (data) { const content = '' + '\n' - /** 重新写入 */ + // 重新写入 fs.writeFile(newPath, content, err => { !err && console.log(`${name} 成功 🎉`) }) diff --git a/scripts/set-changelog/index.js b/scripts/set-changelog/index.js index c106aa8d09..9b8783a1e0 100644 --- a/scripts/set-changelog/index.js +++ b/scripts/set-changelog/index.js @@ -11,23 +11,19 @@ const path = require('path') /** 写入文件路径 */ const writeUrl = path.join(__dirname, '../../docs/docs/changelog.md') - /** 读取的文件内容 */ const sayUrl = path.join(__dirname, '../../CHANGELOG.md') - /** 读取到文件内容 */ const file = fs.readFileSync(sayUrl, 'utf-8') -/** 先清空文件 */ +// 先清空文件 fs.writeFileSync(writeUrl, '') try { - /** 将修改的内容重新写入 */ + // 将修改的内容重新写入 fs.writeFileSync(writeUrl, file) - /** 打印成功信息 */ console.log('更新日志写入成功 🚀🚀🚀') } catch (err) { - /** 如果失败打印错误信息 */ console.error(`写入失败:${err} 🚦🚦🚦`) } diff --git a/scripts/set-version/index.js b/scripts/set-version/index.js index aa2b6de8c2..c03346b4eb 100644 --- a/scripts/set-version/index.js +++ b/scripts/set-version/index.js @@ -13,13 +13,10 @@ const path = require('path') * 获取到的内容格式为 node scripts/set-version "x.x.x" */ const scriptContent = process.env.npm_lifecycle_script - /** 获取到版本号 */ const version = scriptContent.slice(26, scriptContent.length - 1) - /** 文件路径 */ const url = path.join(__dirname, '../../packages/fighting-design/package.json') - /** 读取到文件内容 */ const file = fs.readFileSync(url, 'utf-8') @@ -27,15 +24,13 @@ try { /** 获取到读取的文件内容 */ const json = JSON.parse(file) - /** 重新赋值版本号 */ + // 重新赋值版本号 json.version = version - /** 将修改的内容重新写入 */ + // 将修改的内容重新写入 fs.writeFileSync(url, JSON.stringify(json, null, 2)) - /** 打印成功信息 */ console.log(`${version} 版本修改成功 🚀🚀🚀`) } catch (err) { - /** 如果失败打印错误信息 */ console.error(`写入失败:${err} 🚦🚦🚦`) } diff --git a/start/src/App.vue b/start/src/App.vue index 8fe22b28d8..8470873421 100644 --- a/start/src/App.vue +++ b/start/src/App.vue @@ -1,50 +1,5 @@ - + - +