el-plus 0.0.76 → 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 +6 -0
- package/dist/index.css +1 -1
- package/dist/index.full.js +68 -35
- 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 +68 -35
- package/es/components/attachment/index.d.ts +24 -0
- package/es/components/attachment/src/attachment.d.ts +8 -0
- package/es/components/attachment/src/attachment.mjs +8 -0
- package/es/components/attachment/src/attachment.mjs.map +1 -1
- package/es/components/attachment/src/attachment.vue.d.ts +15 -0
- package/es/components/attachment/src/attachment.vue2.mjs +7 -4
- package/es/components/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/components/attachment/src/use-attachment.d.ts +4 -0
- package/es/components/attachment/src/use-attachment.mjs +9 -1
- package/es/components/attachment/src/use-attachment.mjs.map +1 -1
- package/es/components/header/index.d.ts +6 -0
- package/es/components/header/src/header.vue.d.ts +2 -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 +39 -27
- 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 +24 -0
- package/lib/components/attachment/src/attachment.d.ts +8 -0
- package/lib/components/attachment/src/attachment.js +8 -0
- package/lib/components/attachment/src/attachment.js.map +1 -1
- package/lib/components/attachment/src/attachment.vue.d.ts +15 -0
- package/lib/components/attachment/src/attachment.vue2.js +8 -5
- package/lib/components/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/components/attachment/src/use-attachment.d.ts +4 -0
- package/lib/components/attachment/src/use-attachment.js +9 -1
- package/lib/components/attachment/src/use-attachment.js.map +1 -1
- package/lib/components/header/index.d.ts +6 -0
- package/lib/components/header/src/header.vue.d.ts +2 -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 +38 -26
- 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')) :
|
|
@@ -2344,6 +2344,7 @@
|
|
|
2344
2344
|
});
|
|
2345
2345
|
const customAttrs = vue.computed(() => {
|
|
2346
2346
|
return {
|
|
2347
|
+
"row-key": props.rowKey || "id",
|
|
2347
2348
|
...prepareProps(props, ["modelValue", ...expandTablePropsKeys]),
|
|
2348
2349
|
// 'tooltip-effect': 'light',
|
|
2349
2350
|
size: "small",
|
|
@@ -2466,7 +2467,7 @@
|
|
|
2466
2467
|
_: 1
|
|
2467
2468
|
}, 8, ["label", "align", "width"])) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(columnList), (item, index) => {
|
|
2468
2469
|
return vue.openBlock(), vue.createBlock(_component_el_table_column, vue.mergeProps({
|
|
2469
|
-
key: index
|
|
2470
|
+
key: `${item.prop}_${item.type}_${index}`
|
|
2470
2471
|
}, {
|
|
2471
2472
|
ref_for: true
|
|
2472
2473
|
}, item), {
|
|
@@ -3377,6 +3378,10 @@
|
|
|
3377
3378
|
formatColumns: {
|
|
3378
3379
|
...tableProps.formatColumns
|
|
3379
3380
|
},
|
|
3381
|
+
rowKey: {
|
|
3382
|
+
type: String,
|
|
3383
|
+
default: "fileId"
|
|
3384
|
+
},
|
|
3380
3385
|
// 页面模式
|
|
3381
3386
|
mode: {
|
|
3382
3387
|
type: String
|
|
@@ -3404,6 +3409,10 @@
|
|
|
3404
3409
|
// 添加前校验
|
|
3405
3410
|
beforeAdd: {
|
|
3406
3411
|
type: Function
|
|
3412
|
+
},
|
|
3413
|
+
// 权限
|
|
3414
|
+
permission: {
|
|
3415
|
+
type: String
|
|
3407
3416
|
}
|
|
3408
3417
|
};
|
|
3409
3418
|
|
|
@@ -3663,6 +3672,13 @@
|
|
|
3663
3672
|
}
|
|
3664
3673
|
resolve();
|
|
3665
3674
|
};
|
|
3675
|
+
const permission = vue.computed(() => {
|
|
3676
|
+
const arr = props.permission?.split(",") || [];
|
|
3677
|
+
return {
|
|
3678
|
+
arg: arr[0],
|
|
3679
|
+
value: arr[1]
|
|
3680
|
+
};
|
|
3681
|
+
});
|
|
3666
3682
|
return {
|
|
3667
3683
|
columns,
|
|
3668
3684
|
addAttachment,
|
|
@@ -3670,7 +3686,8 @@
|
|
|
3670
3686
|
isDialogOpen,
|
|
3671
3687
|
onConfirm,
|
|
3672
3688
|
onCancel,
|
|
3673
|
-
mode
|
|
3689
|
+
mode,
|
|
3690
|
+
permission
|
|
3674
3691
|
};
|
|
3675
3692
|
};
|
|
3676
3693
|
|
|
@@ -3690,7 +3707,7 @@
|
|
|
3690
3707
|
const bem = createNameSpace("attachment");
|
|
3691
3708
|
const props = __props;
|
|
3692
3709
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
3693
|
-
const { columns, addAttachment, isNormalOpen, onConfirm, onCancel, mode } = useAttachment(props, {
|
|
3710
|
+
const { columns, addAttachment, isNormalOpen, permission, onConfirm, onCancel, mode } = useAttachment(props, {
|
|
3694
3711
|
data: modelValue
|
|
3695
3712
|
});
|
|
3696
3713
|
const AttachmentDialog = useDialog({
|
|
@@ -3722,7 +3739,7 @@
|
|
|
3722
3739
|
return (_ctx, _cache) => {
|
|
3723
3740
|
const _component_EpButtons = vue.resolveComponent("EpButtons");
|
|
3724
3741
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3725
|
-
props.isShowOpenDialogButton ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
3742
|
+
props.isShowOpenDialogButton ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
3726
3743
|
key: 0,
|
|
3727
3744
|
type: "primary",
|
|
3728
3745
|
plain: "",
|
|
@@ -3734,7 +3751,9 @@
|
|
|
3734
3751
|
vue.createTextVNode(vue.toDisplayString(vue.unref(t)("ep.attachment.manageAttachment")) + "(" + vue.toDisplayString(modelValue.value?.length || 0) + ") ", 1)
|
|
3735
3752
|
]),
|
|
3736
3753
|
_: 1
|
|
3737
|
-
}, 8, ["class", "onClick"]))
|
|
3754
|
+
}, 8, ["class", "onClick"])), [
|
|
3755
|
+
[vue.unref(vPermisson), vue.unref(permission)]
|
|
3756
|
+
]) : vue.createCommentVNode("", true),
|
|
3738
3757
|
vue.createVNode(vue.unref(AttachmentDialog), null, {
|
|
3739
3758
|
default: vue.withCtx(() => [
|
|
3740
3759
|
vue.createElementVNode("div", { style: { "margin-bottom": "10px", "text-align": "right" } }, [
|
|
@@ -4005,7 +4024,7 @@
|
|
|
4005
4024
|
// 组件类型 bpm、 address
|
|
4006
4025
|
};
|
|
4007
4026
|
|
|
4008
|
-
const useUniVue = (props) => {
|
|
4027
|
+
const useUniVue = (props, emit) => {
|
|
4009
4028
|
const uniVue = vue.useTemplateRef("uniVue");
|
|
4010
4029
|
const { type } = props;
|
|
4011
4030
|
const loading = vue.ref(true);
|
|
@@ -4039,7 +4058,7 @@
|
|
|
4039
4058
|
let eventName = key.slice(2);
|
|
4040
4059
|
if (eventName.startsWith("Update:")) {
|
|
4041
4060
|
eventName = "update:" + eventName.slice(7);
|
|
4042
|
-
if (eventName === "update:
|
|
4061
|
+
if (eventName === "update:modelValue") {
|
|
4043
4062
|
eventName = "input";
|
|
4044
4063
|
}
|
|
4045
4064
|
} else {
|
|
@@ -4048,10 +4067,13 @@
|
|
|
4048
4067
|
}
|
|
4049
4068
|
events[eventName] = attrs[key];
|
|
4050
4069
|
} else {
|
|
4051
|
-
|
|
4070
|
+
if (key === "modelValue") {
|
|
4071
|
+
_props.value = attrs[key];
|
|
4072
|
+
} else {
|
|
4073
|
+
_props[key] = attrs[key];
|
|
4074
|
+
}
|
|
4052
4075
|
}
|
|
4053
4076
|
});
|
|
4054
|
-
console.log(events, _props, 9999);
|
|
4055
4077
|
return {
|
|
4056
4078
|
on: events,
|
|
4057
4079
|
props: _props
|
|
@@ -4063,7 +4085,7 @@
|
|
|
4063
4085
|
case "bpm":
|
|
4064
4086
|
return `${cdn}bpm-common/common/index.umd.min.js`;
|
|
4065
4087
|
case "address":
|
|
4066
|
-
return
|
|
4088
|
+
return `http://localhost:8001/dist/hx-address.js`;
|
|
4067
4089
|
default:
|
|
4068
4090
|
return "";
|
|
4069
4091
|
}
|
|
@@ -4155,6 +4177,22 @@
|
|
|
4155
4177
|
}
|
|
4156
4178
|
}
|
|
4157
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
|
+
};
|
|
4158
4196
|
instance = new Vue2({
|
|
4159
4197
|
el: container,
|
|
4160
4198
|
// @ts-expect-error 缺少类型定义
|
|
@@ -4163,38 +4201,31 @@
|
|
|
4163
4201
|
props: {
|
|
4164
4202
|
...prepareVueAttributes().props
|
|
4165
4203
|
},
|
|
4166
|
-
on:
|
|
4167
|
-
...prepareVueAttributes().on,
|
|
4168
|
-
// 'update:dialogFormData': (newVal) => {
|
|
4169
|
-
// console.log(newVal, 'update:dialogFormData');
|
|
4170
|
-
// },
|
|
4171
|
-
// 'update:visible': (newVal) => {
|
|
4172
|
-
// console.log(newVal, 'update:visible');
|
|
4173
|
-
// },
|
|
4174
|
-
"input": (newVal) => {
|
|
4175
|
-
console.log(newVal, "input");
|
|
4176
|
-
}
|
|
4177
|
-
}
|
|
4204
|
+
on: baseEvents
|
|
4178
4205
|
})
|
|
4179
4206
|
});
|
|
4180
4207
|
};
|
|
4181
4208
|
Object.keys(attrs).forEach((key) => {
|
|
4182
|
-
|
|
4183
|
-
|
|
4209
|
+
console.log(key, 8);
|
|
4210
|
+
if (!key.startsWith("on")) {
|
|
4184
4211
|
vue.watch(
|
|
4185
|
-
() => attrs[
|
|
4212
|
+
() => attrs[key],
|
|
4186
4213
|
(newVal) => {
|
|
4187
|
-
|
|
4214
|
+
vue.nextTick(() => {
|
|
4188
4215
|
try {
|
|
4189
|
-
console.log(newVal, "
|
|
4190
|
-
|
|
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;
|
|
4191
4222
|
} catch (e) {
|
|
4192
4223
|
}
|
|
4193
|
-
}
|
|
4224
|
+
});
|
|
4194
4225
|
},
|
|
4195
4226
|
{
|
|
4196
|
-
|
|
4197
|
-
|
|
4227
|
+
deep: true,
|
|
4228
|
+
immediate: true
|
|
4198
4229
|
}
|
|
4199
4230
|
);
|
|
4200
4231
|
}
|
|
@@ -4214,10 +4245,12 @@
|
|
|
4214
4245
|
},
|
|
4215
4246
|
__name: "uni-vue",
|
|
4216
4247
|
props: uniVueProps,
|
|
4217
|
-
|
|
4248
|
+
emits: ["update:modelValue", "update:dialogFormData", "update:visible"],
|
|
4249
|
+
setup(__props, { emit: __emit }) {
|
|
4218
4250
|
const bem = createNameSpace("uni-vue");
|
|
4219
4251
|
const props = __props;
|
|
4220
|
-
const
|
|
4252
|
+
const emit = __emit;
|
|
4253
|
+
const { loading } = useUniVue(props, emit);
|
|
4221
4254
|
return (_ctx, _cache) => {
|
|
4222
4255
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
4223
4256
|
vue.createVNode(vue.unref(elementPlus.ElSkeleton), {
|
|
@@ -4256,7 +4289,7 @@
|
|
|
4256
4289
|
EpUniVue
|
|
4257
4290
|
];
|
|
4258
4291
|
|
|
4259
|
-
var version = "0.0.
|
|
4292
|
+
var version = "0.0.77";
|
|
4260
4293
|
|
|
4261
4294
|
var globalProperties = {
|
|
4262
4295
|
install(app) {
|