Skip to content

Commit

Permalink
revert: 发布新版本 0.22.1 (2023-02-07) 🦞🦞🦞
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Feb 7, 2023
1 parent e728662 commit a876f88
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"jsxBracketSameLine": true,
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
English | [Chinese](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.md)

## 0.22.1 (2023-02-07)

- `f-calendar` component abolishes `memorandum` configuration item
- Optimize the priority display status of the `f-calendar` component lunar calendar description
- Substantially optimize internal code implementation

## 0.22.0 (2023-02-03)

- `f-button` `f-alert` `f-bag` `f-tag` The new type of the component is info optional
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md)

## 0.22.1 (2023-02-07)

- `f-calendar` 组件废除 `memorandum` 配置项
- 优化 `f-calendar` 组件农历描述的优先级展示状态
- 大幅度优化内部代码实现

## 0.22.0 (2023-02-03)

Expand Down
6 changes: 6 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

中文 | [英文](https://github.com/FightingDesign/fighting-design/blob/master/CHANGELOG.en-US.md)

## 0.22.1 (2023-02-07)

- `f-calendar` 组件废除 `memorandum` 配置项
- 优化 `f-calendar` 组件农历描述的优先级展示状态
- 大幅度优化内部代码实现

## 0.22.0 (2023-02-03)

- `f-button` `f-alert` `f-badge` `f-tag` 组件新增 type 为 info 可选项
Expand Down
6 changes: 2 additions & 4 deletions packages/fighting-design/_hooks/use-color/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export * from './interface.d'
* @returns { Object } 加深原色 减淡颜色
*/
export const useColor = (color: string): UseColorReturn => {

/** 十六进制色号正则检测条件 */
const r = /^\#?[0-9A-Fa-f]{6}$/

Expand All @@ -25,17 +24,16 @@ export const useColor = (color: string): UseColorReturn => {
* @returns { string[] } rgb 色号数组
*/
const toRgb = (): string[] => {

/**
* 色号编码
*
*
* @see String.prototype.replace() https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/replace
*/
const code: string = color.replace('#', '')

/**
* 将字符串分隔成为数组
*
*
* @see String.prototype.match() https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String/match
*/
const hex: string[] = code.match(/../g) as string[]
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.22.0",
"version": "0.22.1",
"description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.",
"keywords": [
"fighting",
Expand Down
12 changes: 3 additions & 9 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<script lang="ts" setup>
import { useColor } from '../../packages/fighting-design/_hooks'
<script lang="ts" setup></script>

const { getDark } = useColor('#333333')
<template></template>

console.log(getDark())
</script>

<template>
<!-- <f-calendar v-model:date="date" lunar :on-change-month="func" :on-change-date="func" /> -->
</template>
<style lang="scss" scoped></style>

0 comments on commit a876f88

Please sign in to comment.