Skip to content

Commit

Permalink
revert: 发布新版本 0.66.0 (2023-12-18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Dec 18, 2023
1 parent eeeab35 commit bd76eb7
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 66 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 组件样式被挤压的问题
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` 方法参数接收顺序
Expand Down
2 changes: 1 addition & 1 deletion packages/fighting-design/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions scripts/move-icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -19,13 +19,13 @@ fs.readdirSync(inputSrc).forEach(name => {
/** 文件路径 */
const newPath = `${inputSrc}/${name}/index.vue`

/** 读取 */
// 读取
fs.readFile(newPath, (err, data) => {
if (data) {
const content =
'<template>' + '\n' + ' ' + data.toString() + '\n' + '</template>' + '\n'

/** 重新写入 */
// 重新写入
fs.writeFile(newPath, content, err => {
!err && console.log(`${name} 成功 🎉`)
})
Expand Down
8 changes: 2 additions & 6 deletions scripts/set-changelog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} 🚦🚦🚦`)
}
9 changes: 2 additions & 7 deletions scripts/set-version/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,24 @@ 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')

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} 🚦🚦🚦`)
}
51 changes: 3 additions & 48 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,50 +1,5 @@
<template>
<f-table :data="data" :columns="columns" zebra>
<template #noData>
<f-button>没有数据</f-button>
</template>
</f-table>
</template>
<script lang="ts" setup></script>

<script lang="ts" setup>
import { ref } from 'vue'
<template></template>

const columns = ref([
{
title: '姓名',
key: 'name',
width: 100
},
{
title: '年龄',
key: 'age'
},
{
title: '介绍',
key: 'introduce'
}
])
const data = ref([
// {
// name: '卡莉斯塔',
// age: '22',
// introduce: '她的被动可以在发动攻击后进行小距离的跳跃'
// },
// {
// name: '艾希',
// age: '16',
// introduce: '拥有强大减速和控制能力的远程射手'
// },
// {
// name: '李青',
// age: '34',
// introduce: '非常优秀的打野英雄'
// },
// {
// name: '贾克斯',
// age: '109',
// introduce: '取得优势的武器可以输出成吨的伤害'
// }
])
</script>
<style lang="scss" scoped></style>

0 comments on commit bd76eb7

Please sign in to comment.