Skip to content

Commit

Permalink
Chore/release126 (#2513)
Browse files Browse the repository at this point in the history
* feat: Upload组件新增 disabled属性,首页补充服务声明 (#2489)

* feat(Upload): add disabled props

* feat(Upload): recover trd-privacy content

* feat(Upload): fix md

* Fix/calendar/hidden (#2491)

* fix(calendar): can not hide in popup (#2483)

* test: update snapshots

* perf(step-item): listen for change in status to update the curStatus (#2480)

* feat(notice-bar): enable event change (#2492)

* feat(notice-bar): enable event change

* docs(notice-bar): enable event change

* perf(notice-bar): enable event change

* fix(Icon): update demo (#2498)

* fix(Icon): update demo

* fix(home): add footer desc for home page

* chore: update vscode settings (#2494)

* fix(notice-bar): resolve console error (#2470)

* fix(notice-bar): resolve console error

* fix(notice-bar): cannot retrieve the 't-notice-bar__content' node

* fix(Input): 解决 type 为 digit、number时,maxlength 和 maxcharacter 属性无效的问题 (#2497)

* fix(inputMaxCount): 解决设置最大长度时类型为number、digit不生效问题

* fix(input): 解决type为number时初始值为0不生效的情况

* refactor(input): 优化是否值存在判断

* fix(input): 纠正值不存在判断

* refactor(utils): 去掉isOfType

* fix: 去掉无用注释

* fix: 完善ts

* fix: 完善条件

* refactor: 值定义工具函数纠正

* perf(utils): optimize the getCharacterLength function

---------

Co-authored-by: yiqiuzheng <yiqiuzheng@tencent.com>
Co-authored-by: betavs <betavs@qq.com>

* docs(textarea): update default value (#2507)

* fix(grid-item): resolve the issue of ineffective click when hover is true (#2508)

* feat(fab): 悬浮按钮支持拖拽 (#2478)

* feat(fab): 悬浮按钮支持拖拽

#2374

* style(fab): 移动实现逻辑改成touch,兼容webview和skyline框架

* fix(fab): 水平移动或垂直移动异常修复

* style(fab): 代码优化

* docs(fab): 文档更新

* fix: 修复checkbox onchange时无dateset数据 (#2469)

* fix: 修复checkbox onchange时无dateset数据

* fix: 兼容group,筛选关键字段保留dataset

* fix: 兼容group

* fix: 兼容group

* fix(CheckBox): dataset renama context

---------

Co-authored-by: anlyyao <anly_yaw@163.com>

* docs: IssueShoot.md add jarmywang (#2509)

* fix(tabbar): 修复tabbar红色气泡遮住了底部图标 (#2456)

* fix(tabbar): 修复tabbar红色气泡遮住了底部图标

* fix(badge): 优化badge组件的定位方式

* fix(badge): 组件内部不建议用 "!important"

* fix: 去掉tab-bar-item组件badge的外部样

* fix(badge): badge徽标定位样式优化

* test: update snapshots

---------

Co-authored-by: anlyyao <anly_yaw@163.com>

* chore: publish v1.2.6 (#2511)

* chore: publish v1.2.6

* chore: changelog's changes

---------

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

* Chore/release126 (#2512)

* 1.2.3 (#2360)

* fix(loading): resolve style error (#1873)

* fix(loading): resolve style error

* test: update unit test

* feat: empty的文案添加换行 (#1870)

* fix(button): 修复[button] type="submit"时,disabled未生效 (#1878)

* fix(button): 修复[button] type="submit"时,disabled未生效

修复[button] type="submit"时,disabled未生效

* fix(button): 修复[button] type="submit"时,disabled未生效

修复[button] type="submit"时,disabled未生效

* test: update snap

---------

Co-authored-by: zjianzzhang <zjianzzhang@tencent.com>

* style(row): row垂直居中样式 (#1866)

添加row的flex布局,垂直居中

* fix(progress): 安卓机朗读异常 & 动态朗读 (#1354)

* fix: 安卓机朗读异常

* fix: fix code

* fix: 安卓不发音

* fix: fix code

* fix: wip 优化中

* fix: 优化

* chore: update snap

* fix: fix code

* fix: fix code

* fix: 错误使用iOS变量

* fix(补充注释): 补充注释

* fix: 优化

* test: update snap

* fix: 补充注释

* fix: 优化部分注释, remove code

* fix: 优化注释

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* feature/swiper aria v2 (#1598)

* feat(swiper): support aria

* feat(swiper): support custom ariaLabel

* feat(swiper): image name

* chore(swiper): update snap

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* docs: update custom theme

* fix(radio): resolve style (#1889)

* feat: 支持分割线组件的线条使用变量控制属性 (#1890)

* fix(action-sheet): resolve ts error of show method (#1907)

* fix(grid): 修复column>=4个时,--td-grid-item-image-width和--td-grid-item-text-font-size是无效的 (#1903)

* chore: update _common (#1902)

* feat: 支持radio的内容字体大小使用变量。 (#1895)

* feat: 支持radio的内容字体大小使用变量。

* style: 修改css变量名称

* Bitjian fix/radio icon size (#1909)

* fix: 修复--td-radio-icon-size对未选中的图标未生效

* fix: fix radio 未选择的图标未生效

* fix(radio): support css variables to change circle icon size

---------

Co-authored-by: bitjian <1183048003@qq.com>

* chore: publish v1.1.2 (#1910)

* chore: publish v1.1.2

* chore: changelog's changes

---------

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

* fix(rate): 评分组件支持无障碍滑动 (#1574)

* fix(rate): 评分组件支持滑动无障碍操作(#1050)

* fix(rate): 评分组件样式问题修复.(#1050)

* fix(rate): 评分组件单测问题.(#1050)

* fix(rate): 抽象样式, 冗余代码.(#1050)

* fix(rate): 删除冗余节点.(#1050)

* fix(rate): 优化读取.(#1050)

* fix(rate): 新增额外的读取.(#1050)

* fix(rate): 修复警告旁白导致的滑动卡顿.(#1050)

* fix(rate): sr-only注释(#1050)

* fix(rate): update test snapshots. (#1050)

* build: remove preview workflow tentatively

* fix(upload): resolve max (#1914)

* fix(navbar): resolve capsule zindex (#1920)

* chore: update site

* fix(button): 修复variant=outline等状态下loading不展示 (#1922)

* fix(button): 修复variant=outline等状态下loading不展示

* fix(button): loading inheritColor 字段错误

* fix(navbar): resolve vertical align (#1926)

* fix(navbar): resolve vertical align

* test(navbar): update snapshot

* fix(dropdown-menu): support multiple column radio (#1927)

* fix(Link): resolve disabled problem (#1928)

* fix(calendar): resolve error (#1930)

* fix(calendar): resolve error

* fix(calendar): make observer robust

* fix(tabs): resolve content overflow (#1931)

* fix(tabs): resolve content overflow

* test(tabs): update snapshot

* chore: update issue template

* fix(Input): resolve vertical layout style error (#1934)

* feat(collapse): add header-left-icon property (#1933)

* feat(tabs): add middle slot (#1936)

* chore: publish v1.1.3 (#1937)

* chore: publish v1.1.3

* chore: changelog's changes

---------

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

* fix(slider): enable dragstart and dragend event (#1940)

* fix(image-viewer): add using-custom-navation property (#1944)

* feat(Swiper): update api docs (#1945)

* feat(Swiper): update api docs

* Update CHANGELOG.md

* fix(picker): enable to using falsy value (#1948)

* fix(toast): auto hide when page is hide (#1947)

* feat(swiper): add image-load event (#1949)

* feat(swiper): add image-load event

* fix: resolve fallback value

* test: update snapshot

* chore: publish v1.1.4 (#1950)

* chore: publish v1.1.4

* chore: changelog's changes

---------

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

* docs(picker): enrich api detail (#1956)

* fix(tabs): resolve track position (#1958)

* feat(pulldown-refresh): add some properties from scroll-view (#1959)

* feat(pulldown-refresh): add some properties from scroll-view

* refactor(pulldown-refresh): using px to calculate

* feat(loading): support indicator slot

* test: update snapshot

* fix(pulldown-refresh): resolve value (#1960)

* feat(datetime-picker): support steps property (#1961)

* feat(steps): add sequence property (#1962)

* feat(dropdown-menu): add css variable for border width (#1967)

* feat(Stepper): allow input to be empty (#1971)

* fix(calendar): enable scroll into view when use-popup is false (#1969)

* chore(image-viewer): update demo (#1968)

* chore(image-viewer): update demo

* chore(image-viewer): update demo

* fix(action-sheet): enable close when click cancel

* chore: recover demo

* chore: publish v1.1.5 (#1975)

* chore: publish v1.1.5

* chore: changelog's changes

---------

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

* docs(badge): update api

* fix(navbar): Fix invalid fixed attribute of Navbar component (#1982)

* feat(Icon): update icon from 0.1.2 to 0.1.4 (#1979)

* feat(Icon): update iconform 0.1.2 to 0.1.4

* test: update snapshots

* chore: update _common

* Feat/picker-zindex (#1985)

* feat: picker添加层级控制

* refactor: 修改popupProps的处理逻辑

* refactor: fix template error

* fix: picker compile error

* fix(DropdownMenu): auto scroll to current (#1788) (#1981)

* fix(DropdownMenu): auto scroll to current (#1788)

* fix(DropdownMenu): resolve auto scroll wrong height (#1788)

* fix(DropdownMenu): auto multi scroll to current (#1788)

* feat: 添加支持date-picker的蒙层属性透 (#1991)

* feat(Slider): the step attribute supports decimals (#1990)

* feat(Slider): the step attribute supports decimals

* fix(slider): resolve emit same value

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* chore: publish v1.1.5-beta

* fix(pulldown-refresh): resolve refresh event

* fix: 修复variant动态修改无效

* feat(Grid): enrich demo (#1993)

* feat(Input): resolve label content wraps (#1994)

* docs(Steps): remove invalid attributes (#1995)

* fix(pulldown-refresh): resolve refresh event (#1998)

* fix(pulldown-refresh): resolve refresh event

* fix(pulldown-refresh): resolve change event

* fix: fix [下拉菜单] 单选选项行高不一致 #1980 (#1992)

* feat: action-sheet支持层级 (#2002)

* fix: 修复多余 row 的样式导致 col 不换行问题 (#1996)

* fix: 修复row样式问题

fix #1964, fix #1851

* fix: 修复多余 row 的样式导致 col 不换行问题

"fix #1964", "fix #1851"

---------

Co-authored-by: pingwu <pingwu@tencent.com>

* fix(dialog): display of cancel and confirm button when calling a command. (#1986)

* fix(dialog): Display problem of cancel and confirm button when calling a command.

* revert(dialog): Revert changes to ` dialog.wxml`

* fix(dialog): Button issue when invoking commands.

---------

Co-authored-by: yuchumian <yuchumian@163.com>

* fix(calendar): enable calendar type (#2003)

* chore: publish v1.1.6 (#2004)

* chore: publish v1.1.6

* chore: changelog's changes

---------

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

* chore(ActionSheet): prohibit exporting components at index (#2008)

* feat: action-sheet支持cancel的颜色变量 (#2007)

* fix(sticky): resolve width (#2012)

* fix(side-bar-item): fix prefix and suffix style anomalies (#2011)

* fix(tabbar): resolve width when virtual-host not available (#2013)

* chore: publish v1.1.6-beta

* build: update npm publish

* fix(action-sheet): resolve invalid syntax

* fix(Icon): rename some icons (#2020)

* fix(Icon): rename some icons

* test: update snapshots

* chore: publish v1.1.7 (#2031)

* chore: publish v1.1.7

* chore: changelog's changes

---------

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

* feat(Textarea): support max/min height (#2035)

* feat(Textarea): support max/min height

* test: update snapshots

* fix: rename proposal to transform and display installation dependencies (#2046)

* fix(DropdownMenu): resolved the basic library cannot be used under version 2.19.2 (#2043)

* fix(DropdownMenu): resolved the basic library cannot be used under version 2.19.2

* test: update snapshots

* fix(Sticky): resolved width problem (#2047)

* fix(Sticky): resolved width problem

* fix(sticky): recover classname

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* fix(navbar): polish bg support (#2049)

* fix(drawer): resolve word misspelling (#2039)

* fix(drawer): item-click parameter error

* fix(drawer): item-click parameter error

* fix(drawer): item-click parameter error

* fix(image): enable dynamic dimension (#2050)

* chore: publish v1.1.8 (#2051)

* chore: publish v1.1.8

* chore: changelog's changes

---------

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

* fix(indexes): 索引导航无法选中问题 (#2036)

* fix(indexes): 异步数据未重新计算高度

* docs(indexes): 增加async文档说明

* fix(indexes): 通过indexList null判断是否异步数据

* fix(indexes): 修改indexList type类型

* feat(switch): prevent click when the switch component props loading is true (#2061)

* feat(checkbox): 自定义图标增加半选中态 (#2056)

* feat(Search): support cursor-spacing attr (#2065)

* feat(Search): support cursor-spacing attr

* test: update snapshots

* fix(Switch): resolved loading state style (#2074)

* fix(Icon): resolved icon naming error (#2076)

* fix(tree-select): enable keys property (#2085)

* fix(radio-group): fix abnormal display of radio group selection status (#2082)

* fix(radio-group): fix abnormal display of radio group selection status

* fix(radio-group): fix abnormal display of radio group selection status

* docs(slider): add faq part

* fix(CellGroup): resolved borderen invalid (#2089)

* chore: publish v1.1.9 (#2091)

* chore: publish v1.1.9

* chore: changelog's changes

---------

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

* feat(notice-bar): add interval property when direction='vertical'

* test(notice-bar): add interval property when direction='vertical'

* fix(Grid): resolved align='laft' valid (#2110)

* fix(Fab): resolved hover-class invalid (#2093)

* fix(upload): fix abnormal image display (#2098)

* feat(tabs): add split property (#2113)

* fix(slider): fix abnormal calculation of slider mark (#2114)

* fix(Input): resolve value=0 is valid when type is number (#2108)

* fix(slider): enable async render (#2115)

* fix: add type check before call pagescroll (#2116)

* build: remove issue assign logic

* fix(action-sheet): do not trigger close event when disabled (#2117)

* fix(stepper): trigger change when value changed (#2118)

* chore: publish v1.1.10 (#2119)

* chore: publish v1.1.10

* chore: changelog's changes

---------

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

* fix(tabs): fix style anomalies caused by too many tabs items (#2123)

* fix(picker): fix default value is invalid (#2126)

* feat(checkbox-group): add borderless property (#2124)

* feat(checkbox-group): add borderless property

* test(checkbox-group): add borderless property

* fix(Stepper): resolved precision problem (#2130)

* fix(radio): fix vertical align (#2135)

* fix(checkbox): resolve align when icon size changed (#2136)

* docs(checkbox): update (#2137)

* docs(checkbox): update

* fix(checkbox): resolve priority of disabled property

* fix(search): catch tap event when trigger clear (#2139)

* fix(search): catch tap event when triiger clear

* test(search): update snapshot

* docs: update used page

* fix(divider): replace external class (#2140)

* fix(divider): replace external class

* test: update snapshot

* feat(radio): enable allow-uncheck (#2141)

* feat(radio): enable allow-uncheck

* feat(radio-group): add allowUncheck for RadioOption

* test(radio-group): add allowUncheck for RadioOption

* feat(radio-group): update change value

* fix(toast): resolve repeated event triggering (#2146)

* feat(dropdown-item): add close event (#2147)

* fix: resolve console warnings (#2149)

* Update README.md (#2150)

* fix(popup): update width when placement is bottom (#2152)

* chore: publish v1.1.11 (#2153)

* chore: publish v1.1.11

* chore: changelog's changes

---------

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

* test: remove snapshot for virtual-host (#2161)

* test: remove snapshot for virtual-host

* test: update config

* test: update config

* fix(*): resolve console warn (#2164)

* fix: 修复rate组件选中没有生效 (#2158)

* fix: 修复rate组件选中没有生效

修复rate组件选中没有生效

* fix: 导致父组件tap失效

* fix(rate): uncatch event (#2168)

* feat(pull-down-refresh): 增加show-scrollbar参数 (#2163)

* docs(pulldown-refresh): add show-scrollbar property

* fix(picker): observe value (#2169)

* fix(tabs): enable scroll smoothly (#2170)

* fix(tree-select): enable value with empty array (#2173)

* chore: publish v1.1.12 (#2175)

* chore: publish v1.1.12

* chore: changelog's changes

---------

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

* chore: add css variables content for api docs (#2182)

* fix: resolved some spelling mistake

* chore: add css variables content for api docs

* docs: add external-class content (#2186)

* docs(Button): add external-class contnet

* docs(Grid): add external-class contnet

* docs(Divider): add external-class content

* feat(action-sheet): support the show-overlay property (#2194)

* fix(toast): fix type error in the close method of toast (#2191)

* fix: action ci script security

* fix: resolved some spelling mistake (#2197)

* fix: resolved some spelling mistake

* fix(StepItem): remove useless css

* Fix/20230715 wrong label (#2195)

* fix(slider, message): 修复message nowrap classPrefix 失效 & slider 组件标签大括号异常

message nowrap 属性中的 classPrefix 被当做字符串处理,导致无法正常使用。slider 组件中多出来了一对闭合大括号,导致无法正常匹配

* fix(message 组件): marquee 还原

变量还原

* fix(message): 多余中括号移除

多余中括号移除

---------

Co-authored-by: gao.ghf <gao.ghf@alibaba-inc.com>

* docs(action-sheet): enable show-overlay (#2196)

* fix(picker): column index is always zero (#2188)

* docs: add external-class content (#2200)

* chore: publish v1.1.13 (#2205)

* chore: publish v1.1.13

* chore: changelog's changes

---------

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

* fix(popup): resolve auto focus (#2209)

* fix(popup): resolve auto focus

* test: update snapshot

* feat(action-sheet): support suffix icon for list type (#2210)

* fix: resolve slider render (#2211)

* feat(TreeSelect): support label super long ellipsis (#2208)

* chore: publish v1.1.13-beta

* fix: enable remove scroller when component detached (#2215)

* fix: enable remove scroller when component detached

* fix: update variable name

* fix: resolve grammar problem (#2217)

* fix: resolve grammar problem

* fix: recover unexpected changed

* feat(overlay): enable duration (#2179)

* feat(overlay): enable duration

* test: snap-update

* test: update snapshot

---------

Co-authored-by: lijun <leejimqiu@gmail.com>

* chore: publish v1.1.14 (#2219)

* chore: publish v1.1.14

* chore: changelog's changes

---------

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

* docs(link): 补充使用说明,修复文档中句号导致的链接跳转错误 (#2227)

* fix: update script for testing demo (#2235)

* fix: update script for testing demo

* fix: resolve eslint errors

* fix(action-sheet): enable item color for grid type (#2231)

* chore: remove getphonenumber on demo (#2225)

* chore: remove getphonenumber on demo

* test: update snapshot

* fix(swipe-cell): enable dynaimc props (#2239)

* feat(dropdown-menu): support custom icon for arrow (#2240)

* chore: publish v1.1.15 (#2241)

* chore: publish v1.1.15

* chore: changelog's changes

---------

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

* fix(Swiper): resolved loading style (#2246)

* feat(search): support property for input (#2229)

* feat(search): support maxcharacter and maxlength property

* feat(search): example that support maxcharacter and maxlength property

* test(search): support maxcharacter and maxlength property

* feat(search): support property for input

* test(search): support property for input

* perf(search): support property for input

* perf(search): support property for input

* docs(swiper): add external class (#2256)

* fix(TabBar): resolved demo code error (#2257)

* feat(Icon): update icon form 0.1.4 to 0.2.0 (#2254)

* fix(Input): resolved t-class-label invalid (#2259)

* fix(Input): resolved t-class-label invalid

* feat(Input): enrich css variables

* fix(grid-item): invalid less variables (#2253)

* fix(grid-item): invalid less variables

* fix(grid-item): initialize default values

* chore: upgrade icon-view component (#2269)

* fix(radio): avoid unnecessary render (#2271)

* fix(radio): avoid unnecessaryrender

* test: update snapshot

* fix(swipe-cell): prevent default scroll (#2281)

* fix(collapse): enable expand all (#2280)

* fix(collapse): enable expand all

* test: update snapshot

* docs(radio): update api

* fix(swipe-cell): enable hidden on the beginning (#2283)

* fix(checkbox): enable icon using slot (#2285)

* feat(loading): add css variable for text color (#2273)

* feat(loading): add css variable for text color

BREAKING CHANGE: q

* fix(loading): update text color

* docs(loading): update css variables

* fix(popup): resolve scroll over throught (#2290)

* fix(popup): resolve scroll over throught

* test: update snapshot

* fix(popup): prevent scroll throught

* chore: publish v1.2.0 (#2293)

* chore: publish v1.2.0

* chore: changelog's changes

---------

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

* feat(radio): enable readonly (#2292)

* fix(CellGroup): resolved updateLastChid is triggered multiple times (#2302)

* fix(Popup): resolved visibleChange event parameter error (#2303)

* fix(rate): when value = 0, default-value != 0, allow-half = true, the effect is abnormal (#2307)

* chore: update swiper demo

* fix(radio): resolve event propagation (#2309)

* fix(radio): resolve event propagation

* test: update snapshot

* chore: publish v1.2.1 (#2310)

* chore: publish v1.2.1

* chore: changelog's changes

---------

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

* fix(stepper): enable input decimal number (#2314)

* fix(stepper): enable input decimal number

* test: update snapshot

* fix(tree-select): resolve async options (#2315)

* fix(tree-select): resolve async options

* fix(tree-select): resolve error when data or options is async

* fix(action-sheet): remove unused component (#2318)

* feat(rate): rate组件库支持自定义图标前缀iconPrefix,适配第三方图标库

rate组件库支持自定义图标前缀iconPrefix,适配第三方图标库

fix #2327

* feat: fix

fix

* fix(side-bar): example abnormal (#2325)

* fix(side-bar): example abnormal

* test: snap-update

* test(dropdown-menu): snap-update

* test: update snapshot

---------

Co-authored-by: leejimqiu <leejimqiu@gmail.com>

* Helly w feature/button agreeprivacyauthorization (#2330)

* feat(button): add props buttonId & add event  bindagreeprivacyauthorization

* fix: 命名规范,修改button为tId

* update button readme

* test: update snapshot

---------

Co-authored-by: HellyW <w@hellyw.com>
Co-authored-by: HellyW <wuhaohao1993@outlook.com>

* docs: recover en api

* chore: update demo

* chore: publish v1.2.2 (#2333)

* chore: publish v1.2.2

* chore: changelog's changes

---------

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

* fix(button): no default value is set for t-id (#2337)

* fix(search): no minimum height is set for the input

* fix(dialog): 修复隐私协议接口bindagreeprivacyauthorization回调信息丢失问题 (#2342)

fix #2341

* feat(image-viewer): accessibility (#2334)

* feat(image-viewer): button aria

* fix(image-viewer): mask close

* feat(image-viewer): accessibility

aria

#1062

* style(image-viewer): style fix

outline removed

* chore(image-viewer): remove unused code

remove unused code

---------

Co-authored-by: yaonianhan <yaonianhan@tencent.com>

* docs: Remove extra symbols (#2350)

* fix: update example (#2348)

* fix(search): set the minimum input height to 48rpx

* docs: add qrcode (#2355)

* chore: publish v1.2.3 (#2356)

* chore: publish v1.2.3

* chore: changelog's changes

---------

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

---------

Co-authored-by: Cyrus <liuxingran97@qq.com>
Co-authored-by: favouredddd <40692560+favouredddd@users.noreply.github.com>
Co-authored-by: 孜孜 <1183048003@qq.com>
Co-authored-by: zjianzzhang <zjianzzhang@tencent.com>
Co-authored-by: tomcat-hz <59186135+tomcat-hz@users.noreply.github.com>
Co-authored-by: 龙风 <455947455@qq.com>
Co-authored-by: zhangpaopao <zhangpaopao0609@gmail.com>
Co-authored-by: Guan9 <mllz79@163.com>
Co-authored-by: Y <anly_yaw@163.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: byqbai <byq1213@qq.com>
Co-authored-by: betavs <34408516+betavs@users.noreply.github.com>
Co-authored-by: jarmywang <awangjianjun9@gmail.com>
Co-authored-by: jurrychen <534747442@qq.com>
Co-authored-by: pingwu <58472278+wuping97@users.noreply.github.com>
Co-authored-by: pingwu <pingwu@tencent.com>
Co-authored-by: yuchumian <26185330+yuchumian@users.noreply.github.com>
Co-authored-by: yuchumian <yuchumian@163.com>
Co-authored-by: ElanYoung <39727435+ElanYoung@users.noreply.github.com>
Co-authored-by: betavs <392368711@qq.com>
Co-authored-by: Antzy <mozbano@163.com>
Co-authored-by: xiaosansiji <xiaosansiji@gmail.com>
Co-authored-by: Hwaphon <969489625@qq.com>
Co-authored-by: gao.ghf <gao.ghf@alibaba-inc.com>
Co-authored-by: ccccpj <ccccpj@outlook.com>
Co-authored-by: qianxu <qianxuuuu@qq.com>
Co-authored-by: wū yāng <uyarnchen@gmail.com>
Co-authored-by: twinkleli <310227663@qq.com>
Co-authored-by: HellyW <w@hellyw.com>
Co-authored-by: HellyW <wuhaohao1993@outlook.com>
Co-authored-by: Michael <hanyaonian@outlook.com>
Co-authored-by: yaonianhan <yaonianhan@tencent.com>
Co-authored-by: 杨永安 <i@yangyongan.com>

* Update CHANGELOG.md

---------

Co-authored-by: lijun <leejimqiu@gmail.com>
Co-authored-by: Cyrus <liuxingran97@qq.com>
Co-authored-by: favouredddd <40692560+favouredddd@users.noreply.github.com>
Co-authored-by: 孜孜 <1183048003@qq.com>
Co-authored-by: zjianzzhang <zjianzzhang@tencent.com>
Co-authored-by: tomcat-hz <59186135+tomcat-hz@users.noreply.github.com>
Co-authored-by: 龙风 <455947455@qq.com>
Co-authored-by: zhangpaopao <zhangpaopao0609@gmail.com>
Co-authored-by: Guan9 <mllz79@163.com>
Co-authored-by: Y <anly_yaw@163.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: byqbai <byq1213@qq.com>
Co-authored-by: betavs <34408516+betavs@users.noreply.github.com>
Co-authored-by: jurrychen <534747442@qq.com>
Co-authored-by: pingwu <58472278+wuping97@users.noreply.github.com>
Co-authored-by: pingwu <pingwu@tencent.com>
Co-authored-by: yuchumian <26185330+yuchumian@users.noreply.github.com>
Co-authored-by: yuchumian <yuchumian@163.com>
Co-authored-by: ElanYoung <39727435+ElanYoung@users.noreply.github.com>
Co-authored-by: betavs <392368711@qq.com>
Co-authored-by: Antzy <mozbano@163.com>
Co-authored-by: xiaosansiji <xiaosansiji@gmail.com>
Co-authored-by: Hwaphon <969489625@qq.com>
Co-authored-by: gao.ghf <gao.ghf@alibaba-inc.com>
Co-authored-by: ccccpj <ccccpj@outlook.com>
Co-authored-by: qianxu <qianxuuuu@qq.com>
Co-authored-by: wū yāng <uyarnchen@gmail.com>
Co-authored-by: twinkleli <310227663@qq.com>
Co-authored-by: HellyW <w@hellyw.com>
Co-authored-by: HellyW <wuhaohao1993@outlook.com>
Co-authored-by: Michael <hanyaonian@outlook.com>
Co-authored-by: yaonianhan <yaonianhan@tencent.com>
Co-authored-by: 杨永安 <i@yangyongan.com>
Co-authored-by: jeannehuang <270246430@qq.com>

* chore: update CHANGELOG.md (#2514)

---------

Co-authored-by: Y <anly_yaw@163.com>
Co-authored-by: betavs <34408516+betavs@users.noreply.github.com>
Co-authored-by: Echo <252545095@qq.com>
Co-authored-by: yiqiuzheng <yiqiuzheng@tencent.com>
Co-authored-by: betavs <betavs@qq.com>
Co-authored-by: hkaikai <617760820@qq.com>
Co-authored-by: gjl-0810 <72736463+gjl-0810@users.noreply.github.com>
Co-authored-by: yangbai <yangbai6644@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: lijun <leejimqiu@gmail.com>
Co-authored-by: Cyrus <liuxingran97@qq.com>
Co-authored-by: favouredddd <40692560+favouredddd@users.noreply.github.com>
Co-authored-by: 孜孜 <1183048003@qq.com>
Co-authored-by: zjianzzhang <zjianzzhang@tencent.com>
Co-authored-by: tomcat-hz <59186135+tomcat-hz@users.noreply.github.com>
Co-authored-by: 龙风 <455947455@qq.com>
Co-authored-by: zhangpaopao <zhangpaopao0609@gmail.com>
Co-authored-by: Guan9 <mllz79@163.com>
Co-authored-by: byqbai <byq1213@qq.com>
Co-authored-by: jurrychen <534747442@qq.com>
Co-authored-by: pingwu <58472278+wuping97@users.noreply.github.com>
Co-authored-by: pingwu <pingwu@tencent.com>
Co-authored-by: yuchumian <26185330+yuchumian@users.noreply.github.com>
Co-authored-by: yuchumian <yuchumian@163.com>
Co-authored-by: ElanYoung <39727435+ElanYoung@users.noreply.github.com>
Co-authored-by: betavs <392368711@qq.com>
Co-authored-by: Antzy <mozbano@163.com>
Co-authored-by: xiaosansiji <xiaosansiji@gmail.com>
Co-authored-by: Hwaphon <969489625@qq.com>
Co-authored-by: gao.ghf <gao.ghf@alibaba-inc.com>
Co-authored-by: ccccpj <ccccpj@outlook.com>
Co-authored-by: qianxu <qianxuuuu@qq.com>
Co-authored-by: wū yāng <uyarnchen@gmail.com>
Co-authored-by: twinkleli <310227663@qq.com>
Co-authored-by: HellyW <w@hellyw.com>
Co-authored-by: HellyW <wuhaohao1993@outlook.com>
Co-authored-by: Michael <hanyaonian@outlook.com>
Co-authored-by: yaonianhan <yaonianhan@tencent.com>
Co-authored-by: 杨永安 <i@yangyongan.com>
Co-authored-by: jeannehuang <270246430@qq.com>
  • Loading branch information
1 parent a51f5a5 commit 204e0d8
Show file tree
Hide file tree
Showing 75 changed files with 489 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .github/issue-shoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
- 期望完成时间: {{ .deadline }}
- 开发难度: {{ .level }}
- 参与人数: 1
- 需求对接人: jeannehuang;anlyyao
- 需求对接人: jeannehuang;anlyyao;jarmywang
- 验收标准: 实现期望改造效果,提 PR 并通过验收无误
- 备注: 最终激励以实际提交 `pull request` 并合并为准
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"editor.formatOnSave": true,
"eslint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.tslint": true,
"source.fixAll.eslint": true
"source.fixAll.tslint": "explicit",
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
Expand All @@ -15,6 +15,7 @@
},
"minapp-vscode.reserveTags": ["text"],
"files.associations": {
"*.wxml": "html",
"*.wxss": "css",
"*.wxs": "javascript"
},
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ docClass: timeline
---


## 🌈 1.2.6 `2023-12-22`
### 🚀 Features
- `Upload`: 新增 `disabled` 属性,首页补充服务声明 @anlyyao ([#2489](https://github.com/Tencent/tdesign-miniprogram/pull/2489))
- `NoticeBar`: 新增 `change` 事件,仅在 `direction``vertical` 时有效 @betavs ([#2492](https://github.com/Tencent/tdesign-miniprogram/pull/2492))
- `Fab`: 悬浮按钮支持拖拽 @hkaikai ([#2478](https://github.com/Tencent/tdesign-miniprogram/pull/2478))
- `Checkbox`: `change` 事件新增参数 `context`,返回当前点击项内容 @gjl-0810 ([#2469](https://github.com/Tencent/tdesign-miniprogram/pull/2469))
### 🐞 Bug Fixes
- `Calender`: 兼容 `glass-easel` 框架真机环境 `<include>` 节点上不支持 `wx:` 指令 @jarmywang ([#2491](https://github.com/Tencent/tdesign-miniprogram/pull/2491))
- `Step`: 修复 `status` 属性变更后子项未及时更新的问题 @betavs ([#2480](https://github.com/Tencent/tdesign-miniprogram/pull/2480))
- `NoticeBar`: 处理基础库为 `3.x.x` 时控制台报错的问题 @betavs ([#2470](https://github.com/Tencent/tdesign-miniprogram/pull/2470))
- `Input`: 修复 `type``digit``number`时,`maxlength``maxcharacter` 属性无效的问题 @zyqq ([#2497](https://github.com/Tencent/tdesign-miniprogram/pull/2497))
- `Grid`: 修复 `hover` 属性无效的问题 @betavs ([#2508](https://github.com/Tencent/tdesign-miniprogram/pull/2508))
- `Tabbar`: 修复徽标遮挡底部内容的问题 @yangbai1991 ([#2456](https://github.com/Tencent/tdesign-miniprogram/pull/2456))
### 🚧 Others
- `Icon`: 弃用 `wx.setClipboardData` 防止收集用户信息。 @anlyyao ([#2498](https://github.com/Tencent/tdesign-miniprogram/pull/2498))
- `Textarea`: 更新文档默认值 @betavs ([#2507](https://github.com/Tencent/tdesign-miniprogram/pull/2507))


## 🌈 1.2.5 `2023-12-08`
### 🚀 Features
- `Cell`: 新增外部样式类 `t-class-center` @anlyyao ([#2439](https://github.com/Tencent/tdesign-miniprogram/pull/2439))
Expand Down Expand Up @@ -37,6 +55,7 @@ docClass: timeline
### 🚧 Others
- `Tabs`: 更新示例 @Xcyq ([#2386](https://github.com/Tencent/tdesign-miniprogram/pull/2386))


## 🌈 1.2.3 `2023-09-14`
### 🚀 Features
- `ImageViewer`:支持无障碍访问
Expand Down
3 changes: 2 additions & 1 deletion example/pages/home/home.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"usingComponents": {
"pull-down-list": "../../components/pull-down-list/index",
"t-footer": "tdesign-miniprogram/footer/footer"
"t-footer": "tdesign-miniprogram/footer/footer",
"trd-privacy": "/components/trd-privacy/privacy"
},
"navigationBarTitleText": "TDesign UI",
"navigationBarBackgroundColor": "#f6f6f6",
Expand Down
8 changes: 8 additions & 0 deletions example/pages/home/home.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ page {
text-align: center;
}

.show_privacy {
color: #576b95;
text-align: right;
line-height: 50rpx;
font-size: 24rpx;
text-align: center;
}

.title-wrap {
display: flex;
align-items: center;
Expand Down
6 changes: 6 additions & 0 deletions example/pages/home/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Page({
url: `/pages/${str.page}/${str.page}`,
});
}

this.trdPrivacy = this.selectComponent('#trdPrivacy');
},

showPrivacyWin() {
this.trdPrivacy.showPrivacyWin();
},

clickHandle(e) {
Expand Down
3 changes: 3 additions & 0 deletions example/pages/home/home.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
/>
</view>
<view class="footer">
<view class="show_privacy" bindtap="showPrivacyWin">《TDesign组件库服务声明》</view>
<t-footer text="该小程序仅演示示例,不收集个人信息。"></t-footer>
<t-footer text="Copyright © 1998 - {{currentYear}} Tencent. All Rights Reserved. 腾讯公司 版权所有"></t-footer>
</view>
<trd-privacy id="trdPrivacy" name="TDesign组件库" date="2023年11月14日" winStyle="{{winStyle}}"></trd-privacy>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-miniprogram",
"purename": "tdesign",
"version": "1.2.5",
"version": "1.2.6",
"description": "tdesign-miniprogram",
"title": "tdesign-ßminiprogram",
"main": "miniprogram_dist/index.js",
Expand Down Expand Up @@ -125,4 +125,4 @@
"dependencies": {
"dayjs": "^1.10.7"
}
}
}
14 changes: 4 additions & 10 deletions src/badge/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ exports[`Badge Badge base demo works fine 1`] = `
class="wrapper"
content="消息"
dot="{{true}}"
offset="{{
Array [
-4,
4,
]
}}"
/>
<t-badge
class="wrapper"
Expand Down Expand Up @@ -66,7 +60,7 @@ exports[`Badge Badge base demo works fine 1`] = `
count="8"
offset="{{
Array [
-8,
4,
]
}}"
/>
Expand All @@ -75,7 +69,7 @@ exports[`Badge Badge base demo works fine 1`] = `
count="2"
offset="{{
Array [
-2,
2,
-2,
]
}}"
Expand Down Expand Up @@ -193,7 +187,7 @@ exports[`Badge Badge theme demo works fine 1`] = `
count="2"
offset="{{
Array [
-2,
2,
-2,
]
}}"
Expand All @@ -217,7 +211,7 @@ exports[`Badge Badge theme demo works fine 1`] = `
count="2"
offset="{{
Array [
-2,
1,
-2,
]
}}"
Expand Down
2 changes: 0 additions & 2 deletions src/badge/__test__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ describe('badge', () => {

const $count = comp.querySelector('.badge >>> .t-badge--basic');
expect($count.dom.style.top).toBe('20em');
expect($count.dom.style.right).toBe('15px');
});

it(':offset number without unit', async () => {
Expand All @@ -229,6 +228,5 @@ describe('badge', () => {

const $count = comp.querySelector('.badge >>> .t-badge--basic');
expect($count.dom.style.top).toBe('29px');
expect($count.dom.style.right).toBe('16px');
});
});
6 changes: 3 additions & 3 deletions src/badge/_example/base/index.wxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<view class="demo-desc">红点徽标</view>
<view class="demo-wrapper">
<t-badge dot offset="{{ [-4, 4] }}" class="wrapper" content="消息" />
<t-badge dot class="wrapper" content="消息" />
<t-badge dot offset="{{ [1, -1] }}" class="wrapper">
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
Expand All @@ -11,8 +11,8 @@

<view class="demo-desc">数字徽标</view>
<view class="demo-wrapper">
<t-badge count="8" content="消息" offset="{{ [-8] }}" class="wrapper" />
<t-badge count="2" offset="{{ [-2, -2] }}" class="wrapper">
<t-badge count="8" content="消息" offset="{{ [4] }}" class="wrapper" />
<t-badge count="2" offset="{{ [2, -2] }}" class="wrapper">
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
<t-badge count="8" offset="{{ [2, 2] }}" class="wrapper">
Expand Down
4 changes: 2 additions & 2 deletions src/badge/_example/theme/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

<view class="demo-desc">圆形徽标</view>
<view class="demo-wrapper">
<t-badge count="2" offset="{{ [-2, -2] }}">
<t-badge count="2" offset="{{ [2, -2] }}">
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
</view>

<view class="demo-desc">方形徽标</view>
<view class="demo-wrapper">
<t-badge count="2" shape="square" offset="{{ [-2, -2] }}">
<t-badge count="2" shape="square" offset="{{ [1, -2] }}">
<t-icon name="notification" size="24" ariaLabel="通知" />
</t-badge>
</view>
Expand Down
4 changes: 2 additions & 2 deletions src/badge/badge.less
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
}

&__content:not(:empty) + .t-has-count {
transform: translate(50%, -50%);
transform: translate(-50%, -50%);
position: absolute;
right: 0;
left: 100%;
top: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/badge/badge.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var getBadgeStyles = function (props) {
styleStr += 'background:' + props.color + ';';
}
if (props.offset[0]) {
styleStr += 'right:' + (hasUnit(props.offset[0].toString()) ? props.offset[0] : props.offset[0] + 'px') + ';';
styleStr += 'left: calc(100% + ' + (hasUnit(props.offset[0].toString()) ? props.offset[0] : props.offset[0] + 'px') + ');';
}
if (props.offset[1]) {
styleStr += 'top:' + (hasUnit(props.offset[1].toString()) ? props.offset[1] : props.offset[1] + 'px') + ';';
Expand Down
4 changes: 3 additions & 1 deletion src/calendar/calendar.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
>
<include src="./template.wxml" />
</t-popup>
<include wx:else src="./template.wxml" />
<block wx:else>
<include src="./template.wxml" />
</block>
6 changes: 3 additions & 3 deletions src/checkbox-group/checkbox-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class CheckBoxGroup extends SuperComponent {
}
},

updateValue({ value, checked, checkAll, indeterminate }) {
updateValue({ value, checked, checkAll, item, indeterminate }) {
let { value: newValue } = this.data;
const { max } = this.data;
const keySet = new Set(this.getChildren().map((item) => item.data.value));
Expand Down Expand Up @@ -104,7 +104,7 @@ export default class CheckBoxGroup extends SuperComponent {
newValue.splice(index, 1);
}

this._trigger('change', { value: newValue });
this._trigger('change', { value: newValue, context: item });
},

initWithOptions() {
Expand Down Expand Up @@ -137,7 +137,7 @@ export default class CheckBoxGroup extends SuperComponent {
rect.indeterminate = this.$checkAll?.data.indeterminate;
}

this.updateValue({ ...item, checked, ...rect });
this.updateValue({ ...item, checked, item, ...rect });
},

setCheckall() {
Expand Down
4 changes: 2 additions & 2 deletions src/checkbox/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ value | String / Number / Boolean | - | value of checkbox。Typescript:`string

name | params | description
-- | -- | --
change | `(checked: boolean)` | \-
change | `(checked: boolean, context: { value: boolean|number|string, label: boolean|number|string })` | \-

### CheckboxGroup Props

Expand All @@ -46,7 +46,7 @@ default-value | Array | undefined | uncontrolled property。Typescript:`T` `ty

name | params | description
-- | -- | --
change | `(value: CheckboxGroupValue)` | \-
change | `(value: CheckboxGroupValue, context: { value: boolean|number|string, label: boolean|number|string })` | \-


### CSS Variables
Expand Down
4 changes: 2 additions & 2 deletions src/checkbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ value | String / Number / Boolean | - | 多选框的值。TS 类型:`string \|

名称 | 参数 | 描述
-- | -- | --
change | `(checked: boolean)` | 值变化时触发
change | `(checked: boolean, context: { value: boolean|number|string, label: boolean|number|string })` | 值变化时触发`context` 表示当前点击项内容。

### Checkbox 外部样式类
类名 | 说明
Expand All @@ -113,7 +113,7 @@ default-value | Array | undefined | 选中值。非受控属性。TS 类型:`T

名称 | 参数 | 描述
-- | -- | --
change | `(value: CheckboxGroupValue)` | 值变化时触发
change | `(value: CheckboxGroupValue, context: { value: boolean|number|string, label: boolean|number|string })` | 值变化时触发`context` 表示当前点击项内容。


### CSS 变量
Expand Down
4 changes: 2 additions & 2 deletions src/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ export default class CheckBox extends SuperComponent {
if (target === 'text' && contentDisabled) {
return;
}

const { value, label } = this.data;
const checked = !this.data.checked;
const parent = this.$parent;

if (parent) {
parent.updateValue({ ...this.data, checked });
} else {
this._trigger('change', { checked });
this._trigger('change', { context: { value, label }, checked });
}
},
};
Expand Down
22 changes: 15 additions & 7 deletions src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,20 @@ export const getRect = function (context: any, selector: string, needAll: boolea
});
};

const isDef = function (value: any): boolean {
return value !== undefined && value !== null;
};

export const isNumber = function (value) {
return /^\d+(\.\d+)?$/.test(value);
};

export const isNull = function (value: any): boolean {
return value === null;
};

export const isUndefined = (value: any): boolean => typeof value === 'undefined';

export const isDef = function (value: any): boolean {
return !isUndefined(value) && !isNull(value);
};

export const addUnit = function (value?: string | number): string | undefined {
if (!isDef(value)) {
return undefined;
Expand All @@ -128,12 +134,14 @@ export const addUnit = function (value?: string | number): string | undefined {

/**
* 计算字符串字符的长度并可以截取字符串。
* @param str 传入字符串(maxcharacter条件下,一个汉字表示两个字符)
* @param char 传入字符串(maxcharacter条件下,一个汉字表示两个字符)
* @param max 规定最大字符串长度
* @returns 当没有传入maxCharacter/maxLength 时返回字符串字符长度,当传入maxCharacter/maxLength时返回截取之后的字符串和长度。
*/
export const getCharacterLength = (type: string, str: string, max?: number) => {
if (!str || str.length === 0) {
export const getCharacterLength = (type: string, char: string | number, max?: number) => {
const str = String(char ?? '');

if (str.length === 0) {
return {
length: 0,
characters: '',
Expand Down
1 change: 1 addition & 0 deletions src/fab/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ button-props | Object | - | \- | N
icon | String | - | \- | N
style | String | right: 16px; bottom: 32px; | \- | N
text | String | - | \- | N
draggable | Boolean / String | false | \- | N

### Fab Events

Expand Down
1 change: 1 addition & 0 deletions src/fab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ button-props | Object | - | 透传至 Button 组件 | N
icon | String | - | 图标 | N
style | String | right: 16px; bottom: 32px; | 悬浮按钮的样式,常用于调整位置(即将废弃,建议使用 `style`) | N
text | String | - | 文本内容 | N
draggable | Boolean / String | false | `true` / `'all'`可拖动<br>`'vertical'`可垂直拖动<br>`'horizontal'`可水平拖动<br>`false`禁止拖动 | N

### Fab Events

Expand Down
Loading

0 comments on commit 204e0d8

Please sign in to comment.