yc-pro-components 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/check-card/index.d.ts +23 -23
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +24 -24
- package/es/components/check-card-group/src/index.vue.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +10 -10
- package/es/components/date-picker/src/index.vue.d.ts +2 -2
- package/es/components/dialog/index.d.ts +26 -26
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog/src/index.vue2.mjs +6 -3
- package/es/components/dialog-form/index.d.ts +1154 -0
- package/es/components/dialog-form/src/index.vue.d.ts +493 -0
- package/es/components/dialog-form/src/index.vue2.mjs +7 -4
- package/es/components/display-item/index.d.ts +12 -12
- package/es/components/display-item/src/index.vue.d.ts +12 -12
- package/es/components/display-item/src/index.vue2.mjs +18 -5
- package/es/components/drawer-form/index.d.ts +3467 -0
- package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/es/components/drawer-form/src/index.vue2.mjs +7 -4
- package/es/components/form/index.d.ts +1665 -1
- package/es/components/form/src/form-content.vue.d.ts +14 -12
- package/es/components/form/src/index.vue.d.ts +652 -0
- package/es/components/form/src/index.vue2.mjs +7 -4
- package/es/components/form-item/index.d.ts +36 -36
- package/es/components/form-item/src/index.vue.d.ts +8 -8
- package/es/components/header/index.d.ts +7 -7
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +7 -7
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +15450 -0
- package/es/components/page/src/index.vue.d.ts +5301 -0
- package/es/components/page/src/index.vue2.mjs +4 -2
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/popover/src/index.vue2.mjs +6 -3
- package/es/components/radio/index.d.ts +10 -10
- package/es/components/radio/src/index.vue.d.ts +2 -2
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +4514 -0
- package/es/components/search/src/index.vue.d.ts +1539 -0
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/index.d.ts +19 -0
- package/es/components/table/src/index.vue.d.ts +3 -0
- package/es/components/table/src/index.vue2.mjs +4 -2
- package/es/components/table/src/table-column.vue.d.ts +12 -12
- package/es/components/table/src/type.d.ts +9 -0
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +6 -6
- package/es/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/es/components/yc-plus-page/src/index.vue.d.ts +12864 -0
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/constants/form.d.ts +5 -0
- package/es/constants/form.mjs +2 -1
- package/es/constants/index.mjs +1 -1
- package/es/hooks/usePlusFormReset.d.ts +9833 -5
- package/es/index.css +1 -1
- package/es/index.mjs +1 -1
- package/es/types/plus.d.ts +29 -0
- package/index.css +7 -7
- package/index.js +66 -29
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +66 -30
- package/lib/components/check-card/index.d.ts +23 -23
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +24 -24
- package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +10 -10
- package/lib/components/date-picker/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +26 -26
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog/src/index.vue2.js +6 -3
- package/lib/components/dialog-form/index.d.ts +1154 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
- package/lib/components/dialog-form/src/index.vue2.js +7 -4
- package/lib/components/display-item/index.d.ts +12 -12
- package/lib/components/display-item/src/index.vue.d.ts +12 -12
- package/lib/components/display-item/src/index.vue2.js +16 -3
- package/lib/components/drawer-form/index.d.ts +3467 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/lib/components/drawer-form/src/index.vue2.js +7 -4
- package/lib/components/form/index.d.ts +1665 -1
- package/lib/components/form/src/form-content.vue.d.ts +14 -12
- package/lib/components/form/src/index.vue.d.ts +652 -0
- package/lib/components/form/src/index.vue2.js +7 -4
- package/lib/components/form-item/index.d.ts +36 -36
- package/lib/components/form-item/src/index.vue.d.ts +8 -8
- package/lib/components/header/index.d.ts +7 -7
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +7 -7
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +15450 -0
- package/lib/components/page/src/index.vue.d.ts +5301 -0
- package/lib/components/page/src/index.vue2.js +4 -2
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/popover/src/index.vue2.js +6 -3
- package/lib/components/radio/index.d.ts +10 -10
- package/lib/components/radio/src/index.vue.d.ts +2 -2
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +4514 -0
- package/lib/components/search/src/index.vue.d.ts +1539 -0
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/index.d.ts +19 -0
- package/lib/components/table/src/index.vue.d.ts +3 -0
- package/lib/components/table/src/index.vue2.js +3 -1
- package/lib/components/table/src/table-column.vue.d.ts +12 -12
- package/lib/components/table/src/type.d.ts +9 -0
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +6 -6
- package/lib/components/yc-more-actions/src/index.vue.d.ts +1 -1
- package/lib/components/yc-plus-page/src/index.vue.d.ts +12864 -0
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/constants/form.d.ts +5 -0
- package/lib/constants/form.js +2 -0
- package/lib/constants/index.js +1 -0
- package/lib/hooks/usePlusFormReset.d.ts +9833 -5
- package/lib/index.css +1 -1
- package/lib/index.js +1 -0
- package/lib/types/plus.d.ts +29 -0
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +3 -3
package/es/index.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.yc-drawer .el-drawer__header{margin-bottom:0!important;padding:0!important}.yc-drawer .el-drawer__footer{padding-bottom:12px!important;padding-right:24px!important;padding-top:12px!important}
|
|
8
8
|
.custom-drawer-header[data-v-f8ad9f74]{border-radius:4px 4px 0 0;display:flex;flex-direction:column;height:56px;justify-content:flex-end;width:100%}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74]{align-items:center;display:flex;flex-direction:row;height:24px;justify-content:space-between;margin:16px 0 0 24px;width:calc(100% - 48px)}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74] .header-title[data-v-f8ad9f74]{color:#000;font-family:NotoSansSC,PingFangSC,sans-serif;font-size:16px;font-weight:400;height:24px;line-height:24px;overflow-wrap:break-word;text-align:left;white-space:nowrap}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74] .header-close-icon[data-v-f8ad9f74]{color:rgba(0,0,0,.6);cursor:pointer;transition:color .3s}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74] .header-close-icon[data-v-f8ad9f74][data-v-f8ad9f74]:hover{color:rgba(0,0,0,.9)}.custom-drawer-header[data-v-f8ad9f74] .header-divider[data-v-f8ad9f74]{background-color:#f5f7f9;height:1px;margin-top:15px;width:100%}
|
|
9
9
|
.yc-status-dialog .el-dialog__footer:before{display:none!important}.yc-status-dialog{padding:16px!important}.yc-status-dialog .el-dialog__header{margin:0!important;padding:0!important}.yc-status-dialog .el-dialog__body{padding:0!important}.yc-status-dialog .el-dialog__footer{padding:16px 0 0!important}
|
|
10
|
-
.yc-status-dialog[data-v-
|
|
10
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73]{align-items:center;display:flex;gap:4px}.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .icon-wrapper[data-v-7a078f73]{align-items:center;border-radius:50%;display:flex;flex-shrink:0;justify-content:center}.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .icon-wrapper[data-v-7a078f73] .status-icon[data-v-7a078f73]{height:28px;width:28px}.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .title-text[data-v-7a078f73]{color:#000;flex:1;font-size:16px;font-weight:500;line-height:24px}.yc-status-dialog[data-v-7a078f73] .dialog-content[data-v-7a078f73]{min-height:54px;padding-top:16px}.yc-status-dialog[data-v-7a078f73] .dialog-content[data-v-7a078f73] .content-text[data-v-7a078f73]{color:#666;font-size:14px;line-height:22px;margin:0}.yc-status-dialog[data-v-7a078f73] .dialog-footer[data-v-7a078f73]{display:flex;justify-content:flex-end}
|
|
11
11
|
.yc-more-actions__icon[data-v-cabdaeba]{align-items:center;display:inline-flex;margin-right:4px}.yc-more-actions__item-icon[data-v-cabdaeba]{align-items:center;display:inline-flex;font-size:14px;margin-right:6px}[data-v-cabdaeba] .el-dropdown-menu__item.is-danger{color:var(--el-color-danger)}[data-v-cabdaeba] .el-dropdown-menu__item.is-danger:hover{background-color:var(--el-color-danger-light-9);color:var(--el-color-danger)}
|
|
12
12
|
.yc-form-container-header[data-v-e3e5d0e4] .header-title[data-v-e3e5d0e4]{color:var(--el-text-color-regular);font-family:NotoSansSC,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;padding-left:8px;position:relative;text-align:left}.yc-form-container-header[data-v-e3e5d0e4] .header-title[data-v-e3e5d0e4][data-v-e3e5d0e4]:before{background:linear-gradient(180deg,var(--yc-header-gradient-start,var(--pure-button-primary-gradient-start,var(--el-color-primary))) 0,var(--yc-header-gradient-end,var(--pure-button-primary-gradient-end,var(--el-color-primary-light-3))) 100%);content:"";height:16px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:4px}
|
|
13
13
|
.scroll-num{display:inline-block;height:1em;line-height:1;overflow:hidden;text-align:center}.scroll-num ul{animation:scrolling calc(var(--delay)*1s) ease-out forwards;filter:url(#blur);list-style:none;margin:0;padding:0}.scroll-num ul li{height:1em;line-height:1}@keyframes scrolling{0%{transform:translateY(0)}20%{transform:translateY(calc(var(--i)*-9.09% - 18.18%))}40%{transform:translateY(calc(var(--i)*-9.09% + 9.09%))}60%{transform:translateY(calc(var(--i)*-9.09% - 4.545%))}80%{transform:translateY(calc(var(--i)*-9.09% + 2.27%))}to{transform:translateY(calc(var(--i)*-9.09%))}}
|
package/es/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ export { usePlusFormReset } from './hooks/usePlusFormReset.mjs';
|
|
|
9
9
|
export { useSelectWithPagination } from './hooks/useSelectWithPagination.mjs';
|
|
10
10
|
export { useDictInjection } from './hooks/useDictInjection.mjs';
|
|
11
11
|
export { DefaultPageInfo, DefaultPageSizeList } from './constants/page.mjs';
|
|
12
|
-
export { DatePickerValueIsArrayList, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './constants/form.mjs';
|
|
12
|
+
export { DatePickerValueIsArrayList, TableColumnsEmptyTextInjectionKey, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './constants/form.mjs';
|
|
13
13
|
export { selectValueTypeList } from './constants/display-item.mjs';
|
|
14
14
|
export { DictStoreInjectionKey } from './constants/dict.mjs';
|
|
15
15
|
export { version } from './version.mjs';
|
package/es/types/plus.d.ts
CHANGED
|
@@ -272,6 +272,35 @@ export interface CommonType {
|
|
|
272
272
|
* 多级表头
|
|
273
273
|
*/
|
|
274
274
|
children?: PlusColumn[];
|
|
275
|
+
/**
|
|
276
|
+
* 字段值为空时显示的文本
|
|
277
|
+
* @version v0.2.0
|
|
278
|
+
* @default "-"
|
|
279
|
+
* @desc 当字段值为 null、undefined 或空字符串时,显示此文本
|
|
280
|
+
* @desc 仅对未定义 render/renderHTML 的字段生效
|
|
281
|
+
* @desc 如果不希望处理空值,可以设置为空字符串 emptyText: ""
|
|
282
|
+
* @example
|
|
283
|
+
* ```ts
|
|
284
|
+
* const columns: PlusColumn[] = [
|
|
285
|
+
* {
|
|
286
|
+
* label: '姓名',
|
|
287
|
+
* prop: 'name'
|
|
288
|
+
* // 默认空值显示 "-"
|
|
289
|
+
* },
|
|
290
|
+
* {
|
|
291
|
+
* label: '备注',
|
|
292
|
+
* prop: 'remark',
|
|
293
|
+
* emptyText: '暂无' // 自定义空值显示为 "暂无"
|
|
294
|
+
* },
|
|
295
|
+
* {
|
|
296
|
+
* label: '数量',
|
|
297
|
+
* prop: 'count',
|
|
298
|
+
* emptyText: '' // 空值显示空字符串(不处理)
|
|
299
|
+
* }
|
|
300
|
+
* ]
|
|
301
|
+
* ```
|
|
302
|
+
*/
|
|
303
|
+
emptyText?: string;
|
|
275
304
|
/**
|
|
276
305
|
* 自动字典注入
|
|
277
306
|
* @version v0.2.0
|
package/index.css
CHANGED
|
@@ -486,40 +486,40 @@
|
|
|
486
486
|
.yc-status-dialog .el-dialog__footer {
|
|
487
487
|
padding: 16px 0 0 !important;
|
|
488
488
|
}
|
|
489
|
-
.yc-status-dialog[data-v-
|
|
489
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] {
|
|
490
490
|
display: flex;
|
|
491
491
|
gap: 4px;
|
|
492
492
|
align-items: center;
|
|
493
493
|
}
|
|
494
|
-
.yc-status-dialog[data-v-
|
|
494
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .icon-wrapper[data-v-7a078f73] {
|
|
495
495
|
display: flex;
|
|
496
496
|
flex-shrink: 0;
|
|
497
497
|
align-items: center;
|
|
498
498
|
justify-content: center;
|
|
499
499
|
border-radius: 50%;
|
|
500
500
|
}
|
|
501
|
-
.yc-status-dialog[data-v-
|
|
501
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .icon-wrapper[data-v-7a078f73] .status-icon[data-v-7a078f73] {
|
|
502
502
|
width: 28px;
|
|
503
503
|
height: 28px;
|
|
504
504
|
}
|
|
505
|
-
.yc-status-dialog[data-v-
|
|
505
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .title-text[data-v-7a078f73] {
|
|
506
506
|
flex: 1;
|
|
507
507
|
font-size: 16px;
|
|
508
508
|
font-weight: 500;
|
|
509
509
|
line-height: 24px;
|
|
510
510
|
color: #000;
|
|
511
511
|
}
|
|
512
|
-
.yc-status-dialog[data-v-
|
|
512
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-content[data-v-7a078f73] {
|
|
513
513
|
padding-top: 16px;
|
|
514
514
|
min-height: 54px;
|
|
515
515
|
}
|
|
516
|
-
.yc-status-dialog[data-v-
|
|
516
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-content[data-v-7a078f73] .content-text[data-v-7a078f73] {
|
|
517
517
|
margin: 0;
|
|
518
518
|
font-size: 14px;
|
|
519
519
|
line-height: 22px;
|
|
520
520
|
color: #666;
|
|
521
521
|
}
|
|
522
|
-
.yc-status-dialog[data-v-
|
|
522
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-footer[data-v-7a078f73] {
|
|
523
523
|
display: flex;
|
|
524
524
|
justify-content: flex-end;
|
|
525
525
|
}
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! yc-pro-components v0.0.
|
|
1
|
+
/*! yc-pro-components v0.0.19 */
|
|
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) :
|
|
@@ -4779,6 +4779,7 @@
|
|
|
4779
4779
|
const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
|
|
4780
4780
|
const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
|
|
4781
4781
|
const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
|
|
4782
|
+
const TableColumnsEmptyTextInjectionKey = Symbol("tableColumnsEmptyTextInjectionKey");
|
|
4782
4783
|
const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
|
|
4783
4784
|
const ValueIsNumberList = ["rate", "input-number", "slider"];
|
|
4784
4785
|
const ValueIsBooleanList = ["switch"];
|
|
@@ -8627,12 +8628,15 @@
|
|
|
8627
8628
|
isSubmitting.value = false;
|
|
8628
8629
|
}, 300);
|
|
8629
8630
|
};
|
|
8630
|
-
const
|
|
8631
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
8631
8632
|
leading: true,
|
|
8632
8633
|
// 立即执行第一次
|
|
8633
8634
|
trailing: false
|
|
8634
8635
|
// 不执行最后一次
|
|
8635
8636
|
});
|
|
8637
|
+
const handleConfirm = () => {
|
|
8638
|
+
debouncedConfirm();
|
|
8639
|
+
};
|
|
8636
8640
|
const handleCancel = () => {
|
|
8637
8641
|
emit("update:modelValue", false);
|
|
8638
8642
|
emit("cancel");
|
|
@@ -8690,7 +8694,7 @@
|
|
|
8690
8694
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
8691
8695
|
type: "primary",
|
|
8692
8696
|
loading: computedLoading.value,
|
|
8693
|
-
onClick:
|
|
8697
|
+
onClick: handleConfirm
|
|
8694
8698
|
}, {
|
|
8695
8699
|
default: vue.withCtx(() => [
|
|
8696
8700
|
vue.createTextVNode(
|
|
@@ -8701,7 +8705,7 @@
|
|
|
8701
8705
|
]),
|
|
8702
8706
|
_: 1
|
|
8703
8707
|
/* STABLE */
|
|
8704
|
-
}, 8, ["loading"
|
|
8708
|
+
}, 8, ["loading"])
|
|
8705
8709
|
])
|
|
8706
8710
|
],
|
|
8707
8711
|
4
|
|
@@ -16819,12 +16823,15 @@
|
|
|
16819
16823
|
}
|
|
16820
16824
|
return false;
|
|
16821
16825
|
};
|
|
16822
|
-
const
|
|
16826
|
+
const debouncedSubmit = debounce(doSubmit, 300, {
|
|
16823
16827
|
leading: true,
|
|
16824
16828
|
// 立即执行第一次
|
|
16825
16829
|
trailing: false
|
|
16826
16830
|
// 不执行最后一次
|
|
16827
16831
|
});
|
|
16832
|
+
const handleSubmit = () => {
|
|
16833
|
+
debouncedSubmit();
|
|
16834
|
+
};
|
|
16828
16835
|
const handleReset = () => {
|
|
16829
16836
|
clearValidate();
|
|
16830
16837
|
values.value = { ...props.defaultValues };
|
|
@@ -16973,7 +16980,7 @@
|
|
|
16973
16980
|
style: vue.normalizeStyle(style.value)
|
|
16974
16981
|
},
|
|
16975
16982
|
[
|
|
16976
|
-
vue.renderSlot(_ctx.$slots, "footer", vue.normalizeProps(vue.guardReactiveProps({ handleReset, handleSubmit
|
|
16983
|
+
vue.renderSlot(_ctx.$slots, "footer", vue.normalizeProps(vue.guardReactiveProps({ handleReset, handleSubmit })), () => [
|
|
16977
16984
|
_ctx.hasReset ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
16978
16985
|
key: 0,
|
|
16979
16986
|
onClick: handleReset
|
|
@@ -16992,7 +16999,7 @@
|
|
|
16992
16999
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
16993
17000
|
type: "primary",
|
|
16994
17001
|
loading: computedLoading.value,
|
|
16995
|
-
onClick:
|
|
17002
|
+
onClick: handleSubmit
|
|
16996
17003
|
}, {
|
|
16997
17004
|
default: vue.withCtx(() => [
|
|
16998
17005
|
vue.createCommentVNode(" \u63D0\u4EA4 "),
|
|
@@ -17004,7 +17011,7 @@
|
|
|
17004
17011
|
]),
|
|
17005
17012
|
_: 1
|
|
17006
17013
|
/* STABLE */
|
|
17007
|
-
}, 8, ["loading"
|
|
17014
|
+
}, 8, ["loading"])
|
|
17008
17015
|
])
|
|
17009
17016
|
],
|
|
17010
17017
|
4
|
|
@@ -17157,16 +17164,18 @@
|
|
|
17157
17164
|
const value = props.column.valueType === "link" ? props.column.linkText || displayValue.value : displayValue.value;
|
|
17158
17165
|
if (!selectValueTypeList.includes(props.column.valueType) && !isEdit.value) {
|
|
17159
17166
|
if (props.column.formatter && isFunction(props.column.formatter)) {
|
|
17160
|
-
|
|
17167
|
+
const formattedValue = props.column.formatter(value, renderParams.value);
|
|
17168
|
+
return handleEmptyValue(formattedValue);
|
|
17161
17169
|
}
|
|
17162
17170
|
if (displayComponent.value.format && isFunction(displayComponent.value.format)) {
|
|
17163
|
-
|
|
17171
|
+
const formattedValue = displayComponent.value.format(
|
|
17164
17172
|
value,
|
|
17165
17173
|
customFieldProps.value.format || customFieldProps.value.valueFormat
|
|
17166
17174
|
);
|
|
17175
|
+
return handleEmptyValue(formattedValue);
|
|
17167
17176
|
}
|
|
17168
17177
|
}
|
|
17169
|
-
return value;
|
|
17178
|
+
return handleEmptyValue(value);
|
|
17170
17179
|
});
|
|
17171
17180
|
const modelValues = vue.computed({
|
|
17172
17181
|
get() {
|
|
@@ -17198,6 +17207,17 @@
|
|
|
17198
17207
|
column: { ...props.rest.column, ...props.column }
|
|
17199
17208
|
}));
|
|
17200
17209
|
vue.provide(TableFormRowInfoInjectionKey, tableRowInfo);
|
|
17210
|
+
const injectedColumnsEmptyText = vue.inject(TableColumnsEmptyTextInjectionKey, vue.computed(() => "-"));
|
|
17211
|
+
const handleEmptyValue = (value) => {
|
|
17212
|
+
var _a;
|
|
17213
|
+
if (value === null || value === void 0 || value === "") {
|
|
17214
|
+
if (props.column.emptyText !== void 0) {
|
|
17215
|
+
return props.column.emptyText;
|
|
17216
|
+
}
|
|
17217
|
+
return (_a = injectedColumnsEmptyText.value) != null ? _a : "-";
|
|
17218
|
+
}
|
|
17219
|
+
return value;
|
|
17220
|
+
};
|
|
17201
17221
|
const imageUrl = vue.computed(() => {
|
|
17202
17222
|
const option = formatterValue.value;
|
|
17203
17223
|
if (option && isString(option)) {
|
|
@@ -18115,12 +18135,15 @@
|
|
|
18115
18135
|
subVisible.value = false;
|
|
18116
18136
|
emit("confirm");
|
|
18117
18137
|
};
|
|
18118
|
-
const
|
|
18138
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
18119
18139
|
leading: true,
|
|
18120
18140
|
// 立即执行第一次
|
|
18121
18141
|
trailing: false
|
|
18122
18142
|
// 不执行最后一次
|
|
18123
18143
|
});
|
|
18144
|
+
const handleConfirmPopover = () => {
|
|
18145
|
+
debouncedConfirm();
|
|
18146
|
+
};
|
|
18124
18147
|
return (_ctx, _cache) => {
|
|
18125
18148
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), vue.mergeProps({
|
|
18126
18149
|
visible: subVisible.value,
|
|
@@ -18153,7 +18176,7 @@
|
|
|
18153
18176
|
size: "small",
|
|
18154
18177
|
type: "primary",
|
|
18155
18178
|
loading: computedLoading.value,
|
|
18156
|
-
onClick:
|
|
18179
|
+
onClick: handleConfirmPopover
|
|
18157
18180
|
}, {
|
|
18158
18181
|
default: vue.withCtx(() => [
|
|
18159
18182
|
vue.createTextVNode(
|
|
@@ -18164,7 +18187,7 @@
|
|
|
18164
18187
|
]),
|
|
18165
18188
|
_: 1
|
|
18166
18189
|
/* STABLE */
|
|
18167
|
-
}, 8, ["loading"
|
|
18190
|
+
}, 8, ["loading"])
|
|
18168
18191
|
])) : vue.createCommentVNode("v-if", true)
|
|
18169
18192
|
]),
|
|
18170
18193
|
_: 3
|
|
@@ -18699,7 +18722,8 @@
|
|
|
18699
18722
|
indexContentStyle: { type: [Object, Function], default: () => ({}) },
|
|
18700
18723
|
editable: { type: [Boolean, String], default: false },
|
|
18701
18724
|
adaptive: { type: [Boolean, Object], default: false },
|
|
18702
|
-
filterTableHeaderOverflowLabelLength: {}
|
|
18725
|
+
filterTableHeaderOverflowLabelLength: {},
|
|
18726
|
+
columnsEmptyText: { default: "-" }
|
|
18703
18727
|
},
|
|
18704
18728
|
emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
|
|
18705
18729
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -18731,6 +18755,7 @@
|
|
|
18731
18755
|
vue.provide(TableFormRefInjectionKey, formRefs);
|
|
18732
18756
|
const formFieldRefs = vue.shallowRef({});
|
|
18733
18757
|
vue.provide(TableFormFieldRefInjectionKey, formFieldRefs);
|
|
18758
|
+
vue.provide(TableColumnsEmptyTextInjectionKey, vue.computed(() => props.columnsEmptyText));
|
|
18734
18759
|
vue.watch(
|
|
18735
18760
|
() => props.columns,
|
|
18736
18761
|
(val) => {
|
|
@@ -19624,12 +19649,15 @@
|
|
|
19624
19649
|
}, 300);
|
|
19625
19650
|
}
|
|
19626
19651
|
};
|
|
19627
|
-
const
|
|
19652
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
19628
19653
|
leading: true,
|
|
19629
19654
|
// 立即执行第一次
|
|
19630
19655
|
trailing: false
|
|
19631
19656
|
// 不执行最后一次
|
|
19632
19657
|
});
|
|
19658
|
+
const handleConfirm = () => {
|
|
19659
|
+
debouncedConfirm();
|
|
19660
|
+
};
|
|
19633
19661
|
const handleCancel = () => {
|
|
19634
19662
|
subVisible.value = false;
|
|
19635
19663
|
emit("update:visible", subVisible.value);
|
|
@@ -19656,7 +19684,7 @@
|
|
|
19656
19684
|
}, _ctx.dialog, {
|
|
19657
19685
|
onClose: handleClose,
|
|
19658
19686
|
onCancel: handleCancel,
|
|
19659
|
-
onConfirm:
|
|
19687
|
+
onConfirm: handleConfirm
|
|
19660
19688
|
}), vue.createSlots({
|
|
19661
19689
|
default: vue.withCtx(() => [
|
|
19662
19690
|
vue.createVNode(vue.unref(PlusForm), vue.mergeProps({
|
|
@@ -19707,11 +19735,11 @@
|
|
|
19707
19735
|
_ctx.$slots["dialog-footer"] ? {
|
|
19708
19736
|
name: "footer",
|
|
19709
19737
|
fn: vue.withCtx(() => [
|
|
19710
|
-
vue.renderSlot(_ctx.$slots, "dialog-footer", vue.normalizeProps(vue.guardReactiveProps({ handleConfirm
|
|
19738
|
+
vue.renderSlot(_ctx.$slots, "dialog-footer", vue.normalizeProps(vue.guardReactiveProps({ handleConfirm, handleCancel })))
|
|
19711
19739
|
]),
|
|
19712
19740
|
key: "1"
|
|
19713
19741
|
} : void 0
|
|
19714
|
-
]), 1040, ["modelValue", "title", "confirm-loading"
|
|
19742
|
+
]), 1040, ["modelValue", "title", "confirm-loading"]);
|
|
19715
19743
|
};
|
|
19716
19744
|
}
|
|
19717
19745
|
});
|
|
@@ -19793,12 +19821,15 @@
|
|
|
19793
19821
|
emit("confirmError", errors);
|
|
19794
19822
|
}
|
|
19795
19823
|
};
|
|
19796
|
-
const
|
|
19824
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
19797
19825
|
leading: true,
|
|
19798
19826
|
// 立即执行第一次
|
|
19799
19827
|
trailing: false
|
|
19800
19828
|
// 不执行最后一次
|
|
19801
19829
|
});
|
|
19830
|
+
const handleConfirm = () => {
|
|
19831
|
+
debouncedConfirm();
|
|
19832
|
+
};
|
|
19802
19833
|
const handleClose = () => {
|
|
19803
19834
|
handleCancel();
|
|
19804
19835
|
emit("update:visible", subVisible.value);
|
|
@@ -19872,7 +19903,7 @@
|
|
|
19872
19903
|
name: "footer",
|
|
19873
19904
|
fn: vue.withCtx(() => [
|
|
19874
19905
|
vue.createElementVNode("div", _hoisted_1$d, [
|
|
19875
|
-
vue.renderSlot(_ctx.$slots, "drawer-footer", vue.normalizeProps(vue.guardReactiveProps({ handleConfirm
|
|
19906
|
+
vue.renderSlot(_ctx.$slots, "drawer-footer", vue.normalizeProps(vue.guardReactiveProps({ handleConfirm, handleCancel })), () => [
|
|
19876
19907
|
vue.createVNode(vue.unref(elementPlus.ElButton), { onClick: handleCancel }, {
|
|
19877
19908
|
default: vue.withCtx(() => [
|
|
19878
19909
|
vue.createTextVNode(
|
|
@@ -19887,7 +19918,7 @@
|
|
|
19887
19918
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
19888
19919
|
type: "primary",
|
|
19889
19920
|
loading: computedLoading.value,
|
|
19890
|
-
onClick:
|
|
19921
|
+
onClick: handleConfirm
|
|
19891
19922
|
}, {
|
|
19892
19923
|
default: vue.withCtx(() => [
|
|
19893
19924
|
vue.createTextVNode(
|
|
@@ -19898,7 +19929,7 @@
|
|
|
19898
19929
|
]),
|
|
19899
19930
|
_: 1
|
|
19900
19931
|
/* STABLE */
|
|
19901
|
-
}, 8, ["loading"
|
|
19932
|
+
}, 8, ["loading"])
|
|
19902
19933
|
])
|
|
19903
19934
|
])
|
|
19904
19935
|
]),
|
|
@@ -19939,7 +19970,8 @@
|
|
|
19939
19970
|
page: "page",
|
|
19940
19971
|
pageSize: "pageSize"
|
|
19941
19972
|
}) },
|
|
19942
|
-
searchSlot: { type: Boolean, default: false }
|
|
19973
|
+
searchSlot: { type: Boolean, default: false },
|
|
19974
|
+
columnsEmptyText: { default: "-" }
|
|
19943
19975
|
},
|
|
19944
19976
|
emits: ["search", "reset", "paginationChange", "requestError", "requestComplete"],
|
|
19945
19977
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -20128,6 +20160,7 @@
|
|
|
20128
20160
|
"table-data": vue.unref(tableData),
|
|
20129
20161
|
"loading-status": vue.unref(loadingStatus),
|
|
20130
20162
|
columns: _ctx.columns,
|
|
20163
|
+
"columns-empty-text": _ctx.columnsEmptyText,
|
|
20131
20164
|
pagination: _ctx.pagination === false ? void 0 : {
|
|
20132
20165
|
..._ctx.pagination,
|
|
20133
20166
|
total: vue.unref(total),
|
|
@@ -20183,7 +20216,7 @@
|
|
|
20183
20216
|
])
|
|
20184
20217
|
};
|
|
20185
20218
|
})
|
|
20186
|
-
]), 1040, ["table-data", "loading-status", "columns", "pagination"])
|
|
20219
|
+
]), 1040, ["table-data", "loading-status", "columns", "columns-empty-text", "pagination"])
|
|
20187
20220
|
]),
|
|
20188
20221
|
_: 3
|
|
20189
20222
|
/* FORWARDED */
|
|
@@ -58042,12 +58075,15 @@
|
|
|
58042
58075
|
emit("confirm");
|
|
58043
58076
|
dialogVisible.value = false;
|
|
58044
58077
|
};
|
|
58045
|
-
const
|
|
58078
|
+
const debouncedConfirm = debounce(doConfirm, 300, {
|
|
58046
58079
|
leading: true,
|
|
58047
58080
|
// 立即执行第一次
|
|
58048
58081
|
trailing: false
|
|
58049
58082
|
// 不执行最后一次
|
|
58050
58083
|
});
|
|
58084
|
+
const handleConfirm = () => {
|
|
58085
|
+
debouncedConfirm();
|
|
58086
|
+
};
|
|
58051
58087
|
const handleCancel = () => {
|
|
58052
58088
|
emit("cancel");
|
|
58053
58089
|
dialogVisible.value = false;
|
|
@@ -58107,7 +58143,7 @@
|
|
|
58107
58143
|
vue.createVNode(vue.unref(elementPlus.ElButton), {
|
|
58108
58144
|
type: currentStatusConfig.value.confirmButtonType,
|
|
58109
58145
|
loading: isSubmitting.value,
|
|
58110
|
-
onClick:
|
|
58146
|
+
onClick: handleConfirm
|
|
58111
58147
|
}, {
|
|
58112
58148
|
default: vue.withCtx(() => [
|
|
58113
58149
|
vue.createTextVNode(
|
|
@@ -58118,7 +58154,7 @@
|
|
|
58118
58154
|
]),
|
|
58119
58155
|
_: 1
|
|
58120
58156
|
/* STABLE */
|
|
58121
|
-
}, 8, ["type", "loading"
|
|
58157
|
+
}, 8, ["type", "loading"])
|
|
58122
58158
|
], true)
|
|
58123
58159
|
])
|
|
58124
58160
|
]),
|
|
@@ -58142,7 +58178,7 @@
|
|
|
58142
58178
|
}
|
|
58143
58179
|
});
|
|
58144
58180
|
|
|
58145
|
-
var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
58181
|
+
var YcStatusDialog = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7a078f73"], ["__file", "index.vue"]]);
|
|
58146
58182
|
|
|
58147
58183
|
var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
58148
58184
|
...{
|
|
@@ -59875,6 +59911,7 @@
|
|
|
59875
59911
|
exports.ReboundCountTo = YcReboundCountTo;
|
|
59876
59912
|
exports.SIZE_MAP = SIZE_MAP;
|
|
59877
59913
|
exports.STATUS_CONFIG_MAP = STATUS_CONFIG_MAP;
|
|
59914
|
+
exports.TableColumnsEmptyTextInjectionKey = TableColumnsEmptyTextInjectionKey;
|
|
59878
59915
|
exports.TableFormFieldRefInjectionKey = TableFormFieldRefInjectionKey;
|
|
59879
59916
|
exports.TableFormRefInjectionKey = TableFormRefInjectionKey;
|
|
59880
59917
|
exports.TableFormRowInfoInjectionKey = TableFormRowInfoInjectionKey;
|
package/index.min.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.yc-drawer .el-drawer__header{margin-bottom:0!important;padding:0!important}.yc-drawer .el-drawer__footer{padding-bottom:12px!important;padding-right:24px!important;padding-top:12px!important}
|
|
8
8
|
.custom-drawer-header[data-v-f8ad9f74]{border-radius:4px 4px 0 0;display:flex;flex-direction:column;height:56px;justify-content:flex-end;width:100%}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74]{align-items:center;display:flex;flex-direction:row;height:24px;justify-content:space-between;margin:16px 0 0 24px;width:calc(100% - 48px)}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74] .header-title[data-v-f8ad9f74]{color:#000;font-family:NotoSansSC,PingFangSC,sans-serif;font-size:16px;font-weight:400;height:24px;line-height:24px;overflow-wrap:break-word;text-align:left;white-space:nowrap}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74] .header-close-icon[data-v-f8ad9f74]{color:rgba(0,0,0,.6);cursor:pointer;transition:color .3s}.custom-drawer-header[data-v-f8ad9f74] .header-content[data-v-f8ad9f74] .header-close-icon[data-v-f8ad9f74][data-v-f8ad9f74]:hover{color:rgba(0,0,0,.9)}.custom-drawer-header[data-v-f8ad9f74] .header-divider[data-v-f8ad9f74]{background-color:#f5f7f9;height:1px;margin-top:15px;width:100%}
|
|
9
9
|
.yc-status-dialog .el-dialog__footer:before{display:none!important}.yc-status-dialog{padding:16px!important}.yc-status-dialog .el-dialog__header{margin:0!important;padding:0!important}.yc-status-dialog .el-dialog__body{padding:0!important}.yc-status-dialog .el-dialog__footer{padding:16px 0 0!important}
|
|
10
|
-
.yc-status-dialog[data-v-
|
|
10
|
+
.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73]{align-items:center;display:flex;gap:4px}.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .icon-wrapper[data-v-7a078f73]{align-items:center;border-radius:50%;display:flex;flex-shrink:0;justify-content:center}.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .icon-wrapper[data-v-7a078f73] .status-icon[data-v-7a078f73]{height:28px;width:28px}.yc-status-dialog[data-v-7a078f73] .dialog-header[data-v-7a078f73] .title-text[data-v-7a078f73]{color:#000;flex:1;font-size:16px;font-weight:500;line-height:24px}.yc-status-dialog[data-v-7a078f73] .dialog-content[data-v-7a078f73]{min-height:54px;padding-top:16px}.yc-status-dialog[data-v-7a078f73] .dialog-content[data-v-7a078f73] .content-text[data-v-7a078f73]{color:#666;font-size:14px;line-height:22px;margin:0}.yc-status-dialog[data-v-7a078f73] .dialog-footer[data-v-7a078f73]{display:flex;justify-content:flex-end}
|
|
11
11
|
.yc-more-actions__icon[data-v-cabdaeba]{align-items:center;display:inline-flex;margin-right:4px}.yc-more-actions__item-icon[data-v-cabdaeba]{align-items:center;display:inline-flex;font-size:14px;margin-right:6px}[data-v-cabdaeba] .el-dropdown-menu__item.is-danger{color:var(--el-color-danger)}[data-v-cabdaeba] .el-dropdown-menu__item.is-danger:hover{background-color:var(--el-color-danger-light-9);color:var(--el-color-danger)}
|
|
12
12
|
.yc-form-container-header[data-v-e3e5d0e4] .header-title[data-v-e3e5d0e4]{color:var(--el-text-color-regular);font-family:NotoSansSC,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;padding-left:8px;position:relative;text-align:left}.yc-form-container-header[data-v-e3e5d0e4] .header-title[data-v-e3e5d0e4][data-v-e3e5d0e4]:before{background:linear-gradient(180deg,var(--yc-header-gradient-start,var(--pure-button-primary-gradient-start,var(--el-color-primary))) 0,var(--yc-header-gradient-end,var(--pure-button-primary-gradient-end,var(--el-color-primary-light-3))) 100%);content:"";height:16px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:4px}
|
|
13
13
|
.scroll-num{display:inline-block;height:1em;line-height:1;overflow:hidden;text-align:center}.scroll-num ul{animation:scrolling calc(var(--delay)*1s) ease-out forwards;filter:url(#blur);list-style:none;margin:0;padding:0}.scroll-num ul li{height:1em;line-height:1}@keyframes scrolling{0%{transform:translateY(0)}20%{transform:translateY(calc(var(--i)*-9.09% - 18.18%))}40%{transform:translateY(calc(var(--i)*-9.09% + 9.09%))}60%{transform:translateY(calc(var(--i)*-9.09% - 4.545%))}80%{transform:translateY(calc(var(--i)*-9.09% + 2.27%))}to{transform:translateY(calc(var(--i)*-9.09%))}}
|