design
属性设置自定义不同设计规范的图标和逻辑。',
+ 'zh-CN':
+ '可通过 design
属性设置自定义不同设计规范的图标和逻辑,例如:全局配置 Form 表单组件的必填星号是否默认显示、Button 组件的点击后的禁用时间和是否默认圆角。',
'en-US':
'Icons and logic for different design specifications can be customized through the design
attribute configuration.'
},
@@ -40,18 +41,6 @@ export default {
'en-US': 'Container labels can be customized throughtag
.'
},
codeFiles: ['tag.vue']
- },
- {
- demoId: 'form',
- name: {
- 'zh-CN': '隐藏表单必填星号',
- 'en-US': 'Hide all form required asterisks'
- },
- desc: {
- 'zh-CN': '通过 design
设置所有表单组件默认不显示必填星号。',
- 'en-US': 'Set the all form component via design
to not display required asterisks by default.'
- },
- codeFiles: ['form.vue']
}
]
}
diff --git a/examples/sites/demos/pc/menus.js b/examples/sites/demos/pc/menus.js
index 689430ba13..0df44547eb 100644
--- a/examples/sites/demos/pc/menus.js
+++ b/examples/sites/demos/pc/menus.js
@@ -80,6 +80,7 @@ export const cmpMenus = [
'children': [
{ 'nameCn': '按钮', 'name': 'Button', 'key': 'button' },
{ 'nameCn': '按钮组', 'name': 'ButtonGroup', 'key': 'button-group' },
+ { 'nameCn': '全局配置', 'name': 'ConfigProvider', 'key': 'config-provider' },
{ 'nameCn': '容器布局', 'name': 'Container', 'key': 'container' },
{ 'nameCn': '图标', 'name': 'Icon', 'key': 'icon' },
// { 'nameCn': '多色图标', 'name': 'IconMulticolor', 'key': 'icon-multicolor' }, // 隐藏路由,目前只有saas使用
@@ -309,7 +310,6 @@ export const cmpMenus = [
'key': 'cmp-other-components',
'children': [
{ 'nameCn': '公告牌', 'name': 'BulletinBoard', 'key': 'bulletin-board' },
- { 'nameCn': '全局配置', 'name': 'ConfigProvider', 'key': 'config-provider' },
{ 'nameCn': '图片裁剪', 'name': 'Crop', 'key': 'crop' },
{ 'nameCn': '弹窗选择 ', 'name': 'DialogSelect ', 'key': 'dialog-select' },
{ 'nameCn': '过滤器面板', 'name': 'FilterPanel', 'key': 'filter-panel' },
diff --git a/packages/renderless/src/button/index.ts b/packages/renderless/src/button/index.ts
index 3ab9845f58..342690a156 100644
--- a/packages/renderless/src/button/index.ts
+++ b/packages/renderless/src/button/index.ts
@@ -13,18 +13,27 @@ import type { IButtonRenderlessParams, IButtonState } from '@/types'
import { xss } from '../common/xss'
export const handleClick =
- ({ emit, props, state }: Pick