Skip to content

Commit fb47b08

Browse files
authored
fix(drawer): modify the saas style (#3792)
1 parent 59af338 commit fb47b08

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

examples/sites/demos/apis/drawer.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,19 @@ export default {
194194
},
195195
mode: ['pc'],
196196
pcDemo: 'z-index'
197+
},
198+
{
199+
name: 'tips-props',
200+
type: 'ITipsProps',
201+
typeAnchorName: 'ITipsProps',
202+
defaultValue: '',
203+
desc: {
204+
'zh-CN': '可自定义标题帮助提示信息',
205+
'en-US': 'Customizable title help prompt information'
206+
},
207+
mode: ['pc'],
208+
pcDemo: 'tips-props',
209+
hideSaas: true
197210
}
198211
],
199212
events: [
@@ -326,6 +339,15 @@ export default {
326339
}
327340
],
328341
types: [
342+
{
343+
name: 'ITipsProps',
344+
type: 'interface',
345+
code: `interface ITipsProps {
346+
content?: string
347+
placement?: string
348+
effect?: string
349+
}`
350+
},
329351
{
330352
name: 'IDrawerConfigs',
331353
type: 'interface',

examples/sites/demos/pc/app/drawer/webdoc/drawer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export default {
4747
'<p>通过 <code>tips-props</code> 属性可自定义标题帮助提示信息,具体属性配置参考 <a href="tooltip#tooltip">ToolTip 组件</a> 的 props 说明。</p>',
4848
'en-US': ''
4949
},
50-
codeFiles: ['tips-props.vue']
50+
codeFiles: ['tips-props.vue'],
51+
hideSaas: true
5152
},
5253
{
5354
demoId: 'width',

packages/theme-saas/src/drawer/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
@apply flex-none;
156156
@apply flex;
157157
@apply leading-6;
158-
@apply p-4;
158+
@apply px-6 py-4;
159159
@apply text-base;
160160
@apply items-center;
161161

0 commit comments

Comments
 (0)