Skip to content

Commit

Permalink
0.15.0 (#524)
Browse files Browse the repository at this point in the history
* chore: update site-components

* fix(Loading): fix loading render in safari

* fix(Tag): update style (#507)

* fix(Tag): update style

* fix: fix type

* style: update common

* fix: fix cr

* feat(Stepper): new stepper (#518)

* feat(Stepper): support size attr

* feat: adjust the api document path to the v2 folder

* feat(radio): new radio (#517)

* feat(radio): update api

* refactor(radio): move radio-group folder

* fix: import less use new way

* feat(radio): enrich property

* test(radio): update unit test

* test: update snapshot

* feat(switch): enrich property (#520)

* feat(switch): enrich property

* feat(switch): finish new switch

* test(switch): update unit test

* test(switch): update snapshots

* test(switch): update snapshots

* test: update snapshot

* chore: publish v0.15.0 (#522)

* chore: publish v0.15.0

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: HQ-Lin <[email protected]>
Co-authored-by: Y <[email protected]>
Co-authored-by: yuyang <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Mar 20, 2023
1 parent 0af8efa commit 0d75e7d
Show file tree
Hide file tree
Showing 163 changed files with 5,039 additions and 6,255 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ toc: false
spline: explain
---

## 🌈 0.15.0 `2023-03-20`
### ❗ BREAKING CHANGES
- `Stepper`: 属性 theme 的 gray 主题更名为 filled,并新增 outline 主题 @anlyyao ([#518](https://github.com/Tencent/tdesign-mobile-vue/pull/518))
- `Radio`: 属性 align 更名为 placement @LeeJim ([#517](https://github.com/Tencent/tdesign-mobile-vue/pull/517))
- `Radio`: 属性 icon 的枚举值变更、DOM 变更 @LeeJim ([#517](https://github.com/Tencent/tdesign-mobile-vue/pull/517))
- `Switch`: 废弃 colors 属性,改用 CSS Variables @LeeJim ([#520](https://github.com/Tencent/tdesign-mobile-vue/pull/520))
- `Switch`: 属性 label 的类型从 string 变为 array @LeeJim ([#520](https://github.com/Tencent/tdesign-mobile-vue/pull/520))
- `Switch`: 优化 DOM @LeeJim ([#520](https://github.com/Tencent/tdesign-mobile-vue/pull/520))

### 🚀 Features
- `Tag`: 支持 css variable @anlyyao ([#507](https://github.com/Tencent/tdesign-mobile-vue/pull/507))
- `Stepper`: 新增 size 属性 @anlyyao ([#518](https://github.com/Tencent/tdesign-mobile-vue/pull/518))
- `Radio`: 新增支持 allowUncheck、block、maxContentRow、maxLabelRow 属性 @LeeJim ([#517](https://github.com/Tencent/tdesign-mobile-vue/pull/517))
- `RadioGroup`: 新增支持 allowUncheck、borderless、keys、placement 属性 @LeeJim ([#517](https://github.com/Tencent/tdesign-mobile-vue/pull/517))
- `Swtich`: 新增 icon、loading、size 属性 @LeeJim ([#520](https://github.com/Tencent/tdesign-mobile-vue/pull/520))
### 🐞 Bug Fixes
- `Loading`: 修复部分浏览器下 loading 晃动问题 @anlyyao ([#505](https://github.com/Tencent/tdesign-mobile-vue/pull/505))
- `Stepper`: 修复 min/max 存在时,输入受限问题 @anlyyao ([#518](https://github.com/Tencent/tdesign-mobile-vue/pull/518))


## 🌈 0.14.1 `2022-11-14`
### 🚧 Others
- `Badge`: 提升测试覆盖率 @anlyyao ([#479](https://github.com/Tencent/tdesign-mobile-vue/pull/479))
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-mobile-vue",
"purename": "tdesign",
"version": "0.14.1",
"version": "0.15.0",
"description": "tdesign-mobile-vue",
"author": "TDesign Group",
"homepage": "https://tdesign.tencent.com/mobile-vue/",
Expand All @@ -20,9 +20,9 @@
"prebuild": "rimraf dist/* lib/* es/* esm/* typings/*",
"build": "cross-env NODE_ENV=production rollup -c scripts/rollup.config.js && npm run build:tsc",
"build:tsc": "concurrently \"npm:build:tsc-*\"",
"build:tsc-es": "vue-tsc --declaration --emitDeclarationOnly --outDir es/ -p tsconfig.build.json",
"build:tsc-esm": "vue-tsc --declaration --emitDeclarationOnly --outDir esm/ -p tsconfig.build.json",
"build:tsc-lib": "vue-tsc --declaration --emitDeclarationOnly --outDir lib/ -p tsconfig.build.json",
"build:tsc-es": "vue-tsc --declaration --emitDeclarationOnly --outDir es/",
"build:tsc-esm": "vue-tsc --declaration --emitDeclarationOnly --outDir esm/",
"build:tsc-lib": "vue-tsc --declaration --emitDeclarationOnly --outDir lib/",
"site": "cd site && vite build",
"site:intranet": "cd site && vite build --mode intranet",
"site:preview": "cd site && vite build --mode preview",
Expand Down Expand Up @@ -109,15 +109,15 @@
"@rollup/plugin-url": "^6.0.0",
"@soerenmartius/vue3-clipboard": "^0.1.1",
"@types/jest": "^28.1.6",
"@types/prismjs": "^1.16.2",
"@types/node": "18.8.0",
"@types/prismjs": "^1.16.2",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "~5.34.0",
"@vitejs/plugin-vue": "^1.2.3",
"@vitejs/plugin-vue-jsx": "^1.3.3",
"@vitest/ui": "^0.16.0",
"@vue/eslint-config-typescript": "^9.1.0",
"@vue/runtime-core": "3.2.41",
"@vue/runtime-core": "^3.2.41",
"@vue/test-utils": "^2.0.0-rc.17",
"autoprefixer": "^10.2.4",
"axios": "^0.21.0",
Expand Down Expand Up @@ -161,13 +161,13 @@
"rollup-pluginutils": "^2.8.2",
"tdesign-icons-view": "^0.1.0",
"tdesign-publish-cli": "^0.0.10",
"tdesign-site-components": "0.11.15",
"tdesign-site-components": "^0.11.19",
"tslib": "^2.3.1",
"typescript": "~4.7.2",
"vite": "^2.9.14",
"vite-plugin-tdoc": "^2.0.1",
"vitest": "^0.16.0",
"vue": "^3.2.33",
"vue": "^3.2.47",
"vue-eslint-parser": "^8.0.1",
"vue-router": "4.0.11",
"vue-tsc": "^0.40.0"
Expand Down
1 change: 0 additions & 1 deletion site/mobile/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import router from './router';

import TDesign from '@/index';
import '../../src/_common/style/mobile/_reset.less';
import '../../src/_common/style/mobile/index.less';
import '../styles/mobile/index.less';

createApp(app)
Expand Down
3 changes: 1 addition & 2 deletions site/web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import TDesign from '@/index';
import Stackblitz from './stackblitz/index.vue';

// import tdesign style
import '@common/style/mobile/_reset.less';
import '@common/style/mobile/index.less';
import 'tdesign-mobile-vue/style/index.js';

// import site webcomponents
import 'tdesign-site-components';
Expand Down
2 changes: 1 addition & 1 deletion site/web/plugin-tdoc/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {

// 统一换成 common 文档内容
if (name && source.includes(':: BASE_DOC ::')) {
const docPath = path.resolve(__dirname, `../../../src/_common/docs/mobile/api/${name}.md`);
const docPath = path.resolve(__dirname, `../../../src/_common/docs/mobile/api_v2/${name}.md`);
if (fs.existsSync(docPath)) {
const baseDoc = fs.readFileSync(docPath, 'utf-8');
source = source.replace(':: BASE_DOC ::', baseDoc);
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 573 files
4 changes: 2 additions & 2 deletions src/action-sheet/action-sheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</template>

<script lang="ts">
import { ref, computed, watch, defineComponent, PropType, ComputedRef, SetupContext } from 'vue';
import { ref, computed, watch, defineComponent, PropType, ComputedRef } from 'vue';
import { useEmitEvent } from '../shared';
import MenuList from './menu-list.vue';
import MenuGrid from './menu-grid.vue';
Expand Down Expand Up @@ -93,7 +93,7 @@ export default defineComponent({
},
},
emits: ['selected', 'update:modelValue', 'cancel', 'close'],
setup(props, context: SetupContext) {
setup(props, context) {
const emitEvent = useEmitEvent(props, context.emit);
const actionItems = ref([]);
Expand Down
4 changes: 2 additions & 2 deletions src/action-sheet/menu-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script lang="ts">
import { ref, SetupContext, defineComponent, computed } from 'vue';
import { ref, defineComponent, computed } from 'vue';
import config from '../config';
import { Grid as TGrid, GridItem as TGridItem } from '../grid';
Expand All @@ -54,7 +54,7 @@ export default defineComponent({
},
},
emits: ['selected'],
setup(props, context: SetupContext) {
setup(props, context) {
const containerWrapper = ref<HTMLElement | null>(null);
const moveOffset = ref(0);
const currentIndex = ref(0);
Expand Down
4 changes: 2 additions & 2 deletions src/action-sheet/menu-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script lang="ts">
import { ref, SetupContext, defineComponent, PropType } from 'vue';
import { ref, defineComponent, PropType } from 'vue';
import config from '../config';
import { ActionSheetItem } from './type';
Expand All @@ -32,7 +32,7 @@ export default defineComponent({
},
},
emits: ['selected'],
setup(props, context: SetupContext) {
setup(props, context) {
const handleSelected = (index: number) => {
context.emit('selected', index);
};
Expand Down
4 changes: 2 additions & 2 deletions src/avatar/avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</template>

<script lang="ts">
import { computed, toRefs, defineComponent, getCurrentInstance, inject, ref, SetupContext } from 'vue';
import { computed, toRefs, defineComponent, getCurrentInstance, inject, ref } from 'vue';
import TBadge from '../badge';
import TImage from '../image';
import config from '../config';
Expand All @@ -47,7 +47,7 @@ export default defineComponent({
components: { TNode, TBadge, TImage },
props: AvatarProps,
emits: ['error'],
setup(props, context: SetupContext) {
setup(props, context) {
const emitEvent = useEmitEvent(props, context.emit);
const internalInstance = getCurrentInstance();
const avatarGroupProps = inject('avatarGroup', {}) as TdAvatarGroupProps;
Expand Down
Loading

0 comments on commit 0d75e7d

Please sign in to comment.