Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(switch): enrich property #520

Merged
merged 6 commits into from
Mar 20, 2023
Merged

feat(switch): enrich property #520

merged 6 commits into from
Mar 20, 2023

Conversation

LeeJim
Copy link
Collaborator

@LeeJim LeeJim commented Mar 16, 2023

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

switch 新增特性,DOM 调整,API 调整

📝 更新日志

  • break(Switch): 废弃 colors 属性,改用 CSS Variables

  • feat(Swtich): 新增 icon、loading、size 属性

  • break(Switch): 属性 label 的类型从 string 变为 array

  • break(Switch): 优化 DOM

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@LeeJim LeeJim mentioned this pull request Mar 16, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 16, 2023

完成

@github-actions
Copy link
Contributor

Size Change: +1.36 kB (0%)

Total Size: 393 kB

Filename Size Change
./dist/tdesign.css 33.2 kB +422 B (+1%)
./dist/tdesign.js 226 kB +270 B (0%)
./dist/tdesign.min.css 25.4 kB +451 B (+2%)
./dist/tdesign.min.js 108 kB +213 B (0%)

@github-actions
Copy link
Contributor

Size Change: +1.62 kB (0%)

Total Size: 393 kB

Filename Size Change
./dist/tdesign.css 33.4 kB +625 B (+2%)
./dist/tdesign.js 226 kB +328 B (0%)
./dist/tdesign.min.css 25.4 kB +489 B (+2%)
./dist/tdesign.min.js 108 kB +178 B (0%)

@github-actions
Copy link
Contributor

Size Change: +1.63 kB (0%)

Total Size: 393 kB

Filename Size Change
./dist/tdesign.css 33.4 kB +625 B (+2%)
./dist/tdesign.js 226 kB +326 B (0%)
./dist/tdesign.min.css 25.4 kB +489 B (+2%)
./dist/tdesign.min.js 108 kB +185 B (0%)

@github-actions
Copy link
Contributor

Size Change: +1.63 kB (0%)

Total Size: 393 kB

Filename Size Change
./dist/tdesign.css 33.4 kB +625 B (+2%)
./dist/tdesign.js 226 kB +326 B (0%)
./dist/tdesign.min.css 25.4 kB +489 B (+2%)
./dist/tdesign.min.js 108 kB +185 B (0%)

@github-actions
Copy link
Contributor

Size Change: +1.63 kB (0%)

Total Size: 393 kB

Filename Size Change
./dist/tdesign.css 33.4 kB +625 B (+2%)
./dist/tdesign.js 226 kB +326 B (0%)
./dist/tdesign.min.css 25.4 kB +489 B (+2%)
./dist/tdesign.min.js 108 kB +185 B (0%)

@github-actions
Copy link
Contributor

Size Change: +1.63 kB (0%)

Total Size: 393 kB

Filename Size Change
./dist/tdesign.css 33.4 kB +625 B (+2%)
./dist/tdesign.js 226 kB +326 B (0%)
./dist/tdesign.min.css 25.4 kB +489 B (+2%)
./dist/tdesign.min.js 108 kB +185 B (0%)

@LeeJim LeeJim merged commit 9388b49 into develop Mar 20, 2023
@LeeJim LeeJim deleted the feat/new-switch branch March 20, 2023 14:23
@github-actions github-actions bot mentioned this pull request Mar 20, 2023
LeeJim added a commit that referenced this pull request Mar 20, 2023
* 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>
LeeJim added a commit that referenced this pull request Mar 27, 2023
* 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

* refactor(Footer): add api

* feat: add footer router

* 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>

