@wlydfe/pro-ui 0.2.10 → 0.2.11

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.
@@ -222,72 +222,76 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
222
222
  key: _ctx.searchSlot,
223
223
  class: "plus-page__table_wrapper"
224
224
  }, {
225
- default: withCtx(() => [
226
- createVNode(unref(PlusTable), mergeProps({
227
- ref_key: "plusTableInstance",
228
- ref: plusTableInstance,
229
- "title-bar": { refresh: true }
230
- }, _ctx.table, {
231
- "table-data": unref(tableData),
232
- "loading-status": unref(loadingStatus),
233
- columns: processedColumns.value,
234
- pagination: _ctx.pagination === false ? void 0 : {
235
- ..._ctx.pagination,
236
- total: unref(total),
237
- modelValue: unref(pageInfo),
238
- pageSizeList: computedDefaultPageSizeList.value
239
- },
240
- onPaginationChange: handlePaginationChange,
241
- onRefresh: handleRefresh
242
- }), createSlots({
243
- _: 2
244
- /* DYNAMIC */
245
- }, [
246
- _ctx.$slots["table-title"] ? {
247
- name: "title",
248
- fn: withCtx(() => [
249
- renderSlot(_ctx.$slots, "table-title")
250
- ]),
251
- key: "0"
252
- } : void 0,
253
- _ctx.$slots["table-toolbar"] ? {
254
- name: "toolbar",
255
- fn: withCtx(() => [
256
- renderSlot(_ctx.$slots, "table-toolbar")
257
- ]),
258
- key: "1"
259
- } : void 0,
260
- _ctx.$slots["table-expand"] ? {
261
- name: "expand",
262
- fn: withCtx((data) => [
263
- renderSlot(_ctx.$slots, "table-expand", normalizeProps(guardReactiveProps(data)))
264
- ]),
265
- key: "2"
266
- } : void 0,
267
- _ctx.$slots["table-append"] ? {
268
- name: "append",
269
- fn: withCtx(() => [
270
- renderSlot(_ctx.$slots, "table-append")
271
- ]),
272
- key: "3"
273
- } : void 0,
274
- _ctx.$slots["table-empty"] ? {
275
- name: "empty",
276
- fn: withCtx(() => [
277
- renderSlot(_ctx.$slots, "table-empty")
278
- ]),
279
- key: "4"
280
- } : void 0,
281
- renderList(tableSlots.value, (_, key) => {
282
- return {
283
- name: key,
225
+ default: withCtx(() => {
226
+ var _a2, _b;
227
+ return [
228
+ createVNode(unref(PlusTable), mergeProps({
229
+ ref_key: "plusTableInstance",
230
+ ref: plusTableInstance,
231
+ "title-bar": { refresh: true }
232
+ }, _ctx.table, {
233
+ adaptive: (_b = (_a2 = _ctx.table) == null ? void 0 : _a2.adaptive) != null ? _b : true,
234
+ "table-data": unref(tableData),
235
+ "loading-status": unref(loadingStatus),
236
+ columns: processedColumns.value,
237
+ pagination: _ctx.pagination === false ? void 0 : {
238
+ ..._ctx.pagination,
239
+ total: unref(total),
240
+ modelValue: unref(pageInfo),
241
+ pageSizeList: computedDefaultPageSizeList.value
242
+ },
243
+ onPaginationChange: handlePaginationChange,
244
+ onRefresh: handleRefresh
245
+ }), createSlots({
246
+ _: 2
247
+ /* DYNAMIC */
248
+ }, [
249
+ _ctx.$slots["table-title"] ? {
250
+ name: "title",
251
+ fn: withCtx(() => [
252
+ renderSlot(_ctx.$slots, "table-title")
253
+ ]),
254
+ key: "0"
255
+ } : void 0,
256
+ _ctx.$slots["table-toolbar"] ? {
257
+ name: "toolbar",
258
+ fn: withCtx(() => [
259
+ renderSlot(_ctx.$slots, "table-toolbar")
260
+ ]),
261
+ key: "1"
262
+ } : void 0,
263
+ _ctx.$slots["table-expand"] ? {
264
+ name: "expand",
284
265
  fn: withCtx((data) => [
285
- renderSlot(_ctx.$slots, key, normalizeProps(guardReactiveProps(data)))
286
- ])
287
- };
288
- })
289
- ]), 1040, ["table-data", "loading-status", "columns", "pagination"])
290
- ]),
266
+ renderSlot(_ctx.$slots, "table-expand", normalizeProps(guardReactiveProps(data)))
267
+ ]),
268
+ key: "2"
269
+ } : void 0,
270
+ _ctx.$slots["table-append"] ? {
271
+ name: "append",
272
+ fn: withCtx(() => [
273
+ renderSlot(_ctx.$slots, "table-append")
274
+ ]),
275
+ key: "3"
276
+ } : void 0,
277
+ _ctx.$slots["table-empty"] ? {
278
+ name: "empty",
279
+ fn: withCtx(() => [
280
+ renderSlot(_ctx.$slots, "table-empty")
281
+ ]),
282
+ key: "4"
283
+ } : void 0,
284
+ renderList(tableSlots.value, (_, key) => {
285
+ return {
286
+ name: key,
287
+ fn: withCtx((data) => [
288
+ renderSlot(_ctx.$slots, key, normalizeProps(guardReactiveProps(data)))
289
+ ])
290
+ };
291
+ })
292
+ ]), 1040, ["adaptive", "table-data", "loading-status", "columns", "pagination"])
293
+ ];
294
+ }),
291
295
  _: 3
