@wlydfe/pro-ui 0.2.20 → 0.2.23

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 (50) hide show
  1. package/README.md +1 -0
  2. package/es/components/page/index.d.ts +48 -3
  3. package/es/components/page/src/index.vue.d.ts +16 -1
  4. package/es/components/search/index.d.ts +19 -0
  5. package/es/components/search/src/index.vue.d.ts +3 -0
  6. package/es/components/search/src/index.vue2.mjs +83 -57
  7. package/es/components/search/src/type.d.ts +6 -0
  8. package/es/components/table/src/table-action-bar.vue.d.ts +46 -2
  9. package/es/components/table/src/table-action-bar.vue2.mjs +7 -6
  10. package/es/components/table/src/type.d.ts +8 -2
  11. package/es/index.css +9 -9
  12. package/es/version.d.ts +1 -1
  13. package/es/version.mjs +1 -1
  14. package/index.js +91 -64
  15. package/index.min.js +2 -2
  16. package/index.min.mjs +2 -2
  17. package/index.mjs +91 -64
  18. package/lib/components/page/index.d.ts +48 -3
  19. package/lib/components/page/src/index.vue.d.ts +16 -1
  20. package/lib/components/search/index.d.ts +19 -0
  21. package/lib/components/search/src/index.vue.d.ts +3 -0
  22. package/lib/components/search/src/index.vue2.js +82 -56
  23. package/lib/components/search/src/type.d.ts +6 -0
  24. package/lib/components/table/src/table-action-bar.vue.d.ts +46 -2
  25. package/lib/components/table/src/table-action-bar.vue2.js +7 -6
  26. package/lib/components/table/src/type.d.ts +8 -2
  27. package/lib/{page.css → display-item.css} +14 -14
  28. package/lib/version.d.ts +1 -1
  29. package/lib/version.js +1 -1
  30. package/locale/en.js +1 -1
  31. package/locale/en.min.js +1 -1
  32. package/locale/en.min.mjs +1 -1
  33. package/locale/en.mjs +1 -1
  34. package/locale/ja.js +1 -1
  35. package/locale/ja.min.js +1 -1
  36. package/locale/ja.min.mjs +1 -1
  37. package/locale/ja.mjs +1 -1
  38. package/locale/ko.js +1 -1
  39. package/locale/ko.min.js +1 -1
  40. package/locale/ko.min.mjs +1 -1
  41. package/locale/ko.mjs +1 -1
  42. package/locale/zh-cn.js +1 -1
  43. package/locale/zh-cn.min.js +1 -1
  44. package/locale/zh-cn.min.mjs +1 -1
  45. package/locale/zh-cn.mjs +1 -1
  46. package/locale/zh-tw.js +1 -1
  47. package/locale/zh-tw.min.js +1 -1
  48. package/locale/zh-tw.min.mjs +1 -1
  49. package/locale/zh-tw.mjs +1 -1
  50. package/package.json +1 -1
@@ -4,8 +4,8 @@ import { RecordType, PageInfo, FieldValueType, PlusColumn } from '@wlydfe/pro-ui
4
4
  import { PlusPaginationProps } from '@wlydfe/pro-ui/es/components/pagination';
5
5
  import { Mutable } from 'element-plus/es/utils';
6
6
  import { Options as SortableOptions } from 'sortablejs';
7
- import { Component, Ref, ComputedRef, AppContext, DirectiveArguments, CSSProperties } from 'vue';
8
- import { ElForm, ElFormItem, ElMessageBoxOptions, ButtonProps, LinkProps, IconProps, ElTooltipProps, TableColumnCtx, TableProps, PopconfirmProps } from 'element-plus';
7
+ import { Component, Ref, ComputedRef, AppContext, DirectiveArguments, CSSProperties, ExtractPropTypes } from 'vue';
8
+ import { ElForm, ElFormItem, ElMessageBoxOptions, ButtonProps, LinkProps, IconProps, ElTooltipProps, TableColumnCtx, TableProps, PopconfirmProps, dropdownProps } from 'element-plus';
9
9
 
