plain-design 1.0.0-beta.6 → 1.0.0-beta.7

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
@@ -42,6 +42,7 @@ export const Dialog = designComponent({
42
42
 
43
43
  noContentPadding: { type: Boolean }, // 去掉内容默认内边距
44
44
  noHead: { type: Boolean, }, // 去掉默认弹框标题
45
+ noFoot: { type: Boolean }, // 去掉底部内容
45
46
  noMask: { type: Boolean }, // 去掉遮罩
46
47
  noClose: { type: Boolean }, // 去掉关闭按钮
47
48
 
@@ -417,7 +418,7 @@ export const Dialog = designComponent({
417
418
  <div className="dialog-body">
418
419
  {slots.default()}
419
420
  </div>
420
- {(!!props.confirmButton || !!props.cancelButton || slots.foot.isExist()) && (
421
+ {!props.noFoot && (!!props.confirmButton || !!props.cancelButton || slots.foot.isExist()) && (
421
422
  <div className="dialog-foot">
422
423
  {slots.foot()}
423
424
  {(() => {