292
296
  /* FORWARDED */
293
297
  }))
@@ -54,7 +54,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  expandTableColumnProps: { default: () => ({}) },
55
55
  indexContentStyle: { type: [Object, Function], default: () => ({}) },
56
56
  editable: { type: [Boolean, String], default: false },
57
- adaptive: { type: [Boolean, Object], default: true },
57
+ adaptive: { type: [Boolean, Object], default: false },
58
58
  filterTableHeaderOverflowLabelLength: {}
59
59
  },
60
60
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
package/es/index.css CHANGED
@@ -1,22 +1,22 @@
1
+ .plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}
2
+ .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
+ .plus-check-card-group{display:flex;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
4
+
5
+ .plus-dialog .plus-dialog-footer{align-items:center;display:flex}
6
+
7
+ .plus-pagination{align-items:center;display:flex;justify-content:space-between;padding:16px 0}
1
8
  .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-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}
3
- .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-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}
10
+ .plus-page .plus-page__table_wrapper{margin-top:20px}
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
+ .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%}
4
13
 
5
14
  .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)}
6
- .plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}
7
- :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}
15
+ .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}
8
16
  :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%}
9
17
  .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}
10
- .plus-check-card-group{display:flex;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
11
- .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}
12
- .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}
13
18
  .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
- .plus-pagination{align-items:center;display:flex;justify-content:space-between;padding:16px 0}
15
- .plus-dialog .plus-dialog-footer{align-items:center;display:flex}
16
-
19
+ .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%}
20
+ .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}
17
21
  :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}
18
-
19
- .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}
20
- .plus-page .plus-page__table_wrapper{margin-top:20px}
21
- .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%}
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}
22
+ .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}
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @wlydfe/pro-ui v0.2.10 */
1
+ /*! @wlydfe/pro-ui v0.2.11 */
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) :
@@ -11634,7 +11634,7 @@
11634
11634
  expandTableColumnProps: { default: () => ({}) },
11635
11635
  indexContentStyle: { type: [Object, Function], default: () => ({}) },
11636
11636
  editable: { type: [Boolean, String], default: false },
11637
- adaptive: { type: [Boolean, Object], default: true },
11637
+ adaptive: { type: [Boolean, Object], default: false },
11638
11638
  filterTableHeaderOverflowLabelLength: {}
11639
11639
  },
11640
11640
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
@@ -13029,72 +13029,76 @@
13029
13029
  key: _ctx.searchSlot,
13030
13030
  class: "plus-page__table_wrapper"