10
10
  /**
11
11
  * 按钮属性的类型
@@ -299,6 +299,12 @@ export interface FormChangeCallBackParams extends TableCellParams {
299
299
  * @version v0.1.17
300
300
  */
301
301
  confirmType?: 'messageBox' | 'popconfirm';
302
+ /**
303
+ * 更多操作拦的触发方式
304
+ * @version v0.2.21
305
+ * @default 'click'
306
+ */
307
+ triggerMoreProps?: Partial<Mutable<ExtractPropTypes<typeof dropdownProps>>>;
302
308
  }
303
309
  /**
304
310
  * 表格自身状态
package/es/index.css CHANGED
@@ -1,22 +1,22 @@
1
- .plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}
2
1
  .plus-description .plus-description__name{word-wrap:break-word;max-width:200px}.plus-description .plus-description__label{min-width:80px}.plus-description .plus-description__label.is-required:before{color:var(--el-color-danger);content:"*";margin-right:4px}.plus-description.no-border .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:0}.plus-description.no-border .el-descriptions__body .el-descriptions__label.el-descriptions__cell.is-bordered-label{background-color:var(--el-fill-color-blank)}
2
+ .plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}
3
+ .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__footer{display:flex;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{align-items:center;display:flex}.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}
3
4
  .plus-check-card-group{display:flex;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
4
- .plus-form-item{width:100%}.plus-form-item .plus-form-item__label{align-items:center;display:inline-flex}.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%}
5
5
  .plus-date-picker{align-items:center;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);display:flex;flex-wrap:nowrap;max-width:100%;width:-moz-fit-content;width:fit-content}.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.is-disabled{background-color:var(--el-disabled-bg-color)}.plus-date-picker.is-disabled:hover{border-color:var(--el-border-color)}.plus-date-picker .plus-date-picker__middle{color:var(--el-text-color-placeholder)}.plus-date-picker .plus-date-picker__start{flex:1;font-size:14px}.plus-date-picker .plus-date-picker__start.is-disabled .el-input__wrapper{box-shadow:none}.plus-date-picker .plus-date-picker__start .el-input__wrapper{border:none;box-shadow:none}.plus-date-picker .el-input__wrapper{width:100%}.plus-date-picker .el-input__wrapper:hover{box-shadow:none}.plus-date-picker .el-input__wrapper.is-focus{box-shadow:none}.plus-date-picker .plus-date-picker__end{flex:1;font-size:14px}.plus-date-picker .plus-date-picker__end.is-disabled .el-input__wrapper{box-shadow:none}.plus-date-picker .plus-date-picker__end .el-input__wrapper{border: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{box-shadow:none}.el-form-item.is-error .plus-date-picker .el-input__wrapper.is-focus{box-shadow:none!important}.el-form-item.is-error .plus-date-picker .el-input__wrapper:hover{box-shadow:none}
6
6
  .plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-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{-webkit-border-after:10px solid transparent;-webkit-border-start:10px solid transparent;border:10px solid var(--el-color-primary);border-block-end:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0}.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{-webkit-margin-after:4px;align-items:center;color:var(--el-text-color-primary);display:flex;justify-content:space-between;margin-block-end:4px;width:100%}.plus-check-card .plus-check-card__title-left{align-items:center;display:flex}.plus-check-card .plus-check-card__title-right{align-items:center;display:flex;vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
7
-
8
7
  .plus-dialog .plus-dialog-footer{align-items:center;display:flex}
9
- :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-header{align-items:center;border-bottom:1px solid var(--el-border-color);display:flex;justify-content:space-around}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{align-items:center;display:flex}.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{flex:1 1 0%}.plus-header .plus-header__right{align-items:center;display:flex}.plus-header .plus-header__right .plus-header__dropdown-area{align-items:center;cursor:pointer;display:flex;-webkit-user-select:none;-moz-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%}
10
- .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__footer{display:flex;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{align-items:center;display:flex}.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-drawer-form .el-drawer__header{border-bottom:1px solid var(--el-border-color);margin-bottom:0;padding-bottom:calc(var(--el-drawer-padding-primary)/2);padding-top:calc(var(--el-drawer-padding-primary)/2)}.plus-drawer-form .el-drawer__footer{border-top:1px solid var(--el-border-color);padding-bottom:calc(var(--el-drawer-padding-primary)/2)}
12
8
  .plus-display-item__edit-icon{margin-left:8px}.plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{-webkit-margin-start:4px;color:var(--el-color-primary);cursor:pointer;margin-inline-start:4px;outline:none;text-decoration:none;transition:color .3s;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.is-list .plus-display-item__badge__item+.plus-display-item__badge__item{padding-left:8px}.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%}
9
+ .plus-drawer-form .el-drawer__header{border-bottom:1px solid var(--el-border-color);margin-bottom:0;padding-bottom:calc(var(--el-drawer-padding-primary)/2);padding-top:calc(var(--el-drawer-padding-primary)/2)}.plus-drawer-form .el-drawer__footer{border-top:1px solid var(--el-border-color);padding-bottom:calc(var(--el-drawer-padding-primary)/2)}
13
10
 
14
11
  :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{flex-direction:column}.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height));min-width:var(--plus-sidebar-min-width)}.plus-layout .plus-layout-main{flex:1;height:calc(100vh - var(--plus-header-height));width:calc(100% - var(--plus-sidebar-width))}.plus-layout.collapse .plus-layout-main{width:calc(100% - var(--plus-sidebar-min-width))}.plus-layout .plus-layout-content{padding:0}
12
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-header{align-items:center;border-bottom:1px solid var(--el-border-color);display:flex;justify-content:space-around}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{align-items:center;display:flex}.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{flex:1 1 0%}.plus-header .plus-header__right{align-items:center;display:flex}.plus-header .plus-header__right .plus-header__dropdown-area{align-items:center;cursor:pointer;display:flex;-webkit-user-select:none;-moz-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-search .plus-form__row{row-gap:18px;width:100%}.plus-search.el-form--inline .el-form-item{margin-bottom:0;margin-right:0}.plus-search.el-form--label-top .plus-search__button__wrapper .el-form-item__label{opacity:0;visibility:hidden}.plus-search.el-form--label-top .plus-search__button__wrapper .el-form-item__content{justify-content:flex-end}.plus-search .plus-search__unfold{margin-left:12px}.plus-search .plus-search__button__wrapper{align-items:flex-start;display:flex;flex:auto;justify-content:flex-end;margin-bottom:0;max-width:100%}.plus-search .plus-search__button__wrapper.el-form-item{margin-right:10px}.plus-search .plus-search__button__wrapper .el-form-item__content{flex:none;flex-wrap:nowrap}
14
+
15
15
  .plus-input-tag{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;display:flex;flex-wrap:wrap;max-width:100%;padding:1px 2px;width:-moz-fit-content;width:fit-content}.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.is-disabled{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.plus-input-tag.is-disabled:hover{border-color:var(--el-border-color)}.plus-input-tag.is-disabled .el-tag__close{cursor:not-allowed}.plus-input-tag.is-disabled .el-tag__close:hover{background-color:transparent;color:var(--el-tag-hover-color)}.plus-input-tag .plus-input-tag__tag{margin-bottom:1px;margin-right:4px;margin-top:1px}.plus-input-tag .plus-input-tag__input{box-sizing:border-box;flex:1;min-width:85px;padding:0}.plus-input-tag .plus-input-tag__input .el-input__wrapper{box-shadow:none;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{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{box-shadow:none}.el-form-item.is-error .plus-input-tag .el-input__wrapper.is-focus{box-shadow:none!important}.el-form-item.is-error .plus-input-tag .el-input__wrapper:hover{box-shadow:none}
16
- .plus-pagination{align-items:center;display:flex;justify-content:space-between;padding:16px 0}
16
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){flex-shrink:0;width:var(--plus-sidebar-width)}.plus-sidebar.is-vertical.el-menu--collapse .el-menu-item{width:calc(var(--plus-sidebar-min-width) - 2px)}.plus-sidebar.is-vertical .el-scrollbar__wrap{overflow-x:hidden}.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{align-items:flex-start;background-color:var(--el-menu-bg-color);bottom:0;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 2px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--plus-sidebar-min-width) - 2px)}.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;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:flex;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;user-select:none}
17
17
  .plus-page .plus-page__table_wrapper{margin-top:20px}
18
18
 
19
- .plus-search .plus-form__row{row-gap:18px;width:100%}.plus-search.el-form--inline .el-form-item{margin-bottom:0;margin-right:0}.plus-search.el-form--label-top .plus-search__button__wrapper .el-form-item__label{opacity:0;visibility:hidden}.plus-search.el-form--label-top .plus-search__button__wrapper .el-form-item__content{justify-content:flex-end}.plus-search .plus-search__unfold{margin-left:12px}.plus-search .plus-search__button__wrapper{align-items:flex-start;display:flex;flex:auto;justify-content:flex-end;margin-bottom:0;max-width:100%}.plus-search .plus-search__button__wrapper.el-form-item{margin-right:10px}.plus-search .plus-search__button__wrapper .el-form-item__content{flex:none;flex-wrap:nowrap}
20
- :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){flex-shrink:0;width:var(--plus-sidebar-width)}.plus-sidebar.is-vertical.el-menu--collapse .el-menu-item{width:calc(var(--plus-sidebar-min-width) - 2px)}.plus-sidebar.is-vertical .el-scrollbar__wrap{overflow-x:hidden}.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{align-items:flex-start;background-color:var(--el-menu-bg-color);bottom:0;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 2px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--plus-sidebar-min-width) - 2px)}.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;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:flex;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;user-select:none}
19
+ .plus-pagination{align-items:center;display:flex;justify-content:space-between;padding:16px 0}
20
+ .plus-form-item{width:100%}.plus-form-item .plus-form-item__label{align-items:center;display:inline-flex}.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%}
21
21
  .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.is-center .cell{justify-content:center}.plus-table .plus-table-action-bar.is-right .cell{justify-content:flex-end}.plus-table .plus-table-action-bar.el-table-fixed-column--right{background-color:var(--el-bg-color)}.plus-table .plus-table-action-bar .cell{align-items:center;display:flex}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown__link{cursor:pointer;display:inline-flex;-webkit-user-select:none;-moz-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{box-sizing:border-box;cursor:move;font-size:18px;padding:4px}.plus-table .plus-table-column-index .plus-table-index-column{align-items:center;display:inline-flex;height:20px;justify-content:center;white-space:nowrap;width:20px;word-break:keep-all}.plus-table .plus-table-column-index .cell .plus-table-column-index__content{align-items:center;display:flex;justify-content:center;overflow:hidden}.plus-table .plus-table-title-bar{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.plus-table .plus-table-title-bar__toolbar{align-items:center;display:flex}.plus-table .el-popper{max-width:200px}.plus-table-title-bar__toolbar__density{align-items:center;display:flex;flex-direction:column}.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{align-items:center;display:flex;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}.plus-table-column__edit{cursor:pointer}.plus-table-checkbox-checkAll{display:flex;justify-content:space-between}
22
22
  .plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{flex:1}
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.2.20";
1
+ export declare const version = "0.2.23";
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.20";
1
+ const version = "0.2.23";
2
2
 
3
3
  export { version };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @wlydfe/pro-ui v0.2.20 */
