sadais-piui 1.2.2-beta3 → 1.2.2-beta4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/pi-button/index.vue +12 -2
- package/config/button.js +1 -1
- package/package.json +1 -1
|
@@ -62,12 +62,12 @@ export default {
|
|
|
62
62
|
},
|
|
63
63
|
// 按钮的预置样式
|
|
64
64
|
type: {
|
|
65
|
-
// `'default'` `'primary'` `'warn'` `'secondary'` `'line'`
|
|
65
|
+
// `'default'` `'primary'` `'warn'` `'secondary'` `'line'` `text`
|
|
66
66
|
type: String,
|
|
67
67
|
// 'default'
|
|
68
68
|
default: button.type,
|
|
69
69
|
validator: function(value) {
|
|
70
|
-
return ['default', 'primary', 'warn', 'secondary', 'line'].includes(value)
|
|
70
|
+
return ['default', 'primary', 'warn', 'secondary', 'line', 'text'].includes(value)
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
// 按钮是否镂空
|
|
@@ -461,6 +461,16 @@ export default {
|
|
|
461
461
|
background-color: rgba($pi-primary-color, 0.08);
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
+
&[type='text'] {
|
|
465
|
+
background-color: transparent;
|
|
466
|
+
&::after {
|
|
467
|
+
border: none;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
&.button-hover[type='line'] {
|
|
471
|
+
background-color: rgba($pi-primary-color, 0.08);
|
|
472
|
+
}
|
|
473
|
+
|
|
464
474
|
.wave-ripple {
|
|
465
475
|
position: absolute;
|
|
466
476
|
z-index: 0;
|
package/config/button.js
CHANGED
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
customStyle: {}, // 自定义样式,对象形式(默认值:{})
|
|
4
4
|
width: '', // 按钮宽度,不设置默认自动撑开,如果需要占满一行,填写’100%‘
|
|
5
5
|
size: 'default', // 按钮尺寸,default,large medium small tiny mini
|
|
6
|
-
type: 'default', //
|
|
6
|
+
type: 'default', // 按钮的预置样式,`'default'` `'primary'` `'warn'` `'secondary'` `'line'` `text`(默认值:'default')
|
|
7
7
|
plain: false, // 按钮是否镂空(默认值:false)
|
|
8
8
|
disabled: false, // 是否禁止状态(默认值:false)
|
|
9
9
|
loading: false, // 是否加载中(默认值:false)
|