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

ActionSheet close-abled属性设置false,依旧能点击遮罩关闭 #2492

Closed
kuzanFrozen opened this issue Aug 22, 2023 · 1 comment · Fixed by #2496
Closed

ActionSheet close-abled属性设置false,依旧能点击遮罩关闭 #2492

kuzanFrozen opened this issue Aug 22, 2023 · 1 comment · Fixed by #2496
Labels

Comments

@kuzanFrozen
Copy link

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.1.3

平台

weapp

重现链接

https://nutui.jd.com/playground/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8bnV0LWNlbGwgOnNob3ctaWNvbj1cInRydWVcIiA6aXNMaW5rPVwidHJ1ZVwiIEBjbGljaz1cInN3aXRjaEFjdGlvblNoZWV0KCdpc1Zpc2libGUxJylcIj5cbiAgICA8c3Bhbj48bGFiZWw+5Z+656GA55So5rOVPC9sYWJlbD48L3NwYW4+XG4gICAgPGRpdiB2LWh0bWw9XCJzdGF0ZS52YWxcIj48L2Rpdj5cbiAgPC9udXQtY2VsbD5cbiAgPCEtLSBkZW1vIOWfuuehgOeUqOazlSAtLT5cbiAgPG51dC1hY3Rpb24tc2hlZXQgdi1tb2RlbDp2aXNpYmxlPVwic3RhdGUuaXNWaXNpYmxlMVwiIDptZW51LWl0ZW1zPVwibWVudUl0ZW1zT25lXCIgQGNob29zZT1cImNob29zZUl0ZW1cIiA6Y2xvc2UtYWJsZWQ9XCJmYWxzZVwiPlxuICA8L251dC1hY3Rpb24tc2hlZXQ+XG48L3RlbXBsYXRlPlxuPHNjcmlwdD5cbiAgaW1wb3J0IHsgcmVhY3RpdmUgfSBmcm9tICd2dWUnO1xuICBleHBvcnQgZGVmYXVsdCB7XG4gICAgc2V0dXAoKSB7XG4gICAgICBjb25zdCBzdGF0ZSA9IHJlYWN0aXZlKHtcbiAgICAgICAgaXNWaXNpYmxlMTogZmFsc2UsXG4gICAgICAgIHZhbDogJydcbiAgICAgIH0pO1xuICAgICAgY29uc3QgbWVudUl0ZW1zT25lID0gW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ+mAiemhueS4gCdcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICfpgInpobnkuownXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBuYW1lOiAn6YCJ6aG55LiJJ1xuICAgICAgICB9XG4gICAgICBdO1xuICAgICAgY29uc3Qgc3dpdGNoQWN0aW9uU2hlZXQgPSAocGFyYW0pID0+IHtcbiAgICAgICAgc3RhdGUuaXNWaXNpYmxlMSA9ICFzdGF0ZS5pc1Zpc2libGUxO1xuICAgICAgfTtcbiAgICAgIGNvbnN0IGNob29zZUl0ZW0gPSAoaXRlbVBhcmFtcykgPT4ge1xuICAgICAgICBzdGF0ZS52YWwgPSBpdGVtUGFyYW1zLm5hbWU7XG4gICAgICB9O1xuICAgICAgcmV0dXJuIHtcbiAgICAgICAgc3RhdGUsXG4gICAgICAgIHN3aXRjaEFjdGlvblNoZWV0LFxuICAgICAgICBtZW51SXRlbXNPbmUsXG4gICAgICAgIGNob29zZUl0ZW1cbiAgICAgIH07XG4gICAgfVxuICB9O1xuPC9zY3JpcHQ+XG4ifQ==

重现步骤

<nut-action-sheet v-model:visible="showMoreSpec" :close-abled="false" ></nut-action-sheet>1

期望的结果是什么?

close-abled设置false,点击遮罩层不能关闭

实际的结果是什么?

close-abled设置false,点击遮罩层也会关闭

环境信息

Taro CLI 3.6.11 environment info:
System:
OS: macOS 13.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.20.0 - ~/.nvm/versions/node/v16.20.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.0/bin/yarn
npm: 8.19.4 - ~/.nvm/versions/node/v16.20.0/bin/npm
npmPackages:
@tarojs/cli: 3.6.11 => 3.6.11
@tarojs/components: 3.6.11 => 3.6.11
@tarojs/helper: 3.6.11 => 3.6.11
@tarojs/plugin-framework-vue3: 3.6.11 => 3.6.11
@tarojs/plugin-html: 3.6.11 => 3.6.11
@tarojs/plugin-platform-alipay: 3.6.11 => 3.6.11
@tarojs/plugin-platform-h5: 3.6.11 => 3.6.11
@tarojs/plugin-platform-jd: 3.6.11 => 3.6.11
@tarojs/plugin-platform-qq: 3.6.11 => 3.6.11
@tarojs/plugin-platform-swan: 3.6.11 => 3.6.11
@tarojs/plugin-platform-tt: 3.6.11 => 3.6.11
@tarojs/plugin-platform-weapp: 3.6.11 => 3.6.11
@tarojs/runtime: 3.6.11 => 3.6.11
@tarojs/shared: 3.6.11 => 3.6.11
@tarojs/taro: 3.6.11 => 3.6.11
@tarojs/taro-loader: 3.6.11 => 3.6.11
@tarojs/webpack5-runner: 3.6.11 => 3.6.11
babel-preset-taro: 3.6.11 => 3.6.11
eslint-config-taro: 3.6.11 => 3.6.11
npmGlobalPackages:
typescript: 5.1.6

其他补充信息

No response

@eiinu eiinu added the bug label Aug 22, 2023
@kuzanFrozen
Copy link
Author

@eiinu 建议!点击遮罩层不关闭的属性名统一一下,像popup,dialog都是close-on-click-overlay属性去控制的

@eiinu eiinu linked a pull request Aug 23, 2023 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants