el-plus 0.0.74 → 0.0.77
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/CHANGELOG.md +18 -0
- package/dist/index.css +1 -1
- package/dist/index.full.js +89 -26
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +89 -26
- package/es/components/attachment/index.d.ts +33 -0
- package/es/components/attachment/src/attachment.d.ts +11 -0
- package/es/components/attachment/src/attachment.mjs +12 -0
- package/es/components/attachment/src/attachment.mjs.map +1 -1
- package/es/components/attachment/src/attachment.vue.d.ts +21 -0
- package/es/components/attachment/src/attachment.vue2.mjs +8 -5
- package/es/components/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/components/attachment/src/use-attachment.d.ts +5 -0
- package/es/components/attachment/src/use-attachment.mjs +13 -1
- package/es/components/attachment/src/use-attachment.mjs.map +1 -1
- package/es/components/form/src/hooks/use-form-item.mjs +5 -1
- package/es/components/form/src/hooks/use-form-item.mjs.map +1 -1
- package/es/components/header/index.d.ts +9 -0
- package/es/components/header/src/header.vue.d.ts +3 -0
- package/es/components/table/src/table.vue2.mjs +2 -1
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/uni-vue/index.d.ts +23 -3
- package/es/components/uni-vue/src/uni-vue.vue.d.ts +10 -2
- package/es/components/uni-vue/src/uni-vue.vue2.mjs +4 -2
- package/es/components/uni-vue/src/uni-vue.vue2.mjs.map +1 -1
- package/es/components/uni-vue/src/use-uni-vue.d.ts +1 -1
- package/es/components/uni-vue/src/use-uni-vue.mjs +46 -16
- package/es/components/uni-vue/src/use-uni-vue.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/lib/components/attachment/index.d.ts +33 -0
- package/lib/components/attachment/src/attachment.d.ts +11 -0
- package/lib/components/attachment/src/attachment.js +12 -0
- package/lib/components/attachment/src/attachment.js.map +1 -1
- package/lib/components/attachment/src/attachment.vue.d.ts +21 -0
- package/lib/components/attachment/src/attachment.vue2.js +9 -6
- package/lib/components/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/components/attachment/src/use-attachment.d.ts +5 -0
- package/lib/components/attachment/src/use-attachment.js +13 -1
- package/lib/components/attachment/src/use-attachment.js.map +1 -1
- package/lib/components/form/src/hooks/use-form-item.js +5 -1
- package/lib/components/form/src/hooks/use-form-item.js.map +1 -1
- package/lib/components/header/index.d.ts +9 -0
- package/lib/components/header/src/header.vue.d.ts +3 -0
- package/lib/components/table/src/table.vue2.js +2 -1
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/uni-vue/index.d.ts +23 -3
- package/lib/components/uni-vue/src/uni-vue.vue.d.ts +10 -2
- package/lib/components/uni-vue/src/uni-vue.vue2.js +4 -2
- package/lib/components/uni-vue/src/uni-vue.vue2.js.map +1 -1
- package/lib/components/uni-vue/src/use-uni-vue.d.ts +1 -1
- package/lib/components/uni-vue/src/use-uni-vue.js +45 -15
- package/lib/components/uni-vue/src/use-uni-vue.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/header.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/header.scss +8 -1
package/CHANGELOG.md
CHANGED
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.ep-form{position:relative}.ep-form__fold{bottom:23px;color:#367ef5;cursor:pointer;font-size:14px;position:absolute;right:0;text-align:center;width:70px}.ep-form__fold:hover{text-decoration:underline}.ep-form.is-fold{padding-right:70px}.ep-form .el-form-item--small{margin-bottom:18px}.ep-form .el-form-item--small.is-hide-label .el-form-item__label{display:none}.ep-form .el-form-item--small .el-form-item__label{display:block;height:32px;line-height:32px;overflow:hidden;padding-left:18px;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.ep-form .el-form-item--small .el-form-item__content{font-size:13px;line-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-input{font-size:13px;height:32px}.ep-form .el-form-item--small .el-form-item__content .el-textarea__inner{font-size:13px!important}.ep-form .el-form-item--small .el-form-item__content .el-select__wrapper{font-size:13px;line-height:32px;min-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-date-editor .el-range-input{font-size:13px}.ep-table__action-buttons{white-space:nowrap}.ep-table .el-table{font-size:13px}.ep-table .el-table .el-table__cell .is-edit{cursor:pointer}.ep-table .el-table .el-table__cell .is-edit:hover{color:#409eff}.ep-table .el-table .el-table__cell .is-edit .el-icon{vertical-align:-2px}.ep-table .el-table .el-table__cell.is-center .el-link{margin:0 auto;text-align:center}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table thead tr th .cell{line-height:20px}.ep-table .el-table thead tr th .el-checkbox__inner{height:14px;width:14px}.ep-table .el-table td,.ep-table .el-table th{padding:3px 0}.ep-table .el-form-item__error{position:unset;text-align:left}.ep-table .el-form-item{margin-bottom:0}.ep-table .el-form-item .el-form-item__label{padding:0}.ep-table .el-pagination{margin-top:12px;--el-pagination-font-size:13px}.ep-table .el-pagination .el-select{--el-select-font-size:13px}.ep-table .el-pagination .el-select .el-select__wrapper{font-size:13px}.ep-button{height:32px;padding:9px 15px}.ep-button.el-button--text{padding:0}.ep-button.el-button+.el-button{margin-left:10px}.ep-search-list-page #middle{overflow:hidden}.ep-search-list-page__middle-left{float:left}.ep-search-list-page__middle-left>.el-button{margin:16px 0}.ep-search-list-page__middle-right{float:right}.ep-search-list-page__middle-right .el-button{margin:16px 0}.ep-title__header{line-height:50px;overflow:hidden}.ep-title__title{float:left;font-size:15px;font-weight:500}.ep-title__toggle{color:#409eff;cursor:pointer;display:inline-block;font-size:14px;font-weight:400;margin-left:10px;white-space:nowrap}.ep-title__toggle .el-icon{transition:transform .3s;vertical-align:-2px}.ep-title.is-expanded .ep-title__toggle .el-icon{transform:rotate(-180deg)}.ep-title__buttons{float:right}.ep-title__content{overflow:hidden;transition:max-height .3s ease-in-out}.ep-header{display:flex;margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 30px}.ep-dialog .el-dialog__headerbtn{height:56px}.ep-dialog .el-dialog__headerbtn .el-dialog__close{transform:scale(1.3)}.ep-dialog .el-dialog__header{text-align:center}.ep-dialog .el-dialog__header .el-dialog__title{color:#505050;font-size:16px;font-weight:600;line-height:24px;margin:4px}.ep-dialog .el-dialog__body{padding:25px 0 0}.ep-dialog__footer button{font-size:12px}.ep-choose-dialog__selected-count{color:#409eff;float:left;font-size:16px;line-height:32px}.ep-confirm-dialog{padding-bottom:20px}.ep-confirm-dialog .ep-dialog__footer{padding-top:0}.ep-custom-column__dialog .el-dialog__body{text-align:center}.ep-custom-column__dialog .el-transfer{display:inline-block}.ep-custom-column__dialog .el-transfer-panel__footer{border-bottom:0;height:0}.ep-custom-column__dialog .el-transfer-panel{overflow:visible}.ep-custom-column__dialog .el-transfer__buttons button{width:100px}.ep-custom-column__dialog .el-transfer__buttons button span{font-size:13px}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 12px),32px)}.ep-custom-column__operate button{width:100px}.ep-custom-column__operate button span{font-size:13px}.no-cn__operate{transform:translate(calc(25% - 520px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__dialog--normal{background:none;position:static!important}.ep-attachment__dialog--normal .el-overlay-dialog{position:static}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog{margin:0;padding:0;width:auto!important}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__header{display:none}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__body{padding:0}.ep-attachment__handler{height:32px;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}
|
|
1
|
+
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.ep-form{position:relative}.ep-form__fold{bottom:23px;color:#367ef5;cursor:pointer;font-size:14px;position:absolute;right:0;text-align:center;width:70px}.ep-form__fold:hover{text-decoration:underline}.ep-form.is-fold{padding-right:70px}.ep-form .el-form-item--small{margin-bottom:18px}.ep-form .el-form-item--small.is-hide-label .el-form-item__label{display:none}.ep-form .el-form-item--small .el-form-item__label{display:block;height:32px;line-height:32px;overflow:hidden;padding-left:18px;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.ep-form .el-form-item--small .el-form-item__content{font-size:13px;line-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-input{font-size:13px;height:32px}.ep-form .el-form-item--small .el-form-item__content .el-textarea__inner{font-size:13px!important}.ep-form .el-form-item--small .el-form-item__content .el-select__wrapper{font-size:13px;line-height:32px;min-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-date-editor .el-range-input{font-size:13px}.ep-table__action-buttons{white-space:nowrap}.ep-table .el-table{font-size:13px}.ep-table .el-table .el-table__cell .is-edit{cursor:pointer}.ep-table .el-table .el-table__cell .is-edit:hover{color:#409eff}.ep-table .el-table .el-table__cell .is-edit .el-icon{vertical-align:-2px}.ep-table .el-table .el-table__cell.is-center .el-link{margin:0 auto;text-align:center}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table thead tr th .cell{line-height:20px}.ep-table .el-table thead tr th .el-checkbox__inner{height:14px;width:14px}.ep-table .el-table td,.ep-table .el-table th{padding:3px 0}.ep-table .el-form-item__error{position:unset;text-align:left}.ep-table .el-form-item{margin-bottom:0}.ep-table .el-form-item .el-form-item__label{padding:0}.ep-table .el-pagination{margin-top:12px;--el-pagination-font-size:13px}.ep-table .el-pagination .el-select{--el-select-font-size:13px}.ep-table .el-pagination .el-select .el-select__wrapper{font-size:13px}.ep-button{height:32px;padding:9px 15px}.ep-button.el-button--text{padding:0}.ep-button.el-button+.el-button{margin-left:10px}.ep-search-list-page #middle{overflow:hidden}.ep-search-list-page__middle-left{float:left}.ep-search-list-page__middle-left>.el-button{margin:16px 0}.ep-search-list-page__middle-right{float:right}.ep-search-list-page__middle-right .el-button{margin:16px 0}.ep-title__header{line-height:50px;overflow:hidden}.ep-title__title{float:left;font-size:15px;font-weight:500}.ep-title__toggle{color:#409eff;cursor:pointer;display:inline-block;font-size:14px;font-weight:400;margin-left:10px;white-space:nowrap}.ep-title__toggle .el-icon{transition:transform .3s;vertical-align:-2px}.ep-title.is-expanded .ep-title__toggle .el-icon{transform:rotate(-180deg)}.ep-title__buttons{float:right}.ep-title__content{overflow:hidden;transition:max-height .3s ease-in-out}.ep-header{display:flex;lex-wrap:wrap}.ep-header .el-button{margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-header .el-page-header .el-page-header__title{white-space:nowrap}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 30px}.ep-dialog .el-dialog__headerbtn{height:56px}.ep-dialog .el-dialog__headerbtn .el-dialog__close{transform:scale(1.3)}.ep-dialog .el-dialog__header{text-align:center}.ep-dialog .el-dialog__header .el-dialog__title{color:#505050;font-size:16px;font-weight:600;line-height:24px;margin:4px}.ep-dialog .el-dialog__body{padding:25px 0 0}.ep-dialog__footer button{font-size:12px}.ep-choose-dialog__selected-count{color:#409eff;float:left;font-size:16px;line-height:32px}.ep-confirm-dialog{padding-bottom:20px}.ep-confirm-dialog .ep-dialog__footer{padding-top:0}.ep-custom-column__dialog .el-dialog__body{text-align:center}.ep-custom-column__dialog .el-transfer{display:inline-block}.ep-custom-column__dialog .el-transfer-panel__footer{border-bottom:0;height:0}.ep-custom-column__dialog .el-transfer-panel{overflow:visible}.ep-custom-column__dialog .el-transfer__buttons button{width:100px}.ep-custom-column__dialog .el-transfer__buttons button span{font-size:13px}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 12px),32px)}.ep-custom-column__operate button{width:100px}.ep-custom-column__operate button span{font-size:13px}.no-cn__operate{transform:translate(calc(25% - 520px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__dialog--normal{background:none;position:static!important}.ep-attachment__dialog--normal .el-overlay-dialog{position:static}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog{margin:0;padding:0;width:auto!important}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__header{display:none}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__body{padding:0}.ep-attachment__handler{height:32px;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}
|
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.77 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus'), require('@vue/shared'), require('axios'), require('js-cookie'), require('defu'), require('qs'), require('element-plus/es/components/table/src/table/defaults'), require('@element-plus/icons-vue'), require('mitt'), require('lodash-unified'), require('@vueuse/core'), require('vue-router'), require('js-base64'), require('vue2'), require('vue-router3'), require('dayjs')) :
|
|
@@ -832,7 +832,11 @@
|
|
|
832
832
|
const events = {};
|
|
833
833
|
for (const key in attrs) {
|
|
834
834
|
if (key.startsWith("on")) {
|
|
835
|
-
events[key] =
|
|
835
|
+
events[key] = (...args) => {
|
|
836
|
+
const tableScope = attrs["table-scope"];
|
|
837
|
+
const eventFn = attrs[key];
|
|
838
|
+
return eventFn(...args, tableScope);
|
|
839
|
+
};
|
|
836
840
|
}
|
|
837
841
|
}
|
|
838
842
|
const formData = attrs["form-data"];
|
|
@@ -2340,6 +2344,7 @@
|
|
|
2340
2344
|
});
|
|
2341
2345
|
const customAttrs = vue.computed(() => {
|
|
2342
2346
|
return {
|
|
2347
|
+
"row-key": props.rowKey || "id",
|
|
2343
2348
|
...prepareProps(props, ["modelValue", ...expandTablePropsKeys]),
|
|
2344
2349
|
// 'tooltip-effect': 'light',
|
|
2345
2350
|
size: "small",
|
|
@@ -2462,7 +2467,7 @@
|
|
|
2462
2467
|
_: 1
|
|
2463
2468
|
}, 8, ["label", "align", "width"])) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(columnList), (item, index) => {
|
|
2464
2469
|
return vue.openBlock(), vue.createBlock(_component_el_table_column, vue.mergeProps({
|
|
2465
|
-
key: index
|
|
2470
|
+
key: `${item.prop}_${item.type}_${index}`
|
|
2466
2471
|
}, {
|
|
2467
2472
|
ref_for: true
|
|
2468
2473
|
}, item), {
|
|
@@ -3373,6 +3378,10 @@
|
|
|
3373
3378
|
formatColumns: {
|
|
3374
3379
|
...tableProps.formatColumns
|
|
3375
3380
|
},
|
|
3381
|
+
rowKey: {
|
|
3382
|
+
type: String,
|
|
3383
|
+
default: "fileId"
|
|
3384
|
+
},
|
|
3376
3385
|
// 页面模式
|
|
3377
3386
|
mode: {
|
|
3378
3387
|
type: String
|
|
@@ -3396,6 +3405,14 @@
|
|
|
3396
3405
|
isShowOpenDialogButton: {
|
|
3397
3406
|
type: Boolean,
|
|
3398
3407
|
default: false
|
|
3408
|
+
},
|
|
3409
|
+
// 添加前校验
|
|
3410
|
+
beforeAdd: {
|
|
3411
|
+
type: Function
|
|
3412
|
+
},
|
|
3413
|
+
// 权限
|
|
3414
|
+
permission: {
|
|
3415
|
+
type: String
|
|
3399
3416
|
}
|
|
3400
3417
|
};
|
|
3401
3418
|
|
|
@@ -3626,6 +3643,9 @@
|
|
|
3626
3643
|
if (isDialogOpen) {
|
|
3627
3644
|
toBeConfirmData.push(fileData);
|
|
3628
3645
|
}
|
|
3646
|
+
if (props.beforeAdd) {
|
|
3647
|
+
await props.beforeAdd?.(fileData);
|
|
3648
|
+
}
|
|
3629
3649
|
data.value.push(fileData);
|
|
3630
3650
|
};
|
|
3631
3651
|
const onConfirm = async (resolve) => {
|
|
@@ -3652,13 +3672,22 @@
|
|
|
3652
3672
|
}
|
|
3653
3673
|
resolve();
|
|
3654
3674
|
};
|
|
3675
|
+
const permission = vue.computed(() => {
|
|
3676
|
+
const arr = props.permission?.split(",") || [];
|
|
3677
|
+
return {
|
|
3678
|
+
arg: arr[0],
|
|
3679
|
+
value: arr[1]
|
|
3680
|
+
};
|
|
3681
|
+
});
|
|
3655
3682
|
return {
|
|
3656
3683
|
columns,
|
|
3657
3684
|
addAttachment,
|
|
3658
3685
|
isNormalOpen,
|
|
3659
3686
|
isDialogOpen,
|
|
3660
3687
|
onConfirm,
|
|
3661
|
-
onCancel
|
|
3688
|
+
onCancel,
|
|
3689
|
+
mode,
|
|
3690
|
+
permission
|
|
3662
3691
|
};
|
|
3663
3692
|
};
|
|
3664
3693
|
|
|
@@ -3678,7 +3707,7 @@
|
|
|
3678
3707
|
const bem = createNameSpace("attachment");
|
|
3679
3708
|
const props = __props;
|
|
3680
3709
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
3681
|
-
const { columns, addAttachment, isNormalOpen, onConfirm, onCancel } = useAttachment(props, {
|
|
3710
|
+
const { columns, addAttachment, isNormalOpen, permission, onConfirm, onCancel, mode } = useAttachment(props, {
|
|
3682
3711
|
data: modelValue
|
|
3683
3712
|
});
|
|
3684
3713
|
const AttachmentDialog = useDialog({
|
|
@@ -3710,7 +3739,7 @@
|
|
|
3710
3739
|
return (_ctx, _cache) => {
|
|
3711
3740
|
const _component_EpButtons = vue.resolveComponent("EpButtons");
|
|
3712
3741
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3713
|
-
props.isShowOpenDialogButton ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
3742
|
+
props.isShowOpenDialogButton ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
3714
3743
|
key: 0,
|
|
3715
3744
|
type: "primary",
|
|
3716
3745
|
plain: "",
|
|
@@ -3722,11 +3751,13 @@
|
|
|
3722
3751
|
vue.createTextVNode(vue.toDisplayString(vue.unref(t)("ep.attachment.manageAttachment")) + "(" + vue.toDisplayString(modelValue.value?.length || 0) + ") ", 1)
|
|
3723
3752
|
]),
|
|
3724
3753
|
_: 1
|
|
3725
|
-
}, 8, ["class", "onClick"]))
|
|
3754
|
+
}, 8, ["class", "onClick"])), [
|
|
3755
|
+
[vue.unref(vPermisson), vue.unref(permission)]
|
|
3756
|
+
]) : vue.createCommentVNode("", true),
|
|
3726
3757
|
vue.createVNode(vue.unref(AttachmentDialog), null, {
|
|
3727
3758
|
default: vue.withCtx(() => [
|
|
3728
3759
|
vue.createElementVNode("div", { style: { "margin-bottom": "10px", "text-align": "right" } }, [
|
|
3729
|
-
props.openType === "dialog" ? (vue.openBlock(), vue.createBlock(_component_EpButtons, {
|
|
3760
|
+
props.openType === "dialog" && vue.unref(mode) !== "browse" ? (vue.openBlock(), vue.createBlock(_component_EpButtons, {
|
|
3730
3761
|
key: 0,
|
|
3731
3762
|
type: "primary",
|
|
3732
3763
|
list: [
|
|
@@ -3993,7 +4024,7 @@
|
|
|
3993
4024
|
// 组件类型 bpm、 address
|
|
3994
4025
|
};
|
|
3995
4026
|
|
|
3996
|
-
const useUniVue = (props) => {
|
|
4027
|
+
const useUniVue = (props, emit) => {
|
|
3997
4028
|
const uniVue = vue.useTemplateRef("uniVue");
|
|
3998
4029
|
const { type } = props;
|
|
3999
4030
|
const loading = vue.ref(true);
|
|
@@ -4022,22 +4053,27 @@
|
|
|
4022
4053
|
const prepareVueAttributes = () => {
|
|
4023
4054
|
const events = {};
|
|
4024
4055
|
const _props = {};
|
|
4025
|
-
console.log(attrs);
|
|
4026
4056
|
Object.keys(attrs).forEach((key) => {
|
|
4027
4057
|
if (key.startsWith("on")) {
|
|
4028
4058
|
let eventName = key.slice(2);
|
|
4029
4059
|
if (eventName.startsWith("Update:")) {
|
|
4030
4060
|
eventName = "update:" + eventName.slice(7);
|
|
4061
|
+
if (eventName === "update:modelValue") {
|
|
4062
|
+
eventName = "input";
|
|
4063
|
+
}
|
|
4031
4064
|
} else {
|
|
4032
4065
|
eventName = eventName.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
4033
4066
|
eventName = eventName.slice(1);
|
|
4034
4067
|
}
|
|
4035
4068
|
events[eventName] = attrs[key];
|
|
4036
4069
|
} else {
|
|
4037
|
-
|
|
4070
|
+
if (key === "modelValue") {
|
|
4071
|
+
_props.value = attrs[key];
|
|
4072
|
+
} else {
|
|
4073
|
+
_props[key] = attrs[key];
|
|
4074
|
+
}
|
|
4038
4075
|
}
|
|
4039
4076
|
});
|
|
4040
|
-
console.log(events, _props, 9999);
|
|
4041
4077
|
return {
|
|
4042
4078
|
on: events,
|
|
4043
4079
|
props: _props
|
|
@@ -4049,7 +4085,7 @@
|
|
|
4049
4085
|
case "bpm":
|
|
4050
4086
|
return `${cdn}bpm-common/common/index.umd.min.js`;
|
|
4051
4087
|
case "address":
|
|
4052
|
-
return
|
|
4088
|
+
return `http://localhost:8001/dist/hx-address.js`;
|
|
4053
4089
|
default:
|
|
4054
4090
|
return "";
|
|
4055
4091
|
}
|
|
@@ -4141,30 +4177,55 @@
|
|
|
4141
4177
|
}
|
|
4142
4178
|
}
|
|
4143
4179
|
shadowRoot.appendChild(container);
|
|
4180
|
+
console.log(prepareVueAttributes());
|
|
4181
|
+
const baseEvents = {
|
|
4182
|
+
...prepareVueAttributes().on,
|
|
4183
|
+
"input": (newVal) => {
|
|
4184
|
+
console.log(newVal, "input", props.name);
|
|
4185
|
+
emit("update:modelValue", newVal);
|
|
4186
|
+
},
|
|
4187
|
+
"update:dialogFormData": (newVal) => {
|
|
4188
|
+
console.log(newVal, "update:dialogFormData");
|
|
4189
|
+
emit("update:dialogFormData", newVal);
|
|
4190
|
+
},
|
|
4191
|
+
"update:visible": (newVal) => {
|
|
4192
|
+
console.log(newVal, "update:visible");
|
|
4193
|
+
emit("update:visible", newVal);
|
|
4194
|
+
}
|
|
4195
|
+
};
|
|
4144
4196
|
instance = new Vue2({
|
|
4145
4197
|
el: container,
|
|
4146
4198
|
// @ts-expect-error 缺少类型定义
|
|
4147
4199
|
router: new VueRouter3(),
|
|
4148
|
-
render: (h) => h(props.name,
|
|
4200
|
+
render: (h) => h(props.name, {
|
|
4201
|
+
props: {
|
|
4202
|
+
...prepareVueAttributes().props
|
|
4203
|
+
},
|
|
4204
|
+
on: baseEvents
|
|
4205
|
+
})
|
|
4149
4206
|
});
|
|
4150
4207
|
};
|
|
4151
4208
|
Object.keys(attrs).forEach((key) => {
|
|
4152
|
-
|
|
4153
|
-
|
|
4209
|
+
console.log(key, 8);
|
|
4210
|
+
if (!key.startsWith("on")) {
|
|
4154
4211
|
vue.watch(
|
|
4155
|
-
() => attrs[
|
|
4212
|
+
() => attrs[key],
|
|
4156
4213
|
(newVal) => {
|
|
4157
|
-
|
|
4158
|
-
if (instance) {
|
|
4214
|
+
vue.nextTick(() => {
|
|
4159
4215
|
try {
|
|
4160
|
-
|
|
4216
|
+
console.log(props.name, newVal, "watch", key, instance);
|
|
4217
|
+
let vue2Prop = key;
|
|
4218
|
+
if (key === "modelValue") {
|
|
4219
|
+
vue2Prop = "value";
|
|
4220
|
+
}
|
|
4221
|
+
instance.$children[0][vue2Prop] = newVal;
|
|
4161
4222
|
} catch (e) {
|
|
4162
4223
|
}
|
|
4163
|
-
}
|
|
4224
|
+
});
|
|
4164
4225
|
},
|
|
4165
4226
|
{
|
|
4166
|
-
|
|
4167
|
-
|
|
4227
|
+
deep: true,
|
|
4228
|
+
immediate: true
|
|
4168
4229
|
}
|
|
4169
4230
|
);
|
|
4170
4231
|
}
|
|
@@ -4184,10 +4245,12 @@
|
|
|
4184
4245
|
},
|
|
4185
4246
|
__name: "uni-vue",
|
|
4186
4247
|
props: uniVueProps,
|
|
4187
|
-
|
|
4248
|
+
emits: ["update:modelValue", "update:dialogFormData", "update:visible"],
|
|
4249
|
+
setup(__props, { emit: __emit }) {
|
|
4188
4250
|
const bem = createNameSpace("uni-vue");
|
|
4189
4251
|
const props = __props;
|
|
4190
|
-
const
|
|
4252
|
+
const emit = __emit;
|
|
4253
|
+
const { loading } = useUniVue(props, emit);
|
|
4191
4254
|
return (_ctx, _cache) => {
|
|
4192
4255
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4193
4256
|
vue.createVNode(vue.unref(elementPlus.ElSkeleton), {
|
|
@@ -4226,7 +4289,7 @@
|
|
|
4226
4289
|
EpUniVue
|
|
4227
4290
|
];
|
|
4228
4291
|
|
|
4229
|
-
var version = "0.0.
|
|
4292
|
+
var version = "0.0.77";
|
|
4230
4293
|
|
|
4231
4294
|
var globalProperties = {
|
|
4232
4295
|
install(app) {
|