1
+ /*! @wlydfe/pro-ui v0.2.23 */
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) :
@@ -5110,7 +5110,10 @@
5110
5110
  actionBarTableColumnProps: { default: () => ({
5111
5111
  align: "center"
5112
5112
  }) },
5113
- confirmType: { default: "messageBox" }
5113
+ confirmType: { default: "messageBox" },
5114
+ triggerMoreProps: { default: () => ({
5115
+ trigger: "click"
5116
+ }) }
5114
5117
  },
5115
5118
  emits: ["clickAction", "clickActionConfirmCancel"],
5116
5119
  setup(__props, { emit: __emit }) {
@@ -5367,12 +5370,10 @@
5367
5370
  /* KEYED_FRAGMENT */
5368
5371
  )),
5369
5372
  vue.createCommentVNode(" \u9690\u85CF\u7684\u6309\u94AE "),
5370
- getSubButtons(row, $index).showMore ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), {
5371
- key: 0,
5372
- trigger: "click",
5373
+ getSubButtons(row, $index).showMore ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElDropdown), vue.mergeProps({ key: 0 }, _ctx.triggerMoreProps, {
5373
5374
  class: "plus-table-action-bar__dropdown",
5374
5375
  "hide-on-click": hideOnClick.value
5375
- }, {
5376
+ }), {
5376
5377
  dropdown: vue.withCtx(() => [
5377
5378
  vue.createVNode(
5378
5379
  vue.unref(elementPlus.ElDropdownMenu),
@@ -5432,7 +5433,7 @@
5432
5433
  ]),
5433
5434
  _: 2
5434
5435
  /* DYNAMIC */
5435
- }, 1032, ["hide-on-click"])) : vue.createCommentVNode("v-if", true)
5436
+ }, 1040, ["hide-on-click"])) : vue.createCommentVNode("v-if", true)
5436
5437
  ]),
