diff --git a/docs/markdown/changelog.en-US.md b/docs/markdown/changelog.en-US.md
index 78d8be853..ecf3fc0d2 100644
--- a/docs/markdown/changelog.en-US.md
+++ b/docs/markdown/changelog.en-US.md
@@ -34,7 +34,7 @@
- Tabbar: add safe-area-inset-bottom prop [\#3149](https://github.com/youzan/vant/pull/3149)
- SubmitBar: add safe-area-inset-bottom prop [\#3172](https://github.com/youzan/vant/pull/3172)
- GoodsAction: add safe-area-inset-bottom prop [\#3174](https://github.com/youzan/vant/pull/3174)
-- Actionsheet: add safe-area-inset-bottom prop [\#3171](https://github.com/youzan/vant/pull/3171)
+- ActionSheet: add safe-area-inset-bottom prop [\#3171](https://github.com/youzan/vant/pull/3171)
- NumberKeyboard: add safe-area-inset-bottom prop [\#3173](https://github.com/youzan/vant/pull/3173)
**Bug Fixes**
@@ -89,7 +89,7 @@
**Improvements**
-- Actionsheet: add less vars [\#3049](https://github.com/youzan/vant/pull/3049)
+- ActionSheet: add less vars [\#3049](https://github.com/youzan/vant/pull/3049)
**Bug Fixes**
@@ -112,7 +112,7 @@
- NoticeBar: add wrapable prop [\#2992](https://github.com/youzan/vant/pull/2992)
- Field: add error-message-align prop [\#3016](https://github.com/youzan/vant/pull/3016)
- Sku: support set selectedNum when inited [\#3045](https://github.com/youzan/vant/pull/3045)
-- Actionsheet: support use slot and cancel-text at same time [\#3021](https://github.com/youzan/vant/pull/3021)
+- ActionSheet: support use slot and cancel-text at same time [\#3021](https://github.com/youzan/vant/pull/3021)
**Bug Fixes**
@@ -152,7 +152,7 @@
- CellGroup: add title prop [\#2928](https://github.com/youzan/vant/pull/2928)
- Steps: add active-icon prop [\#2934](https://github.com/youzan/vant/pull/2934)
- Picker: add default-index prop [\#2935](https://github.com/youzan/vant/pull/2935)
-- Actionsheet: add index param for select event [\#2917](https://github.com/youzan/vant/pull/2917)
+- ActionSheet: add index param for select event [\#2917](https://github.com/youzan/vant/pull/2917)
**Bug Fixes**
@@ -188,8 +188,8 @@
**Bug Fixes**
-- fix Actionsheet lazy-render not work [\#2840](https://github.com/youzan/vant/pull/2840)
-- fix Actionsheet get-container not work [\#2853](https://github.com/youzan/vant/pull/2853)
+- fix ActionSheet lazy-render not work [\#2840](https://github.com/youzan/vant/pull/2840)
+- fix ActionSheet get-container not work [\#2853](https://github.com/youzan/vant/pull/2853)
- fix Tab should scroll to active tab when inited [\#2857](https://github.com/youzan/vant/pull/2857)
- fix Checkbox uncheckable when inside cell [\#2855](https://github.com/youzan/vant/pull/2855)
- fix CouponList incorrectly render when disabled list empty [\#2845](https://github.com/youzan/vant/pull/2845)
@@ -873,14 +873,14 @@ Also we have optimized the UI of the following components::
**Improvements**
-- Actionsheet: add select event [\#1594](https://github.com/youzan/vant/pull/1594)
+- ActionSheet: add select event [\#1594](https://github.com/youzan/vant/pull/1594)
- ImagePreview: suppot onClose callback [\#1589](https://github.com/youzan/vant/pull/1589)
- List: add check method [\#1590](https://github.com/youzan/vant/pull/1590)
- Search: update style [\#1603](https://github.com/youzan/vant/pull/1603)
**Bug Fixes**
-- fix Actionsheet item unclickable when loading [\#1587](https://github.com/youzan/vant/pull/1587)
+- fix ActionSheet item unclickable when loading [\#1587](https://github.com/youzan/vant/pull/1587)
- fix DatetimePicker value uncorrect when use formatter [\#1591](https://github.com/youzan/vant/pull/1591)
@@ -970,7 +970,7 @@ Also we have optimized the UI of the following components::
**Improvements**
-- Actionsheet: support lazy render [\#1365](https://github.com/youzan/vant/pull/1365)
+- ActionSheet: support lazy render [\#1365](https://github.com/youzan/vant/pull/1365)
- AddressEdit: adjust event order [\#1402](https://github.com/youzan/vant/pull/1402)
- SwitchCell: add size prop [\#1371](https://github.com/youzan/vant/pull/1371)
- Checkbox: add label-position prop [\#1394](https://github.com/youzan/vant/pull/1394)
@@ -1015,7 +1015,7 @@ Also we have optimized the UI of the following components::
**Improvements**
-- Actionsheet: support disable option [\#1293](https://github.com/youzan/vant/pull/1293)
+- ActionSheet: support disable option [\#1293](https://github.com/youzan/vant/pull/1293)
- Field: support clearable [\#1309](https://github.com/youzan/vant/pull/1309)
- Layout: support flex layout [\#1305](https://github.com/youzan/vant/pull/1305)
- Locale: add type definition [\#1294](https://github.com/youzan/vant/pull/1294)
@@ -1046,7 +1046,7 @@ Also we have optimized the UI of the following components::
**Bug Fixes**
-- fix Actionsheet title font size [\#1267](https://github.com/youzan/vant/pull/1267)
+- fix ActionSheet title font size [\#1267](https://github.com/youzan/vant/pull/1267)
- fix CheckboxGroup v-model type check [\#1254](https://github.com/youzan/vant/pull/1254)
- fix Popup max height [\#1256](https://github.com/youzan/vant/pull/1256)
- fix Tab resize line when title changed [\#1260](https://github.com/youzan/vant/pull/1260)
@@ -1273,8 +1273,8 @@ Also we have optimized the UI of the following components::
**Improvements**
-* Actionsheet: add cancel event [\#796](https://github.com/youzan/vant/pull/796)
-* Actionsheet: support maxHeight [\#777](https://github.com/youzan/vant/pull/777)
+* ActionSheet: add cancel event [\#796](https://github.com/youzan/vant/pull/796)
+* ActionSheet: support maxHeight [\#777](https://github.com/youzan/vant/pull/777)
* DatetimePicker: support all picker props [\#788](https://github.com/youzan/vant/pull/788)
* SubmitBar: unite font-size [\#774](https://github.com/youzan/vant/pull/774)
* i18n: support zh-HK language [\#812](https://github.com/youzan/vant/pull/812)
@@ -1359,7 +1359,7 @@ Also we have optimized the UI of the following components::
**Bug Fixes**
-* fix Actionsheet bottom border missing [\#686](https://github.com/youzan/vant/pull/686)
+* fix ActionSheet bottom border missing [\#686](https://github.com/youzan/vant/pull/686)
* fix AddressEdit area not selected when area_code changed [\#680](https://github.com/youzan/vant/pull/680)
* fix Stepper value overlimit [\#691](https://github.com/youzan/vant/issues/691)
* fix Badge info font weight when selected [\#687](https://github.com/youzan/vant/pull/687)
@@ -1781,7 +1781,7 @@ Also we have optimized the UI of the following components::
**Improvements**
-* Actionsheet: update close icon style [\#340](https://github.com/youzan/vant/pull/340)
+* ActionSheet: update close icon style [\#340](https://github.com/youzan/vant/pull/340)
* Popup: add overlayClass and overlayStyle props [\#349](https://github.com/youzan/vant/pull/349) [\#343](https://github.com/youzan/vant/pull/343)
* Icon: adjust unicode for better display [\#330](https://github.com/youzan/vant/pull/330)
* ImagePreview: support manually close [\#346](https://github.com/youzan/vant/pull/346)
diff --git a/docs/markdown/changelog.zh-CN.md b/docs/markdown/changelog.zh-CN.md
index a6137baa8..674be9ea2 100644
--- a/docs/markdown/changelog.zh-CN.md
+++ b/docs/markdown/changelog.zh-CN.md
@@ -34,7 +34,7 @@
- Tabbar: 新增 safe-area-inset-bottom 属性 [\#3149](https://github.com/youzan/vant/pull/3149)
- SubmitBar: 新增 safe-area-inset-bottom 属性 [\#3172](https://github.com/youzan/vant/pull/3172)
- GoodsAction: 新增 safe-area-inset-bottom 属性 [\#3174](https://github.com/youzan/vant/pull/3174)
-- Actionsheet: 新增 safe-area-inset-bottom 属性 [\#3171](https://github.com/youzan/vant/pull/3171)
+- ActionSheet: 新增 safe-area-inset-bottom 属性 [\#3171](https://github.com/youzan/vant/pull/3171)
- NumberKeyboard: 新增 safe-area-inset-bottom 属性 [\#3173](https://github.com/youzan/vant/pull/3173)
**Bug Fixes**
@@ -89,7 +89,7 @@
**Improvements**
-- Actionsheet: 新增 less 变量 [\#3049](https://github.com/youzan/vant/pull/3049)
+- ActionSheet: 新增 less 变量 [\#3049](https://github.com/youzan/vant/pull/3049)
**Bug Fixes**
@@ -112,7 +112,7 @@
- NoticeBar: 新增 wrapable 属性 [\#2992](https://github.com/youzan/vant/pull/2992)
- Field: 新增 error-message-align 属性 [\#3016](https://github.com/youzan/vant/pull/3016)
- Sku: 支持在初始化时设置选中商品数量 [\#3045](https://github.com/youzan/vant/pull/3045)
-- Actionsheet: 支持同时设置默认插槽和 cancel-text [\#3021](https://github.com/youzan/vant/pull/3021)
+- ActionSheet: 支持同时设置默认插槽和 cancel-text [\#3021](https://github.com/youzan/vant/pull/3021)
**Bug Fixes**
@@ -152,7 +152,7 @@
- CellGroup: 新增 title 属性 [\#2928](https://github.com/youzan/vant/pull/2928)
- Steps: 新增 active-icon 属性 [\#2934](https://github.com/youzan/vant/pull/2934)
- Picker: 新增 default-index 属性 [\#2935](https://github.com/youzan/vant/pull/2935)
-- Actionsheet: 新增 index 作为 select 事件的回调参数 [\#2917](https://github.com/youzan/vant/pull/2917)
+- ActionSheet: 新增 index 作为 select 事件的回调参数 [\#2917](https://github.com/youzan/vant/pull/2917)
**Bug Fixes**
@@ -188,8 +188,8 @@
**Bug Fixes**
-- 修复 Actionsheet lazy-render 属性不生效的问题 [\#2840](https://github.com/youzan/vant/pull/2840)
-- 修复 Actionsheet get-container 属性不生效的问题 [\#2853](https://github.com/youzan/vant/pull/2853)
+- 修复 ActionSheet lazy-render 属性不生效的问题 [\#2840](https://github.com/youzan/vant/pull/2840)
+- 修复 ActionSheet get-container 属性不生效的问题 [\#2853](https://github.com/youzan/vant/pull/2853)
- 修复 Tab 初始化时导航栏未自动滚动到当前标签位置的问题 [\#2857](https://github.com/youzan/vant/pull/2857)
- 修复 Checkbox 与 Cell 组件嵌套用法在 Vue 2.6+ 上的兼容问题 [\#2855](https://github.com/youzan/vant/pull/2855)
- 修复 CouponList 不可用券列表为空时展示错误的问题 [\#2845](https://github.com/youzan/vant/pull/2845)
@@ -875,14 +875,14 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Improvements**
-- Actionsheet: 新增 select 事件 [\#1594](https://github.com/youzan/vant/pull/1594)
+- ActionSheet: 新增 select 事件 [\#1594](https://github.com/youzan/vant/pull/1594)
- ImagePreview: 支持传入 onClose 回调函数 [\#1589](https://github.com/youzan/vant/pull/1589)
- List: 新增 check 方法 [\#1590](https://github.com/youzan/vant/pull/1590)
- Search: 优化样式结构 [\#1603](https://github.com/youzan/vant/pull/1603)
**Bug Fixes**
-- 修复 Actionsheet 选项加载中时仍然有点击态的问题 [\#1587](https://github.com/youzan/vant/pull/1587)
+- 修复 ActionSheet 选项加载中时仍然有点击态的问题 [\#1587](https://github.com/youzan/vant/pull/1587)
- 修复 DatetimePicker 使用 formatter 时默认值错误的问题 [\#1591](https://github.com/youzan/vant/pull/1591)
@@ -970,7 +970,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Improvements**
-- Actionsheet: 支持 lazy-render [\#1365](https://github.com/youzan/vant/pull/1365)
+- ActionSheet: 支持 lazy-render [\#1365](https://github.com/youzan/vant/pull/1365)
- AddressEdit: 优化事件触发顺序 [\#1402](https://github.com/youzan/vant/pull/1402)
- SwitchCell: 新增 size 属性 [\#1371](https://github.com/youzan/vant/pull/1371)
- Checkbox: 新增 label-position 属性 [\#1394](https://github.com/youzan/vant/pull/1394)
@@ -1015,7 +1015,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Improvements**
-- Actionsheet: 支持禁用选项 [\#1293](https://github.com/youzan/vant/pull/1293)
+- ActionSheet: 支持禁用选项 [\#1293](https://github.com/youzan/vant/pull/1293)
- Field: 支持展示清除控件 [\#1309](https://github.com/youzan/vant/pull/1309)
- Layout: 支持 Flex 布局 [\#1305](https://github.com/youzan/vant/pull/1305)
- Locale: 新增 TS 类型定义 [\#1294](https://github.com/youzan/vant/pull/1294)
@@ -1046,7 +1046,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Bug Fixes**
-- 修复 Actionsheet 在 rem 布局下标题文字大小错误的问题 [\#1267](https://github.com/youzan/vant/pull/1267)
+- 修复 ActionSheet 在 rem 布局下标题文字大小错误的问题 [\#1267](https://github.com/youzan/vant/pull/1267)
- 修复 CheckboxGroup v-model 类型检查错误 [\#1254](https://github.com/youzan/vant/pull/1254)
- 修复 Tab 标题长度变化时底部条未重新渲染的问题 [\#1260](https://github.com/youzan/vant/pull/1260)
- 修复 Popup 内容过高时超出屏幕可视范围的问题 [\#1256](https://github.com/youzan/vant/pull/1256)
@@ -1269,8 +1269,8 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Improvements**
-- Actionsheet: 新增 cancel 事件 [\#796](https://github.com/youzan/vant/pull/796)
-- Actionsheet: 增加最大高度限制 [\#777](https://github.com/youzan/vant/pull/777)
+- ActionSheet: 新增 cancel 事件 [\#796](https://github.com/youzan/vant/pull/796)
+- ActionSheet: 增加最大高度限制 [\#777](https://github.com/youzan/vant/pull/777)
- DatetimePicker: 支持所有 picker 组件配置 [\#788](https://github.com/youzan/vant/pull/788)
- SubmitBar: 统一文字大小 [\#774](https://github.com/youzan/vant/pull/774)
- i18n: 支持 zh-HK 语言 [\#812](https://github.com/youzan/vant/pull/812)
@@ -1353,7 +1353,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Bug Fixes**
-* 修复 Actionsheet 下边框未展示的问题 [\#686](https://github.com/youzan/vant/pull/686)
+* 修复 ActionSheet 下边框未展示的问题 [\#686](https://github.com/youzan/vant/pull/686)
* 修复 AddressEdit 在数据变更时未正确选中省市区的问题 [\#680](https://github.com/youzan/vant/pull/680)
* 修复 Stepper value 溢出的问题 [\#691](https://github.com/youzan/vant/issues/691)
* 修复 Badge 选中时字体粗细 [\#687](https://github.com/youzan/vant/pull/687)
@@ -1774,7 +1774,7 @@ PS: 不小心跳过了 1.4.6 版本 ^_^
**Improvements**
-* Actionsheet: 更新关闭按钮样式 [\#340](https://github.com/youzan/vant/pull/340)
+* ActionSheet: 更新关闭按钮样式 [\#340](https://github.com/youzan/vant/pull/340)
* Popup: 新增 overlayClass、overlayStyle 属性 [\#349](https://github.com/youzan/vant/pull/349) [\#343](https://github.com/youzan/vant/pull/343)
* Icon: 调整 unicode,避免展示特殊字符 [\#330](https://github.com/youzan/vant/pull/330)
* ImagePreview: 支持手动关闭 [\#346](https://github.com/youzan/vant/pull/346)
diff --git a/docs/markdown/v2-progress-tracking.md b/docs/markdown/v2-progress-tracking.md
index c15ffcb36..8e3974b47 100644
--- a/docs/markdown/v2-progress-tracking.md
+++ b/docs/markdown/v2-progress-tracking.md
@@ -2,7 +2,7 @@
### Actionsheet
-- [ ] 重命名为 ActionSheet
+- [x] 重命名为 ActionSheet
### Button
diff --git a/docs/src/demo-entry.js b/docs/src/demo-entry.js
index 3549f9b06..52cb85d30 100644
--- a/docs/src/demo-entry.js
+++ b/docs/src/demo-entry.js
@@ -3,7 +3,7 @@
import { wrapper } from './demo-common';
export default {
- 'actionsheet': () => wrapper(import('../../packages/actionsheet/demo'), 'actionsheet'),
+ 'action-sheet': () => wrapper(import('../../packages/action-sheet/demo'), 'action-sheet'),
'address-edit': () => wrapper(import('../../packages/address-edit/demo'), 'address-edit'),
'address-list': () => wrapper(import('../../packages/address-list/demo'), 'address-list'),
'area': () => wrapper(import('../../packages/area/demo'), 'area'),
diff --git a/docs/src/doc.config.js b/docs/src/doc.config.js
index dea1e0dfa..37ca5347b 100644
--- a/docs/src/doc.config.js
+++ b/docs/src/doc.config.js
@@ -168,8 +168,8 @@ module.exports = {
icon: 'passed',
list: [
{
- path: '/actionsheet',
- title: 'Actionsheet 上拉菜单'
+ path: '/action-sheet',
+ title: 'ActionSheet 上拉菜单'
},
{
path: '/dialog',
@@ -475,8 +475,8 @@ module.exports = {
icon: 'passed',
list: [
{
- path: '/actionsheet',
- title: 'Actionsheet'
+ path: '/action-sheet',
+ title: 'ActionSheet'
},
{
path: '/dialog',
diff --git a/docs/src/docs-entry.js b/docs/src/docs-entry.js
index 80bb7857a..41b7d784f 100644
--- a/docs/src/docs-entry.js
+++ b/docs/src/docs-entry.js
@@ -12,8 +12,8 @@ export default {
'style-guide.zh-CN': () => import('../markdown/style-guide.zh-CN.md'),
'theme.en-US': () => import('../markdown/theme.en-US.md'),
'theme.zh-CN': () => import('../markdown/theme.zh-CN.md'),
- 'actionsheet.en-US': () => import('../../packages/actionsheet/en-US.md'),
- 'actionsheet.zh-CN': () => import('../../packages/actionsheet/zh-CN.md'),
+ 'action-sheet.en-US': () => import('../../packages/action-sheet/en-US.md'),
+ 'action-sheet.zh-CN': () => import('../../packages/action-sheet/zh-CN.md'),
'address-edit.en-US': () => import('../../packages/address-edit/en-US.md'),
'address-edit.zh-CN': () => import('../../packages/address-edit/zh-CN.md'),
'address-list.en-US': () => import('../../packages/address-list/en-US.md'),
diff --git a/packages/actionsheet/demo/index.vue b/packages/action-sheet/demo/index.vue
similarity index 74%
rename from packages/actionsheet/demo/index.vue
rename to packages/action-sheet/demo/index.vue
index 2136a089f..8e0b8a860 100644
--- a/packages/actionsheet/demo/index.vue
+++ b/packages/action-sheet/demo/index.vue
@@ -2,7 +2,7 @@
{{ $t('button1') }}
-
{{ $t('button2') }}
-
{{ $t('button3') }}
-
{{ $t('content') }}
-
+
@@ -36,20 +36,20 @@
export default {
i18n: {
'zh-CN': {
- button1: '弹出 Actionsheet',
- button2: '弹出带取消按钮的 Actionsheet',
- button3: '弹出带标题的 Actionsheet',
- title2: '带取消按钮的 Actionsheet',
- title3: '带标题的 Actionsheet',
+ button1: '弹出 ActionSheet',
+ button2: '弹出带取消按钮的 ActionSheet',
+ button3: '弹出带标题的 ActionSheet',
+ title2: '带取消按钮的 ActionSheet',
+ title3: '带标题的 ActionSheet',
description: '描述信息',
disabledOption: '禁用选项'
},
'en-US': {
- button1: 'Show Actionsheet',
- button2: 'Show Actionsheet with cancel button',
- button3: 'Show Actionsheet with title',
- title2: 'Actionsheet with cancel button',
- title3: 'Actionsheet with title',
+ button1: 'Show ActionSheet',
+ button2: 'Show ActionSheet with cancel button',
+ button3: 'Show ActionSheet with title',
+ title2: 'ActionSheet with cancel button',
+ title3: 'ActionSheet with title',
description: 'Description',
disabledOption: 'Disabled Option'
}
@@ -89,7 +89,7 @@ export default {