Skip to content

Commit

Permalink
revert: 发布新版本 0.27.1 (2023-03-10) 🐖🐖🐖
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Mar 10, 2023
1 parent b11aafd commit ab577d7
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 40 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

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

## 0.27.1 (2023-03-10)

**新增**

- `f-input` 组件新增 `width``height` 配置项
- `f-input` 组件兼容全局配置

**优化**

- 优化 `f-textarea` 样式细节

**其它**

- `f-textarea` 组件 `resize` 配置项默认值改为 null
Expand Down
17 changes: 17 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

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

## 0.27.1 (2023-03-10)

**新增**

- `f-input` 组件新增 `width``height` 配置项
- `f-input` 组件兼容全局配置

**优化**

- 优化 `f-textarea` 样式细节

**其它**

- `f-textarea` 组件 `resize` 配置项默认值改为 null

## 0.27.0 (2023-03-08)

**修复**

- 修复 `f-select` 组件 width 失效问题
Expand Down
2 changes: 1 addition & 1 deletion packages/fighting-design/_hooks/use-global/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export * from './interface.d'
export const useGlobal = <T extends UseGlobalProp>(prop?: T): UseGlobalReturn => {
/** 获取全局配置组件注入的依赖项 */
const global: FightingGlobalProps | null = inject(FIGHTING_GLOBAL_PROPS_KEY, null)
console.log(global)
console.log(global)
/**
* 获取组件的类型
*
Expand Down
1 change: 0 additions & 1 deletion packages/fighting-design/_hooks/use-input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export * from './interface.d'
* @returns { Object }
*/
export const useInput = (prop: UseInputProps, emit: UseInputEmit): UseInputReturn => {

const { run } = useRun()

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/fighting-design/_hooks/use-run/interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* useRun 返回值类型接口
*
*
* @param { Function } run 执行方法
*/
export interface UseRunReturn {
run: <T extends Function>(callback: T | null | undefined, ...params: unknown[]) => void;
run: <T extends Function>(callback: T | null | undefined, ...params: unknown[]) => void
}
12 changes: 6 additions & 6 deletions packages/fighting-design/_hooks/use-tips/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ export const useTips = (component?: Component): UseTipsReturn => {
const removeInstance = (placement: MessagePlacement, id: string): void => {
/** 获取到当前元素的索引 */
const idx: number = getInstanceIndex(placement, id)
/**
* 从数组中移除元素
*
* @see Array.prototype.splice() https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
*/
; (instances[placement] as TipsInstance[]).splice(idx, 1)
/**
* 从数组中移除元素
*
* @see Array.prototype.splice() https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/splice
*/
;(instances[placement] as TipsInstance[]).splice(idx, 1)
}

/**
Expand Down
12 changes: 2 additions & 10 deletions packages/fighting-design/_lang/src/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@
"content": "No data"
},
"calendar": {
"weekList": [
"Su",
"Mo",
"Tu",
"We",
"Th",
"Fr",
"Sa"
]
"weekList": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
},
"stickyCard": {
"openText": "close",
Expand All @@ -26,4 +18,4 @@
"search": "Search"
}
}
}
}
12 changes: 2 additions & 10 deletions packages/fighting-design/_lang/src/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@
"content": "暂无数据"
},
"calendar": {
"weekList": [
"",
"",
"",
"",
"",
"",
""
]
"weekList": ["", "", "", "", "", "", ""]
},
"stickyCard": {
"openText": "关闭",
Expand All @@ -26,4 +18,4 @@
"search": "搜索"
}
}
}
}
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.27.0",
"version": "0.27.1",
"description": "Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.",
"keywords": [
"fighting",
Expand Down
2 changes: 1 addition & 1 deletion packages/fighting-design/select/src/interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type SelectModelValue = string | number | boolean

/**
* 绑定值发生改变时触发的回调
*
*
* @param { string | number | boolean } newValue 最新 value
* @param { string | number | boolean } newLabel 最新 label
* @param { Object } evt 事件对象
Expand Down
11 changes: 3 additions & 8 deletions start/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<script lang="ts" setup>
import { ref } from 'vue'
<script lang="ts" setup></script>

const value1 = ref('')
</script>
<template></template>

<template>
<f-textarea v-model="value1" placeholder="请输入...." />
<f-textarea v-model="value1" disabled placeholder="请输入...." />
</template>
<style lang="scss" scoped></style>

0 comments on commit ab577d7

Please sign in to comment.