5437
5438
  _: 3
5438
5439
  /* FORWARDED */
@@ -12286,6 +12287,7 @@
12286
12287
  searchLoading: { type: Boolean, default: false },
12287
12288
  inline: { type: Boolean, default: true },
12288
12289
  showNumber: { default: 2 },
12290
+ buttonOrder: { default: () => ["reset", "search", "fold"] },
12289
12291
  labelPosition: { default: void 0 },
12290
12292
  rowProps: { default: () => ({
12291
12293
  gutter: 20
@@ -12399,62 +12401,87 @@
12399
12401
  handleUnfold,
12400
12402
  searchLoading: _ctx.searchLoading
12401
12403
  }, () => [
12402
- _ctx.hasReset ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
12403
- key: 0,
12404
- icon: _ctx.hasSearchIcon ? vue.unref(refresh_right_default) : void 0,
12405
- onClick: handleReset
12406
- }, {
12407
- default: vue.withCtx(() => [
12408
- vue.createTextVNode(
12409
- vue.toDisplayString(_ctx.resetText || vue.unref(t)("plus.search.resetText")),
12410
- 1
12411
- /* TEXT */
12412
- )
12413
- ]),
12414
- _: 1
12415
- /* STABLE */
12416
- }, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
12417
- vue.createVNode(vue.unref(elementPlus.ElButton), {
12418
- type: "primary",
12419
- loading: _ctx.searchLoading,
12420
- icon: _ctx.hasSearchIcon ? vue.unref(search_default) : void 0,
12421
- onClick: handleSearch.value
12422
- }, {
12423
- default: vue.withCtx(() => [
12424
- vue.createTextVNode(
12425
- vue.toDisplayString(_ctx.searchText || vue.unref(t)("plus.search.searchText")),
12426
- 1
12427
- /* TEXT */
12428
- )
12429
- ]),
12430
- _: 1
12431
- /* STABLE */
12432
- }, 8, ["loading", "icon", "onClick"]),
12433
- _ctx.hasUnfold && originData.value.length > _ctx.showNumber ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), {
12434
- key: 1,
12435
- class: "plus-search__unfold",
12436
- type: "primary",
12437
- underline: vue.unref(versionIsLessThan299) ? false : "never",
12438
- href: "javaScript:;",
12439
- onClick: handleUnfold
12440
- }, {
12441
- default: vue.withCtx(() => [
12442
- vue.createTextVNode(
12443
- vue.toDisplayString(unfoldText.value) + " ",
12444
- 1
12445
- /* TEXT */
12446
- ),
12447
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
12448
- default: vue.withCtx(() => [
12449
- isShowUnfold.value ? (vue.openBlock(), vue.createBlock(vue.unref(arrow_up_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(arrow_down_default), { key: 1 }))
12450
- ]),
12451
- _: 1
12452
- /* STABLE */
12453
- })
12454
- ]),
12455
- _: 1
12456
- /* STABLE */
12457
- }, 8, ["underline"])) : vue.createCommentVNode("v-if", true)
12404
+ (vue.openBlock(true), vue.createElementBlock(
12405
+ vue.Fragment,
12406
+ null,
12407
+ vue.renderList(_ctx.buttonOrder, (button) => {
12408
+ return vue.openBlock(), vue.createElementBlock(
12409
+ vue.Fragment,
12410
+ { key: button },
12411
+ [
12412
+ button === "reset" && _ctx.hasReset ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
12413
+ key: 0,
12414
+ icon: _ctx.hasSearchIcon ? vue.unref(refresh_right_default) : void 0,
12415
+ onClick: handleReset
12416
+ }, {
12417
+ default: vue.withCtx(() => [
12418
+ vue.createTextVNode(
12419
+ vue.toDisplayString(_ctx.resetText || vue.unref(t)("plus.search.resetText")),
12420
+ 1
12421
+ /* TEXT */
12422
+ )
12423
+ ]),
12424
+ _: 1
12425
+ /* STABLE */
12426
+ }, 8, ["icon"])) : vue.createCommentVNode("v-if", true),
12427
+ button === "search" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
12428
+ key: 1,
12429
+ type: "primary",
12430
+ loading: _ctx.searchLoading,
12431
+ icon: _ctx.hasSearchIcon ? vue.unref(search_default) : void 0,
12432
+ onClick: handleSearch.value
12433
+ }, {
12434
+ default: vue.withCtx(() => [
12435
+ vue.createTextVNode(
12436
+ vue.toDisplayString(_ctx.searchText || vue.unref(t)("plus.search.searchText")),
12437
+ 1
12438
+ /* TEXT */
12439
+ )
12440
+ ]),
12441
+ _: 1
12442
+ /* STABLE */
12443
+ }, 8, ["loading", "icon", "onClick"])) : vue.createCommentVNode("v-if", true),
12444
+ button === "fold" ? (vue.openBlock(), vue.createElementBlock(
12445
+ vue.Fragment,
12446
+ { key: 2 },
12447
+ [
12448
+ _ctx.hasUnfold && originData.value.length > _ctx.showNumber ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), {
12449
+ key: 0,
12450
+ class: "plus-search__unfold",
12451
+ type: "primary",
12452
+ underline: vue.unref(versionIsLessThan299) ? false : "never",
12453
+ href: "javaScript:;",
12454
+ onClick: handleUnfold
12455
+ }, {
12456
+ default: vue.withCtx(() => [
12457
+ vue.createTextVNode(
12458
+ vue.toDisplayString(unfoldText.value) + " ",
12459
+ 1
12460
+ /* TEXT */
12461
+ ),
12462
+ vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
12463
+ default: vue.withCtx(() => [
12464
+ isShowUnfold.value ? (vue.openBlock(), vue.createBlock(vue.unref(arrow_up_default), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(arrow_down_default), { key: 1 }))
12465
+ ]),
12466
+ _: 1
12467
+ /* STABLE */
12468
+ })
12469
+ ]),
12470
+ _: 1
12471
+ /* STABLE */
12472
+ }, 8, ["underline"])) : vue.createCommentVNode("v-if", true)
12473
+ ],
12474
+ 64
12475
+ /* STABLE_FRAGMENT */
12476
+ )) : vue.createCommentVNode("v-if", true)
12477
+ ],
12478
+ 64
12479
+ /* STABLE_FRAGMENT */
12480
+ );
12481
+ }),
12482
+ 128
12483
+ /* KEYED_FRAGMENT */
12484
+ ))
12458
12485
  ])
12459
12486
  ]),
12460
12487
  _: 3
@@ -14652,7 +14679,7 @@
14652
14679
  }
14653
14680
  };
14654
14681
 
14655
- const version = "0.2.20";
14682
+ const version = "0.2.23";
14656
14683
 
14657
14684
  const install = installer.install;
14658
14685