* fix: resolve misspell (#527)

* feat(loading): using new style (#528)

* feat(loading): using new style

* fix(loading): update api and snapshot

* chore: remove uesless console

* refactor(cell): move cell-group folder (#529)

* refactor(cell): move cell-group folder

* fix(cell): update dom and style

* chore: update common

* fix(cell): update demo

* test(cell): update snapshot

* chore(footer): base code (#525)

* chore(footer): base code

* fix(footer): copyright

* fix(footer): api update

* chore(footer): url

---------

Co-authored-by: lem <[email protected]>

* refactor(Textarea): new textarea (#523)

* refactor(Textarea): new textarea

* test: update snapshots

* fix: fix cr

* chore: publish v0.16.0 (#535)

* chore: publish v0.16.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>
Co-authored-by: mamumu123 <[email protected]>
Co-authored-by: lem <[email protected]>
xiaosansiji pushed a commit that referenced this pull request Apr 7, 2023
* 0.14.1 (#484)

* test(indexes): 新增 `Index` 单元测试用例

* test(indexes): `Indexes` 单测覆盖率提升

* docs(stepper): update stepper demo

re #413

* test: update snapshots

* feat(Cascader): update demo

* feat(search): update demo for search

* docs(slider): update docs and demo (#458)

* fix(slider): update docs and demo

* docs(slider): update docs and demo

* fix(slider): update snap

* Refactor/navbar: 重构NavBar组件 (#391)

* refactor(nav-bar): refactor nav-bar

re #347

* feat(navbar): add homeIcon slot and fixed style

* feat(navbar): update navbar demo

* test(navbar): navbar unit test

re #271

* refactor(navbar): refactor navbar

re #347

* test(Cascader): add unit test for cascader (#452)

* docs: update cascader demo (#451)

* docs(cascader): update demo code

re #413

* docs(cascader): update cascader demo

re #413

* test(Calendar): add unit test for calendar (#454)

* test(Overlay): improve unit test coverage (#455)

* test(Message): improve unit test coverage (#456)

* chore(Collapse): remove useless code (#457)

* docs(upload): update doc and demo 修复初始值无法正常使用问题 (#460)

* docs(upload): update doc and demo 修复 初始值无法显示问题

* fix(upload): update snap

* docs(steps): update doc and demo (#459)

* docs(steps): update doc and demo

* fix(steps): update snap

* docs(collapse): update doc and demo

* fix(collapse): update snap

* docs(acton-sheet): update doc and demo

* fix(action-sheep): update snap

* docs(image-viewer): update demo

* fix(image-viewer): update snap

* docs(list): update demo

* docs(notice-bar): 规范 `NoticeBar` 组件的示例代码 (#465)

* docs(back-top): update doc and demo and styles

* docs(list): update demo (#464)

* fix(action-sheet): fix cr

* fix(action-sheet): update snap

* fix(list): fix button color

* fix(image-viewer): fix cr

* docs(back-top): update doc and demo

* fix(back-top): update snap

* chore: publish v0.14.0 (#469)

* chore: publish v0.14.0

* chore: changelog's changes

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

* docs(pull-down-refresh): update docs and demo

* fix(pull-down-refresh): update snap

* feat(progress): update progress docs and demo

* fix(back-top): fix cr

* fix(pull-down-refresh): fix cr

* feat(progress): update progress docs and demo

* feat(progress): update progress docs and demo

* docs(swipe-cell): update docs and demo

* chore: lock @vue/runtime-core version && update snapshot (#474)

* docs(button): refactor button demo

re #413

* fix(back-top): fix cr

* docs(swipe-cell): update docs and demo

* fix(pull-down-refresh): fix cr

* fix(pull-down-refresh): delete file

* fix: remove useless files

* docs(countdown): update countdown demo (#477)

re #413

* docs(image): update image demo

re #413

* docs(image): update image demo

re #413

* test: update test coverage data and badge (#479)

* docs(Loading): update demo #476

* test: update snapshots

* chore: lock tdesign-site-components version (#482)

* chore: publish v0.14.1 (#483)

* chore: publish v0.14.1

* chore: changelog's changes

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

Co-authored-by: byq1213 <[email protected]>
Co-authored-by: VeryHandSomeBoy <[email protected]>
Co-authored-by: Y <[email protected]>
Co-authored-by: palmcivet <[email protected]>
Co-authored-by: zhongyuan <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: xxxlj <[email protected]>
Co-authored-by: wwlh200 <[email protected]>
Co-authored-by: xxxlj <[email protected]>
Co-authored-by: lockiechen <[email protected]>

* 0.15.0 (#524)

* 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>

* 0.16.0 (#536)

* 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

* refactor(Footer): add api

* feat: add footer router

* 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>

* fix: resolve misspell (#527)

* feat(loading): using new style (#528)

* feat(loading): using new style

* fix(loading): update api and snapshot

* chore: remove uesless console

* refactor(cell): move cell-group folder (#529)

* refactor(cell): move cell-group folder

* fix(cell): update dom and style

* chore: update common

* fix(cell): update demo

* test(cell): update snapshot

* chore(footer): base code (#525)

* chore(footer): base code

* fix(footer): copyright

* fix(footer): api update

* chore(footer): url

---------

Co-authored-by: lem <[email protected]>

* refactor(Textarea): new textarea (#523)

* refactor(Textarea): new textarea

* test: update snapshots

* fix: fix cr

* chore: publish v0.16.0 (#535)

* chore: publish v0.16.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>
Co-authored-by: mamumu123 <[email protected]>
Co-authored-by: lem <[email protected]>

* fix(footer): remove useless dom

* chore: update site

* feat(checkbox): new checkbox (#519)

* feat(checkbox): new checkbox

* test: update snapshots

* feat(checkbox): add unit test

* fix(checkbox): indeterminate and icon type is line

* fix(checkbox): update snap and add vue/server-renderer

* test: update snapshot

* build: recover transform logic

---------

Co-authored-by: anlyyao <[email protected]>
Co-authored-by: leejimqiu <[email protected]>

* fix(picker): update style

* test: update snapshot

* fix(picker): update docs and api

* Refactor/empty (#538)

* docs(Empty): add api

* feat: add empty router

* fix: fix conflict

* chore: empty

* chore: empty demo  test

* chore: support function

* chore: test update

* fix: fix conflict

* feat(Empty): update api

---------

Co-authored-by: anlyyao <[email protected]>
Co-authored-by: lem <[email protected]>

* Refactor/result (#543)

* feat(Result): update api

* chore: result

* chore: update theme

* chore: update snap

---------

Co-authored-by: anlyyao <[email protected]>
Co-authored-by: lem <[email protected]>

* feat(Sticky): update demo (#555)

* Feat/new date time picker (#556)

* feat(datetime-picker): using new style

* feat(datetime-picker): finish new picker

* fix(date-time-picker): resolve time mode

* fix(date-time-picker): resolve time mode

* fix(date-time-picker): resolve time mode

* test(date-time-picker): update snapshot

* refactor(search): new search (#540)

* refactor(Search): new search

* fix: fix cr

* fix(Skeleton): remove content attr (#557)

* fix(Skeleton): remove content attr

* test: update snapshots

* fix: fix cr

* refactor(image): finish (#561)

* refactor(image): finish

* chore: update common

* test(image): update

* test: update snapshot

* feat: new input (#531)

* chore: publish v0.17.0 (#568)

* chore: publish v0.17.0

* chore: changelog's changes

---------

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

* test: update snapshots

---------

Co-authored-by: leejimqiu <[email protected]>
Co-authored-by: byq1213 <[email protected]>
Co-authored-by: VeryHandSomeBoy <[email protected]>
Co-authored-by: palmcivet <[email protected]>
Co-authored-by: zhongyuan <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: xxxlj <[email protected]>
Co-authored-by: wwlh200 <[email protected]>
Co-authored-by: xxxlj <[email protected]>
Co-authored-by: lockiechen <[email protected]>
Co-authored-by: HQ-Lin <[email protected]>
Co-authored-by: yuyang <[email protected]>
Co-authored-by: Peter Qiu <[email protected]>
Co-authored-by: mamumu123 <[email protected]>
Co-authored-by: lem <[email protected]>
Co-authored-by: Wang <[email protected]>
Co-authored-by: ccccpj <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant