@wlydfe/pro-ui 0.2.5 → 0.2.6

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.
Files changed (91) hide show
  1. package/es/components/date-picker/index.d.ts +25 -25
  2. package/es/components/date-picker/src/index.vue.d.ts +25 -25
  3. package/es/components/descriptions/index.d.ts +119 -119
  4. package/es/components/descriptions/src/index.vue.d.ts +119 -119
  5. package/es/components/dialog/index.d.ts +2 -2
  6. package/es/components/dialog/src/index.vue.d.ts +2 -2
  7. package/es/components/dialog-form/index.d.ts +102 -102
  8. package/es/components/dialog-form/src/index.vue.d.ts +102 -102
  9. package/es/components/display-item/index.d.ts +112 -112
  10. package/es/components/display-item/src/index.vue.d.ts +119 -113
  11. package/es/components/display-item/src/index.vue2.mjs +81 -31
  12. package/es/components/drawer-form/index.d.ts +110 -110
  13. package/es/components/drawer-form/src/index.vue.d.ts +110 -110
  14. package/es/components/form/index.d.ts +98 -98
  15. package/es/components/form/src/form-content.vue.d.ts +72 -72
  16. package/es/components/form/src/index.vue.d.ts +98 -98
  17. package/es/components/form-item/index.d.ts +65 -65
  18. package/es/components/form-item/src/index.vue.d.ts +65 -65
  19. package/es/components/header/index.d.ts +1 -1
  20. package/es/components/header/src/index.vue.d.ts +1 -1
  21. package/es/components/input-tag/index.d.ts +10 -10
  22. package/es/components/input-tag/src/index.vue.d.ts +10 -10
  23. package/es/components/layout/index.d.ts +56 -56
  24. package/es/components/layout/src/index.vue.d.ts +56 -56
  25. package/es/components/page/index.d.ts +1 -0
  26. package/es/components/page/src/index.vue.d.ts +1 -0
  27. package/es/components/page/src/index.vue2.mjs +9 -2
  28. package/es/components/pagination/index.d.ts +1 -1
  29. package/es/components/pagination/src/index.vue.d.ts +1 -1
  30. package/es/components/radio/index.d.ts +8 -8
  31. package/es/components/radio/src/index.vue.d.ts +8 -8
  32. package/es/components/search/index.d.ts +107 -107
  33. package/es/components/search/src/index.vue.d.ts +107 -107
  34. package/es/components/sidebar/index.d.ts +14 -14
  35. package/es/components/sidebar/src/index.vue.d.ts +14 -14
  36. package/es/components/steps-form/index.d.ts +104 -104
  37. package/es/components/steps-form/src/index.vue.d.ts +104 -104
  38. package/es/components/table/src/index.vue2.mjs +2 -1
  39. package/es/index.css +13 -13
  40. package/index.js +92 -34
  41. package/index.min.js +3 -3
  42. package/index.min.mjs +3 -3
  43. package/index.mjs +92 -34
  44. package/lib/components/date-picker/index.d.ts +25 -25
  45. package/lib/components/date-picker/src/index.vue.d.ts +25 -25
  46. package/lib/components/descriptions/index.d.ts +119 -119
  47. package/lib/components/descriptions/src/index.vue.d.ts +119 -119
  48. package/lib/components/dialog/index.d.ts +2 -2
  49. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  50. package/lib/components/dialog-form/index.d.ts +102 -102
  51. package/lib/components/dialog-form/src/index.vue.d.ts +102 -102
  52. package/lib/components/display-item/index.d.ts +112 -112
  53. package/lib/components/display-item/src/index.vue.d.ts +119 -113
  54. package/lib/components/display-item/src/index.vue2.js +81 -31
  55. package/lib/components/drawer-form/index.d.ts +110 -110
  56. package/lib/components/drawer-form/src/index.vue.d.ts +110 -110
  57. package/lib/components/form/index.d.ts +98 -98
  58. package/lib/components/form/src/form-content.vue.d.ts +72 -72
  59. package/lib/components/form/src/index.vue.d.ts +98 -98
  60. package/lib/components/form-item/index.d.ts +65 -65
  61. package/lib/components/form-item/src/index.vue.d.ts +65 -65
  62. package/lib/components/header/index.d.ts +1 -1
  63. package/lib/components/header/src/index.vue.d.ts +1 -1
  64. package/lib/components/input-tag/index.d.ts +10 -10
  65. package/lib/components/input-tag/src/index.vue.d.ts +10 -10
  66. package/lib/components/layout/index.d.ts +56 -56
  67. package/lib/components/layout/src/index.vue.d.ts +56 -56
  68. package/lib/components/page/index.d.ts +1 -0
  69. package/lib/components/page/src/index.vue.d.ts +1 -0
  70. package/lib/components/page/src/index.vue2.js +9 -2
  71. package/lib/components/pagination/index.d.ts +1 -1
  72. package/lib/components/pagination/src/index.vue.d.ts +1 -1
  73. package/lib/components/radio/index.d.ts +8 -8
  74. package/lib/components/radio/src/index.vue.d.ts +8 -8
  75. package/lib/components/search/index.d.ts +107 -107
  76. package/lib/components/search/src/index.vue.d.ts +107 -107
  77. package/lib/components/sidebar/index.d.ts +14 -14
  78. package/lib/components/sidebar/src/index.vue.d.ts +14 -14
  79. package/lib/components/steps-form/index.d.ts +104 -104
  80. package/lib/components/steps-form/src/index.vue.d.ts +104 -104
  81. package/lib/components/table/src/index.vue2.js +2 -1
  82. package/lib/{page.css → index.css} +12 -12
  83. package/locale/en.js +1 -1
  84. package/locale/en.min.js +1 -1
  85. package/locale/en.min.mjs +1 -1
  86. package/locale/en.mjs +1 -1
  87. package/locale/zh-cn.js +1 -1
  88. package/locale/zh-cn.min.js +1 -1
  89. package/locale/zh-cn.min.mjs +1 -1
  90. package/locale/zh-cn.mjs +1 -1
  91. package/package.json +1 -1
@@ -40,7 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  width: 40
41
41
  }) },
42
42
  expandTableColumnProps: { default: () => ({}) },
43
- indexContentStyle: { type: [Object, Function], default: () => ({}) }
43
+ indexContentStyle: { type: [Object, Function], default: () => ({}) },
44
+ emptyText: {}
44
45
  },
45
46
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh"],
46
47
  setup(__props, { expose: __expose, emit: __emit }) {
package/es/index.css CHANGED
@@ -1,22 +1,22 @@
1
+
2
+ .plus-description .plus-description__name{max-width:200px;word-wrap:break-word}.plus-description .plus-description__label{min-width:80px}
3
+ .plus-breadcrumb{margin-bottom:8px}
4
+ .plus-input-tag{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 2px}.plus-input-tag:hover{border-color:var(--el-border-color-hover)}.plus-input-tag.is-focus{border-color:var(--el-color-primary)}.plus-input-tag .plus-input-tag__tag{margin-bottom:1px;margin-right:4px;margin-top:1px}.plus-input-tag .plus-input-tag__input{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1;min-width:85px;padding:0}.plus-input-tag .plus-input-tag__input .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 4px}.plus-input-tag .plus-input-tag__input .el-input__inner{height:24px;line-height:24px}.plus-input-tag .el-input.is-disabled .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-input-tag .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-input-tag .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
5
+ .plus-check-card-group{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
1
6
  .plus-form-item{width:100%}.plus-form-item .plus-form-item__label{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form-item .plus-form-item__label .plus-table-column__label__icon{margin-left:2px}.plus-form-item .plus-form-item-field,.plus-form-item .plus-form-item-field.el-date-editor{width:100%}
2
- .plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-check-card--large{width:440px}.plus-check-card--default{width:320px}.plus-check-card--small{width:200px}.plus-check-card--checked{background-color:rgba(var(--el-color-primary-rgb),.1);border-color:var(--el-color-primary);position:relative}.plus-check-card--checked:after{border:10px solid var(--el-color-primary);height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;-webkit-border-after:10px solid transparent;border-block-end:10px solid transparent;-webkit-border-start:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:""}.plus-check-card--disabled{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);cursor:not-allowed}.plus-check-card--disabled:after{border-right-color:var(--el-color-info-light-5);border-top-color:var(--el-color-info-light-5)}.plus-check-card .plus-check-card__avatar-wrapper{-webkit-padding-end:8px;padding-inline-end:8px}.plus-check-card .plus-check-card__right-content{overflow:hidden;width:100%}.plus-check-card .plus-check-card__title{width:100%;-webkit-margin-after:4px;color:var(--el-text-color-primary);margin-block-end:4px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.plus-check-card .plus-check-card__title,.plus-check-card .plus-check-card__title-left,.plus-check-card .plus-check-card__title-right{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-check-card .plus-check-card__title-right{vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
3
7
  .plus-date-picker{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-date-picker:hover{border-color:var(--el-border-color-hover)}.plus-date-picker.is-focus{border-color:var(--el-color-primary)}.plus-date-picker .plus-date-picker__middle{color:var(--el-text-color-placeholder)}.plus-date-picker .plus-date-picker__start{font-size:14px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.plus-date-picker .plus-date-picker__start .el-input__wrapper{border:none;-webkit-box-shadow:none;box-shadow:none}.plus-date-picker .el-input__wrapper{width:100%}.plus-date-picker .el-input__wrapper.is-focus,.plus-date-picker .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}.plus-date-picker .plus-date-picker__end{font-size:14px;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.plus-date-picker .plus-date-picker__end .el-input__wrapper{border:none;-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-date-picker{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-date-picker .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-date-picker .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-date-picker .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
8
+ .plus-page .plus-page__table_wrapper{margin-top:20px}
4
9
  .plus-dialog .plus-dialog-footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}
5
- :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--el-border-color)}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__left .plus-header__logo{height:28px}.plus-header .plus-header__left .plus-header__title{color:var(--el-text-color-regular);font-size:18px;font-weight:600;margin:0 0 0 12px;padding:0}.plus-header .plus-header__placeholder{-webkit-box-flex:1;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%}.plus-header .plus-header__right,.plus-header .plus-header__right .plus-header__dropdown-area{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__right .plus-header__dropdown-area{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-header .plus-header__right .plus-header__avatar{border-radius:50%;height:24px;margin-right:4px;width:24px}.plus-header-placeholder{height:var(--plus-header-height);width:100%}
6
10
 
7
- .plus-description .plus-description__name{max-width:200px;word-wrap:break-word}.plus-description .plus-description__label{min-width:80px}
8
- .plus-page .plus-page__table_wrapper{margin-top:20px}
9
- .plus-check-card-group{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
10
- .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__row{width:100%}.plus-form .plus-form__footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form .plus-form__group__item .plus-form__group__item__icon .el-icon{margin-right:5px}.plus-form .plus-form-item-extra{color:var(--el-text-color-placeholder);font-size:var(--el-font-size-base);margin-bottom:18px}
11
- .plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{color:var(--el-color-primary);cursor:pointer;outline:none;text-decoration:none;-webkit-transition:color .3s;transition:color .3s;-webkit-margin-start:4px;margin-inline-start:4px;vertical-align:sub}.plus-display-item__pre{background-color:var(--el-color-primary-light-9);border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:0;width:unset}.plus-display-item__badge .plus-display-item__badge__dot{border-radius:50%;display:inline-block;height:6px;position:relative;top:-1px;vertical-align:middle;width:6px}.plus-display-item__badge .plus-display-item__badge__dot--primary{background-color:var(--el-color-primary)}.plus-display-item__badge .plus-display-item__badge__dot--success{background-color:var(--el-color-success)}.plus-display-item__badge .plus-display-item__badge__dot--info{background-color:var(--el-color-info)}.plus-display-item__badge .plus-display-item__badge__dot--warning{background-color:var(--el-color-warning)}.plus-display-item__badge .plus-display-item__badge__dot--danger{background-color:var(--el-color-danger)}.plus-display-item__form .plus-form-item{margin-bottom:0}.plus-display-item__link{max-width:100%}.plus-display-item__link .el-link__inner{display:inline-block;width:100%}
12
- .plus-breadcrumb{margin-bottom:8px}
13
11
 
14
- .plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}
15
- :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.plus-layout .el-main{padding-right:10px}.plus-layout .el-main,.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height))}
16
- .plus-pagination{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:16px 0}
12
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid var(--el-border-color)}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__left .plus-header__logo{height:28px}.plus-header .plus-header__left .plus-header__title{color:var(--el-text-color-regular);font-size:18px;font-weight:600;margin:0 0 0 12px;padding:0}.plus-header .plus-header__placeholder{-webkit-box-flex:1;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%}.plus-header .plus-header__right,.plus-header .plus-header__right .plus-header__dropdown-area{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-header .plus-header__right .plus-header__dropdown-area{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-header .plus-header__right .plus-header__avatar{border-radius:50%;height:24px;margin-right:4px;width:24px}.plus-header-placeholder{height:var(--plus-header-height);width:100%}
13
+ .plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{color:var(--el-color-primary);cursor:pointer;outline:none;text-decoration:none;-webkit-transition:color .3s;transition:color .3s;-webkit-margin-start:4px;margin-inline-start:4px;vertical-align:sub}.plus-display-item__pre{background-color:var(--el-color-primary-light-9);border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:0;width:unset}.plus-display-item__badge .plus-display-item__badge__dot{border-radius:50%;display:inline-block;height:6px;position:relative;top:-1px;vertical-align:middle;width:6px}.plus-display-item__badge .plus-display-item__badge__dot--primary{background-color:var(--el-color-primary)}.plus-display-item__badge .plus-display-item__badge__dot--success{background-color:var(--el-color-success)}.plus-display-item__badge .plus-display-item__badge__dot--info{background-color:var(--el-color-info)}.plus-display-item__badge .plus-display-item__badge__dot--warning{background-color:var(--el-color-warning)}.plus-display-item__badge .plus-display-item__badge__dot--danger{background-color:var(--el-color-danger)}.plus-display-item__form .plus-form-item{margin-bottom:0}.plus-display-item__link{max-width:100%}.plus-display-item__link .el-link__inner{display:inline-block;width:100%}
14
+ .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__row{width:100%}.plus-form .plus-form__footer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-form .plus-form__group__item .plus-form__group__item__icon .el-icon{margin-right:5px}.plus-form .plus-form-item-extra{color:var(--el-text-color-placeholder);font-size:var(--el-font-size-base);margin-bottom:18px}
15
+ .plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-check-card--large{width:440px}.plus-check-card--default{width:320px}.plus-check-card--small{width:200px}.plus-check-card--checked{background-color:rgba(var(--el-color-primary-rgb),.1);border-color:var(--el-color-primary);position:relative}.plus-check-card--checked:after{border:10px solid var(--el-color-primary);height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0;-webkit-border-after:10px solid transparent;border-block-end:10px solid transparent;-webkit-border-start:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:""}.plus-check-card--disabled{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);cursor:not-allowed}.plus-check-card--disabled:after{border-right-color:var(--el-color-info-light-5);border-top-color:var(--el-color-info-light-5)}.plus-check-card .plus-check-card__avatar-wrapper{-webkit-padding-end:8px;padding-inline-end:8px}.plus-check-card .plus-check-card__right-content{overflow:hidden;width:100%}.plus-check-card .plus-check-card__title{width:100%;-webkit-margin-after:4px;color:var(--el-text-color-primary);margin-block-end:4px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.plus-check-card .plus-check-card__title,.plus-check-card .plus-check-card__title-left,.plus-check-card .plus-check-card__title-right{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-check-card .plus-check-card__title-right{vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
17
16
  .plus-search.el-form--inline .el-form-item{margin-right:0}.plus-search .plus-search__button__wrapper{-webkit-box-flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;max-width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.plus-search .plus-search__button__wrapper.el-form-item{margin-right:10px}.plus-search .plus-search__button__wrapper .el-form-item__content{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none}
18
-
17
+ .plus-pagination{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:16px 0}
18
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.plus-layout .el-main{padding-right:10px}.plus-layout .el-main,.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height))}
19
19
 
20
20
  .plus-table .plus-table-column .plus-table-column__header .plus-table-column__header__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table .plus-table-action-bar.el-table-fixed-column--right{background-color:var(--el-bg-color)}.plus-table .plus-table-action-bar .cell{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown__link{cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-table .plus-table-action-bar .plus-table-action-bar__more-text{margin-right:2px}.plus-table .plus-table-action-bar .plus-table-action-bar__column__link{margin-right:10px}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown{cursor:pointer;margin-left:12px;vertical-align:baseline}.plus-table .plus-table-action-bar .el-link+.el-link{margin-left:12px}.plus-table .plus-table-action-bar .el-icon{cursor:pointer}.plus-table .plus-table-action-bar .el-icon+.el-icon{margin-left:12px}.plus-table .plus-table-column-drag-sort .plus-table-column-drag-icon{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:move;font-size:18px;padding:4px}.plus-table .plus-table-column-index .plus-table-index-column{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;height:20px;white-space:nowrap;width:20px;word-break:keep-all}.plus-table .plus-table-column-index .cell .plus-table-column-index__content,.plus-table .plus-table-column-index .plus-table-index-column{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.plus-table .plus-table-column-index .cell .plus-table-column-index__content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.plus-table .plus-table-title-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:10px}.plus-table .el-popper{max-width:200px}.plus-table-title-bar__toolbar__density{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.plus-table-title-bar__toolbar__density .el-button{margin-top:10px;width:80px}.plus-table-title-bar__toolbar__density .el-button+.el-button{margin-left:0}.plus-table-title-bar__toolbar__icon{color:var(--el-text-color-regular);cursor:pointer;margin-left:10px;vertical-align:middle}.plus-table-title-bar__toolbar__checkbox__item{margin-left:6px}.plus-table-checkbox-item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-left:20px}.plus-table-checkbox-handle{cursor:move;font-size:18px}.plus-table-ghost-class{background-color:#fff;border:1px dashed var(--el-color-primary);padding:0 5px}
21
- .plus-input-tag{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);-webkit-box-sizing:border-box;box-sizing:border-box;padding:1px 2px}.plus-input-tag:hover{border-color:var(--el-border-color-hover)}.plus-input-tag.is-focus{border-color:var(--el-color-primary)}.plus-input-tag .plus-input-tag__tag{margin-bottom:1px;margin-right:4px;margin-top:1px}.plus-input-tag .plus-input-tag__input{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-flex:1;-ms-flex:1;flex:1;min-width:85px;padding:0}.plus-input-tag .plus-input-tag__input .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 4px}.plus-input-tag .plus-input-tag__input .el-input__inner{height:24px;line-height:24px}.plus-input-tag .el-input.is-disabled .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-input-tag .el-input__wrapper{-webkit-box-shadow:none;box-shadow:none}.el-form-item.is-error .plus-input-tag .el-input__wrapper.is-focus{-webkit-box-shadow:none!important;box-shadow:none!important}.el-form-item.is-error .plus-input-tag .el-input__wrapper:hover{-webkit-box-shadow:none;box-shadow:none}
21
+ .plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}
22
22
  :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){-webkit-flex-shrink:0;width:var(--plus-sidebar-width);-ms-flex-negative:0;flex-shrink:0}.plus-sidebar.is-vertical.el-menu--collapse .plus-sidebar__item-title{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.plus-sidebar.is-vertical.el-menu--collapse .el-sub-menu__icon-arrow{display:none}.plus-sidebar.is-vertical .el-scrollbar{height:calc(100% - var(--plus-sidebar-collapse-height))}.plus-sidebar.is-vertical .plus-sidebar__collapse{background-color:var(--el-menu-bg-color);bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 1px);-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2 - 1px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-active{background-color:var(--el-menu-bg-color)}.plus-sidebar.is-vertical .plus-sidebar__collapse [class*=-icon]{cursor:pointer;font-size:20px;margin-top:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.plus-sidebar.is-horizontal,.plus-sidebar.is-horizontal .el-scrollbar,.plus-sidebar.is-horizontal .el-scrollbar__wrap{width:100%}.plus-sidebar.is-horizontal .el-scrollbar__view{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @wlydfe/pro-ui v0.2.5 */
1
+ /*! @wlydfe/pro-ui v0.2.6 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'element-plus'], factory) :
@@ -5533,7 +5533,11 @@
5533
5533
  const PlusForm = Form;
5534
5534
 
5535
5535
  const _hoisted_1$a = ["innerHTML"];
5536
- const _hoisted_2$5 = { class: "plus-display-item" };
5536
+ const _hoisted_2$5 = {
5537
+ key: 1,
5538
+ class: "plus-display-item"
5539
+ };
5540
+ const _hoisted_3$3 = { class: "plus-display-item" };
5537
5541
  var _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
5538
5542
  ...{
5539
5543
  name: "PlusDisplayItem"
@@ -5556,9 +5560,26 @@
5556
5560
  const columns = vue.ref([]);
5557
5561
  const subRow = vue.ref(props.row);
5558
5562
  const customFieldPropsIsReady = vue.ref(false);
5563
+ const rawValue = vue.computed(() => getValue(subRow.value, props.column.prop));
5559
5564
  const displayValue = vue.computed({
5560
5565
  get() {
5561
- return getValue(subRow.value, props.column.prop);
5566
+ var _a, _b;
5567
+ const value = rawValue.value;
5568
+ const isEmpty = value === "" || value === null || value === void 0;
5569
+ if (isEmpty) {
5570
+ switch (props.column.valueType) {
5571
+ case "progress":
5572
+ return 0;
5573
+ default:
5574
+ return ((_a = props.column.tableColumnProps) == null ? void 0 : _a.emptyText) || "-";
5575
+ }
5576
+ }
5577
+ switch (props.column.valueType) {
5578
+ case "date-picker":
5579
+ return value ? formatDate(value) : ((_b = props.column.tableColumnProps) == null ? void 0 : _b.emptyText) || "-";
5580
+ default:
5581
+ return value;
5582
+ }
5562
5583
  },
5563
5584
  set(value) {
5564
5585
  setValue(subRow.value, props.column.prop, value);
@@ -5837,7 +5858,7 @@
5837
5858
  ],
5838
5859
  2112
5839
5860
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
5840
- )) : _ctx.column.valueType === "date-picker" && displayValue.value ? (vue.openBlock(), vue.createElementBlock(
5861
+ )) : _ctx.column.valueType === "date-picker" ? (vue.openBlock(), vue.createElementBlock(
5841
5862
  vue.Fragment,
5842
5863
  { key: 6 },
5843
5864
  [
@@ -5845,7 +5866,7 @@
5845
5866
  vue.createElementVNode(
5846
5867
  "span",
5847
5868
  vue.mergeProps({ class: "plus-display-item" }, customFieldProps.value),
5848
- vue.toDisplayString(vue.unref(formatDate)(displayValue.value)),
5869
+ vue.toDisplayString(displayValue.value),
5849
5870
  17
5850
5871
  /* TEXT, FULL_PROPS */
5851
5872
  )
@@ -5876,25 +5897,45 @@
5876
5897
  "span",
5877
5898
  vue.mergeProps({ class: "plus-display-item plus-display-item__badge" }, customFieldProps.value),
5878
5899
  [
5879
- getStatus.value.color || getStatus.value.type ? (vue.openBlock(), vue.createElementBlock(
5880
- "span",
5881
- {
5882
- key: 0,
5883
- class: vue.normalizeClass([
5884
- "plus-display-item__badge__dot",
5885
- getStatus.value.type && !getStatus.value.color ? "plus-display-item__badge__dot--" + getStatus.value.type : ""
5886
- ]),
5887
- style: vue.normalizeStyle({ backgroundColor: getStatus.value.color })
5888
- },
5889
- null,
5890
- 6
5891
- /* CLASS, STYLE */
5892
- )) : vue.createCommentVNode("v-if", true),
5893
- vue.createTextVNode(
5894
- " " + vue.toDisplayString(getStatus.value.label),
5895
- 1
5896
- /* TEXT */
5897
- )
5900
+ rawValue.value !== "" && rawValue.value !== null && rawValue.value !== void 0 ? (vue.openBlock(), vue.createElementBlock(
5901
+ vue.Fragment,
5902
+ { key: 0 },
5903
+ [
5904
+ getStatus.value.color || getStatus.value.type ? (vue.openBlock(), vue.createElementBlock(
5905
+ "span",
5906
+ {
5907
+ key: 0,
5908
+ class: vue.normalizeClass([
5909
+ "plus-display-item__badge__dot",
5910
+ getStatus.value.type && !getStatus.value.color ? "plus-display-item__badge__dot--" + getStatus.value.type : ""
5911
+ ]),
5912
+ style: vue.normalizeStyle({ backgroundColor: getStatus.value.color })
5913
+ },
5914
+ null,
5915
+ 6
5916
+ /* CLASS, STYLE */
5917
+ )) : vue.createCommentVNode("v-if", true),
5918
+ vue.createTextVNode(
5919
+ " " + vue.toDisplayString(getStatus.value.label),
5920
+ 1
5921
+ /* TEXT */
5922
+ )
5923
+ ],
5924
+ 64
5925
+ /* STABLE_FRAGMENT */
5926
+ )) : (vue.openBlock(), vue.createElementBlock(
5927
+ vue.Fragment,
5928
+ { key: 1 },
5929
+ [
5930
+ vue.createTextVNode(
5931
+ vue.toDisplayString(displayValue.value),
5932
+ 1
5933
+ /* TEXT */
5934
+ )
5935
+ ],
5936
+ 64
5937
+ /* STABLE_FRAGMENT */
5938
+ ))
5898
5939
  ],
5899
5940
  16
5900
5941
  /* FULL_PROPS */
@@ -5902,14 +5943,17 @@
5902
5943
  ],
5903
5944
  2112
5904
5945
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
5905
- )) : _ctx.column.valueType === "tag" && displayValue.value ? (vue.openBlock(), vue.createElementBlock(
5946
+ )) : _ctx.column.valueType === "tag" ? (vue.openBlock(), vue.createElementBlock(
5906
5947
  vue.Fragment,
5907
5948
  { key: 9 },
5908
5949
  [
5909
5950
  vue.createCommentVNode(" \u6807\u7B7E "),
5910
- vue.createVNode(
5951
+ rawValue.value !== "" && rawValue.value !== null && rawValue.value !== void 0 ? (vue.openBlock(), vue.createBlock(
5911
5952
  vue.unref(elementPlus.ElTag),
5912
- vue.mergeProps({ class: "plus-display-item" }, customFieldProps.value),
5953
+ vue.mergeProps({
5954
+ key: 0,
5955
+ class: "plus-display-item"
5956
+ }, customFieldProps.value),
5913
5957
  vue.createSlots({
5914
5958
  default: vue.withCtx(() => [
5915
5959
  vue.createTextVNode(
@@ -5938,10 +5982,16 @@
5938
5982
  ]),
5939
5983
  1040
5940
5984
  /* FULL_PROPS, DYNAMIC_SLOTS */
5941
- )
5985
+ )) : (vue.openBlock(), vue.createElementBlock(
5986
+ "span",
5987
+ _hoisted_2$5,
5988
+ vue.toDisplayString(displayValue.value),
5989
+ 1
5990
+ /* TEXT */
5991
+ ))
5942
5992
  ],
5943
- 2112
5944
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
5993
+ 64
5994
+ /* STABLE_FRAGMENT */
5945
5995
  )) : _ctx.column.valueType === "progress" ? (vue.openBlock(), vue.createElementBlock(
5946
5996
  vue.Fragment,
5947
5997
  { key: 10 },
@@ -5977,7 +6027,7 @@
5977
6027
  { key: 11 },
5978
6028
  [
5979
6029
  vue.createCommentVNode(" \u590D\u5236 "),
5980
- vue.createElementVNode("span", _hoisted_2$5, [
6030
+ vue.createElementVNode("span", _hoisted_3$3, [
5981
6031
  vue.createTextVNode(
5982
6032
  vue.toDisplayString(displayValue.value) + " ",
5983
6033
  1
@@ -9566,7 +9616,8 @@
9566
9616
  width: 40
9567
9617
  }) },
9568
9618
  expandTableColumnProps: { default: () => ({}) },
9569
- indexContentStyle: { type: [Object, Function], default: () => ({}) }
9619
+ indexContentStyle: { type: [Object, Function], default: () => ({}) },
9620
+ emptyText: {}
9570
9621
  },
9571
9622
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh"],
9572
9623
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -10563,6 +10614,13 @@
10563
10614
  setup(__props, { expose: __expose, emit: __emit }) {
10564
10615
  var _a;
10565
10616
  const props = __props;
10617
+ const processedColumns = vue.computed(() => {
10618
+ return props.columns.map((column) => ({
10619
+ hideInSearch: true,
10620
+ // 默认为 true
10621
+ ...column
10622
+ }));
10623
+ });
10566
10624
  const emit = __emit;
10567
10625
  const PlusSearch$1 = PlusSearch;
10568
10626
  const PlusTable$1 = PlusTable;
@@ -10641,7 +10699,7 @@
10641
10699
  }, _ctx.search, {
10642
10700
  modelValue: values.value,
10643
10701
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => values.value = $event),
10644
- columns: _ctx.columns,
10702
+ columns: processedColumns.value,
10645
10703
  "search-loading": vue.unref(loadingStatus),
10646
10704
  onSearch: handleSearch,
10647
10705
  onReset: handleRest
@@ -10670,7 +10728,7 @@
10670
10728
  }, _ctx.table, {
10671
10729
  "table-data": vue.unref(tableData),
10672
10730
  "loading-status": vue.unref(loadingStatus),
10673
- columns: _ctx.columns,
10731
+ columns: processedColumns.value,
10674
10732
  pagination: {
10675
10733
  ..._ctx.pagination,
10676
10734
  total: vue.unref(total),