13031
13031
  }, {
13032
- default: vue.withCtx(() => [
13033
- vue.createVNode(vue.unref(PlusTable), vue.mergeProps({
13034
- ref_key: "plusTableInstance",
13035
- ref: plusTableInstance,
13036
- "title-bar": { refresh: true }
13037
- }, _ctx.table, {
13038
- "table-data": vue.unref(tableData),
13039
- "loading-status": vue.unref(loadingStatus),
13040
- columns: processedColumns.value,
13041
- pagination: _ctx.pagination === false ? void 0 : {
13042
- ..._ctx.pagination,
13043
- total: vue.unref(total),
13044
- modelValue: vue.unref(pageInfo),
13045
- pageSizeList: computedDefaultPageSizeList.value
13046
- },
13047
- onPaginationChange: handlePaginationChange,
13048
- onRefresh: handleRefresh
13049
- }), vue.createSlots({
13050
- _: 2
13051
- /* DYNAMIC */
13052
- }, [
13053
- _ctx.$slots["table-title"] ? {
13054
- name: "title",
13055
- fn: vue.withCtx(() => [
13056
- vue.renderSlot(_ctx.$slots, "table-title")
13057
- ]),
13058
- key: "0"
13059
- } : void 0,
13060
- _ctx.$slots["table-toolbar"] ? {
13061
- name: "toolbar",
13062
- fn: vue.withCtx(() => [
13063
- vue.renderSlot(_ctx.$slots, "table-toolbar")
13064
- ]),
13065
- key: "1"
13066
- } : void 0,
13067
- _ctx.$slots["table-expand"] ? {
13068
- name: "expand",
13069
- fn: vue.withCtx((data) => [
13070
- vue.renderSlot(_ctx.$slots, "table-expand", vue.normalizeProps(vue.guardReactiveProps(data)))
13071
- ]),
13072
- key: "2"
13073
- } : void 0,
13074
- _ctx.$slots["table-append"] ? {
13075
- name: "append",
13076
- fn: vue.withCtx(() => [
13077
- vue.renderSlot(_ctx.$slots, "table-append")
13078
- ]),
13079
- key: "3"
13080
- } : void 0,
13081
- _ctx.$slots["table-empty"] ? {
13082
- name: "empty",
13083
- fn: vue.withCtx(() => [
13084
- vue.renderSlot(_ctx.$slots, "table-empty")
13085
- ]),
13086
- key: "4"
13087
- } : void 0,
13088
- vue.renderList(tableSlots.value, (_, key) => {
13089
- return {
13090
- name: key,
13032
+ default: vue.withCtx(() => {
13033
+ var _a2, _b;
13034
+ return [
13035
+ vue.createVNode(vue.unref(PlusTable), vue.mergeProps({
13036
+ ref_key: "plusTableInstance",
13037
+ ref: plusTableInstance,
13038
+ "title-bar": { refresh: true }
13039
+ }, _ctx.table, {
13040
+ adaptive: (_b = (_a2 = _ctx.table) == null ? void 0 : _a2.adaptive) != null ? _b : true,
13041
+ "table-data": vue.unref(tableData),
13042
+ "loading-status": vue.unref(loadingStatus),
13043
+ columns: processedColumns.value,
13044
+ pagination: _ctx.pagination === false ? void 0 : {
13045
+ ..._ctx.pagination,
13046
+ total: vue.unref(total),
13047
+ modelValue: vue.unref(pageInfo),
13048
+ pageSizeList: computedDefaultPageSizeList.value
13049
+ },
13050
+ onPaginationChange: handlePaginationChange,
13051
+ onRefresh: handleRefresh
13052
+ }), vue.createSlots({
13053
+ _: 2
13054
+ /* DYNAMIC */
13055
+ }, [
13056
+ _ctx.$slots["table-title"] ? {
13057
+ name: "title",
13058
+ fn: vue.withCtx(() => [
13059
+ vue.renderSlot(_ctx.$slots, "table-title")
13060
+ ]),
13061
+ key: "0"
13062
+ } : void 0,
13063
+ _ctx.$slots["table-toolbar"] ? {
13064
+ name: "toolbar",
13065
+ fn: vue.withCtx(() => [
13066
+ vue.renderSlot(_ctx.$slots, "table-toolbar")
13067
+ ]),
13068
+ key: "1"
13069
+ } : void 0,
13070
+ _ctx.$slots["table-expand"] ? {
13071
+ name: "expand",
13091
13072
  fn: vue.withCtx((data) => [
13092
- vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(data)))
13093
- ])
13094
- };
13095
- })
13096
- ]), 1040, ["table-data", "loading-status", "columns", "pagination"])
13097
- ]),
13073
+ vue.renderSlot(_ctx.$slots, "table-expand", vue.normalizeProps(vue.guardReactiveProps(data)))
13074
+ ]),
13075
+ key: "2"
13076
+ } : void 0,
13077
+ _ctx.$slots["table-append"] ? {
13078
+ name: "append",
13079
+ fn: vue.withCtx(() => [
13080
+ vue.renderSlot(_ctx.$slots, "table-append")
13081
+ ]),
13082
+ key: "3"
13083
+ } : void 0,
13084
+ _ctx.$slots["table-empty"] ? {
13085
+ name: "empty",
13086
+ fn: vue.withCtx(() => [
13087
+ vue.renderSlot(_ctx.$slots, "table-empty")
13088
+ ]),
13089
+ key: "4"
13090
+ } : void 0,
13091
+ vue.renderList(tableSlots.value, (_, key) => {
13092
+ return {
13093
+ name: key,
13094
+ fn: vue.withCtx((data) => [
13095
+ vue.renderSlot(_ctx.$slots, key, vue.normalizeProps(vue.guardReactiveProps(data)))
13096
+ ])
13097
+ };
13098
+ })
13099
+ ]), 1040, ["adaptive", "table-data", "loading-status", "columns", "pagination"])
13100
+ ];
13101
+ }),
13098
13102
  _: 3
13099
13103
  /* FORWARDED */
13100
13104
  }))