@web-utils/component 3.6.1 → 3.7.1
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/chunk-file-uploader/index.mjs +13 -12
- package/chunks/{ElementBaseInfo.jv89Vjy1.mjs → ElementBaseInfo.ZADwixb5.mjs} +25 -18
- package/chunks/{ElementForm.4QQYs5uq.mjs → ElementForm.8w6UkiuU.mjs} +1 -1
- package/chunks/{ElementListeners.vfHHHAOL.mjs → ElementListeners.DOy8wyD2.mjs} +0 -1
- package/chunks/{ElementProperties.CRIQaaPc.mjs → ElementProperties.B2I48muA.mjs} +1 -1
- package/color-picker/index.mjs +6 -5
- package/count-up/index.mjs +12 -12
- package/data-card-text/index.mjs +6 -5
- package/dialog-form/index.mjs +2 -1
- package/e-charts/index.mjs +2 -1
- package/editable-tree/index.mjs +2 -1
- package/flow-designer/index.mjs +13 -15
- package/fy-cascader/index.mjs +16 -15
- package/fy-curd/index.mjs +2 -2
- package/fy-draggable/index.mjs +2 -1
- package/fy-dynamic/index.mjs +24 -22
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input-table/index.mjs +6 -6
- package/fy-input-tree/index.mjs +17 -16
- package/fy-tree/index.mjs +1 -1
- package/fy-upload/index.mjs +94 -92
- package/image-cropper/index.mjs +7 -5
- package/image-preview/index.mjs +8 -7
- package/monaco-editor/index.mjs +5 -3
- package/package.json +4 -4
- package/page-index/index.mjs +9 -8
- package/sign-panel/index.mjs +1 -1
- package/vue-tree-select/index.mjs +4 -6
- package/web-types.json +1 -1
package/fy-form-design/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-befe1506]{vertical-align:top}.el-tag+.el-tag[data-v-befe1506]{margin-left:5px}.input-new-tag[data-v-befe1506]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-befe1506]{vertical-align:top;left:10px}.custom-tree-node[data-v-e3a1f4c8]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
|
1
|
+
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-befe1506]{vertical-align:top}.el-tag+.el-tag[data-v-befe1506]{margin-left:5px}.input-new-tag[data-v-befe1506]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-befe1506]{vertical-align:top;left:10px}.custom-tree-node[data-v-a2df3d76]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
package/fy-input-table/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { isBlank as
|
|
1
|
+
import { p as n, e as r } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
+
import { isBlank as s } from "@web-utils/core";
|
|
3
3
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const l = {
|
|
5
5
|
name: "FyInputTable",
|
|
6
|
-
mixins: [
|
|
6
|
+
mixins: [n, r],
|
|
7
7
|
props: {
|
|
8
8
|
formatter: Function,
|
|
9
9
|
onLoad: Function,
|
|
@@ -47,10 +47,10 @@ const l = {
|
|
|
47
47
|
},
|
|
48
48
|
watch: {
|
|
49
49
|
value(t) {
|
|
50
|
-
|
|
50
|
+
s(t) && (this.active = {}, this.object = {});
|
|
51
51
|
},
|
|
52
52
|
text(t) {
|
|
53
|
-
this.created ||
|
|
53
|
+
this.created || s(t) || typeof this.onLoad == "function" && this.onLoad({ value: this.text }, (e) => {
|
|
54
54
|
this.active = e, this.object = e, this.created = !0;
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -69,7 +69,7 @@ const l = {
|
|
|
69
69
|
this.active = t;
|
|
70
70
|
},
|
|
71
71
|
handleSearchChange(t, e) {
|
|
72
|
-
this.page.page = 1, this.onList(), e
|
|
72
|
+
this.page.page = 1, this.onList(), e == null || e();
|
|
73
73
|
},
|
|
74
74
|
onList() {
|
|
75
75
|
this.loading = !0, typeof this.onLoad == "function" && this.onLoad({ page: this.page, data: this.search }, (t) => {
|
package/fy-input-tree/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as
|
|
1
|
+
import { p as u, e as h } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
2
|
import { isBlank as n } from "@web-utils/core";
|
|
3
|
-
import { n as
|
|
4
|
-
const
|
|
3
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const f = {
|
|
5
5
|
name: "FyInputTree",
|
|
6
|
-
mixins: [
|
|
6
|
+
mixins: [u, h],
|
|
7
7
|
props: {
|
|
8
8
|
nodeClick: Function,
|
|
9
9
|
treeLoad: Function,
|
|
@@ -107,21 +107,22 @@ const p = {
|
|
|
107
107
|
this.text = this.multiple ? [] : "", this.node = [], this.filterValue = "", this.$refs.tree.setCurrentKey(null), this.$refs.tree.setCheckedKeys([]);
|
|
108
108
|
},
|
|
109
109
|
handleTreeLoad(t, e) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
var l;
|
|
111
|
+
const i = (r) => {
|
|
112
|
+
const s = (d, o, c) => {
|
|
113
|
+
d.forEach((a) => {
|
|
114
|
+
a[this.valueKey] === o ? a[this.childrenKey] = c : a[this.childrenKey] && s(a[this.childrenKey]);
|
|
114
115
|
});
|
|
115
116
|
};
|
|
116
|
-
|
|
117
|
+
s(this.dicList, t.key, r), e(r);
|
|
117
118
|
};
|
|
118
|
-
this.treeLoad
|
|
119
|
+
(l = this.treeLoad) == null || l.call(this, t, i);
|
|
119
120
|
},
|
|
120
121
|
filterNode(t, e) {
|
|
121
122
|
return t ? e[this.labelKey].toLowerCase().indexOf(t.toLowerCase()) !== -1 : !0;
|
|
122
123
|
},
|
|
123
124
|
checkChange(t, e, i, l) {
|
|
124
|
-
this.text.splice(0, this.text.length), this.$refs.tree.getCheckedNodes(this.leafOnly, !1).forEach((
|
|
125
|
+
this.text.splice(0, this.text.length), this.$refs.tree.getCheckedNodes(this.leafOnly, !1).forEach((s) => this.text.push(s[this.valueKey])), typeof this.checked == "function" && this.checked(t, e, i, l);
|
|
125
126
|
},
|
|
126
127
|
getHalfList() {
|
|
127
128
|
let t = this.$refs.tree.getCheckedNodes(!1, !0);
|
|
@@ -153,7 +154,7 @@ const p = {
|
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
};
|
|
156
|
-
var
|
|
157
|
+
var y = function() {
|
|
157
158
|
var e = this, i = e._self._c;
|
|
158
159
|
return i("ElSelect", { ref: "main", staticClass: "avue-input-tree", attrs: { size: e.size, multiple: e.multiple, "multiple-limit": e.limit, "collapse-tags": e.tags, value: e.labelShow, clearable: e.clearableVal, placeholder: e.placeholder, "popper-class": e.popperClass, "popper-append-to-body": e.popperAppendToBody, disabled: e.disabled }, on: { click: e.handleClick, focus: e.handleFocus, blur: e.handleBlur, clear: e.handleClear } }, [e.filter ? i("div", { staticClass: "avue-input-tree__filter" }, [i("ElInput", { attrs: { size: "mini", placeholder: e.filterText }, model: { value: e.filterValue, callback: function(l) {
|
|
159
160
|
e.filterValue = l;
|
|
@@ -164,15 +165,15 @@ var f = function() {
|
|
|
164
165
|
return [i("span", { class: { "avue--disabled": l[e.disabledKey] } }, [e._v(e._s(l[e.labelKey]))]), l[e.descKey] ? i("span", { staticClass: "avue-input-tree__desc" }, [e._v(e._s(l[e.descKey]))]) : e._e()];
|
|
165
166
|
}, { label: e.labelKey, value: e.valueKey, item: l })], 2)];
|
|
166
167
|
} }], null, !0) })], 1)], 1);
|
|
167
|
-
},
|
|
168
|
-
p,
|
|
168
|
+
}, m = [], k = /* @__PURE__ */ p(
|
|
169
169
|
f,
|
|
170
170
|
y,
|
|
171
|
+
m,
|
|
171
172
|
!1,
|
|
172
173
|
null,
|
|
173
174
|
null
|
|
174
175
|
);
|
|
175
|
-
const
|
|
176
|
+
const K = k.exports;
|
|
176
177
|
export {
|
|
177
|
-
|
|
178
|
+
K as default
|
|
178
179
|
};
|
package/fy-tree/index.mjs
CHANGED
|
@@ -195,7 +195,7 @@ const f = {
|
|
|
195
195
|
},
|
|
196
196
|
hide(t) {
|
|
197
197
|
const e = () => {
|
|
198
|
-
t
|
|
198
|
+
t == null || t(), this.node = {}, this.form = {}, this.box = !1;
|
|
199
199
|
};
|
|
200
200
|
typeof this.beforeClose == "function" ? this.beforeClose(e, this.type) : e();
|
|
201
201
|
},
|
package/fy-upload/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as R, e as I } from "../chunks/event.BT1F_1vF.mjs";
|
|
2
|
-
import { B, i as
|
|
2
|
+
import { B, i as T, p as N } from "../chunks/util.CoahLDYn.mjs";
|
|
3
3
|
import { p as A } from "../chunks/packages.CWPkeLu9.mjs";
|
|
4
4
|
import { isBlank as b } from "@web-utils/core";
|
|
5
5
|
import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
@@ -25,15 +25,15 @@ const w = {
|
|
|
25
25
|
ratio: 1
|
|
26
26
|
// 压缩比
|
|
27
27
|
};
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
|
|
28
|
+
function k(i, t) {
|
|
29
|
+
const e = new FileReader();
|
|
30
|
+
e.readAsDataURL(i), e.onload = function(o) {
|
|
31
31
|
t(o.target.result);
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function L(
|
|
34
|
+
function L(i, t = {}, e) {
|
|
35
35
|
const { text: o, fontFamily: s, color: u, fontSize: l, opacity: p, bottom: S, right: f, ratio: x } = t;
|
|
36
|
-
_(),
|
|
36
|
+
_(), k(i, C);
|
|
37
37
|
function _() {
|
|
38
38
|
n.text = o || n.text, n.fontFamily = s || n.fontFamily, n.color = u || n.color, n.fontSize = l || n.fontSize, n.opacity = p || n.opacity, n.bottom = S || n.bottom, n.right = f || n.right, n.ratio = x || n.ratio;
|
|
39
39
|
}
|
|
@@ -42,8 +42,8 @@ function L(e, t = {}, i) {
|
|
|
42
42
|
c.src = y, c.onload = function() {
|
|
43
43
|
const m = c.width, a = c.height;
|
|
44
44
|
r(m, a), g.drawImage(c, 0, 0, m, a), P(m, a);
|
|
45
|
-
const v = document.getElementById("canvas").toDataURL(
|
|
46
|
-
|
|
45
|
+
const v = document.getElementById("canvas").toDataURL(i.type, n.ratio), F = B(v, i.name);
|
|
46
|
+
e == null || e(F);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
function r(y, c) {
|
|
@@ -67,46 +67,46 @@ function L(e, t = {}, i) {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
const D = (
|
|
71
|
-
const o = JSON.stringify(
|
|
72
|
-
window.__ENV__ === "development" && console
|
|
70
|
+
const D = (i, t, e) => {
|
|
71
|
+
const o = JSON.stringify(e);
|
|
72
|
+
window.__ENV__ === "development" && (console == null || console.log("put_policy = ", o));
|
|
73
73
|
const s = M(q(o));
|
|
74
|
-
window.__ENV__ === "development" && console
|
|
74
|
+
window.__ENV__ === "development" && (console == null || console.log("encoded = ", s));
|
|
75
75
|
const l = window.CryptoJS.HmacSHA1(s, t).toString(window.CryptoJS.enc.Base64);
|
|
76
|
-
window.__ENV__ === "development" && console
|
|
77
|
-
const p = `${
|
|
78
|
-
return window.__ENV__ === "development" && console
|
|
76
|
+
window.__ENV__ === "development" && (console == null || console.log("encoded_signed=", l));
|
|
77
|
+
const p = `${i}:${V(l)}:${s}`;
|
|
78
|
+
return window.__ENV__ === "development" && (console == null || console.log("upload_token=", p)), p;
|
|
79
79
|
};
|
|
80
|
-
function q(
|
|
81
|
-
let t,
|
|
80
|
+
function q(i) {
|
|
81
|
+
let t, e, o;
|
|
82
82
|
t = "";
|
|
83
|
-
const s =
|
|
84
|
-
for (
|
|
85
|
-
o =
|
|
83
|
+
const s = i.length;
|
|
84
|
+
for (e = 0; e < s; e++)
|
|
85
|
+
o = i.charCodeAt(e), o >= 1 && o <= 127 ? t += i.charAt(e) : o > 2047 ? (t += String.fromCharCode(224 | o >> 12 & 15), t += String.fromCharCode(128 | o >> 6 & 63), t += String.fromCharCode(128 | o >> 0 & 63)) : (t += String.fromCharCode(192 | o >> 6 & 31), t += String.fromCharCode(128 | o >> 0 & 63));
|
|
86
86
|
return t;
|
|
87
87
|
}
|
|
88
88
|
const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
89
|
-
function M(
|
|
90
|
-
let t,
|
|
91
|
-
const l =
|
|
92
|
-
for (
|
|
93
|
-
if (o =
|
|
89
|
+
function M(i) {
|
|
90
|
+
let t, e, o, s, u;
|
|
91
|
+
const l = i.length;
|
|
92
|
+
for (e = 0, t = ""; e < l; ) {
|
|
93
|
+
if (o = i.charCodeAt(e++) & 255, e === l) {
|
|
94
94
|
t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4), t += "==";
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
|
-
if (s =
|
|
97
|
+
if (s = i.charCodeAt(e++), e === l) {
|
|
98
98
|
t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (s & 240) >> 4), t += h.charAt((s & 15) << 2), t += "=";
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
|
-
u =
|
|
101
|
+
u = i.charCodeAt(e++), t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (s & 240) >> 4), t += h.charAt((s & 15) << 2 | (u & 192) >> 6), t += h.charAt(u & 63);
|
|
102
102
|
}
|
|
103
103
|
return t;
|
|
104
104
|
}
|
|
105
|
-
const V = function(
|
|
106
|
-
return
|
|
107
|
-
}, J = (
|
|
108
|
-
function O(
|
|
109
|
-
return t.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? t :
|
|
105
|
+
const V = function(i) {
|
|
106
|
+
return i = i.replace(/\+/g, "-"), i = i.replace(/\//g, "_"), i;
|
|
107
|
+
}, J = (i) => new window.OSS(i);
|
|
108
|
+
function O(i, t = "") {
|
|
109
|
+
return t.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? t : i + t;
|
|
110
110
|
}
|
|
111
111
|
const H = {
|
|
112
112
|
name: "FyUpload",
|
|
@@ -210,84 +210,85 @@ const H = {
|
|
|
210
210
|
return b(this.text) ? null : O(this.homeUrl, this.text[0]);
|
|
211
211
|
},
|
|
212
212
|
fileList() {
|
|
213
|
-
const
|
|
214
|
-
return (this.text || []).forEach((t,
|
|
213
|
+
const i = [];
|
|
214
|
+
return (this.text || []).forEach((t, e) => {
|
|
215
215
|
if (t) {
|
|
216
216
|
const o = this.isObject ? t[this.labelKey] : t.substring(t.lastIndexOf("/") + 1);
|
|
217
217
|
let s = this.isObject ? t[this.valueKey] : t;
|
|
218
|
-
s = O(this.homeUrl, s),
|
|
219
|
-
uid: `${
|
|
218
|
+
s = O(this.homeUrl, s), i.push({
|
|
219
|
+
uid: `${e}`,
|
|
220
220
|
status: "done",
|
|
221
221
|
type: this.isMediaType(s),
|
|
222
222
|
name: o,
|
|
223
223
|
url: s
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
}),
|
|
226
|
+
}), i;
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
mounted() {
|
|
230
230
|
this.drag && this.setSort();
|
|
231
231
|
},
|
|
232
232
|
methods: {
|
|
233
|
-
isMediaType(
|
|
234
|
-
return
|
|
233
|
+
isMediaType(i) {
|
|
234
|
+
return T(i, this.fileType);
|
|
235
235
|
},
|
|
236
236
|
setSort() {
|
|
237
237
|
if (!window.Sortable) {
|
|
238
238
|
A.logs("Sortable");
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
const
|
|
242
|
-
window.Sortable.create(
|
|
241
|
+
const i = this.$el.querySelectorAll(".avue-upload > ul")[0];
|
|
242
|
+
window.Sortable.create(i, {
|
|
243
243
|
animation: 100,
|
|
244
244
|
onEnd: (t) => {
|
|
245
|
-
const
|
|
246
|
-
this.text.splice(t.newIndex, 0,
|
|
245
|
+
const e = this.text.splice(t.oldIndex, 1)[0];
|
|
246
|
+
this.text.splice(t.newIndex, 0, e), this.reload = Math.random(), this.$nextTick(() => this.setSort());
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
},
|
|
250
|
-
handleSuccess(
|
|
250
|
+
handleSuccess(i) {
|
|
251
251
|
if (this.isPictureImg)
|
|
252
|
-
this.text.splice(0, 1,
|
|
252
|
+
this.text.splice(0, 1, i[this.urlKey]);
|
|
253
253
|
else if (this.isObject) {
|
|
254
254
|
const t = {};
|
|
255
|
-
t[this.labelKey] =
|
|
255
|
+
t[this.labelKey] = i[this.nameKey], t[this.valueKey] = i[this.urlKey], this.text.push(t);
|
|
256
256
|
} else
|
|
257
|
-
this.text.push(
|
|
257
|
+
this.text.push(i[this.urlKey]);
|
|
258
258
|
},
|
|
259
|
-
handleRemove(
|
|
260
|
-
this.beforeRemove(
|
|
261
|
-
this.delete(
|
|
259
|
+
handleRemove(i) {
|
|
260
|
+
this.beforeRemove(i).then(() => {
|
|
261
|
+
this.delete(i);
|
|
262
262
|
});
|
|
263
263
|
},
|
|
264
|
-
handleError(
|
|
265
|
-
|
|
264
|
+
handleError(i) {
|
|
265
|
+
var t;
|
|
266
|
+
(t = this.uploadError) == null || t.call(this, i, this.column);
|
|
266
267
|
},
|
|
267
|
-
delete(
|
|
268
|
-
(this.text || []).forEach((t,
|
|
268
|
+
delete(i) {
|
|
269
|
+
(this.text || []).forEach((t, e) => {
|
|
269
270
|
const o = this.isObject ? t[this.valueKey] : t;
|
|
270
|
-
O(this.homeUrl, o) ===
|
|
271
|
+
O(this.homeUrl, o) === i.url && this.text.splice(e, 1);
|
|
271
272
|
});
|
|
272
273
|
},
|
|
273
|
-
show(
|
|
274
|
-
this.loading = !1, this.res =
|
|
274
|
+
show(i) {
|
|
275
|
+
this.loading = !1, this.res = i || this.res, this.handleSuccess(this.res);
|
|
275
276
|
},
|
|
276
|
-
hide(
|
|
277
|
-
this.loading = !1,
|
|
277
|
+
hide(i) {
|
|
278
|
+
this.loading = !1, i && this.handleError(i);
|
|
278
279
|
},
|
|
279
|
-
handleFileChange(
|
|
280
|
+
handleFileChange(i, t) {
|
|
280
281
|
t.splice(t.length - 1, 1);
|
|
281
282
|
},
|
|
282
|
-
httpUpload(
|
|
283
|
+
httpUpload(i) {
|
|
283
284
|
if (typeof this.httpRequest == "function") {
|
|
284
|
-
this.httpRequest(
|
|
285
|
+
this.httpRequest(i);
|
|
285
286
|
return;
|
|
286
287
|
}
|
|
287
288
|
this.loading = !0;
|
|
288
|
-
let t =
|
|
289
|
-
const
|
|
290
|
-
if (!b(
|
|
289
|
+
let t = i.file;
|
|
290
|
+
const e = t.size / 1024;
|
|
291
|
+
if (!b(e) && e > this.fileSize) {
|
|
291
292
|
this.hide("文件太大不符合");
|
|
292
293
|
return;
|
|
293
294
|
}
|
|
@@ -327,7 +328,7 @@ const H = {
|
|
|
327
328
|
};
|
|
328
329
|
typeof this.uploadBefore == "function" ? this.uploadBefore(t, f, this.hide, this.column) : f();
|
|
329
330
|
};
|
|
330
|
-
if (
|
|
331
|
+
if (T(t.name) !== "img") {
|
|
331
332
|
p();
|
|
332
333
|
return;
|
|
333
334
|
}
|
|
@@ -336,7 +337,7 @@ const H = {
|
|
|
336
337
|
t = f, p();
|
|
337
338
|
});
|
|
338
339
|
};
|
|
339
|
-
b(this.cropperOption) ? S() :
|
|
340
|
+
b(this.cropperOption) ? S() : k(t, (f) => {
|
|
340
341
|
const x = Object.assign(this.cropperOption, {
|
|
341
342
|
img: f,
|
|
342
343
|
type: "file",
|
|
@@ -350,61 +351,62 @@ const H = {
|
|
|
350
351
|
this.$ImageCropper(x);
|
|
351
352
|
});
|
|
352
353
|
},
|
|
353
|
-
handleExceed(
|
|
354
|
-
|
|
354
|
+
handleExceed(i, t) {
|
|
355
|
+
var e;
|
|
356
|
+
(e = this.uploadExceed) == null || e.call(this, this.limit, i, t, this.column);
|
|
355
357
|
},
|
|
356
|
-
handlePreview(
|
|
358
|
+
handlePreview(i) {
|
|
357
359
|
const t = () => {
|
|
358
|
-
const
|
|
359
|
-
this.$ImagePreview(this.fileList,
|
|
360
|
+
const e = this.fileList.findIndex((o) => o.url === i.url);
|
|
361
|
+
this.$ImagePreview(this.fileList, e);
|
|
360
362
|
};
|
|
361
|
-
typeof this.uploadPreview == "function" ? this.uploadPreview(
|
|
363
|
+
typeof this.uploadPreview == "function" ? this.uploadPreview(i, this.column, t) : t();
|
|
362
364
|
},
|
|
363
|
-
handleDelete(
|
|
364
|
-
this.beforeRemove(
|
|
365
|
+
handleDelete(i) {
|
|
366
|
+
this.beforeRemove(i).then(() => {
|
|
365
367
|
this.text = [], this.menu = !1;
|
|
366
368
|
});
|
|
367
369
|
},
|
|
368
|
-
beforeRemove(
|
|
369
|
-
return typeof this.uploadDelete == "function" ? this.uploadDelete(
|
|
370
|
+
beforeRemove(i) {
|
|
371
|
+
return typeof this.uploadDelete == "function" ? this.uploadDelete(i, this.column) : Promise.resolve();
|
|
370
372
|
}
|
|
371
373
|
}
|
|
372
374
|
};
|
|
373
375
|
var Q = function() {
|
|
374
|
-
var t = this,
|
|
375
|
-
return
|
|
376
|
+
var t = this, e = t._self._c;
|
|
377
|
+
return e("div", { directives: [{ name: "loading", rawName: "v-loading.lock", value: t.loading, expression: "loading", modifiers: { lock: !0 } }], staticClass: "avue-upload", attrs: { "element-loading-text": t.loadText } }, [e("ElUpload", { key: t.reload, class: { "avue-upload--list": t.listType === "picture-img", "avue-upload--upload": t.disabled }, attrs: { action: t.action, "on-remove": t.handleRemove, accept: t.acceptList, "before-remove": t.beforeRemove, multiple: t.multiple, "on-preview": t.handlePreview, limit: t.limit, "http-request": t.httpUpload, readonly: t.readonly, drag: t.dragFile, "show-file-list": t.isPictureImg ? !1 : t.showFileList, "list-type": t.listType, "on-change": t.handleFileChange, "on-exceed": t.handleExceed, disabled: t.disabled, "file-list": t.fileList }, nativeOn: { click: function(o) {
|
|
376
378
|
return t.handleClick.apply(null, arguments);
|
|
377
379
|
} }, scopedSlots: t._u([{ key: "tip", fn: function() {
|
|
378
|
-
return [
|
|
380
|
+
return [e("div", { staticClass: "el-upload__tip", domProps: { innerHTML: t._s(t.tip) } })];
|
|
379
381
|
}, proxy: !0 }, { key: "file", fn: function({ file: o }) {
|
|
380
|
-
return [t.$scopedSlots.default ? t._t("default", null, { file: o }) : t.listType === "picture-card" ?
|
|
382
|
+
return [t.$scopedSlots.default ? t._t("default", null, { file: o }) : t.listType === "picture-card" ? e("span", [t.isMediaType(o.url) ? e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }) : e("i", { staticClass: "avue-upload__avatar el-icon-document" }), e("span", { staticClass: "el-upload-list__item-actions" }, [e("span", { staticClass: "el-upload-list__item-preview" }, [e("i", { staticClass: "el-icon-zoom-in", on: { click: function(s) {
|
|
381
383
|
return s.stopPropagation(), t.handlePreview(o);
|
|
382
|
-
} } })]),
|
|
384
|
+
} } })]), e("span", { staticClass: "el-upload-list__item-delete" }, [t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(s) {
|
|
383
385
|
return s.stopPropagation(), t.handleRemove(o);
|
|
384
|
-
} } })])])], 1) : t.listType === "picture" ?
|
|
386
|
+
} } })])])], 1) : t.listType === "picture" ? e("span", { on: { click: function(s) {
|
|
385
387
|
return s.stopPropagation(), t.handlePreview(o);
|
|
386
|
-
} } }, [
|
|
388
|
+
} } }, [e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }), e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), e("i", { staticClass: "el-icon-close", on: { click: function(s) {
|
|
387
389
|
return s.stopPropagation(), t.handleRemove(o);
|
|
388
|
-
} } })], 1) :
|
|
390
|
+
} } })], 1) : e("span", { on: { click: function(s) {
|
|
389
391
|
return s.stopPropagation(), t.handlePreview(o);
|
|
390
|
-
} } }, [
|
|
392
|
+
} } }, [e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : e("i", { staticClass: "el-icon-close", on: { click: function(s) {
|
|
391
393
|
return s.stopPropagation(), t.handleRemove(o);
|
|
392
394
|
} } })])];
|
|
393
|
-
} }], null, !0) }, [t.listType === "picture-card" ? [
|
|
395
|
+
} }], null, !0) }, [t.listType === "picture-card" ? [e("i", { staticClass: "el-icon-plus" })] : t.listType === "picture-img" ? [t.$scopedSlots.default ? t._t("default", null, { file: { url: t.imgUrl } }) : [t.isMediaType(t.imgUrl) ? e(t.isMediaType(t.imgUrl), { tag: "Component", staticClass: "avue-upload__avatar", attrs: { src: t.imgUrl }, on: { mouseover: function(o) {
|
|
394
396
|
t.menu = !0;
|
|
395
|
-
} } }) : t.imgUrl ?
|
|
397
|
+
} } }) : t.imgUrl ? e("i", { staticClass: "avue-upload__avatar el-icon-document", on: { mouseover: function(o) {
|
|
396
398
|
t.menu = !0;
|
|
397
|
-
} } }) :
|
|
399
|
+
} } }) : e("i", { staticClass: "el-icon-plus avue-upload__avatar" }), t.menu ? e("div", { staticClass: "el-upload-list__item-actions avue-upload__menu", on: { mouseover: function(o) {
|
|
398
400
|
t.menu = !0;
|
|
399
401
|
}, mouseout: function(o) {
|
|
400
402
|
t.menu = !1;
|
|
401
403
|
}, click: function(o) {
|
|
402
404
|
o.stopPropagation();
|
|
403
|
-
} } }, [
|
|
405
|
+
} } }, [e("i", { staticClass: "el-icon-zoom-in", on: { click: function(o) {
|
|
404
406
|
return o.stopPropagation(), t.handlePreview({ url: t.imgUrl });
|
|
405
|
-
} } }), t.disabled ? t._e() :
|
|
407
|
+
} } }), t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(o) {
|
|
406
408
|
return o.stopPropagation(), t.handleDelete(t.imgUrl);
|
|
407
|
-
} } })]) : t._e()]] : t.dragFile ? [
|
|
409
|
+
} } })]) : t._e()]] : t.dragFile ? [e("i", { staticClass: "el-icon-upload" }), e("div", { staticClass: "el-upload__text" }, [e("em", [t._v(t._s(t.fileText || "上传"))])])] : [e("ElButton", { attrs: { icon: "el-icon-upload", size: t.size, type: "primary" } }, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
|
|
408
410
|
}, W = [], X = /* @__PURE__ */ K(
|
|
409
411
|
H,
|
|
410
412
|
Q,
|
package/image-cropper/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
2
|
var n = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
3
|
+
var l = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var s = (o, e, t) => e in o ? p(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, a = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
l.call(e, t) && s(o, t, e[t]);
|
|
7
7
|
if (n)
|
|
8
8
|
for (var t of n(e))
|
|
9
|
-
|
|
9
|
+
c.call(e, t) && s(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
12
|
import { B as u } from "../chunks/util.CoahLDYn.mjs";
|
|
@@ -47,12 +47,14 @@ const r = {
|
|
|
47
47
|
},
|
|
48
48
|
submit() {
|
|
49
49
|
this.visible = !1, this.$refs.cropper.getCropData((o) => {
|
|
50
|
+
var t, i;
|
|
50
51
|
let e = o;
|
|
51
|
-
this.option.type === "file" && (e = u(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), this.option.callback
|
|
52
|
+
this.option.type === "file" && (e = u(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (t = this.option).callback) == null || i.call(t, e);
|
|
52
53
|
});
|
|
53
54
|
},
|
|
54
55
|
cancel(o) {
|
|
55
|
-
|
|
56
|
+
var e, t;
|
|
57
|
+
o == null || o(), this.visible = !1, (t = (e = this.option).cancel) == null || t.call(e), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
}, d = (o = {}) => {
|
package/image-preview/index.mjs
CHANGED
|
@@ -9,10 +9,10 @@ var r = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
v.call(e, t) && r(i, t, e[t]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
import { i as
|
|
12
|
+
import { i as _ } from "../chunks/util.CoahLDYn.mjs";
|
|
13
13
|
import { setPx as u } from "@web-utils/core";
|
|
14
|
-
import
|
|
15
|
-
import { n as
|
|
14
|
+
import f from "vue";
|
|
15
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
16
16
|
const o = {
|
|
17
17
|
name: "ImagePreview",
|
|
18
18
|
data() {
|
|
@@ -60,11 +60,12 @@ const o = {
|
|
|
60
60
|
},
|
|
61
61
|
stopItem() {
|
|
62
62
|
this.left = 0, this.top = 0, this.$refs.item.forEach((i) => {
|
|
63
|
-
|
|
63
|
+
var e;
|
|
64
|
+
(e = i.pause) == null || e.call(i);
|
|
64
65
|
});
|
|
65
66
|
},
|
|
66
67
|
isMediaType(i) {
|
|
67
|
-
return
|
|
68
|
+
return _(i.url, i.type);
|
|
68
69
|
},
|
|
69
70
|
subScale() {
|
|
70
71
|
this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
|
|
@@ -93,7 +94,7 @@ const o = {
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
}, g = (i = [], e = 0, t = {}) => {
|
|
96
|
-
const s =
|
|
97
|
+
const s = f.extend(o), a = {
|
|
97
98
|
datas: i,
|
|
98
99
|
index: e,
|
|
99
100
|
ops: c({
|
|
@@ -129,7 +130,7 @@ var C = function() {
|
|
|
129
130
|
} } }), t("i", { staticClass: "el-icon-refresh-right", on: { click: function(s) {
|
|
130
131
|
e.rotate = e.rotate + 90;
|
|
131
132
|
} } })])])]) : e._e();
|
|
132
|
-
}, x = [], k = /* @__PURE__ */
|
|
133
|
+
}, x = [], k = /* @__PURE__ */ p(
|
|
133
134
|
w,
|
|
134
135
|
C,
|
|
135
136
|
x,
|
package/monaco-editor/index.mjs
CHANGED
|
@@ -50,7 +50,8 @@ const m = {
|
|
|
50
50
|
options: {
|
|
51
51
|
deep: !0,
|
|
52
52
|
handler(t) {
|
|
53
|
-
|
|
53
|
+
var e;
|
|
54
|
+
(e = this.editor) == null || e.updateOptions(t);
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
keyIndex() {
|
|
@@ -69,8 +70,9 @@ const m = {
|
|
|
69
70
|
this.editor && o.editor.setTheme(this.theme);
|
|
70
71
|
},
|
|
71
72
|
style() {
|
|
72
|
-
this
|
|
73
|
-
|
|
73
|
+
this.$nextTick(() => {
|
|
74
|
+
var t;
|
|
75
|
+
(t = this.editor) == null || t.layout();
|
|
74
76
|
});
|
|
75
77
|
},
|
|
76
78
|
value(t) {
|