cui-print 1.0.32 → 1.0.34

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/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(e,cr){typeof exports=="object"&&typeof module<"u"?module.exports=cr(require("vue")):typeof define=="function"&&define.amd?define(["vue"],cr):(e=typeof globalThis<"u"?globalThis:e||self,e.WuiPrint=cr(e.Vue))})(this,function(e){"use strict";var cr=document.createElement("style");cr.textContent=`.print-designer_designer-components-container[data-v-dc57e38f]{width:300px;background:#fff;border-right:1px solid var(--wui-print-border-color--light);display:flex;flex-flow:column}.print-designer_designer-components-container ._d-c-header[data-v-dc57e38f]{height:40px;text-align:center;line-height:40px;font-weight:700;border-bottom:1px solid var(--wui-print-border-color--light)}.print-designer_designer-components-container ._d-c-main[data-v-dc57e38f]{height:0;flex:1;overflow-x:hidden;overflow-y:auto;padding:10px}.print-designer_designer-components-container ._d-c-block[data-v-dc57e38f]{border:2px solid #eeeeee;padding:10px}.print-designer_designer-components-container ._d-c-block+._d-c-block[data-v-dc57e38f]{margin-top:10px}.print-designer_designer-components-container ._d-c-block_label[data-v-dc57e38f]{font-size:16px;font-weight:700}.print-designer_designer-components-container ._d-c-block_list[data-v-dc57e38f]{padding:8px;display:flex;flex-flow:row wrap}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item[data-v-dc57e38f]{display:flex;flex-flow:column;flex:0 0 33.33333%;align-items:center;padding:5px}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item[data-v-dc57e38f]:hover{cursor:move;background:var(--wui-print-theme-color);color:#fff}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item-icon span[data-v-dc57e38f]{font-size:20px}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item-label[data-v-dc57e38f]{font-size:12px;margin-top:3px}.pagination-refline[data-v-7e4c894a]{position:absolute;left:0;right:0;height:1px;background:none;border-top:2px dashed #757575;z-index:10}.pagination-refline .pagination-refline-content[data-v-7e4c894a]{content:"分页线";background-color:#fff;position:absolute;left:50%;padding:2px 5px;border-radius:2px;transform:translate(-50%) translateY(-50%);box-shadow:4px 4px 10px #0003}.sortable-item-container[data-v-1719d6db]{width:100%;position:relative}.sortable-item-container .sortable-item-mask[data-v-1719d6db]{position:absolute;z-index:1;left:0;right:0;top:0;bottom:0;background:none}.sortable-item-container .sortable-item-handle[data-v-1719d6db]{position:absolute;z-index:2;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.sortable-item-container .sortable-item-handle span[data-v-1719d6db]{font-size:16px}.sortable-item-container .sortable-item-operate[data-v-1719d6db]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.sortable-item-container .sortable-item-operate .sortable-item-operate_item[data-v-1719d6db]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.sortable-item-container .sortable-item-operate .sortable-item-operate_item+.sortable-item-operate_item[data-v-1719d6db]{margin-left:1px}.sortable-item-container .sortable-item-operate .sortable-item-operate_item.sortable-item-operate_item--copy[data-v-1719d6db]{background:#005089}.sortable-item-container .sortable-item-operate .sortable-item-operate_item.sortable-item-operate_item--delete[data-v-1719d6db]{background:#d50303}.sortable-item-container .sortable-item-operate .sortable-item-operate_item span[data-v-1719d6db]{font-size:14px}.sortable-item-container.sortable-item-container--hover .sortable-item-handle[data-v-1719d6db],.sortable-item-container.sortable-item-container--hover .sortable-item-operate[data-v-1719d6db]{opacity:.6}.sortable-item-container.sortable-item-container--line-mode[data-v-1719d6db]{outline:1px dashed #005089!important;margin-bottom:1px}.sortable-item-container.sortable-item-container--line-mode.sortable-item-container--selected[data-v-1719d6db],.sortable-item-container.sortable-item-container--line-mode.sortable-item-container--hover[data-v-1719d6db]{outline:1px solid #005089!important}.dynamic-text-component-container[data-v-fa017dcc]{width:100%;height:auto;display:flex}.dynamic-text-component-container .dynamic-text-component-container_text[data-v-fa017dcc]{width:0;flex:1;color:#333;overflow:hidden;text-overflow:ellipsis}.text-component-container[data-v-660d756d]{width:100%;height:auto}.complex-table_header-item-container[data-v-52171360]{width:100%;height:100%;position:relative}.complex-table_header-item-container .complex-table_header-item-operate[data-v-52171360]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item[data-v-52171360]{cursor:pointer;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item+.complex-table_header-item-operate_item[data-v-52171360]{margin-left:1px}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item.complex-table_header-item-operate_item--setting[data-v-52171360]{background:#005089}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item span[data-v-52171360]{font-size:14px;color:#fff}.complex-table_header-item-container.complex-table_header-item-container--hover .complex-table_header-item-operate[data-v-52171360]{opacity:.6}.complex-table_header-item-container.complex-table_header-item-container--line-mode[data-v-52171360]{border:1px dashed #bdbdbd;padding:2px}.complex-table_header-item-container.complex-table_header-item-container--line-mode.complex-table_header-item-container--selected[data-v-52171360]{border:1px solid #a90505}.complex-table_header-item-container.complex-table_header-item-container--line-mode.complex-table_header-item-container--hover[data-v-52171360]{border:1px dashed #a90505}.header-item-slash-container[data-v-ffbf2f7e]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.header-item-slash-container ._h-i-s-c_slash[data-v-ffbf2f7e]{position:absolute;display:block;height:1px;background-color:#000}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_slash[data-v-ffbf2f7e]{top:0;left:0}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_left[data-v-ffbf2f7e]{position:absolute;left:10px;bottom:5px}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_right[data-v-ffbf2f7e]{position:absolute;right:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_slash[data-v-ffbf2f7e]{bottom:0;left:0}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_left[data-v-ffbf2f7e]{position:absolute;left:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_right[data-v-ffbf2f7e]{position:absolute;right:10px;bottom:5px}.complex-table_pagination-container[data-v-1f0ef1d4]{width:100%;height:20px;line-height:20px;text-align:center}.complex-table-component-container[data-v-07547689]{width:100%;position:relative}.complex-table-component-container .complex-table-component-handle[data-v-07547689]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.complex-table-component-container .complex-table-component-handle span[data-v-07547689]{font-size:16px}.complex-table-component-container .complex-table-component-table[data-v-07547689]{width:100%;height:100%;overflow:hidden}.complex-table-component-container .complex-table-component-table td[data-v-07547689]{position:relative;word-break:break-all}.complex-table-component-container .complex-table-component-table .complex-table-component-table_header-td[data-v-07547689]{overflow:hidden}.complex-table-component-container .complex-table-component-table.complex-table-component-table--fixed-height[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--fixed-height td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-span[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-span td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-span td.complex-table-component-table_content-td .complex-table-component-table_content-td-container[data-v-07547689]{position:absolute;left:0;right:0;top:0;bottom:0}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-not-span[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-not-span td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-not-span td.complex-table-component-table_content-td .complex-table-component-table_content-td-container[data-v-07547689]{position:absolute;left:0;right:0;top:0;bottom:0}.complex-table-component-container .complex-table-component-table.complex-table-component-table--pagination-mode[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--pagination-mode td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--pagination-mode td.complex-table-component-table_content-td .complex-table-component-table_content-td-container[data-v-07547689]{position:absolute;left:0;right:0;top:0;bottom:0}.complex-table-component-container .complex-table-component-operate[data-v-07547689]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item[data-v-07547689]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item+.complex-table-component-operate_item[data-v-07547689]{margin-left:1px}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item.complex-table-component-operate_item--add[data-v-07547689],.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item.complex-table-component-operate_item--copy[data-v-07547689]{background:#005089}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item.complex-table-component-operate_item--delete[data-v-07547689]{background:#d50303}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item span[data-v-07547689]{font-size:14px}.complex-table-component-container.complex-table-component-container--hover .complex-table-component-handle[data-v-07547689],.complex-table-component-container.complex-table-component-container--hover .complex-table-component-operate[data-v-07547689]{opacity:.6}.complex-table-component-container.complex-table-component-container--line-mode[data-v-07547689]{padding:3px;outline:1px dashed #005089!important;margin-bottom:1px}.complex-table-component-container.complex-table-component-container--line-mode.complex-table-component-container--selected[data-v-07547689],.complex-table-component-container.complex-table-component-container--line-mode.complex-table-component-container--hover[data-v-07547689]{outline:1px solid #005089!important}.table-column-container[data-v-89983bbd]{position:relative}.table-column-container .table-column-handle[data-v-89983bbd]{position:absolute;z-index:1;left:0;top:0;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-column-container .table-column-handle span[data-v-89983bbd]{font-size:14px}.table-column-container .table-column-content[data-v-89983bbd]{height:100%;display:flex;flex-flow:column}.table-column-container .table-column-content .table-column-content_cell[data-v-89983bbd]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-column-container .table-column-content .table-column-content_cell--td[data-v-89983bbd]{height:0;flex:1}.table-column-container .table-column-operate[data-v-89983bbd]{position:absolute;z-index:1;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-column-container .table-column-operate .table-column-operate_item[data-v-89983bbd]{cursor:pointer;color:#fff;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-column-container .table-column-operate .table-column-operate_item+.table-column-operate_item[data-v-89983bbd]{margin-left:1px}.table-column-container .table-column-operate .table-column-operate_item.table-column-operate_item--add[data-v-89983bbd],.table-column-container .table-column-operate .table-column-operate_item.table-column-operate_item--copy[data-v-89983bbd]{background:#005089}.table-column-container .table-column-operate .table-column-operate_item.table-column-operate_item--delete[data-v-89983bbd]{background:#d50303}.table-column-container .table-column-operate .table-column-operate_item span[data-v-89983bbd]{font-size:12px}.table-column-container.table-column-container--hover .table-column-handle[data-v-89983bbd],.table-column-container.table-column-container--hover .table-column-operate[data-v-89983bbd]{opacity:.6}.table-component-container[data-v-711e0843]{width:100%;position:relative}.table-component-container .table-component-handle[data-v-711e0843]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-component-container .table-component-handle span[data-v-711e0843]{font-size:16px}.table-component-container .table-component-content[data-v-711e0843]{width:auto;display:inline-flex;flex-flow:row wrap}.table-component-container .table-component-operate[data-v-711e0843]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-component-container .table-component-operate .table-component-operate_item[data-v-711e0843]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-component-container .table-component-operate .table-component-operate_item+.table-component-operate_item[data-v-711e0843]{margin-left:1px}.table-component-container .table-component-operate .table-component-operate_item.table-component-operate_item--add[data-v-711e0843],.table-component-container .table-component-operate .table-component-operate_item.table-component-operate_item--copy[data-v-711e0843]{background:#005089}.table-component-container .table-component-operate .table-component-operate_item.table-component-operate_item--delete[data-v-711e0843]{background:#d50303}.table-component-container .table-component-operate .table-component-operate_item span[data-v-711e0843]{font-size:14px}.table-component-container.table-component-container--hover .table-component-handle[data-v-711e0843],.table-component-container.table-component-container--hover .table-component-operate[data-v-711e0843]{opacity:.6}.table-component-container.table-component-container--line-mode[data-v-711e0843]{outline:1px dashed #005089!important;padding:2px;margin-bottom:1px}.table-component-container.table-component-container--line-mode.table-component-container--selected[data-v-711e0843]{outline:1px solid #005089!important}.barcode-component-container[data-v-66fb7e8f]{width:100%;height:auto;position:relative}.barcode-component-container .barcode-error[data-v-66fb7e8f]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.qrcode-component-container[data-v-71bab811]{width:100%;height:auto;position:relative}.qrcode-component-container .barcode-error[data-v-71bab811]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.image-component-container[data-v-c2e27af5]{width:100%;height:auto}.image-component-container .image-component-content[data-v-c2e27af5]{width:100%;height:100%}.input-component-container[data-v-3feb5ab0],.input-component-container[data-v-4a14a0d2],.radio-component-container[data-v-f4f353da]{width:100%;height:auto;margin-bottom:0}.radio-component-container[data-v-f4f353da] .el-radio{height:auto!important;min-height:32px;margin-right:10px}.radio-component-container[data-v-f4f353da] .el-radio.el-radio--small{min-height:24px}.radio-component-container[data-v-f4f353da] .el-radio.el-radio--large{min-height:40px}.radio-component-container[data-v-f4f353da] .el-radio:last-of-type{margin-right:0}.radio-component-container[data-v-f4f353da] .el-radio .el-radio__label{word-break:break-all;white-space:pre-line;line-height:16px}.checkbox-component-container[data-v-eaadc793]{width:100%;height:auto;margin-bottom:0}.checkbox-component-container[data-v-eaadc793] .el-checkbox{height:auto!important;min-height:32px;margin-right:10px}.checkbox-component-container[data-v-eaadc793] .el-checkbox.el-checkbox--small{min-height:24px}.checkbox-component-container[data-v-eaadc793] .el-checkbox.el-checkbox--large{min-height:40px}.checkbox-component-container[data-v-eaadc793] .el-checkbox:last-of-type{margin-right:0}.checkbox-component-container[data-v-eaadc793] .el-checkbox .el-checkbox__label{word-break:break-all;white-space:pre-line;line-height:16px}.select-component-container[data-v-a09a8712]{width:100%;height:auto;margin-bottom:0}.select-component-container .el-radio[data-v-a09a8712]{margin-right:10px}.datetime-component-container[data-v-34c426c4]{width:100%;height:auto;margin-bottom:0}.datetime-component-container[data-v-34c426c4] .datetime-component{width:100%}.datetime-component-container[data-v-34c426c4] .datetime-component.datetime-component--hide-time-icon .el-input__prefix,.datetime-component-container[data-v-34c426c4] .datetime-component.datetime-component--hide-time-icon .el-input__prefix .el-input__icon{width:0;height:0}.grid-sortable-item-container[data-v-d1ba4d60]{width:100%;position:relative;overflow:hidden}.grid-sortable-item-container .grid-sortable-item-mask[data-v-d1ba4d60]{position:absolute;z-index:1;left:0;right:0;top:0;bottom:0;background:none}.grid-sortable-item-container .grid-sortable-item-handle[data-v-d1ba4d60]{position:absolute;z-index:2;left:0;top:0;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.grid-sortable-item-container .grid-sortable-item-handle span[data-v-d1ba4d60]{font-size:16px}.grid-sortable-item-container .grid-sortable-item-operate[data-v-d1ba4d60]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item[data-v-d1ba4d60]{cursor:pointer;color:#fff;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item+.grid-sortable-item-operate_item[data-v-d1ba4d60]{margin-left:1px}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item.grid-sortable-item-operate_item--copy[data-v-d1ba4d60]{background:#005089}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item.grid-sortable-item-operate_item--delete[data-v-d1ba4d60]{background:#d50303}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item span[data-v-d1ba4d60]{font-size:12px}.grid-sortable-item-container.grid-sortable-item-container--hover .grid-sortable-item-handle[data-v-d1ba4d60],.grid-sortable-item-container.grid-sortable-item-container--hover .grid-sortable-item-operate[data-v-d1ba4d60]{opacity:.6}.grid-sortable-item-container.grid-sortable-item-container--line-mode.grid-sortable-item-container--selected[data-v-d1ba4d60]{outline:1px solid #005089!important}.grid-sortable-item-container.grid-sortable-item-container--line-mode.grid-sortable-item-container--hover[data-v-d1ba4d60]{outline:1px dashed #005089!important}.grid-item-container[data-v-f1d90c45]{width:100%}.grid-item-container .grid-item-wrapper[data-v-f1d90c45]{width:100%;height:100%;position:relative}.grid-item-container .grid-item-content[data-v-f1d90c45]{height:100%}.grid-item-container .grid-item-content .grid-item-content_sortable-item[data-v-f1d90c45]{width:100%}.grid-item-container .grid-item-content .grid-item-content_sortable-item .table-component-container[data-v-f1d90c45]{padding:0;border:1px dashed #fff}.grid-item-container .grid-item-content .grid-item-content_sortable-item .table-component-container.table-component-container--selected[data-v-f1d90c45],.grid-item-container .grid-item-content .grid-item-content_sortable-item .table-component-container.table-component-container--hover[data-v-f1d90c45]{border:1px solid #005089}.grid-item-container .grid-item-operate[data-v-f1d90c45]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.grid-item-container .grid-item-operate .grid-item-operate_item[data-v-f1d90c45]{cursor:pointer;color:#fff;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center}.grid-item-container .grid-item-operate .grid-item-operate_item+.grid-item-operate_item[data-v-f1d90c45]{margin-left:1px}.grid-item-container .grid-item-operate .grid-item-operate_item.grid-item-operate_item--add[data-v-f1d90c45],.grid-item-container .grid-item-operate .grid-item-operate_item.grid-item-operate_item--copy[data-v-f1d90c45]{background:#005089}.grid-item-container .grid-item-operate .grid-item-operate_item.grid-item-operate_item--delete[data-v-f1d90c45]{background:#d50303}.grid-item-container .grid-item-operate .grid-item-operate_item span[data-v-f1d90c45]{font-size:14px}.grid-item-container.grid-item-container--hover .grid-item-handle[data-v-f1d90c45],.grid-item-container.grid-item-container--hover .grid-item-operate[data-v-f1d90c45]{opacity:.6}.grid-item-container.grid-item-container--line-mode[data-v-f1d90c45]{padding:2px;min-height:24px}.grid-item-container.grid-item-container--line-mode .grid-item-wrapper[data-v-f1d90c45]{border:1px dashed #999999;padding:3px}.grid-item-container.grid-item-container--line-mode.grid-item-container--selected .grid-item-wrapper[data-v-f1d90c45]{border:1px solid #a90505}.grid-item-container.grid-item-container--line-mode.grid-item-container--hover .grid-item-wrapper[data-v-f1d90c45]{border:1px dashed #a90505}.grid-component-container[data-v-2418daa0]{width:100%;position:relative}.grid-component-container .grid-component-handle[data-v-2418daa0]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.grid-component-container .grid-component-handle span[data-v-2418daa0]{font-size:16px}.grid-component-container .grid-component-content[data-v-2418daa0]{display:flex;flex-flow:row wrap}.grid-component-container .grid-component-operate[data-v-2418daa0]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.grid-component-container .grid-component-operate .grid-component-operate_item[data-v-2418daa0]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.grid-component-container .grid-component-operate .grid-component-operate_item+.grid-component-operate_item[data-v-2418daa0]{margin-left:1px}.grid-component-container .grid-component-operate .grid-component-operate_item.grid-component-operate_item--add[data-v-2418daa0],.grid-component-container .grid-component-operate .grid-component-operate_item.grid-component-operate_item--copy[data-v-2418daa0]{background:#005089}.grid-component-container .grid-component-operate .grid-component-operate_item.grid-component-operate_item--delete[data-v-2418daa0]{background:#d50303}.grid-component-container .grid-component-operate .grid-component-operate_item span[data-v-2418daa0]{font-size:14px}.grid-component-container.grid-component-container--line-mode[data-v-2418daa0]{outline:1px dashed #005089!important;margin-bottom:1px;padding:3px}.grid-component-container.grid-component-container--line-mode.grid-component-container--selected[data-v-2418daa0],.grid-component-container.grid-component-container--line-mode.grid-component-container--hover[data-v-2418daa0]{outline:1px solid #005089!important}.table-layout-sortable-item-container[data-v-67d85349]{width:100%;position:relative;overflow:hidden}.table-layout-sortable-item-container .table-layout-sortable-item-mask[data-v-67d85349]{position:absolute;z-index:2;left:0;right:0;top:0;bottom:0;background:none}.table-layout-sortable-item-container .table-layout-sortable-item-handle[data-v-67d85349]{position:absolute;z-index:3;left:0;top:0;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-layout-sortable-item-container .table-layout-sortable-item-handle span[data-v-67d85349]{font-size:16px}.table-layout-sortable-item-container .table-layout-sortable-item-operate[data-v-67d85349]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item[data-v-67d85349]{cursor:pointer;color:#fff;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item+.table-layout-sortable-item-operate_item[data-v-67d85349]{margin-left:1px}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item.table-layout-sortable-item-operate_item--copy[data-v-67d85349]{background:#005089}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item.table-layout-sortable-item-operate_item--delete[data-v-67d85349]{background:#d50303}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item span[data-v-67d85349]{font-size:12px}.table-layout-sortable-item-container.table-layout-sortable-item-container--hover .table-layout-sortable-item-handle[data-v-67d85349],.table-layout-sortable-item-container.table-layout-sortable-item-container--hover .table-layout-sortable-item-operate[data-v-67d85349]{opacity:.6}.table-layout-sortable-item-container.table-layout-sortable-item-container--line-mode.table-layout-sortable-item-container--selected[data-v-67d85349]{outline:1px solid #005089!important}.table-layout-sortable-item-container.table-layout-sortable-item-container--line-mode.table-layout-sortable-item-container--hover[data-v-67d85349]{outline:1px dashed #005089!important}.table-layout-item-container[data-v-f8c161d8]{width:100%;height:100%;position:relative}.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item[data-v-f8c161d8]{width:100%}.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item .table-component-container[data-v-f8c161d8]{padding:0;border:1px dashed #fff}.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item .table-component-container.table-component-container--selected[data-v-f8c161d8],.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item .table-component-container.table-component-container--hover[data-v-f8c161d8]{border:1px solid #005089}.table-layout-item-container .table-layout-item-operate[data-v-f8c161d8]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item[data-v-f8c161d8]{cursor:pointer;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item+.table-layout-item-operate_item[data-v-f8c161d8]{margin-left:1px}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item.table-layout-item-operate_item--setting[data-v-f8c161d8]{background:#005089}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item span[data-v-f8c161d8]{font-size:14px;color:#fff}.table-layout-item-container.table-layout-item-container--hover .table-layout-item-handle[data-v-f8c161d8],.table-layout-item-container.table-layout-item-container--hover .table-layout-item-operate[data-v-f8c161d8]{opacity:.6}.table-layout-item-container.table-layout-item-container--line-mode[data-v-f8c161d8]{border:1px dashed #bdbdbd;padding:2px}.table-layout-item-container.table-layout-item-container--line-mode.table-layout-item-container--selected[data-v-f8c161d8]{border:1px solid #a90505}.table-layout-item-container.table-layout-item-container--line-mode.table-layout-item-container--hover[data-v-f8c161d8]{border:1px dashed #a90505}.table-layout-item-slash-container[data-v-4e0e1c06]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.table-layout-item-slash-container ._t-l-i-s_slash[data-v-4e0e1c06]{position:absolute;display:block;height:1px;background-color:#000}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_slash[data-v-4e0e1c06]{top:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_left[data-v-4e0e1c06]{position:absolute;left:10px;bottom:5px}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_right[data-v-4e0e1c06]{position:absolute;right:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_slash[data-v-4e0e1c06]{bottom:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_left[data-v-4e0e1c06]{position:absolute;left:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_right[data-v-4e0e1c06]{position:absolute;right:10px;bottom:5px}.table-layout-component-container[data-v-89a52ee3]{width:100%;position:relative}.table-layout-component-container .table-layout-component-handle[data-v-89a52ee3]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-layout-component-container .table-layout-component-handle span[data-v-89a52ee3]{font-size:16px}.table-layout-component-container .table-layout-component-table[data-v-89a52ee3]{width:100%;height:100%}.table-layout-component-container .table-layout-component-table td[data-v-89a52ee3]{position:relative}.table-layout-component-container .table-layout-component-operate[data-v-89a52ee3]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item[data-v-89a52ee3]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item+.table-layout-component-operate_item[data-v-89a52ee3]{margin-left:1px}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item.table-layout-component-operate_item--add[data-v-89a52ee3],.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item.table-layout-component-operate_item--copy[data-v-89a52ee3]{background:#005089}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item.table-layout-component-operate_item--delete[data-v-89a52ee3]{background:#d50303}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item span[data-v-89a52ee3]{font-size:14px}.table-layout-component-container.table-layout-component-container--hover .table-layout-component-handle[data-v-89a52ee3],.table-layout-component-container.table-layout-component-container--hover .table-layout-component-operate[data-v-89a52ee3]{opacity:.6}.table-layout-component-container.table-layout-component-container--line-mode[data-v-89a52ee3]{padding:3px;outline:1px dashed #005089!important;margin-bottom:1px}.table-layout-component-container.table-layout-component-container--line-mode.table-layout-component-container--selected[data-v-89a52ee3],.table-layout-component-container.table-layout-component-container--line-mode.table-layout-component-container--hover[data-v-89a52ee3]{outline:1px solid #005089!important}.print-pagination-component-container[data-v-a330f66a]{width:100%;height:18px;background:none;position:relative}.print-pagination-component-container[data-v-a330f66a]:after{content:"";position:absolute;left:0;right:0;top:9px;border:1px dashed #333}.print-pagination-component-container .print-pagination-content[data-v-a330f66a]{position:absolute;top:1px;bottom:1px;left:50%;transform:translate(-50%);background:#fff;z-index:1;padding:0 10px;line-height:16px;font-size:12px}.panel-container .designer-components_chosen-item{width:100%;padding:5px;background:#ddd;display:flex;flex-flow:row;justify-content:center;align-items:center;outline:1px dashed #ababab!important;border-radius:5px}.panel-container .designer-components_chosen-item ._d-c-block_list-item-icon span{font-size:20px}.panel-container .designer-components_chosen-item ._d-c-block_list-item-label{font-size:14px;font-weight:700;margin-left:5px}.panel-container[data-v-9bd448d7]{width:auto;height:100%;overflow:auto;position:relative}.panel-container.panel-container--a5 .panel-wrapper[data-v-9bd448d7]{width:148mm;min-height:210mm}.panel-container.panel-container--a5-landscape .panel-wrapper[data-v-9bd448d7]{width:210mm;min-height:148mm}.panel-container.panel-container--a4 .panel-wrapper[data-v-9bd448d7]{width:210mm;min-height:297mm}.panel-container.panel-container--a4-landscape .panel-wrapper[data-v-9bd448d7]{width:297mm;min-height:210mm}.panel-container.panel-container--a3 .panel-wrapper[data-v-9bd448d7]{width:297mm;min-height:420mm}.panel-container.panel-container--a3-landscape .panel-wrapper[data-v-9bd448d7]{width:420mm;min-height:297mm}.panel-container .panel-wrapper[data-v-9bd448d7]{background:#fff;position:relative}.panel-container .panel-sortable-container[data-v-9bd448d7]{width:auto;display:flex;flex-flow:column;position:relative;padding-bottom:100px}.panel-container .panel-sortable-container.panel-sortable-container--empty[data-v-9bd448d7]:after{content:"点击或拖拽左侧组件到此处";width:100%;height:100px;display:flex;justify-content:center;align-items:center;font-size:28px;letter-spacing:1px;color:#9f9f9f}.panel-container .panel-sortable-container .panel-sortable-item[data-v-9bd448d7]{width:100%}.editor-container[data-v-e0cfbf08],.editor-container[data-v-e0cfbf08] .cm-editor{width:100%;height:100%}.wui-base-dialog_container[data-v-188a3b3f]{position:fixed}.wui-base-dialog_container .wui-base-dialog_mask[data-v-188a3b3f]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#37373799}.wui-base-dialog_container .wui-base-dialog_wrap[data-v-188a3b3f]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.wui-base-dialog_container .wui-base-dialog_modal[data-v-188a3b3f]{background:#fff;border-radius:10px;overflow:hidden;display:flex;flex-flow:column}.wui-base-dialog_container .wui-base-dialog_header[data-v-188a3b3f]{height:40px;background:var(--wui-print-theme-color);display:flex;flex-flow:row;padding-left:15px}.wui-base-dialog_container .wui-base-dialog_header.wui-base-dialog-move[data-v-188a3b3f]{cursor:move}.wui-base-dialog_container .wui-base-dialog_header .icon[data-v-188a3b3f]{height:40px;display:flex;justify-content:center;align-items:center;margin-right:3px}.wui-base-dialog_container .wui-base-dialog_header .icon i[data-v-188a3b3f]{font-size:16px;color:#fff}.wui-base-dialog_container .wui-base-dialog_header .title[data-v-188a3b3f]{flex:1;width:0;height:40px;line-height:40px;font-size:14px;color:#fff;font-weight:700;letter-spacing:1px;-webkit-user-select:none;user-select:none}.wui-base-dialog_container .wui-base-dialog_header .close[data-v-188a3b3f]{height:40px;padding:0 15px;display:flex;justify-content:center;align-items:center;font-size:18px;cursor:pointer;color:#fff}.wui-base-dialog_container .wui-base-dialog_header-none[data-v-188a3b3f]{height:10px}.wui-base-dialog_container .wui-base-dialog_header-none.wui-base-dialog-move[data-v-188a3b3f]{cursor:move}.wui-base-dialog_container .wui-base-dialog_body[data-v-188a3b3f]{height:0;flex:1;overflow:hidden}.wui-base-dialog_container .wui-base-dialog_body .wui-base-dialog_body-scrollbar[data-v-188a3b3f]{width:100%;height:100%}.wui-base-dialog_container .wui-base-dialog_footer[data-v-188a3b3f]{display:flex;align-items:center;justify-content:flex-end;padding:7px 10px;border-top:1px solid #dedede}.wui-base-dialog_container .wui-base-dialog_footer[data-v-188a3b3f] .el-button{height:30px}.wui-base-dialog_container .wui-base-dialog_footer[data-v-188a3b3f] .el-button+.el-button{margin-left:5px}.print-dialog-container[data-v-23342844]{width:100%;height:100%;display:flex;background:#eee}.print-dialog-container .print-dialog-code[data-v-23342844]{width:300px;height:100%;background:#fff;border-right:1px solid #a1a1a1}.print-dialog-container .print-dialog-iframe-container[data-v-23342844]{width:0;flex:1}.print-dialog-container .print-dialog-iframe-container iframe[data-v-23342844]{width:100%;height:100%;border:none}.dynamic-text-component-container[data-v-f59b6d3c]{width:100%;height:auto;display:flex}.dynamic-text-component-container .dynamic-text-component-container_text[data-v-f59b6d3c]{width:0;flex:1;color:#333;overflow-wrap:break-word}.text-component-container[data-v-e71b87db]{width:100%;height:auto}.table-component-container[data-v-3238709e]{width:100%;height:100}.header-item-slash-container[data-v-0fbc56c2]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.header-item-slash-container ._h-i-s-c_slash[data-v-0fbc56c2]{position:absolute;display:block;height:1px;background-color:#000}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_slash[data-v-0fbc56c2]{top:0;left:0}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_left[data-v-0fbc56c2]{position:absolute;left:10px;bottom:5px}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_right[data-v-0fbc56c2]{position:absolute;right:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_slash[data-v-0fbc56c2]{bottom:0;left:0}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_left[data-v-0fbc56c2]{position:absolute;left:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_right[data-v-0fbc56c2]{position:absolute;right:10px;bottom:5px}.complex-table_pagination-container[data-v-4aa8c242]{width:100%;height:20px;line-height:20px;text-align:center}.complex-table-component-container[data-v-8e89d2fd]{width:100%;position:relative}.complex-table-component-container .complex-table-component-table[data-v-8e89d2fd]{width:100%;height:100%}.complex-table-component-container .complex-table-component-table td[data-v-8e89d2fd]{position:relative;word-break:break-all}.complex-table-component-container.complex-table-component-container--fixed-height .complex-table-component-table[data-v-8e89d2fd]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container.complex-table-component-container--fixed-height .complex-table-component-table tr>td[data-v-8e89d2fd]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-span .complex-table-component-table[data-v-8e89d2fd]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-span .complex-table-component-table tr>td[data-v-8e89d2fd]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-not-span .complex-table-component-table[data-v-8e89d2fd]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-not-span .complex-table-component-table tr>td[data-v-8e89d2fd]{border-bottom:1px solid #000;border-right:1px solid #000}.barcode-component-container[data-v-9afba07f]{width:100%;height:auto;position:relative}.barcode-component-container .barcode-error[data-v-9afba07f]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.qrcode-component-container[data-v-a83eeb76]{width:100%;height:auto;position:relative}.qrcode-component-container .barcode-error[data-v-a83eeb76]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.image-component-container[data-v-40f5ffdf]{width:100%;height:auto}.image-component-container .image-component-content[data-v-40f5ffdf]{width:100%;height:100%}.input-component-container[data-v-a590cd7b],.textarea-component-container[data-v-3fcf7d21],.radio-component-container[data-v-375e469b]{width:100%;height:auto;margin-bottom:0}.radio-component-container[data-v-375e469b] .el-radio{height:auto!important;min-height:32px;margin-right:10px}.radio-component-container[data-v-375e469b] .el-radio.el-radio--small{min-height:24px}.radio-component-container[data-v-375e469b] .el-radio.el-radio--large{min-height:40px}.radio-component-container[data-v-375e469b] .el-radio:last-of-type{margin-right:0}.radio-component-container[data-v-375e469b] .el-radio .el-radio__label{word-break:break-all;white-space:pre-line;line-height:16px}.checkbox-component-container[data-v-7153842c]{width:100%;height:auto;margin-bottom:0}.checkbox-component-container[data-v-7153842c] .el-checkbox{height:auto!important;min-height:32px;margin-right:10px}.checkbox-component-container[data-v-7153842c] .el-checkbox.el-checkbox--small{min-height:24px}.checkbox-component-container[data-v-7153842c] .el-checkbox.el-checkbox--large{min-height:40px}.checkbox-component-container[data-v-7153842c] .el-checkbox:last-of-type{margin-right:0}.checkbox-component-container[data-v-7153842c] .el-checkbox .el-checkbox__label{word-break:break-all;white-space:pre-line;line-height:16px}.select-component-container[data-v-dc58154e]{width:100%;height:auto;margin-bottom:0}.select-component-container .el-radio[data-v-dc58154e]{margin-right:10px}.datetime-component-container[data-v-f6f5348b]{width:100%;height:auto;margin-bottom:0}.datetime-component-container[data-v-f6f5348b] .datetime-component{width:100%}.datetime-component-container[data-v-f6f5348b] .datetime-component.datetime-component--hide-time-icon .el-input__prefix,.datetime-component-container[data-v-f6f5348b] .datetime-component.datetime-component--hide-time-icon .el-input__prefix .el-input__icon{width:0;height:0}.grid-item-container[data-v-6ab6083e]{width:100%}.grid-component-container[data-v-9fca917c]{width:100%;display:flex;flex-flow:row wrap}.table-layout-item-container[data-v-c883987a]{width:100%;height:100%}.table-layout-item-slash-container[data-v-14903364]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.table-layout-item-slash-container ._t-l-i-s_slash[data-v-14903364]{position:absolute;display:block;height:1px;background-color:#000}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_slash[data-v-14903364]{top:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_left[data-v-14903364]{position:absolute;left:10px;bottom:5px}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_right[data-v-14903364]{position:absolute;right:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_slash[data-v-14903364]{bottom:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_left[data-v-14903364]{position:absolute;left:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_right[data-v-14903364]{position:absolute;right:10px;bottom:5px}.table-layout-component-container[data-v-e53d72c5]{width:100%}.table-layout-component-container .table-layout-component-table[data-v-e53d72c5]{width:100%;height:100%}.table-layout-component-container .table-layout-component-table td[data-v-e53d72c5]{position:relative}.print-default-form-container[data-v-6af9b1c3]{width:210mm;background:#fff}.print-default-form-container.print-default-form-container--a5[data-v-6af9b1c3]{width:148mm}.print-default-form-container.print-default-form-container--a5-landscape[data-v-6af9b1c3],.print-default-form-container.print-default-form-container--a4[data-v-6af9b1c3]{width:210mm}.print-default-form-container.print-default-form-container--a4-landscape[data-v-6af9b1c3],.print-default-form-container.print-default-form-container--a3[data-v-6af9b1c3]{width:297mm}.print-default-form-container.print-default-form-container--a3-landscape[data-v-6af9b1c3]{width:420mm}.preview-form-dialog[data-v-dd31a580]{width:100%;height:100%;padding:10px;background:#eee;display:flex;flex-flow:row}.preview-form-dialog .preview-form-dialog_code[data-v-dd31a580]{width:300px;height:100%;border:1px solid #b5b5b5}.preview-form-dialog .preview-form-dialog_form[data-v-dd31a580]{width:0;flex:1;padding:0 5px;overflow:auto}.preview-form-dialog .preview-form-dialog_form .preview-form-dialog_print-form[data-v-dd31a580]{margin:0 auto}.designer-panel-header_slot-operate-buttons{margin-left:10px;margin-right:10px;display:flex;flex-flow:row}.designer-panel-header_slot-operate-buttons>.el-button+.el-button{margin-left:3px}.designer-panel-header_slot-operate-buttons>.el-button+div{margin-left:3px}.designer-panel-header_slot-operate-buttons>div+.el-button{margin-left:3px}.designer-panel-header_slot-operate-buttons>div+div{margin-left:3px}.print-designer_designer-panel-container[data-v-d73423af]{width:0;flex:1;background:#ddd;display:flex;flex-flow:column;position:relative}.print-designer_designer-panel-container .designer-panel-header[data-v-d73423af]{height:40px;border-bottom:1px solid var(--wui-print-border-color--light);background:#fff;display:flex;flex-flow:row;align-items:center;padding:0 10px}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_title[data-v-d73423af]{font-weight:700;width:0;flex:1;overflow:hidden}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate[data-v-d73423af]{display:flex;flex-flow:row}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate .designer-panel-header_operate-item+.designer-panel-header_operate-item[data-v-d73423af]{margin-left:3px}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate .designer-panel-header_operate-item .designer-panel-header_operate-item_dropdown-button[data-v-d73423af]{width:90px}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate .designer-panel-header_operate-item .designer-panel-header_operate-item_dropdown-button .designer-panel-header_operate-item_dropdown-button_icon[data-v-d73423af]{font-size:12px}.print-designer_designer-panel-container .designer-panel-main[data-v-d73423af]{height:0;flex:1;display:flex;align-items:center;justify-content:center;padding:5px}.print-designer_config-tabs-container[data-v-62f8e19e]{width:350px;height:100%;background:#fff;display:flex;flex-flow:column;border-left:1px solid var(--wui-print-border-color--light)}.print-designer_config-tabs-container .config-tabs-header[data-v-62f8e19e]{height:40px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;border-bottom:1px solid var(--wui-print-border-color--light)}.print-designer_config-tabs-container .config-tabs-nav[data-v-62f8e19e]{height:40px;display:flex;flex-flow:row;border-bottom:1px solid var(--wui-print-border-color--light)}.print-designer_config-tabs-container .config-tabs-nav .config-tabs-nav_item[data-v-62f8e19e]{flex:1;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;border-bottom:2px solid #fff}.print-designer_config-tabs-container .config-tabs-nav .config-tabs-nav_item.config-tabs-nav_item--active[data-v-62f8e19e]{color:var(--wui-print-theme-color);border-bottom:2px solid var(--wui-print-theme-color)}.print-designer_config-tabs-container .config-tabs-main[data-v-62f8e19e]{height:0;flex:1}.style-space-config-container[data-v-0bd01768]{background:#f2cea5;padding:26px 55px;position:relative;margin-bottom:10px}.style-space-config-container.active[data-v-0bd01768]{background-color:#e99f4b}.style-space-config-container ._s-p-c_margin-title[data-v-0bd01768]{position:absolute;left:8px;top:5px;font-size:12px}.style-space-config-container ._s-p-c_margin-operate[data-v-0bd01768]{position:absolute;right:8px;top:5px;display:flex;flex-flow:row}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item[data-v-0bd01768]{padding:0 2px;cursor:pointer}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item span[data-v-0bd01768]{font-size:16px}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all[data-v-0bd01768]{position:relative}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all[data-v-0bd01768]:after{content:"选中设置全部";position:absolute;padding:4px 5px;white-space:nowrap;bottom:100%;left:50%;transform:translate(-50%);background-color:#000;color:#fff;border-radius:5px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all[data-v-0bd01768]:hover:after{opacity:1;visibility:visible}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all.active span[data-v-0bd01768]{color:#001ebd}.style-space-config-container ._s-p-c_padding-config[data-v-0bd01768]{width:100%;height:70px;background:#c6cf92;padding:28px 60px;position:relative}.style-space-config-container ._s-p-c_padding-config.active[data-v-0bd01768]{background-color:#a6b744}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-title[data-v-0bd01768]{position:absolute;left:5px;top:3px;font-size:12px}.style-space-config-container ._s-p-c_padding-config ._s-p-c_box[data-v-0bd01768]{width:100%;height:100%;background:#5192a7}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate[data-v-0bd01768]{position:absolute;right:3px;top:3px;display:flex;flex-flow:row}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item[data-v-0bd01768]{padding:0 2px;cursor:pointer}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item span[data-v-0bd01768]{font-size:16px}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all[data-v-0bd01768]{position:relative}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all[data-v-0bd01768]:after{content:"选中设置全部";position:absolute;padding:4px 5px;white-space:nowrap;bottom:100%;left:50%;transform:translate(-50%);background-color:#000;color:#fff;border-radius:5px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all[data-v-0bd01768]:hover:after{opacity:1;visibility:visible}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all.active span[data-v-0bd01768]{color:#001ebd}.style-space-config-container ._s-p-c_input[data-v-0bd01768]{position:absolute;width:50px;z-index:1;color:#fff}.style-space-config-container ._s-p-c_input[data-v-0bd01768] .el-input__wrapper{background:none;border-radius:0;box-shadow:none;border-bottom:1px solid #4d4d4d}.style-space-config-container ._s-p-c_input[data-v-0bd01768] .el-input__wrapper .el-input__inner{height:20px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-top[data-v-0bd01768]{top:0;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-bottom[data-v-0bd01768]{bottom:3px;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-left[data-v-0bd01768]{left:3px;top:50%;margin-top:-12px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-right[data-v-0bd01768]{right:3px;top:50%;margin-top:-12px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-top[data-v-0bd01768]{top:2px;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-bottom[data-v-0bd01768]{bottom:3px;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-left[data-v-0bd01768]{left:5px;top:50%;margin-top:-14px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-right[data-v-0bd01768]{right:5px;top:50%;margin-top:-14px}.font-config-container[data-v-e87bcf95]{width:100%;height:auto;margin-bottom:10px}.font-config-container .font-config-header[data-v-e87bcf95]{display:flex;flex-flow:row;align-items:center;padding-left:2px;padding-bottom:5px}.font-config-container .font-config-header .font-config-header_title[data-v-e87bcf95]{padding-left:2px}.font-config-container .font-config-header .font-config-header_icon[data-v-e87bcf95]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:20px}.font-config-container .font-config-header .font-config-header_preview[data-v-e87bcf95]{color:#838383;width:0;flex:1}.font-config-container .font-config-content[data-v-e87bcf95]{padding:5px;background:#eee;display:flex;flex-flow:row wrap}.font-config-container .font-config-content .font-config-content_item[data-v-e87bcf95]{flex:0 0 50%;padding:2px;display:flex;flex-flow:column}.font-config-container .font-config-content .font-config-content_item .font-config-content_item-label[data-v-e87bcf95]{margin-bottom:5px}.border-config-container[data-v-7599b4ca]{width:100%;height:auto;margin-bottom:10px}.border-config-container .border-config-header[data-v-7599b4ca]{display:flex;flex-flow:row;align-items:center;padding-left:2px;padding-bottom:5px}.border-config-container .border-config-header .border-config-header_title[data-v-7599b4ca]{padding-left:2px}.border-config-container .border-config-header .border-config-header_icon[data-v-7599b4ca]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:20px}.border-config-container .border-config-header .border-config-header_preview[data-v-7599b4ca]{color:#838383;height:22px;width:0;flex:1;text-align:center;display:flex;align-items:center;justify-content:center}.border-config-container .border-config-header .border-config-header_operate[data-v-7599b4ca]{margin-left:20px;display:flex;flex-flow:row}.border-config-container .border-config-header .border-config-header_operate span[data-v-7599b4ca]{cursor:pointer;font-size:16px}.border-config-container .border-config-content[data-v-7599b4ca]{padding:5px;background:#eee;display:flex;flex-flow:row}.border-config-container .border-config-content .border-config-content_left[data-v-7599b4ca]{width:100px;height:100px;position:relative}.border-config-container .border-config-content .border-config-content_border-icon[data-v-7599b4ca]{width:30px;height:30px;display:flex;justify-content:center;align-items:center;cursor:pointer}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--selected span[data-v-7599b4ca]{color:#005089}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--center[data-v-7599b4ca]{position:absolute;left:33px;top:33px}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--left[data-v-7599b4ca]{position:absolute;left:0;top:33px}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--right[data-v-7599b4ca]{position:absolute;right:0;top:33px}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--top[data-v-7599b4ca]{position:absolute;left:33px;top:0}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--bottom[data-v-7599b4ca]{position:absolute;left:33px;bottom:0}.border-config-container .border-config-content .border-config-content_border-icon span[data-v-7599b4ca]{font-size:24px;color:#000}.border-config-container .border-config-content .border-config-content_form[data-v-7599b4ca]{width:0;flex:1;display:flex;flex-flow:column;justify-content:center;padding:0 10px}.border-config-container .border-config-content .border-config-content_form .border-config-content_form-item+.border-config-content_form-item[data-v-7599b4ca]{margin-top:5px}.component-config-container[data-v-77d38c10]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-77d38c10]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-77d38c10]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-77d38c10]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-77d38c10]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-77d38c10]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-77d38c10]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-77d38c10]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-77d38c10]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-77d38c10]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-77d38c10] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-d983882f]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-d983882f]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-d983882f]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-d983882f]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-d983882f]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-d983882f]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-d983882f]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-d983882f]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-d983882f]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-d983882f]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-d983882f] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-c2bab41c]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-c2bab41c]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-c2bab41c]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-c2bab41c]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-c2bab41c]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-c2bab41c]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-c2bab41c]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-c2bab41c]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-c2bab41c]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-c2bab41c]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-c2bab41c] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-bada5acf]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-bada5acf]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-bada5acf]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-bada5acf]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-bada5acf]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-bada5acf]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-bada5acf]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-bada5acf]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-bada5acf]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-bada5acf]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-bada5acf] .color-picker--not-border .el-color-picker__trigger{border:none}.columns-field-config-container[data-v-bba377bc]{width:100%;border:1px solid #bdbdbd;padding:5px}.columns-field-config-container .columns-field-operate[data-v-bba377bc]{margin-bottom:2px}.columns-field-config-container .columns-field-content[data-v-bba377bc]{height:auto}.columns-field-config-container .columns-field-item[data-v-bba377bc]{display:flex;flex-flow:row;align-items:center;border:1px solid #eee;padding:3px 0}.columns-field-config-container .columns-field-item+.columns-field-item[data-v-bba377bc]{margin-top:2px}.columns-field-config-container .columns-field-item .columns-field-item_label[data-v-bba377bc]{width:60px;text-align:right;padding-right:3px;font-weight:700}.columns-field-config-container .columns-field-item .columns-field-item_content[data-v-bba377bc]{width:0;flex:1}.columns-field-config-container .columns-field-item .columns-field-item_operate[data-v-bba377bc]{display:flex;flex-flow:row;align-items:center;padding-left:3px}.columns-field-config-container .columns-field-item .columns-field-item_operate .el-button[data-v-bba377bc]{padding:1px 5px;height:20px;margin:0}.columns-field-config-container .columns-field-item .columns-field-item_operate .el-button+.el-button[data-v-bba377bc]{margin-left:1px}.component-config-container[data-v-ef6c1768]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-ef6c1768]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-ef6c1768]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-ef6c1768]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-ef6c1768]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-ef6c1768]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-ef6c1768]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-ef6c1768]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-ef6c1768]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-ef6c1768]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-ef6c1768] .color-picker--not-border .el-color-picker__trigger{border:none}.slash-direction-config-container[data-v-214be2f2]{display:flex;flex-flow:row}.slash-direction-config-container .slash-direction-item[data-v-214be2f2]{width:100px;height:30px;border:1px solid #ababab;cursor:pointer;position:relative;overflow:hidden}.slash-direction-config-container .slash-direction-item+.slash-direction-item[data-v-214be2f2]{margin-left:5px}.slash-direction-config-container .slash-direction-item.slash-direction-item--top-left .slash-direction-item_slash[data-v-214be2f2]{position:absolute;display:block;top:0;left:0;width:101.92153845px;height:1px;background-color:#ababab;transform:rotate(15.9453959deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--bottom-left .slash-direction-item_slash[data-v-214be2f2]{position:absolute;display:block;bottom:0;left:0;width:133.41664064px;height:1px;background-color:#ababab;transform:rotate(-16.69924423deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--active[data-v-214be2f2]{border:1px solid #02487b}.slash-direction-config-container .slash-direction-item.slash-direction-item--active .slash-direction-item_slash[data-v-214be2f2]{background-color:#02487b}.component-config-container[data-v-a925b83e]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-a925b83e]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-a925b83e]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-a925b83e]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-a925b83e]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-a925b83e]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-a925b83e]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-a925b83e]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-a925b83e]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-a925b83e]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-a925b83e] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-0efcc35f]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-0efcc35f]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-0efcc35f]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-0efcc35f]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-0efcc35f]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-0efcc35f]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-0efcc35f]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-0efcc35f]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-0efcc35f]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-0efcc35f]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-0efcc35f] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-d274db71]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-d274db71]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-d274db71]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-d274db71]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-d274db71]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-d274db71]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-d274db71]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-d274db71]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-d274db71]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-d274db71]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-d274db71] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-e48dcaf0]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-e48dcaf0]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-e48dcaf0]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-e48dcaf0]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-e48dcaf0]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-e48dcaf0]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-e48dcaf0]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-e48dcaf0]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-e48dcaf0]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-e48dcaf0]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-e48dcaf0] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-8cf9cec6]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-8cf9cec6]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-8cf9cec6]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-8cf9cec6]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-8cf9cec6]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-8cf9cec6]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-8cf9cec6]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-8cf9cec6]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-8cf9cec6]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-8cf9cec6]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-8cf9cec6] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-b21e1c1d]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-b21e1c1d]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-b21e1c1d]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-b21e1c1d]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-b21e1c1d]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-b21e1c1d]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-b21e1c1d]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-b21e1c1d]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-b21e1c1d]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-b21e1c1d]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-b21e1c1d] .color-picker--not-border .el-color-picker__trigger{border:none}.data-source-config-container[data-v-df68cfbd]{width:100%;border:1px solid #bdbdbd;padding:5px}.data-source-config-container .data-source-operate[data-v-df68cfbd]{margin-bottom:2px}.data-source-config-container .data-source-item_main[data-v-df68cfbd]{display:flex;flex-flow:column}.data-source-config-container .data-source-item[data-v-df68cfbd]{display:flex;flex-flow:row;border:1px solid #eee;padding:3px 0}.data-source-config-container .data-source-item+.data-source-item[data-v-df68cfbd]{margin-top:2px}.data-source-config-container .data-source-item .data-source-item_main[data-v-df68cfbd]{width:0;flex:1;display:flex;flex-flow:column}.data-source-config-container .data-source-item .data-source-item_operate[data-v-df68cfbd]{width:60px;display:flex;flex-flow:column;align-items:center}.data-source-config-container .data-source-item .data-source-item_operate .el-button[data-v-df68cfbd]{padding:1px 5px;height:20px;margin:0}.data-source-config-container .data-source-item .data-source-item_operate .el-button+.el-button[data-v-df68cfbd]{margin-top:1px}.data-source-config-container .data-source-item_row[data-v-df68cfbd]{display:flex;flex-flow:row}.data-source-config-container .data-source-item_row+.data-source-item_row[data-v-df68cfbd]{margin-top:2px}.data-source-config-container .data-source-item_row .data-source-item_row-label[data-v-df68cfbd]{width:40px;text-align:right;padding-right:3px}.data-source-config-container .data-source-item_row .data-source-item_row-content[data-v-df68cfbd]{width:0;flex:1}.component-config-container[data-v-69ff94bb]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-69ff94bb]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-69ff94bb]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-69ff94bb]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-69ff94bb]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-69ff94bb]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-69ff94bb]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-69ff94bb]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-69ff94bb]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-69ff94bb]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-69ff94bb] .color-picker--not-border .el-color-picker__trigger{border:none}.default-value-container[data-v-52c045d8]{width:100%;border:1px solid #bdbdbd;padding:5px}.default-value-container .default-value-operate[data-v-52c045d8]{margin-bottom:2px}.default-value-container .default-value-item[data-v-52c045d8]{display:flex;flex-flow:row}.default-value-container .default-value-item+.default-value-item[data-v-52c045d8]{margin-top:2px}.default-value-container .default-value-item .default-value-item_main[data-v-52c045d8]{width:0;flex:1}.default-value-container .default-value-item .default-value-item_operate[data-v-52c045d8]{margin-left:2px}.data-source-config-container[data-v-eafac6c5]{width:100%;border:1px solid #bdbdbd;padding:5px}.data-source-config-container .data-source-operate[data-v-eafac6c5]{margin-bottom:2px}.data-source-config-container .data-source-item_main[data-v-eafac6c5]{display:flex;flex-flow:column}.data-source-config-container .data-source-item[data-v-eafac6c5]{display:flex;flex-flow:row;border:1px solid #eee;padding:3px 0}.data-source-config-container .data-source-item+.data-source-item[data-v-eafac6c5]{margin-top:2px}.data-source-config-container .data-source-item .data-source-item_main[data-v-eafac6c5]{width:0;flex:1;display:flex;flex-flow:column}.data-source-config-container .data-source-item .data-source-item_operate[data-v-eafac6c5]{width:60px;display:flex;flex-flow:column;align-items:center}.data-source-config-container .data-source-item .data-source-item_operate .el-button[data-v-eafac6c5]{padding:1px 5px;height:20px;margin:0}.data-source-config-container .data-source-item .data-source-item_operate .el-button+.el-button[data-v-eafac6c5]{margin-top:1px}.data-source-config-container .data-source-item_row[data-v-eafac6c5]{display:flex;flex-flow:row}.data-source-config-container .data-source-item_row+.data-source-item_row[data-v-eafac6c5]{margin-top:2px}.data-source-config-container .data-source-item_row .data-source-item_row-label[data-v-eafac6c5]{width:40px;text-align:right;padding-right:3px}.data-source-config-container .data-source-item_row .data-source-item_row-content[data-v-eafac6c5]{width:0;flex:1}.component-config-container[data-v-d27523aa]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-d27523aa]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-d27523aa]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-d27523aa]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-d27523aa]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-d27523aa]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-d27523aa]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-d27523aa]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-d27523aa]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-d27523aa]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-d27523aa] .color-picker--not-border .el-color-picker__trigger{border:none}.data-source-config-container[data-v-85f8a22e]{width:100%;border:1px solid #bdbdbd;padding:5px}.data-source-config-container .data-source-operate[data-v-85f8a22e]{margin-bottom:2px}.data-source-config-container .data-source-item_main[data-v-85f8a22e]{display:flex;flex-flow:column}.data-source-config-container .data-source-item[data-v-85f8a22e]{display:flex;flex-flow:row;border:1px solid #eee;padding:3px 0}.data-source-config-container .data-source-item+.data-source-item[data-v-85f8a22e]{margin-top:2px}.data-source-config-container .data-source-item .data-source-item_main[data-v-85f8a22e]{width:0;flex:1;display:flex;flex-flow:column}.data-source-config-container .data-source-item .data-source-item_operate[data-v-85f8a22e]{width:60px;display:flex;flex-flow:column;align-items:center}.data-source-config-container .data-source-item .data-source-item_operate .el-button[data-v-85f8a22e]{padding:1px 5px;height:20px;margin:0}.data-source-config-container .data-source-item .data-source-item_operate .el-button+.el-button[data-v-85f8a22e]{margin-top:1px}.data-source-config-container .data-source-item_row[data-v-85f8a22e]{display:flex;flex-flow:row}.data-source-config-container .data-source-item_row+.data-source-item_row[data-v-85f8a22e]{margin-top:2px}.data-source-config-container .data-source-item_row .data-source-item_row-label[data-v-85f8a22e]{width:40px;text-align:right;padding-right:3px}.data-source-config-container .data-source-item_row .data-source-item_row-content[data-v-85f8a22e]{width:0;flex:1}.component-config-container[data-v-8034818f]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-8034818f]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-8034818f]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-8034818f]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-8034818f]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-8034818f]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-8034818f]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-8034818f]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-8034818f]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-8034818f]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-8034818f] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-85bb68d8]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-85bb68d8]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-85bb68d8]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-85bb68d8]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-85bb68d8]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-85bb68d8]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-85bb68d8]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-85bb68d8]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-85bb68d8]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-85bb68d8]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-85bb68d8] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-05c220d3]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-05c220d3]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-05c220d3]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-05c220d3]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-05c220d3]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-05c220d3]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-05c220d3]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-05c220d3]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-05c220d3]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-05c220d3]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-05c220d3] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-6354b92c]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-6354b92c]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-6354b92c]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-6354b92c]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-6354b92c]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-6354b92c]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-6354b92c]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-6354b92c]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-6354b92c]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-6354b92c]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-6354b92c] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-c79eb0bc]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-c79eb0bc]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-c79eb0bc]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-c79eb0bc]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-c79eb0bc]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-c79eb0bc]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-c79eb0bc]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-c79eb0bc]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-c79eb0bc]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-c79eb0bc]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-c79eb0bc] .color-picker--not-border .el-color-picker__trigger{border:none}.slash-direction-config-container[data-v-94ec41ef]{display:flex;flex-flow:row}.slash-direction-config-container .slash-direction-item[data-v-94ec41ef]{width:100px;height:30px;border:1px solid #ababab;cursor:pointer;position:relative;overflow:hidden}.slash-direction-config-container .slash-direction-item+.slash-direction-item[data-v-94ec41ef]{margin-left:5px}.slash-direction-config-container .slash-direction-item.slash-direction-item--top-left .slash-direction-item_slash[data-v-94ec41ef]{position:absolute;display:block;top:0;left:0;width:101.92153845px;height:1px;background-color:#ababab;transform:rotate(15.9453959deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--bottom-left .slash-direction-item_slash[data-v-94ec41ef]{position:absolute;display:block;bottom:0;left:0;width:133.41664064px;height:1px;background-color:#ababab;transform:rotate(-16.69924423deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--active[data-v-94ec41ef]{border:1px solid #02487b}.slash-direction-config-container .slash-direction-item.slash-direction-item--active .slash-direction-item_slash[data-v-94ec41ef]{background-color:#02487b}.component-config-container[data-v-ed3f9785]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-ed3f9785]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-ed3f9785]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-ed3f9785]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-ed3f9785]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-ed3f9785]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-ed3f9785]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-ed3f9785]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-ed3f9785]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-ed3f9785]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-ed3f9785] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-816a21bb]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-816a21bb]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-816a21bb]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-816a21bb]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-816a21bb]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-816a21bb]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-816a21bb]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-816a21bb]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-816a21bb]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-816a21bb]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-816a21bb] .color-picker--not-border .el-color-picker__trigger{border:none}.print-designer_component-config-container[data-v-450ac038]{width:100%;height:100%}.print-designer_component-config-container .print-designer_component-config-hint[data-v-450ac038]{text-align:center;padding:20px 0;font-size:24px;letter-spacing:1px;color:var(--wui-print-placeholder-color)}.print-designer_print-config-container[data-v-e99696c4]{width:100%;height:100%;padding:10px;overflow:auto}.print-designer_print-config-container .print-config_label-width[data-v-e99696c4]{width:100%;display:flex;flex-flow:row}.print-designer_print-config-container .print-config_label-width .print-config_label-width-input[data-v-e99696c4]{width:0;flex:1}.print-designer_print-config-container .print-config_label-width .print-config_label-width-unit[data-v-e99696c4]{width:100px;margin-left:5px}.print-designer_print-config-container .print-config-divider[data-v-e99696c4]{border-top:1px solid #d1d1d1;display:block;height:1px;margin:20px 0;width:100%;position:relative}.print-designer_print-config-container .print-config-divider .print-config-divider_text[data-v-e99696c4]{background-color:#fff;color:#000;font-size:16px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.print-designer_print-config-container[data-v-e99696c4] .color-picker--not-border .el-color-picker__trigger{border:none}.print-designer_form-config-container[data-v-9b247795]{width:100%;height:100%;padding:10px;overflow:auto}.print-designer_form-config-container .form-config_label-width[data-v-9b247795]{width:100%;display:flex;flex-flow:row}.print-designer_form-config-container .form-config_label-width .form-config_label-width-input[data-v-9b247795]{width:0;flex:1}.print-designer_form-config-container .form-config_label-width .form-config_label-width-unit[data-v-9b247795]{width:100px;margin-left:5px}.print-designer_form-config-container .form-config-divider[data-v-9b247795]{border-top:1px solid #d1d1d1;display:block;height:1px;margin:20px 0;width:100%;position:relative}.print-designer_form-config-container .form-config-divider .form-config-divider_text[data-v-9b247795]{background-color:#fff;color:#000;font-size:16px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.print-designer_form-config-container[data-v-9b247795] .color-picker--not-border .el-color-picker__trigger{border:none}.print-designer-container[data-v-89cd7b90]{width:100%;height:100%;display:flex;flex-flow:row}
1
+ (function(e,cr){typeof exports=="object"&&typeof module<"u"?module.exports=cr(require("vue")):typeof define=="function"&&define.amd?define(["vue"],cr):(e=typeof globalThis<"u"?globalThis:e||self,e.WuiPrint=cr(e.Vue))})(this,function(e){"use strict";var cr=document.createElement("style");cr.textContent=`.print-designer_designer-components-container[data-v-dc57e38f]{width:300px;background:#fff;border-right:1px solid var(--wui-print-border-color--light);display:flex;flex-flow:column}.print-designer_designer-components-container ._d-c-header[data-v-dc57e38f]{height:40px;text-align:center;line-height:40px;font-weight:700;border-bottom:1px solid var(--wui-print-border-color--light)}.print-designer_designer-components-container ._d-c-main[data-v-dc57e38f]{height:0;flex:1;overflow-x:hidden;overflow-y:auto;padding:10px}.print-designer_designer-components-container ._d-c-block[data-v-dc57e38f]{border:2px solid #eeeeee;padding:10px}.print-designer_designer-components-container ._d-c-block+._d-c-block[data-v-dc57e38f]{margin-top:10px}.print-designer_designer-components-container ._d-c-block_label[data-v-dc57e38f]{font-size:16px;font-weight:700}.print-designer_designer-components-container ._d-c-block_list[data-v-dc57e38f]{padding:8px;display:flex;flex-flow:row wrap}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item[data-v-dc57e38f]{display:flex;flex-flow:column;flex:0 0 33.33333%;align-items:center;padding:5px}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item[data-v-dc57e38f]:hover{cursor:move;background:var(--wui-print-theme-color);color:#fff}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item-icon span[data-v-dc57e38f]{font-size:20px}.print-designer_designer-components-container ._d-c-block_list ._d-c-block_list-item-label[data-v-dc57e38f]{font-size:12px;margin-top:3px}.pagination-refline[data-v-7e4c894a]{position:absolute;left:0;right:0;height:1px;background:none;border-top:2px dashed #757575;z-index:10}.pagination-refline .pagination-refline-content[data-v-7e4c894a]{content:"分页线";background-color:#fff;position:absolute;left:50%;padding:2px 5px;border-radius:2px;transform:translate(-50%) translateY(-50%);box-shadow:4px 4px 10px #0003}.sortable-item-container[data-v-1719d6db]{width:100%;position:relative}.sortable-item-container .sortable-item-mask[data-v-1719d6db]{position:absolute;z-index:1;left:0;right:0;top:0;bottom:0;background:none}.sortable-item-container .sortable-item-handle[data-v-1719d6db]{position:absolute;z-index:2;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.sortable-item-container .sortable-item-handle span[data-v-1719d6db]{font-size:16px}.sortable-item-container .sortable-item-operate[data-v-1719d6db]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.sortable-item-container .sortable-item-operate .sortable-item-operate_item[data-v-1719d6db]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.sortable-item-container .sortable-item-operate .sortable-item-operate_item+.sortable-item-operate_item[data-v-1719d6db]{margin-left:1px}.sortable-item-container .sortable-item-operate .sortable-item-operate_item.sortable-item-operate_item--copy[data-v-1719d6db]{background:#005089}.sortable-item-container .sortable-item-operate .sortable-item-operate_item.sortable-item-operate_item--delete[data-v-1719d6db]{background:#d50303}.sortable-item-container .sortable-item-operate .sortable-item-operate_item span[data-v-1719d6db]{font-size:14px}.sortable-item-container.sortable-item-container--hover .sortable-item-handle[data-v-1719d6db],.sortable-item-container.sortable-item-container--hover .sortable-item-operate[data-v-1719d6db]{opacity:.6}.sortable-item-container.sortable-item-container--line-mode[data-v-1719d6db]{outline:1px dashed #005089!important;margin-bottom:1px}.sortable-item-container.sortable-item-container--line-mode.sortable-item-container--selected[data-v-1719d6db],.sortable-item-container.sortable-item-container--line-mode.sortable-item-container--hover[data-v-1719d6db]{outline:1px solid #005089!important}.dynamic-text-component-container[data-v-fa017dcc]{width:100%;height:auto;display:flex}.dynamic-text-component-container .dynamic-text-component-container_text[data-v-fa017dcc]{width:0;flex:1;color:#333;overflow:hidden;text-overflow:ellipsis}.text-component-container[data-v-660d756d]{width:100%;height:auto}.complex-table_header-item-container[data-v-52171360]{width:100%;height:100%;position:relative}.complex-table_header-item-container .complex-table_header-item-operate[data-v-52171360]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item[data-v-52171360]{cursor:pointer;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item+.complex-table_header-item-operate_item[data-v-52171360]{margin-left:1px}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item.complex-table_header-item-operate_item--setting[data-v-52171360]{background:#005089}.complex-table_header-item-container .complex-table_header-item-operate .complex-table_header-item-operate_item span[data-v-52171360]{font-size:14px;color:#fff}.complex-table_header-item-container.complex-table_header-item-container--hover .complex-table_header-item-operate[data-v-52171360]{opacity:.6}.complex-table_header-item-container.complex-table_header-item-container--line-mode[data-v-52171360]{border:1px dashed #bdbdbd;padding:2px}.complex-table_header-item-container.complex-table_header-item-container--line-mode.complex-table_header-item-container--selected[data-v-52171360]{border:1px solid #a90505}.complex-table_header-item-container.complex-table_header-item-container--line-mode.complex-table_header-item-container--hover[data-v-52171360]{border:1px dashed #a90505}.header-item-slash-container[data-v-ffbf2f7e]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.header-item-slash-container ._h-i-s-c_slash[data-v-ffbf2f7e]{position:absolute;display:block;height:1px;background-color:#000}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_slash[data-v-ffbf2f7e]{top:0;left:0}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_left[data-v-ffbf2f7e]{position:absolute;left:10px;bottom:5px}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_right[data-v-ffbf2f7e]{position:absolute;right:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_slash[data-v-ffbf2f7e]{bottom:0;left:0}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_left[data-v-ffbf2f7e]{position:absolute;left:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_right[data-v-ffbf2f7e]{position:absolute;right:10px;bottom:5px}.complex-table_pagination-container[data-v-1f0ef1d4]{width:100%;height:20px;line-height:20px;text-align:center}.complex-table-component-container[data-v-07547689]{width:100%;position:relative}.complex-table-component-container .complex-table-component-handle[data-v-07547689]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.complex-table-component-container .complex-table-component-handle span[data-v-07547689]{font-size:16px}.complex-table-component-container .complex-table-component-table[data-v-07547689]{width:100%;height:100%;overflow:hidden}.complex-table-component-container .complex-table-component-table td[data-v-07547689]{position:relative;word-break:break-all}.complex-table-component-container .complex-table-component-table .complex-table-component-table_header-td[data-v-07547689]{overflow:hidden}.complex-table-component-container .complex-table-component-table.complex-table-component-table--fixed-height[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--fixed-height td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-span[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-span td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-span td.complex-table-component-table_content-td .complex-table-component-table_content-td-container[data-v-07547689]{position:absolute;left:0;right:0;top:0;bottom:0}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-not-span[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-not-span td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--auto-height-not-span td.complex-table-component-table_content-td .complex-table-component-table_content-td-container[data-v-07547689]{position:absolute;left:0;right:0;top:0;bottom:0}.complex-table-component-container .complex-table-component-table.complex-table-component-table--pagination-mode[data-v-07547689]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--pagination-mode td[data-v-07547689]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container .complex-table-component-table.complex-table-component-table--pagination-mode td.complex-table-component-table_content-td .complex-table-component-table_content-td-container[data-v-07547689]{position:absolute;left:0;right:0;top:0;bottom:0}.complex-table-component-container .complex-table-component-operate[data-v-07547689]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item[data-v-07547689]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item+.complex-table-component-operate_item[data-v-07547689]{margin-left:1px}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item.complex-table-component-operate_item--add[data-v-07547689],.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item.complex-table-component-operate_item--copy[data-v-07547689]{background:#005089}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item.complex-table-component-operate_item--delete[data-v-07547689]{background:#d50303}.complex-table-component-container .complex-table-component-operate .complex-table-component-operate_item span[data-v-07547689]{font-size:14px}.complex-table-component-container.complex-table-component-container--hover .complex-table-component-handle[data-v-07547689],.complex-table-component-container.complex-table-component-container--hover .complex-table-component-operate[data-v-07547689]{opacity:.6}.complex-table-component-container.complex-table-component-container--line-mode[data-v-07547689]{padding:3px;outline:1px dashed #005089!important;margin-bottom:1px}.complex-table-component-container.complex-table-component-container--line-mode.complex-table-component-container--selected[data-v-07547689],.complex-table-component-container.complex-table-component-container--line-mode.complex-table-component-container--hover[data-v-07547689]{outline:1px solid #005089!important}.table-column-container[data-v-89983bbd]{position:relative}.table-column-container .table-column-handle[data-v-89983bbd]{position:absolute;z-index:1;left:0;top:0;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-column-container .table-column-handle span[data-v-89983bbd]{font-size:14px}.table-column-container .table-column-content[data-v-89983bbd]{height:100%;display:flex;flex-flow:column}.table-column-container .table-column-content .table-column-content_cell[data-v-89983bbd]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-column-container .table-column-content .table-column-content_cell--td[data-v-89983bbd]{height:0;flex:1}.table-column-container .table-column-operate[data-v-89983bbd]{position:absolute;z-index:1;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-column-container .table-column-operate .table-column-operate_item[data-v-89983bbd]{cursor:pointer;color:#fff;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-column-container .table-column-operate .table-column-operate_item+.table-column-operate_item[data-v-89983bbd]{margin-left:1px}.table-column-container .table-column-operate .table-column-operate_item.table-column-operate_item--add[data-v-89983bbd],.table-column-container .table-column-operate .table-column-operate_item.table-column-operate_item--copy[data-v-89983bbd]{background:#005089}.table-column-container .table-column-operate .table-column-operate_item.table-column-operate_item--delete[data-v-89983bbd]{background:#d50303}.table-column-container .table-column-operate .table-column-operate_item span[data-v-89983bbd]{font-size:12px}.table-column-container.table-column-container--hover .table-column-handle[data-v-89983bbd],.table-column-container.table-column-container--hover .table-column-operate[data-v-89983bbd]{opacity:.6}.table-component-container[data-v-711e0843]{width:100%;position:relative}.table-component-container .table-component-handle[data-v-711e0843]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-component-container .table-component-handle span[data-v-711e0843]{font-size:16px}.table-component-container .table-component-content[data-v-711e0843]{width:auto;display:inline-flex;flex-flow:row wrap}.table-component-container .table-component-operate[data-v-711e0843]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-component-container .table-component-operate .table-component-operate_item[data-v-711e0843]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-component-container .table-component-operate .table-component-operate_item+.table-component-operate_item[data-v-711e0843]{margin-left:1px}.table-component-container .table-component-operate .table-component-operate_item.table-component-operate_item--add[data-v-711e0843],.table-component-container .table-component-operate .table-component-operate_item.table-component-operate_item--copy[data-v-711e0843]{background:#005089}.table-component-container .table-component-operate .table-component-operate_item.table-component-operate_item--delete[data-v-711e0843]{background:#d50303}.table-component-container .table-component-operate .table-component-operate_item span[data-v-711e0843]{font-size:14px}.table-component-container.table-component-container--hover .table-component-handle[data-v-711e0843],.table-component-container.table-component-container--hover .table-component-operate[data-v-711e0843]{opacity:.6}.table-component-container.table-component-container--line-mode[data-v-711e0843]{outline:1px dashed #005089!important;padding:2px;margin-bottom:1px}.table-component-container.table-component-container--line-mode.table-component-container--selected[data-v-711e0843]{outline:1px solid #005089!important}.barcode-component-container[data-v-66fb7e8f]{width:100%;height:auto;position:relative}.barcode-component-container .barcode-error[data-v-66fb7e8f]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.qrcode-component-container[data-v-71bab811]{width:100%;height:auto;position:relative}.qrcode-component-container .barcode-error[data-v-71bab811]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.image-component-container[data-v-c2e27af5]{width:100%;height:auto}.image-component-container .image-component-content[data-v-c2e27af5]{width:100%;height:100%}.input-component-container[data-v-3feb5ab0],.input-component-container[data-v-4a14a0d2],.radio-component-container[data-v-f4f353da]{width:100%;height:auto;margin-bottom:0}.radio-component-container[data-v-f4f353da] .el-radio{height:auto!important;min-height:32px;margin-right:10px}.radio-component-container[data-v-f4f353da] .el-radio.el-radio--small{min-height:24px}.radio-component-container[data-v-f4f353da] .el-radio.el-radio--large{min-height:40px}.radio-component-container[data-v-f4f353da] .el-radio:last-of-type{margin-right:0}.radio-component-container[data-v-f4f353da] .el-radio .el-radio__label{word-break:break-all;white-space:pre-line;line-height:16px}.checkbox-component-container[data-v-eaadc793]{width:100%;height:auto;margin-bottom:0}.checkbox-component-container[data-v-eaadc793] .el-checkbox{height:auto!important;min-height:32px;margin-right:10px}.checkbox-component-container[data-v-eaadc793] .el-checkbox.el-checkbox--small{min-height:24px}.checkbox-component-container[data-v-eaadc793] .el-checkbox.el-checkbox--large{min-height:40px}.checkbox-component-container[data-v-eaadc793] .el-checkbox:last-of-type{margin-right:0}.checkbox-component-container[data-v-eaadc793] .el-checkbox .el-checkbox__label{word-break:break-all;white-space:pre-line;line-height:16px}.select-component-container[data-v-a09a8712]{width:100%;height:auto;margin-bottom:0}.select-component-container .el-radio[data-v-a09a8712]{margin-right:10px}.datetime-component-container[data-v-34c426c4]{width:100%;height:auto;margin-bottom:0}.datetime-component-container[data-v-34c426c4] .datetime-component{width:100%}.datetime-component-container[data-v-34c426c4] .datetime-component.datetime-component--hide-time-icon .el-input__prefix,.datetime-component-container[data-v-34c426c4] .datetime-component.datetime-component--hide-time-icon .el-input__prefix .el-input__icon{width:0;height:0}.grid-sortable-item-container[data-v-d1ba4d60]{width:100%;position:relative;overflow:hidden}.grid-sortable-item-container .grid-sortable-item-mask[data-v-d1ba4d60]{position:absolute;z-index:1;left:0;right:0;top:0;bottom:0;background:none}.grid-sortable-item-container .grid-sortable-item-handle[data-v-d1ba4d60]{position:absolute;z-index:2;left:0;top:0;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.grid-sortable-item-container .grid-sortable-item-handle span[data-v-d1ba4d60]{font-size:16px}.grid-sortable-item-container .grid-sortable-item-operate[data-v-d1ba4d60]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item[data-v-d1ba4d60]{cursor:pointer;color:#fff;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item+.grid-sortable-item-operate_item[data-v-d1ba4d60]{margin-left:1px}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item.grid-sortable-item-operate_item--copy[data-v-d1ba4d60]{background:#005089}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item.grid-sortable-item-operate_item--delete[data-v-d1ba4d60]{background:#d50303}.grid-sortable-item-container .grid-sortable-item-operate .grid-sortable-item-operate_item span[data-v-d1ba4d60]{font-size:12px}.grid-sortable-item-container.grid-sortable-item-container--hover .grid-sortable-item-handle[data-v-d1ba4d60],.grid-sortable-item-container.grid-sortable-item-container--hover .grid-sortable-item-operate[data-v-d1ba4d60]{opacity:.6}.grid-sortable-item-container.grid-sortable-item-container--line-mode.grid-sortable-item-container--selected[data-v-d1ba4d60]{outline:1px solid #005089!important}.grid-sortable-item-container.grid-sortable-item-container--line-mode.grid-sortable-item-container--hover[data-v-d1ba4d60]{outline:1px dashed #005089!important}.grid-item-container[data-v-f1d90c45]{width:100%}.grid-item-container .grid-item-wrapper[data-v-f1d90c45]{width:100%;height:100%;position:relative}.grid-item-container .grid-item-content[data-v-f1d90c45]{height:100%}.grid-item-container .grid-item-content .grid-item-content_sortable-item[data-v-f1d90c45]{width:100%}.grid-item-container .grid-item-content .grid-item-content_sortable-item .table-component-container[data-v-f1d90c45]{padding:0;border:1px dashed #fff}.grid-item-container .grid-item-content .grid-item-content_sortable-item .table-component-container.table-component-container--selected[data-v-f1d90c45],.grid-item-container .grid-item-content .grid-item-content_sortable-item .table-component-container.table-component-container--hover[data-v-f1d90c45]{border:1px solid #005089}.grid-item-container .grid-item-operate[data-v-f1d90c45]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.grid-item-container .grid-item-operate .grid-item-operate_item[data-v-f1d90c45]{cursor:pointer;color:#fff;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center}.grid-item-container .grid-item-operate .grid-item-operate_item+.grid-item-operate_item[data-v-f1d90c45]{margin-left:1px}.grid-item-container .grid-item-operate .grid-item-operate_item.grid-item-operate_item--add[data-v-f1d90c45],.grid-item-container .grid-item-operate .grid-item-operate_item.grid-item-operate_item--copy[data-v-f1d90c45]{background:#005089}.grid-item-container .grid-item-operate .grid-item-operate_item.grid-item-operate_item--delete[data-v-f1d90c45]{background:#d50303}.grid-item-container .grid-item-operate .grid-item-operate_item span[data-v-f1d90c45]{font-size:14px}.grid-item-container.grid-item-container--hover .grid-item-handle[data-v-f1d90c45],.grid-item-container.grid-item-container--hover .grid-item-operate[data-v-f1d90c45]{opacity:.6}.grid-item-container.grid-item-container--line-mode[data-v-f1d90c45]{padding:2px;min-height:24px}.grid-item-container.grid-item-container--line-mode .grid-item-wrapper[data-v-f1d90c45]{border:1px dashed #999999;padding:3px}.grid-item-container.grid-item-container--line-mode.grid-item-container--selected .grid-item-wrapper[data-v-f1d90c45]{border:1px solid #a90505}.grid-item-container.grid-item-container--line-mode.grid-item-container--hover .grid-item-wrapper[data-v-f1d90c45]{border:1px dashed #a90505}.grid-component-container[data-v-2418daa0]{width:100%;position:relative}.grid-component-container .grid-component-handle[data-v-2418daa0]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.grid-component-container .grid-component-handle span[data-v-2418daa0]{font-size:16px}.grid-component-container .grid-component-content[data-v-2418daa0]{display:flex;flex-flow:row wrap}.grid-component-container .grid-component-operate[data-v-2418daa0]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.grid-component-container .grid-component-operate .grid-component-operate_item[data-v-2418daa0]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.grid-component-container .grid-component-operate .grid-component-operate_item+.grid-component-operate_item[data-v-2418daa0]{margin-left:1px}.grid-component-container .grid-component-operate .grid-component-operate_item.grid-component-operate_item--add[data-v-2418daa0],.grid-component-container .grid-component-operate .grid-component-operate_item.grid-component-operate_item--copy[data-v-2418daa0]{background:#005089}.grid-component-container .grid-component-operate .grid-component-operate_item.grid-component-operate_item--delete[data-v-2418daa0]{background:#d50303}.grid-component-container .grid-component-operate .grid-component-operate_item span[data-v-2418daa0]{font-size:14px}.grid-component-container.grid-component-container--line-mode[data-v-2418daa0]{outline:1px dashed #005089!important;margin-bottom:1px;padding:3px}.grid-component-container.grid-component-container--line-mode.grid-component-container--selected[data-v-2418daa0],.grid-component-container.grid-component-container--line-mode.grid-component-container--hover[data-v-2418daa0]{outline:1px solid #005089!important}.table-layout-sortable-item-container[data-v-67d85349]{width:100%;position:relative;overflow:hidden}.table-layout-sortable-item-container .table-layout-sortable-item-mask[data-v-67d85349]{position:absolute;z-index:2;left:0;right:0;top:0;bottom:0;background:none}.table-layout-sortable-item-container .table-layout-sortable-item-handle[data-v-67d85349]{position:absolute;z-index:3;left:0;top:0;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-layout-sortable-item-container .table-layout-sortable-item-handle span[data-v-67d85349]{font-size:16px}.table-layout-sortable-item-container .table-layout-sortable-item-operate[data-v-67d85349]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item[data-v-67d85349]{cursor:pointer;color:#fff;width:16px;height:16px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item+.table-layout-sortable-item-operate_item[data-v-67d85349]{margin-left:1px}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item.table-layout-sortable-item-operate_item--copy[data-v-67d85349]{background:#005089}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item.table-layout-sortable-item-operate_item--delete[data-v-67d85349]{background:#d50303}.table-layout-sortable-item-container .table-layout-sortable-item-operate .table-layout-sortable-item-operate_item span[data-v-67d85349]{font-size:12px}.table-layout-sortable-item-container.table-layout-sortable-item-container--hover .table-layout-sortable-item-handle[data-v-67d85349],.table-layout-sortable-item-container.table-layout-sortable-item-container--hover .table-layout-sortable-item-operate[data-v-67d85349]{opacity:.6}.table-layout-sortable-item-container.table-layout-sortable-item-container--line-mode.table-layout-sortable-item-container--selected[data-v-67d85349]{outline:1px solid #005089!important}.table-layout-sortable-item-container.table-layout-sortable-item-container--line-mode.table-layout-sortable-item-container--hover[data-v-67d85349]{outline:1px dashed #005089!important}.table-layout-item-container[data-v-f8c161d8]{width:100%;height:100%;position:relative}.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item[data-v-f8c161d8]{width:100%}.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item .table-component-container[data-v-f8c161d8]{padding:0;border:1px dashed #fff}.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item .table-component-container.table-component-container--selected[data-v-f8c161d8],.table-layout-item-container .table-layout-item-content .table-layout-item-content_sortable-item .table-component-container.table-component-container--hover[data-v-f8c161d8]{border:1px solid #005089}.table-layout-item-container .table-layout-item-operate[data-v-f8c161d8]{position:absolute;z-index:2;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item[data-v-f8c161d8]{cursor:pointer;width:18px;height:18px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item+.table-layout-item-operate_item[data-v-f8c161d8]{margin-left:1px}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item.table-layout-item-operate_item--setting[data-v-f8c161d8]{background:#005089}.table-layout-item-container .table-layout-item-operate .table-layout-item-operate_item span[data-v-f8c161d8]{font-size:14px;color:#fff}.table-layout-item-container.table-layout-item-container--hover .table-layout-item-handle[data-v-f8c161d8],.table-layout-item-container.table-layout-item-container--hover .table-layout-item-operate[data-v-f8c161d8]{opacity:.6}.table-layout-item-container.table-layout-item-container--line-mode[data-v-f8c161d8]{border:1px dashed #bdbdbd;padding:2px}.table-layout-item-container.table-layout-item-container--line-mode.table-layout-item-container--selected[data-v-f8c161d8]{border:1px solid #a90505}.table-layout-item-container.table-layout-item-container--line-mode.table-layout-item-container--hover[data-v-f8c161d8]{border:1px dashed #a90505}.table-layout-item-slash-container[data-v-4e0e1c06]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.table-layout-item-slash-container ._t-l-i-s_slash[data-v-4e0e1c06]{position:absolute;display:block;height:1px;background-color:#000}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_slash[data-v-4e0e1c06]{top:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_left[data-v-4e0e1c06]{position:absolute;left:10px;bottom:5px}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_right[data-v-4e0e1c06]{position:absolute;right:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_slash[data-v-4e0e1c06]{bottom:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_left[data-v-4e0e1c06]{position:absolute;left:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_right[data-v-4e0e1c06]{position:absolute;right:10px;bottom:5px}.table-layout-component-container[data-v-89a52ee3]{width:100%;position:relative}.table-layout-component-container .table-layout-component-handle[data-v-89a52ee3]{position:absolute;z-index:3;left:0;top:0;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center;background:#005089;color:#fff;cursor:move}.table-layout-component-container .table-layout-component-handle span[data-v-89a52ee3]{font-size:16px}.table-layout-component-container .table-layout-component-table[data-v-89a52ee3]{width:100%;height:100%}.table-layout-component-container .table-layout-component-table td[data-v-89a52ee3]{position:relative}.table-layout-component-container .table-layout-component-operate[data-v-89a52ee3]{position:absolute;z-index:3;right:0;bottom:0;width:auto;display:flex;flex-flow:row;justify-content:flex-end;padding:1px}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item[data-v-89a52ee3]{cursor:pointer;color:#fff;width:20px;height:20px;display:flex;flex-flow:row;justify-content:center;align-items:center}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item+.table-layout-component-operate_item[data-v-89a52ee3]{margin-left:1px}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item.table-layout-component-operate_item--add[data-v-89a52ee3],.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item.table-layout-component-operate_item--copy[data-v-89a52ee3]{background:#005089}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item.table-layout-component-operate_item--delete[data-v-89a52ee3]{background:#d50303}.table-layout-component-container .table-layout-component-operate .table-layout-component-operate_item span[data-v-89a52ee3]{font-size:14px}.table-layout-component-container.table-layout-component-container--hover .table-layout-component-handle[data-v-89a52ee3],.table-layout-component-container.table-layout-component-container--hover .table-layout-component-operate[data-v-89a52ee3]{opacity:.6}.table-layout-component-container.table-layout-component-container--line-mode[data-v-89a52ee3]{padding:3px;outline:1px dashed #005089!important;margin-bottom:1px}.table-layout-component-container.table-layout-component-container--line-mode.table-layout-component-container--selected[data-v-89a52ee3],.table-layout-component-container.table-layout-component-container--line-mode.table-layout-component-container--hover[data-v-89a52ee3]{outline:1px solid #005089!important}.print-pagination-component-container[data-v-a330f66a]{width:100%;height:18px;background:none;position:relative}.print-pagination-component-container[data-v-a330f66a]:after{content:"";position:absolute;left:0;right:0;top:9px;border:1px dashed #333}.print-pagination-component-container .print-pagination-content[data-v-a330f66a]{position:absolute;top:1px;bottom:1px;left:50%;transform:translate(-50%);background:#fff;z-index:1;padding:0 10px;line-height:16px;font-size:12px}.panel-container .designer-components_chosen-item{width:100%;padding:5px;background:#ddd;display:flex;flex-flow:row;justify-content:center;align-items:center;outline:1px dashed #ababab!important;border-radius:5px}.panel-container .designer-components_chosen-item ._d-c-block_list-item-icon span{font-size:20px}.panel-container .designer-components_chosen-item ._d-c-block_list-item-label{font-size:14px;font-weight:700;margin-left:5px}.panel-container[data-v-9bd448d7]{width:auto;height:100%;overflow:auto;position:relative}.panel-container.panel-container--a5 .panel-wrapper[data-v-9bd448d7]{width:148mm;min-height:210mm}.panel-container.panel-container--a5-landscape .panel-wrapper[data-v-9bd448d7]{width:210mm;min-height:148mm}.panel-container.panel-container--a4 .panel-wrapper[data-v-9bd448d7]{width:210mm;min-height:297mm}.panel-container.panel-container--a4-landscape .panel-wrapper[data-v-9bd448d7]{width:297mm;min-height:210mm}.panel-container.panel-container--a3 .panel-wrapper[data-v-9bd448d7]{width:297mm;min-height:420mm}.panel-container.panel-container--a3-landscape .panel-wrapper[data-v-9bd448d7]{width:420mm;min-height:297mm}.panel-container .panel-wrapper[data-v-9bd448d7]{background:#fff;position:relative}.panel-container .panel-sortable-container[data-v-9bd448d7]{width:auto;display:flex;flex-flow:column;position:relative;padding-bottom:100px}.panel-container .panel-sortable-container.panel-sortable-container--empty[data-v-9bd448d7]:after{content:"点击或拖拽左侧组件到此处";width:100%;height:100px;display:flex;justify-content:center;align-items:center;font-size:28px;letter-spacing:1px;color:#9f9f9f}.panel-container .panel-sortable-container .panel-sortable-item[data-v-9bd448d7]{width:100%}.editor-container[data-v-e0cfbf08],.editor-container[data-v-e0cfbf08] .cm-editor{width:100%;height:100%}.wui-base-dialog_container[data-v-188a3b3f]{position:fixed}.wui-base-dialog_container .wui-base-dialog_mask[data-v-188a3b3f]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#37373799}.wui-base-dialog_container .wui-base-dialog_wrap[data-v-188a3b3f]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.wui-base-dialog_container .wui-base-dialog_modal[data-v-188a3b3f]{background:#fff;border-radius:10px;overflow:hidden;display:flex;flex-flow:column}.wui-base-dialog_container .wui-base-dialog_header[data-v-188a3b3f]{height:40px;background:var(--wui-print-theme-color);display:flex;flex-flow:row;padding-left:15px}.wui-base-dialog_container .wui-base-dialog_header.wui-base-dialog-move[data-v-188a3b3f]{cursor:move}.wui-base-dialog_container .wui-base-dialog_header .icon[data-v-188a3b3f]{height:40px;display:flex;justify-content:center;align-items:center;margin-right:3px}.wui-base-dialog_container .wui-base-dialog_header .icon i[data-v-188a3b3f]{font-size:16px;color:#fff}.wui-base-dialog_container .wui-base-dialog_header .title[data-v-188a3b3f]{flex:1;width:0;height:40px;line-height:40px;font-size:14px;color:#fff;font-weight:700;letter-spacing:1px;-webkit-user-select:none;user-select:none}.wui-base-dialog_container .wui-base-dialog_header .close[data-v-188a3b3f]{height:40px;padding:0 15px;display:flex;justify-content:center;align-items:center;font-size:18px;cursor:pointer;color:#fff}.wui-base-dialog_container .wui-base-dialog_header-none[data-v-188a3b3f]{height:10px}.wui-base-dialog_container .wui-base-dialog_header-none.wui-base-dialog-move[data-v-188a3b3f]{cursor:move}.wui-base-dialog_container .wui-base-dialog_body[data-v-188a3b3f]{height:0;flex:1;overflow:hidden}.wui-base-dialog_container .wui-base-dialog_body .wui-base-dialog_body-scrollbar[data-v-188a3b3f]{width:100%;height:100%}.wui-base-dialog_container .wui-base-dialog_footer[data-v-188a3b3f]{display:flex;align-items:center;justify-content:flex-end;padding:7px 10px;border-top:1px solid #dedede}.wui-base-dialog_container .wui-base-dialog_footer[data-v-188a3b3f] .el-button{height:30px}.wui-base-dialog_container .wui-base-dialog_footer[data-v-188a3b3f] .el-button+.el-button{margin-left:5px}.print-dialog-container[data-v-23342844]{width:100%;height:100%;display:flex;background:#eee}.print-dialog-container .print-dialog-code[data-v-23342844]{width:300px;height:100%;background:#fff;border-right:1px solid #a1a1a1}.print-dialog-container .print-dialog-iframe-container[data-v-23342844]{width:0;flex:1}.print-dialog-container .print-dialog-iframe-container iframe[data-v-23342844]{width:100%;height:100%;border:none}.dynamic-text-component-container[data-v-f59b6d3c]{width:100%;height:auto;display:flex}.dynamic-text-component-container .dynamic-text-component-container_text[data-v-f59b6d3c]{width:0;flex:1;color:#333;overflow-wrap:break-word}.text-component-container[data-v-e71b87db]{width:100%;height:auto}.table-component-container[data-v-3238709e]{width:100%;height:100}.header-item-slash-container[data-v-0fbc56c2]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.header-item-slash-container ._h-i-s-c_slash[data-v-0fbc56c2]{position:absolute;display:block;height:1px;background-color:#000}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_slash[data-v-0fbc56c2]{top:0;left:0}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_left[data-v-0fbc56c2]{position:absolute;left:10px;bottom:5px}.header-item-slash-container.header-item-slash-container--top-left ._h-i-s-c_right[data-v-0fbc56c2]{position:absolute;right:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_slash[data-v-0fbc56c2]{bottom:0;left:0}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_left[data-v-0fbc56c2]{position:absolute;left:10px;top:5px}.header-item-slash-container.header-item-slash-container--bottom-left ._h-i-s-c_right[data-v-0fbc56c2]{position:absolute;right:10px;bottom:5px}.complex-table_pagination-container[data-v-4aa8c242]{width:100%;height:20px;line-height:20px;text-align:center}.complex-table-component-container[data-v-8e89d2fd]{width:100%;position:relative}.complex-table-component-container .complex-table-component-table[data-v-8e89d2fd]{width:100%;height:100%}.complex-table-component-container .complex-table-component-table td[data-v-8e89d2fd]{position:relative;word-break:break-all}.complex-table-component-container.complex-table-component-container--fixed-height .complex-table-component-table[data-v-8e89d2fd]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container.complex-table-component-container--fixed-height .complex-table-component-table tr>td[data-v-8e89d2fd]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-span .complex-table-component-table[data-v-8e89d2fd]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-span .complex-table-component-table tr>td[data-v-8e89d2fd]{border-bottom:1px solid #000;border-right:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-not-span .complex-table-component-table[data-v-8e89d2fd]{border-top:1px solid #000;border-left:1px solid #000}.complex-table-component-container.complex-table-component-container--auto-height-not-span .complex-table-component-table tr>td[data-v-8e89d2fd]{border-bottom:1px solid #000;border-right:1px solid #000}.barcode-component-container[data-v-9afba07f]{width:100%;height:auto;position:relative}.barcode-component-container .barcode-error[data-v-9afba07f]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.qrcode-component-container[data-v-a83eeb76]{width:100%;height:auto;position:relative}.qrcode-component-container .barcode-error[data-v-a83eeb76]{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center}.image-component-container[data-v-40f5ffdf]{width:100%;height:auto}.image-component-container .image-component-content[data-v-40f5ffdf]{width:100%;height:100%}.input-component-container[data-v-ce64ef71],.textarea-component-container[data-v-3fcf7d21],.radio-component-container[data-v-375e469b]{width:100%;height:auto;margin-bottom:0}.radio-component-container[data-v-375e469b] .el-radio{height:auto!important;min-height:32px;margin-right:10px}.radio-component-container[data-v-375e469b] .el-radio.el-radio--small{min-height:24px}.radio-component-container[data-v-375e469b] .el-radio.el-radio--large{min-height:40px}.radio-component-container[data-v-375e469b] .el-radio:last-of-type{margin-right:0}.radio-component-container[data-v-375e469b] .el-radio .el-radio__label{word-break:break-all;white-space:pre-line;line-height:16px}.checkbox-component-container[data-v-7153842c]{width:100%;height:auto;margin-bottom:0}.checkbox-component-container[data-v-7153842c] .el-checkbox{height:auto!important;min-height:32px;margin-right:10px}.checkbox-component-container[data-v-7153842c] .el-checkbox.el-checkbox--small{min-height:24px}.checkbox-component-container[data-v-7153842c] .el-checkbox.el-checkbox--large{min-height:40px}.checkbox-component-container[data-v-7153842c] .el-checkbox:last-of-type{margin-right:0}.checkbox-component-container[data-v-7153842c] .el-checkbox .el-checkbox__label{word-break:break-all;white-space:pre-line;line-height:16px}.select-component-container[data-v-35e8dce8]{width:100%;height:auto;margin-bottom:0}.select-component-container .el-radio[data-v-35e8dce8]{margin-right:10px}.datetime-component-container[data-v-f6f5348b]{width:100%;height:auto;margin-bottom:0}.datetime-component-container[data-v-f6f5348b] .datetime-component{width:100%}.datetime-component-container[data-v-f6f5348b] .datetime-component.datetime-component--hide-time-icon .el-input__prefix,.datetime-component-container[data-v-f6f5348b] .datetime-component.datetime-component--hide-time-icon .el-input__prefix .el-input__icon{width:0;height:0}.grid-item-container[data-v-6ab6083e]{width:100%}.grid-component-container[data-v-9fca917c]{width:100%;display:flex;flex-flow:row wrap}.table-layout-item-container[data-v-c883987a]{width:100%;height:100%}.table-layout-item-slash-container[data-v-14903364]{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden}.table-layout-item-slash-container ._t-l-i-s_slash[data-v-14903364]{position:absolute;display:block;height:1px;background-color:#000}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_slash[data-v-14903364]{top:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_left[data-v-14903364]{position:absolute;left:10px;bottom:5px}.table-layout-item-slash-container.table-layout-item-slash-container--top-left ._t-l-i-s_right[data-v-14903364]{position:absolute;right:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_slash[data-v-14903364]{bottom:0;left:0}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_left[data-v-14903364]{position:absolute;left:10px;top:5px}.table-layout-item-slash-container.table-layout-item-slash-container--bottom-left ._t-l-i-s_right[data-v-14903364]{position:absolute;right:10px;bottom:5px}.table-layout-component-container[data-v-e53d72c5]{width:100%}.table-layout-component-container .table-layout-component-table[data-v-e53d72c5]{width:100%;height:100%}.table-layout-component-container .table-layout-component-table td[data-v-e53d72c5]{position:relative}.print-default-form-container[data-v-6af9b1c3]{width:210mm;background:#fff}.print-default-form-container.print-default-form-container--a5[data-v-6af9b1c3]{width:148mm}.print-default-form-container.print-default-form-container--a5-landscape[data-v-6af9b1c3],.print-default-form-container.print-default-form-container--a4[data-v-6af9b1c3]{width:210mm}.print-default-form-container.print-default-form-container--a4-landscape[data-v-6af9b1c3],.print-default-form-container.print-default-form-container--a3[data-v-6af9b1c3]{width:297mm}.print-default-form-container.print-default-form-container--a3-landscape[data-v-6af9b1c3]{width:420mm}.preview-form-dialog[data-v-dd31a580]{width:100%;height:100%;padding:10px;background:#eee;display:flex;flex-flow:row}.preview-form-dialog .preview-form-dialog_code[data-v-dd31a580]{width:300px;height:100%;border:1px solid #b5b5b5}.preview-form-dialog .preview-form-dialog_form[data-v-dd31a580]{width:0;flex:1;padding:0 5px;overflow:auto}.preview-form-dialog .preview-form-dialog_form .preview-form-dialog_print-form[data-v-dd31a580]{margin:0 auto}.designer-panel-header_slot-operate-buttons{margin-left:10px;margin-right:10px;display:flex;flex-flow:row}.designer-panel-header_slot-operate-buttons>.el-button+.el-button{margin-left:3px}.designer-panel-header_slot-operate-buttons>.el-button+div{margin-left:3px}.designer-panel-header_slot-operate-buttons>div+.el-button{margin-left:3px}.designer-panel-header_slot-operate-buttons>div+div{margin-left:3px}.print-designer_designer-panel-container[data-v-d73423af]{width:0;flex:1;background:#ddd;display:flex;flex-flow:column;position:relative}.print-designer_designer-panel-container .designer-panel-header[data-v-d73423af]{height:40px;border-bottom:1px solid var(--wui-print-border-color--light);background:#fff;display:flex;flex-flow:row;align-items:center;padding:0 10px}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_title[data-v-d73423af]{font-weight:700;width:0;flex:1;overflow:hidden}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate[data-v-d73423af]{display:flex;flex-flow:row}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate .designer-panel-header_operate-item+.designer-panel-header_operate-item[data-v-d73423af]{margin-left:3px}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate .designer-panel-header_operate-item .designer-panel-header_operate-item_dropdown-button[data-v-d73423af]{width:90px}.print-designer_designer-panel-container .designer-panel-header .designer-panel-header_operate .designer-panel-header_operate-item .designer-panel-header_operate-item_dropdown-button .designer-panel-header_operate-item_dropdown-button_icon[data-v-d73423af]{font-size:12px}.print-designer_designer-panel-container .designer-panel-main[data-v-d73423af]{height:0;flex:1;display:flex;align-items:center;justify-content:center;padding:5px}.print-designer_config-tabs-container[data-v-62f8e19e]{width:350px;height:100%;background:#fff;display:flex;flex-flow:column;border-left:1px solid var(--wui-print-border-color--light)}.print-designer_config-tabs-container .config-tabs-header[data-v-62f8e19e]{height:40px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;border-bottom:1px solid var(--wui-print-border-color--light)}.print-designer_config-tabs-container .config-tabs-nav[data-v-62f8e19e]{height:40px;display:flex;flex-flow:row;border-bottom:1px solid var(--wui-print-border-color--light)}.print-designer_config-tabs-container .config-tabs-nav .config-tabs-nav_item[data-v-62f8e19e]{flex:1;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;border-bottom:2px solid #fff}.print-designer_config-tabs-container .config-tabs-nav .config-tabs-nav_item.config-tabs-nav_item--active[data-v-62f8e19e]{color:var(--wui-print-theme-color);border-bottom:2px solid var(--wui-print-theme-color)}.print-designer_config-tabs-container .config-tabs-main[data-v-62f8e19e]{height:0;flex:1}.style-space-config-container[data-v-0bd01768]{background:#f2cea5;padding:26px 55px;position:relative;margin-bottom:10px}.style-space-config-container.active[data-v-0bd01768]{background-color:#e99f4b}.style-space-config-container ._s-p-c_margin-title[data-v-0bd01768]{position:absolute;left:8px;top:5px;font-size:12px}.style-space-config-container ._s-p-c_margin-operate[data-v-0bd01768]{position:absolute;right:8px;top:5px;display:flex;flex-flow:row}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item[data-v-0bd01768]{padding:0 2px;cursor:pointer}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item span[data-v-0bd01768]{font-size:16px}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all[data-v-0bd01768]{position:relative}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all[data-v-0bd01768]:after{content:"选中设置全部";position:absolute;padding:4px 5px;white-space:nowrap;bottom:100%;left:50%;transform:translate(-50%);background-color:#000;color:#fff;border-radius:5px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all[data-v-0bd01768]:hover:after{opacity:1;visibility:visible}.style-space-config-container ._s-p-c_margin-operate ._s-p-c_margin-operate-item--all.active span[data-v-0bd01768]{color:#001ebd}.style-space-config-container ._s-p-c_padding-config[data-v-0bd01768]{width:100%;height:70px;background:#c6cf92;padding:28px 60px;position:relative}.style-space-config-container ._s-p-c_padding-config.active[data-v-0bd01768]{background-color:#a6b744}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-title[data-v-0bd01768]{position:absolute;left:5px;top:3px;font-size:12px}.style-space-config-container ._s-p-c_padding-config ._s-p-c_box[data-v-0bd01768]{width:100%;height:100%;background:#5192a7}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate[data-v-0bd01768]{position:absolute;right:3px;top:3px;display:flex;flex-flow:row}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item[data-v-0bd01768]{padding:0 2px;cursor:pointer}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item span[data-v-0bd01768]{font-size:16px}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all[data-v-0bd01768]{position:relative}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all[data-v-0bd01768]:after{content:"选中设置全部";position:absolute;padding:4px 5px;white-space:nowrap;bottom:100%;left:50%;transform:translate(-50%);background-color:#000;color:#fff;border-radius:5px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all[data-v-0bd01768]:hover:after{opacity:1;visibility:visible}.style-space-config-container ._s-p-c_padding-config ._s-p-c_padding-operate ._s-p-c_padding-operate-item--all.active span[data-v-0bd01768]{color:#001ebd}.style-space-config-container ._s-p-c_input[data-v-0bd01768]{position:absolute;width:50px;z-index:1;color:#fff}.style-space-config-container ._s-p-c_input[data-v-0bd01768] .el-input__wrapper{background:none;border-radius:0;box-shadow:none;border-bottom:1px solid #4d4d4d}.style-space-config-container ._s-p-c_input[data-v-0bd01768] .el-input__wrapper .el-input__inner{height:20px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-top[data-v-0bd01768]{top:0;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-bottom[data-v-0bd01768]{bottom:3px;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-left[data-v-0bd01768]{left:3px;top:50%;margin-top:-12px}.style-space-config-container ._s-p-c_input._s-p-c_input--margin-right[data-v-0bd01768]{right:3px;top:50%;margin-top:-12px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-top[data-v-0bd01768]{top:2px;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-bottom[data-v-0bd01768]{bottom:3px;left:50%;margin-left:-25px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-left[data-v-0bd01768]{left:5px;top:50%;margin-top:-14px}.style-space-config-container ._s-p-c_input._s-p-c_input--padding-right[data-v-0bd01768]{right:5px;top:50%;margin-top:-14px}.font-config-container[data-v-e87bcf95]{width:100%;height:auto;margin-bottom:10px}.font-config-container .font-config-header[data-v-e87bcf95]{display:flex;flex-flow:row;align-items:center;padding-left:2px;padding-bottom:5px}.font-config-container .font-config-header .font-config-header_title[data-v-e87bcf95]{padding-left:2px}.font-config-container .font-config-header .font-config-header_icon[data-v-e87bcf95]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:20px}.font-config-container .font-config-header .font-config-header_preview[data-v-e87bcf95]{color:#838383;width:0;flex:1}.font-config-container .font-config-content[data-v-e87bcf95]{padding:5px;background:#eee;display:flex;flex-flow:row wrap}.font-config-container .font-config-content .font-config-content_item[data-v-e87bcf95]{flex:0 0 50%;padding:2px;display:flex;flex-flow:column}.font-config-container .font-config-content .font-config-content_item .font-config-content_item-label[data-v-e87bcf95]{margin-bottom:5px}.border-config-container[data-v-7599b4ca]{width:100%;height:auto;margin-bottom:10px}.border-config-container .border-config-header[data-v-7599b4ca]{display:flex;flex-flow:row;align-items:center;padding-left:2px;padding-bottom:5px}.border-config-container .border-config-header .border-config-header_title[data-v-7599b4ca]{padding-left:2px}.border-config-container .border-config-header .border-config-header_icon[data-v-7599b4ca]{width:22px;height:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:20px}.border-config-container .border-config-header .border-config-header_preview[data-v-7599b4ca]{color:#838383;height:22px;width:0;flex:1;text-align:center;display:flex;align-items:center;justify-content:center}.border-config-container .border-config-header .border-config-header_operate[data-v-7599b4ca]{margin-left:20px;display:flex;flex-flow:row}.border-config-container .border-config-header .border-config-header_operate span[data-v-7599b4ca]{cursor:pointer;font-size:16px}.border-config-container .border-config-content[data-v-7599b4ca]{padding:5px;background:#eee;display:flex;flex-flow:row}.border-config-container .border-config-content .border-config-content_left[data-v-7599b4ca]{width:100px;height:100px;position:relative}.border-config-container .border-config-content .border-config-content_border-icon[data-v-7599b4ca]{width:30px;height:30px;display:flex;justify-content:center;align-items:center;cursor:pointer}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--selected span[data-v-7599b4ca]{color:#005089}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--center[data-v-7599b4ca]{position:absolute;left:33px;top:33px}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--left[data-v-7599b4ca]{position:absolute;left:0;top:33px}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--right[data-v-7599b4ca]{position:absolute;right:0;top:33px}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--top[data-v-7599b4ca]{position:absolute;left:33px;top:0}.border-config-container .border-config-content .border-config-content_border-icon.border-config-content_border-icon--bottom[data-v-7599b4ca]{position:absolute;left:33px;bottom:0}.border-config-container .border-config-content .border-config-content_border-icon span[data-v-7599b4ca]{font-size:24px;color:#000}.border-config-container .border-config-content .border-config-content_form[data-v-7599b4ca]{width:0;flex:1;display:flex;flex-flow:column;justify-content:center;padding:0 10px}.border-config-container .border-config-content .border-config-content_form .border-config-content_form-item+.border-config-content_form-item[data-v-7599b4ca]{margin-top:5px}.component-config-container[data-v-77d38c10]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-77d38c10]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-77d38c10]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-77d38c10]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-77d38c10]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-77d38c10]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-77d38c10]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-77d38c10]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-77d38c10]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-77d38c10]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-77d38c10] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-d983882f]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-d983882f]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-d983882f]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-d983882f]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-d983882f]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-d983882f]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-d983882f]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-d983882f]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-d983882f]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-d983882f]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-d983882f] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-c2bab41c]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-c2bab41c]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-c2bab41c]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-c2bab41c]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-c2bab41c]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-c2bab41c]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-c2bab41c]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-c2bab41c]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-c2bab41c]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-c2bab41c]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-c2bab41c] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-bada5acf]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-bada5acf]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-bada5acf]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-bada5acf]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-bada5acf]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-bada5acf]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-bada5acf]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-bada5acf]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-bada5acf]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-bada5acf]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-bada5acf] .color-picker--not-border .el-color-picker__trigger{border:none}.columns-field-config-container[data-v-bba377bc]{width:100%;border:1px solid #bdbdbd;padding:5px}.columns-field-config-container .columns-field-operate[data-v-bba377bc]{margin-bottom:2px}.columns-field-config-container .columns-field-content[data-v-bba377bc]{height:auto}.columns-field-config-container .columns-field-item[data-v-bba377bc]{display:flex;flex-flow:row;align-items:center;border:1px solid #eee;padding:3px 0}.columns-field-config-container .columns-field-item+.columns-field-item[data-v-bba377bc]{margin-top:2px}.columns-field-config-container .columns-field-item .columns-field-item_label[data-v-bba377bc]{width:60px;text-align:right;padding-right:3px;font-weight:700}.columns-field-config-container .columns-field-item .columns-field-item_content[data-v-bba377bc]{width:0;flex:1}.columns-field-config-container .columns-field-item .columns-field-item_operate[data-v-bba377bc]{display:flex;flex-flow:row;align-items:center;padding-left:3px}.columns-field-config-container .columns-field-item .columns-field-item_operate .el-button[data-v-bba377bc]{padding:1px 5px;height:20px;margin:0}.columns-field-config-container .columns-field-item .columns-field-item_operate .el-button+.el-button[data-v-bba377bc]{margin-left:1px}.component-config-container[data-v-ef6c1768]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-ef6c1768]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-ef6c1768]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-ef6c1768]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-ef6c1768]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-ef6c1768]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-ef6c1768]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-ef6c1768]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-ef6c1768]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-ef6c1768]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-ef6c1768] .color-picker--not-border .el-color-picker__trigger{border:none}.slash-direction-config-container[data-v-214be2f2]{display:flex;flex-flow:row}.slash-direction-config-container .slash-direction-item[data-v-214be2f2]{width:100px;height:30px;border:1px solid #ababab;cursor:pointer;position:relative;overflow:hidden}.slash-direction-config-container .slash-direction-item+.slash-direction-item[data-v-214be2f2]{margin-left:5px}.slash-direction-config-container .slash-direction-item.slash-direction-item--top-left .slash-direction-item_slash[data-v-214be2f2]{position:absolute;display:block;top:0;left:0;width:101.92153845px;height:1px;background-color:#ababab;transform:rotate(15.9453959deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--bottom-left .slash-direction-item_slash[data-v-214be2f2]{position:absolute;display:block;bottom:0;left:0;width:133.41664064px;height:1px;background-color:#ababab;transform:rotate(-16.69924423deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--active[data-v-214be2f2]{border:1px solid #02487b}.slash-direction-config-container .slash-direction-item.slash-direction-item--active .slash-direction-item_slash[data-v-214be2f2]{background-color:#02487b}.component-config-container[data-v-a925b83e]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-a925b83e]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-a925b83e]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-a925b83e]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-a925b83e]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-a925b83e]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-a925b83e]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-a925b83e]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-a925b83e]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-a925b83e]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-a925b83e] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-0efcc35f]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-0efcc35f]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-0efcc35f]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-0efcc35f]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-0efcc35f]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-0efcc35f]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-0efcc35f]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-0efcc35f]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-0efcc35f]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-0efcc35f]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-0efcc35f] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-d274db71]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-d274db71]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-d274db71]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-d274db71]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-d274db71]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-d274db71]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-d274db71]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-d274db71]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-d274db71]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-d274db71]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-d274db71] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-e48dcaf0]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-e48dcaf0]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-e48dcaf0]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-e48dcaf0]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-e48dcaf0]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-e48dcaf0]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-e48dcaf0]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-e48dcaf0]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-e48dcaf0]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-e48dcaf0]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-e48dcaf0] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-8cf9cec6]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-8cf9cec6]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-8cf9cec6]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-8cf9cec6]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-8cf9cec6]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-8cf9cec6]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-8cf9cec6]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-8cf9cec6]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-8cf9cec6]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-8cf9cec6]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-8cf9cec6] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-b21e1c1d]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-b21e1c1d]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-b21e1c1d]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-b21e1c1d]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-b21e1c1d]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-b21e1c1d]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-b21e1c1d]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-b21e1c1d]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-b21e1c1d]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-b21e1c1d]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-b21e1c1d] .color-picker--not-border .el-color-picker__trigger{border:none}.data-source-config-container[data-v-df68cfbd]{width:100%;border:1px solid #bdbdbd;padding:5px}.data-source-config-container .data-source-operate[data-v-df68cfbd]{margin-bottom:2px}.data-source-config-container .data-source-item_main[data-v-df68cfbd]{display:flex;flex-flow:column}.data-source-config-container .data-source-item[data-v-df68cfbd]{display:flex;flex-flow:row;border:1px solid #eee;padding:3px 0}.data-source-config-container .data-source-item+.data-source-item[data-v-df68cfbd]{margin-top:2px}.data-source-config-container .data-source-item .data-source-item_main[data-v-df68cfbd]{width:0;flex:1;display:flex;flex-flow:column}.data-source-config-container .data-source-item .data-source-item_operate[data-v-df68cfbd]{width:60px;display:flex;flex-flow:column;align-items:center}.data-source-config-container .data-source-item .data-source-item_operate .el-button[data-v-df68cfbd]{padding:1px 5px;height:20px;margin:0}.data-source-config-container .data-source-item .data-source-item_operate .el-button+.el-button[data-v-df68cfbd]{margin-top:1px}.data-source-config-container .data-source-item_row[data-v-df68cfbd]{display:flex;flex-flow:row}.data-source-config-container .data-source-item_row+.data-source-item_row[data-v-df68cfbd]{margin-top:2px}.data-source-config-container .data-source-item_row .data-source-item_row-label[data-v-df68cfbd]{width:40px;text-align:right;padding-right:3px}.data-source-config-container .data-source-item_row .data-source-item_row-content[data-v-df68cfbd]{width:0;flex:1}.component-config-container[data-v-69ff94bb]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-69ff94bb]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-69ff94bb]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-69ff94bb]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-69ff94bb]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-69ff94bb]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-69ff94bb]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-69ff94bb]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-69ff94bb]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-69ff94bb]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-69ff94bb] .color-picker--not-border .el-color-picker__trigger{border:none}.default-value-container[data-v-52c045d8]{width:100%;border:1px solid #bdbdbd;padding:5px}.default-value-container .default-value-operate[data-v-52c045d8]{margin-bottom:2px}.default-value-container .default-value-item[data-v-52c045d8]{display:flex;flex-flow:row}.default-value-container .default-value-item+.default-value-item[data-v-52c045d8]{margin-top:2px}.default-value-container .default-value-item .default-value-item_main[data-v-52c045d8]{width:0;flex:1}.default-value-container .default-value-item .default-value-item_operate[data-v-52c045d8]{margin-left:2px}.data-source-config-container[data-v-eafac6c5]{width:100%;border:1px solid #bdbdbd;padding:5px}.data-source-config-container .data-source-operate[data-v-eafac6c5]{margin-bottom:2px}.data-source-config-container .data-source-item_main[data-v-eafac6c5]{display:flex;flex-flow:column}.data-source-config-container .data-source-item[data-v-eafac6c5]{display:flex;flex-flow:row;border:1px solid #eee;padding:3px 0}.data-source-config-container .data-source-item+.data-source-item[data-v-eafac6c5]{margin-top:2px}.data-source-config-container .data-source-item .data-source-item_main[data-v-eafac6c5]{width:0;flex:1;display:flex;flex-flow:column}.data-source-config-container .data-source-item .data-source-item_operate[data-v-eafac6c5]{width:60px;display:flex;flex-flow:column;align-items:center}.data-source-config-container .data-source-item .data-source-item_operate .el-button[data-v-eafac6c5]{padding:1px 5px;height:20px;margin:0}.data-source-config-container .data-source-item .data-source-item_operate .el-button+.el-button[data-v-eafac6c5]{margin-top:1px}.data-source-config-container .data-source-item_row[data-v-eafac6c5]{display:flex;flex-flow:row}.data-source-config-container .data-source-item_row+.data-source-item_row[data-v-eafac6c5]{margin-top:2px}.data-source-config-container .data-source-item_row .data-source-item_row-label[data-v-eafac6c5]{width:40px;text-align:right;padding-right:3px}.data-source-config-container .data-source-item_row .data-source-item_row-content[data-v-eafac6c5]{width:0;flex:1}.component-config-container[data-v-d27523aa]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-d27523aa]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-d27523aa]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-d27523aa]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-d27523aa]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-d27523aa]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-d27523aa]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-d27523aa]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-d27523aa]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-d27523aa]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-d27523aa] .color-picker--not-border .el-color-picker__trigger{border:none}.data-source-config-container[data-v-85f8a22e]{width:100%;border:1px solid #bdbdbd;padding:5px}.data-source-config-container .data-source-operate[data-v-85f8a22e]{margin-bottom:2px}.data-source-config-container .data-source-item_main[data-v-85f8a22e]{display:flex;flex-flow:column}.data-source-config-container .data-source-item[data-v-85f8a22e]{display:flex;flex-flow:row;border:1px solid #eee;padding:3px 0}.data-source-config-container .data-source-item+.data-source-item[data-v-85f8a22e]{margin-top:2px}.data-source-config-container .data-source-item .data-source-item_main[data-v-85f8a22e]{width:0;flex:1;display:flex;flex-flow:column}.data-source-config-container .data-source-item .data-source-item_operate[data-v-85f8a22e]{width:60px;display:flex;flex-flow:column;align-items:center}.data-source-config-container .data-source-item .data-source-item_operate .el-button[data-v-85f8a22e]{padding:1px 5px;height:20px;margin:0}.data-source-config-container .data-source-item .data-source-item_operate .el-button+.el-button[data-v-85f8a22e]{margin-top:1px}.data-source-config-container .data-source-item_row[data-v-85f8a22e]{display:flex;flex-flow:row}.data-source-config-container .data-source-item_row+.data-source-item_row[data-v-85f8a22e]{margin-top:2px}.data-source-config-container .data-source-item_row .data-source-item_row-label[data-v-85f8a22e]{width:40px;text-align:right;padding-right:3px}.data-source-config-container .data-source-item_row .data-source-item_row-content[data-v-85f8a22e]{width:0;flex:1}.component-config-container[data-v-8034818f]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-8034818f]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-8034818f]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-8034818f]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-8034818f]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-8034818f]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-8034818f]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-8034818f]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-8034818f]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-8034818f]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-8034818f] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-85bb68d8]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-85bb68d8]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-85bb68d8]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-85bb68d8]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-85bb68d8]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-85bb68d8]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-85bb68d8]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-85bb68d8]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-85bb68d8]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-85bb68d8]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-85bb68d8] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-05c220d3]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-05c220d3]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-05c220d3]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-05c220d3]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-05c220d3]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-05c220d3]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-05c220d3]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-05c220d3]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-05c220d3]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-05c220d3]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-05c220d3] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-6354b92c]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-6354b92c]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-6354b92c]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-6354b92c]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-6354b92c]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-6354b92c]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-6354b92c]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-6354b92c]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-6354b92c]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-6354b92c]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-6354b92c] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-c79eb0bc]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-c79eb0bc]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-c79eb0bc]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-c79eb0bc]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-c79eb0bc]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-c79eb0bc]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-c79eb0bc]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-c79eb0bc]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-c79eb0bc]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-c79eb0bc]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-c79eb0bc] .color-picker--not-border .el-color-picker__trigger{border:none}.slash-direction-config-container[data-v-94ec41ef]{display:flex;flex-flow:row}.slash-direction-config-container .slash-direction-item[data-v-94ec41ef]{width:100px;height:30px;border:1px solid #ababab;cursor:pointer;position:relative;overflow:hidden}.slash-direction-config-container .slash-direction-item+.slash-direction-item[data-v-94ec41ef]{margin-left:5px}.slash-direction-config-container .slash-direction-item.slash-direction-item--top-left .slash-direction-item_slash[data-v-94ec41ef]{position:absolute;display:block;top:0;left:0;width:101.92153845px;height:1px;background-color:#ababab;transform:rotate(15.9453959deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--bottom-left .slash-direction-item_slash[data-v-94ec41ef]{position:absolute;display:block;bottom:0;left:0;width:133.41664064px;height:1px;background-color:#ababab;transform:rotate(-16.69924423deg);transform-origin:top left}.slash-direction-config-container .slash-direction-item.slash-direction-item--active[data-v-94ec41ef]{border:1px solid #02487b}.slash-direction-config-container .slash-direction-item.slash-direction-item--active .slash-direction-item_slash[data-v-94ec41ef]{background-color:#02487b}.component-config-container[data-v-ed3f9785]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-ed3f9785]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-ed3f9785]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-ed3f9785]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-ed3f9785]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-ed3f9785]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-ed3f9785]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-ed3f9785]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-ed3f9785]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-ed3f9785]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-ed3f9785] .color-picker--not-border .el-color-picker__trigger{border:none}.component-config-container[data-v-816a21bb]{width:100%;height:100%;padding:15px;overflow:auto}.component-config-container .component-config-header[data-v-816a21bb]{display:flex;flex-flow:row;align-items:center;padding-bottom:5px}.component-config-container .component-config-header .component-config-header_title[data-v-816a21bb]{width:0;flex:1;display:flex;flex-flow:row;align-items:center}.component-config-container .component-config-header .component-config-header_title p[data-v-816a21bb]{font-weight:700;font-size:16px}.component-config-container .component-config-header .component-config-header_operate[data-v-816a21bb]{margin-left:3px}.component-config-container .component-config-header .component-config-header_operate .component-config-header_operate_dropdown-button_icon[data-v-816a21bb]{font-size:12px}.component-config-container .component-config-header .component-config-header_icon[data-v-816a21bb]{margin-left:3px;cursor:pointer}.component-config-container .component-config-header .component-config-header_icon span[data-v-816a21bb]{font-size:18px;color:#666}.component-config-container .component-config-divider[data-v-816a21bb]{border-top:1px solid #d1d1d1;display:block;height:1px;margin-top:15px;margin-bottom:12px;width:100%;position:relative}.component-config-container .component-config-divider .component-config-divider_text[data-v-816a21bb]{background-color:#fff;color:#000;font-size:14px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.component-config-container[data-v-816a21bb] .color-picker--not-border .el-color-picker__trigger{border:none}.print-designer_component-config-container[data-v-450ac038]{width:100%;height:100%}.print-designer_component-config-container .print-designer_component-config-hint[data-v-450ac038]{text-align:center;padding:20px 0;font-size:24px;letter-spacing:1px;color:var(--wui-print-placeholder-color)}.print-designer_print-config-container[data-v-e99696c4]{width:100%;height:100%;padding:10px;overflow:auto}.print-designer_print-config-container .print-config_label-width[data-v-e99696c4]{width:100%;display:flex;flex-flow:row}.print-designer_print-config-container .print-config_label-width .print-config_label-width-input[data-v-e99696c4]{width:0;flex:1}.print-designer_print-config-container .print-config_label-width .print-config_label-width-unit[data-v-e99696c4]{width:100px;margin-left:5px}.print-designer_print-config-container .print-config-divider[data-v-e99696c4]{border-top:1px solid #d1d1d1;display:block;height:1px;margin:20px 0;width:100%;position:relative}.print-designer_print-config-container .print-config-divider .print-config-divider_text[data-v-e99696c4]{background-color:#fff;color:#000;font-size:16px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.print-designer_print-config-container[data-v-e99696c4] .color-picker--not-border .el-color-picker__trigger{border:none}.print-designer_form-config-container[data-v-9b247795]{width:100%;height:100%;padding:10px;overflow:auto}.print-designer_form-config-container .form-config_label-width[data-v-9b247795]{width:100%;display:flex;flex-flow:row}.print-designer_form-config-container .form-config_label-width .form-config_label-width-input[data-v-9b247795]{width:0;flex:1}.print-designer_form-config-container .form-config_label-width .form-config_label-width-unit[data-v-9b247795]{width:100px;margin-left:5px}.print-designer_form-config-container .form-config-divider[data-v-9b247795]{border-top:1px solid #d1d1d1;display:block;height:1px;margin:20px 0;width:100%;position:relative}.print-designer_form-config-container .form-config-divider .form-config-divider_text[data-v-9b247795]{background-color:#fff;color:#000;font-size:16px;font-weight:700;padding:0 10px;position:absolute;left:50%;transform:translate(-50%) translateY(-50%)}.print-designer_form-config-container[data-v-9b247795] .color-picker--not-border .el-color-picker__trigger{border:none}.print-designer-container[data-v-89cd7b90]{width:100%;height:100%;display:flex;flex-flow:row}
2
2
  /*$vite$:1*/`,document.head.appendChild(cr);/**!
3
3
  * Sortable 1.15.6
4
4
  * @author RubaXa <trash@rubaxa.org>
@@ -1027,4 +1027,4 @@ ${h.join(`
1027
1027
  * author : Adam Draper
1028
1028
  * license : MIT
1029
1029
  * http://adamwdraper.github.com/Numeral-js/
1030
- */var LL=_s.exports,B0;function PL(){return B0||(B0=1,function(r){(function(t,n){r.exports?r.exports=n():t.numeral=n()})(LL,function(){var t,n,o="2.0.6",l={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},d={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function f(c,m){this._input=c,this._value=m}return t=function(c){var m,h,b,x;if(t.isNumeral(c))m=c.value();else if(c===0||typeof c>"u")m=0;else if(c===null||n.isNaN(c))m=null;else if(typeof c=="string")if(d.zeroFormat&&c===d.zeroFormat)m=0;else if(d.nullFormat&&c===d.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{for(h in l)if(x=typeof l[h].regexps.unformat=="function"?l[h].regexps.unformat():l[h].regexps.unformat,x&&c.match(x)){b=l[h].unformat;break}b=b||t._.stringToNumber,m=b(c)}else m=Number(c)||null;return new f(c,m)},t.version=o,t.isNumeral=function(c){return c instanceof f},t._=n={numberToFormat:function(c,m,h){var b=i[t.options.currentLocale],x=!1,p=!1,O=0,C="",s=1e12,S=1e9,u=1e6,T=1e3,A="",V=!1,g,I,w,R,y,$,_;if(c=c||0,I=Math.abs(c),t._.includes(m,"(")?(x=!0,m=m.replace(/[\(|\)]/g,"")):(t._.includes(m,"+")||t._.includes(m,"-"))&&(y=t._.includes(m,"+")?m.indexOf("+"):c<0?m.indexOf("-"):-1,m=m.replace(/[\+|\-]/g,"")),t._.includes(m,"a")&&(g=m.match(/a(k|m|b|t)?/),g=g?g[1]:!1,t._.includes(m," a")&&(C=" "),m=m.replace(new RegExp(C+"a[kmbt]?"),""),I>=s&&!g||g==="t"?(C+=b.abbreviations.trillion,c=c/s):I<s&&I>=S&&!g||g==="b"?(C+=b.abbreviations.billion,c=c/S):I<S&&I>=u&&!g||g==="m"?(C+=b.abbreviations.million,c=c/u):(I<u&&I>=T&&!g||g==="k")&&(C+=b.abbreviations.thousand,c=c/T)),t._.includes(m,"[.]")&&(p=!0,m=m.replace("[.]",".")),w=c.toString().split(".")[0],R=m.split(".")[1],$=m.indexOf(","),O=(m.split(".")[0].split(",")[0].match(/0/g)||[]).length,R?(t._.includes(R,"[")?(R=R.replace("]",""),R=R.split("["),A=t._.toFixed(c,R[0].length+R[1].length,h,R[1].length)):A=t._.toFixed(c,R.length,h),w=A.split(".")[0],t._.includes(A,".")?A=b.delimiters.decimal+A.split(".")[1]:A="",p&&Number(A.slice(1))===0&&(A="")):w=t._.toFixed(c,0,h),C&&!g&&Number(w)>=1e3&&C!==b.abbreviations.trillion)switch(w=String(Number(w)/1e3),C){case b.abbreviations.thousand:C=b.abbreviations.million;break;case b.abbreviations.million:C=b.abbreviations.billion;break;case b.abbreviations.billion:C=b.abbreviations.trillion;break}if(t._.includes(w,"-")&&(w=w.slice(1),V=!0),w.length<O)for(var k=O-w.length;k>0;k--)w="0"+w;return $>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+b.delimiters.thousands)),m.indexOf(".")===0&&(w=""),_=w+A+(C||""),x?_=(x&&V?"(":"")+_+(x&&V?")":""):y>=0?_=y===0?(V?"-":"+")+_:_+(V?"-":"+"):V&&(_="-"+_),_},stringToNumber:function(c){var m=i[d.currentLocale],h=c,b={thousand:3,million:6,billion:9,trillion:12},x,p,O;if(d.zeroFormat&&c===d.zeroFormat)p=0;else if(d.nullFormat&&c===d.nullFormat||!c.replace(/[^0-9]+/g,"").length)p=null;else{p=1,m.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(m.delimiters.decimal,"."));for(x in b)if(O=new RegExp("[^a-zA-Z]"+m.abbreviations[x]+"(?:\\)|(\\"+m.currency.symbol+")?(?:\\))?)?$"),h.match(O)){p*=Math.pow(10,b[x]);break}p*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),p*=Number(c)}return p},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,m){return c.indexOf(m)!==-1},insert:function(c,m,h){return c.slice(0,h)+m+c.slice(h)},reduce:function(c,m){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof m!="function")throw new TypeError(m+" is not a function");var h=Object(c),b=h.length>>>0,x=0,p;if(arguments.length===3)p=arguments[2];else{for(;x<b&&!(x in h);)x++;if(x>=b)throw new TypeError("Reduce of empty array with no initial value");p=h[x++]}for(;x<b;x++)x in h&&(p=m(p,h[x],x,h));return p},multiplier:function(c){var m=c.toString().split(".");return m.length<2?1:Math.pow(10,m[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(m,h){var b=n.multiplier(h);return m>b?m:b},1)},toFixed:function(c,m,h,b){var x=c.toString().split("."),p=m-(b||0),O,C,s,S;return x.length===2?O=Math.min(Math.max(x[1].length,p),m):O=p,s=Math.pow(10,O),S=(h(c+"e+"+O)/s).toFixed(O),b>m-O&&(C=new RegExp("\\.?0{1,"+(b-(m-O))+"}$"),S=S.replace(C,"")),S}},t.options=d,t.formats=l,t.locales=i,t.locale=function(c){return c&&(d.currentLocale=c.toLowerCase()),d.currentLocale},t.localeData=function(c){if(!c)return i[d.currentLocale];if(c=c.toLowerCase(),!i[c])throw new Error("Unknown locale : "+c);return i[c]},t.reset=function(){for(var c in a)d[c]=a[c]},t.zeroFormat=function(c){d.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){d.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){d.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,m,h){if(m=m.toLowerCase(),this[c+"s"][m])throw new TypeError(m+" "+c+" already registered.");return this[c+"s"][m]=h,h},t.validate=function(c,m){var h,b,x,p,O,C,s,S;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{s=t.localeData(m)}catch{s=t.localeData(t.locale())}return x=s.currency.symbol,O=s.abbreviations,h=s.delimiters.decimal,s.delimiters.thousands==="."?b="\\.":b=s.delimiters.thousands,S=c.match(/^[^\d]+/),S!==null&&(c=c.substr(1),S[0]!==x)||(S=c.match(/[^\d]+$/),S!==null&&(c=c.slice(0,-1),S[0]!==O.thousand&&S[0]!==O.million&&S[0]!==O.billion&&S[0]!==O.trillion))?!1:(C=new RegExp(b+"{2}"),c.match(/[^\d.,]/g)?!1:(p=c.split(h),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(C):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(C)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(C)&&!!p[1].match(/^\d+$/)))},t.fn=f.prototype={clone:function(){return t(this)},format:function(c,m){var h=this._value,b=c||d.defaultFormat,x,p,O;if(m=m||Math.round,h===0&&d.zeroFormat!==null)p=d.zeroFormat;else if(h===null&&d.nullFormat!==null)p=d.nullFormat;else{for(x in l)if(b.match(l[x].regexps.format)){O=l[x].format;break}O=O||t._.numberToFormat,p=O(h,b,m)}return p},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var m=n.correctionFactor.call(null,this._value,c);function h(b,x,p,O){return b+Math.round(m*x)}return this._value=n.reduce([this._value,c],h,0)/m,this},subtract:function(c){var m=n.correctionFactor.call(null,this._value,c);function h(b,x,p,O){return b-Math.round(m*x)}return this._value=n.reduce([c],h,Math.round(this._value*m))/m,this},multiply:function(c){function m(h,b,x,p){var O=n.correctionFactor(h,b);return Math.round(h*O)*Math.round(b*O)/Math.round(O*O)}return this._value=n.reduce([this._value,c],m,1),this},divide:function(c){function m(h,b,x,p){var O=n.correctionFactor(h,b);return Math.round(h*O)/Math.round(b*O)}return this._value=n.reduce([this._value,c],m),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var m=c%10;return~~(c%100/10)===1?"th":m===1?"st":m===2?"nd":m===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,m,h){var b=t._.includes(m," BPS")?" ":"",x;return c=c*1e4,m=m.replace(/\s?BPS/,""),x=t._.numberToFormat(c,m,h),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,b+"BPS"),x=x.join("")):x=x+b+"BPS",x},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},m={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(m.suffixes.filter(function(x){return c.suffixes.indexOf(x)<0})),b=h.join("|");b="("+b.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(b)},format:function(x,p,O){var C,s=t._.includes(p,"ib")?m:c,S=t._.includes(p," b")||t._.includes(p," ib")?" ":"",u,T,A;for(p=p.replace(/\s?i?b/,""),u=0;u<=s.suffixes.length;u++)if(T=Math.pow(s.base,u),A=Math.pow(s.base,u+1),x===null||x===0||x>=T&&x<A){S+=s.suffixes[u],T>0&&(x=x/T);break}return C=t._.numberToFormat(x,p,O),C+S},unformat:function(x){var p=t._.stringToNumber(x),O,C;if(p){for(O=c.suffixes.length-1;O>=0;O--){if(t._.includes(x,c.suffixes[O])){C=Math.pow(c.base,O);break}if(t._.includes(x,m.suffixes[O])){C=Math.pow(m.base,O);break}}p*=C||1}return p}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,m,h){var b=t.locales[t.options.currentLocale],x={before:m.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:m.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,O,C;for(m=m.replace(/\s?\$\s?/,""),p=t._.numberToFormat(c,m,h),c>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),C=0;C<x.before.length;C++)switch(O=x.before[C],O){case"$":p=t._.insert(p,b.currency.symbol,C);break;case" ":p=t._.insert(p," ",C+b.currency.symbol.length-1);break}for(C=x.after.length-1;C>=0;C--)switch(O=x.after[C],O){case"$":p=C===x.after.length-1?p+b.currency.symbol:t._.insert(p,b.currency.symbol,-(x.after.length-(1+C)));break;case" ":p=C===x.after.length-1?p+" ":t._.insert(p," ",-(x.after.length-(1+C)+b.currency.symbol.length-1));break}return p}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,m,h){var b,x=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",p=x.split("e");return m=m.replace(/e[\+|\-]{1}0/,""),b=t._.numberToFormat(Number(p[0]),m,h),b+"e"+p[1]},unformat:function(c){var m=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(m[0]),b=Number(m[1]);b=t._.includes(c,"e-")?b*=-1:b;function x(p,O,C,s){var S=t._.correctionFactor(p,O),u=p*S*(O*S)/(S*S);return u}return t._.reduce([h,Math.pow(10,b)],x,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,m,h){var b=t.locales[t.options.currentLocale],x,p=t._.includes(m," o")?" ":"";return m=m.replace(/\s?o/,""),p+=b.ordinal(c),x=t._.numberToFormat(c,m,h),x+p}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,m,h){var b=t._.includes(m," %")?" ":"",x;return t.options.scalePercentBy100&&(c=c*100),m=m.replace(/\s?\%/,""),x=t._.numberToFormat(c,m,h),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,b+"%"),x=x.join("")):x=x+b+"%",x},unformat:function(c){var m=t._.stringToNumber(c);return t.options.scalePercentBy100?m*.01:m}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,m,h){var b=Math.floor(c/60/60),x=Math.floor((c-b*60*60)/60),p=Math.round(c-b*60*60-x*60);return b+":"+(x<10?"0"+x:x)+":"+(p<10?"0"+p:p)},unformat:function(c){var m=c.split(":"),h=0;return m.length===3?(h=h+Number(m[0])*60*60,h=h+Number(m[1])*60,h=h+Number(m[2])):m.length===2&&(h=h+Number(m[0])*60,h=h+Number(m[1])),Number(h)}})}(),t})}(_s)),_s.exports}var EL=PL();const mi=W1(EL),NL=r=>{const t=e.ref(""),n=e.ref(""),o=e.ref(""),l=()=>{const c=Date.now();t.value="wui-base-dialog-container-"+c+Math.round(Math.random()*10),n.value="wui-base-dialog-modal-"+c+Math.round(Math.random()*10),o.value="wui-base-dialog-header-"+c+Math.round(Math.random()*10)},i=c=>{if(c=String(c),c=="auto")return c;let m=["%","px"],h=!1;for(let b=0;b<m.length;b++){let x=m[b];if(c.includes(x)){h=!0;break}}return h?c:mi(c).value()+"px"},a=e.ref(0),d=e.ref(0);return{containerId:t,modalId:n,headerId:o,setId:l,formatStyleUnit:i,width:a,height:d,setDialogLayout:()=>{let c={width:a.value,height:d.value},m=document.body.clientWidth,h=document.body.clientHeight,b=i(r.width),x=i(r.height);c.width=b,c.height=x,b.includes("px")&&mi(b).value()>=mi(m).value()&&(c.width="96%"),x.includes("px")&&mi(x).value()>=mi(h).value()&&(c.height="96%"),a.value=c.width,d.value=c.height}}},ML=()=>{const r={initialX:0,initialY:0,offsetX:0,offsetY:0};let t,n,o,l=!1;const i=()=>{if(!o||!n)return!1;n.style.position="",n.style.left="",n.style.top=""},a=({containerId:b,modalId:x,headerId:p}={})=>{if(l)return!1;t=document.getElementById(`${b.value}`),n=document.getElementById(`${x.value}`),o=document.getElementById(`${p.value}`),o.addEventListener("mousedown",d),o.addEventListener("mouseup",h),l=!0},d=b=>{r.initialX=b.clientX,r.initialY=b.clientY,r.offsetX=n.offsetLeft,r.offsetY=n.offsetTop,document.addEventListener("mousemove",f)},f=b=>{n.style.position="absolute",c(b),m(b)},c=b=>{let p=b.clientX-r.initialX,O=r.offsetX+p,C=0,s=t.offsetWidth;if(p<0)O=O<=C?0:O,n.style.left=O+"px";else{let S=n.offsetWidth;O=n.offsetLeft+S>=s?s-S:O,n.style.left=O+"px"}},m=b=>{let p=b.clientY-r.initialY,O=r.offsetY+p,C=0,s=t.offsetHeight;if(p<0)O=O<=C?0:O,n.style.top=O+"px";else{let S=n.offsetHeight;O=n.offsetTop+S>=s?s-S:O,n.style.top=O+"px"}},h=()=>{document.removeEventListener("mousemove",f)};return{reset:i,bind:a}},R0=r=>(e.pushScopeId("data-v-188a3b3f"),r=r(),e.popScopeId(),r),DL=["id"],QL=R0(()=>e.createElementVNode("div",{class:"wui-base-dialog_mask"},null,-1)),WL={class:"wui-base-dialog_wrap"},UL=["id"],ZL=["id"],zL={key:0,class:"icon"},HL={class:"title"},jL=[R0(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],FL=["id"],XL={key:4,class:"wui-base-dialog_footer"},qL={key:5,class:"wui-base-dialog_footer"},qr=G({__name:"index",props:{modelValue:{type:Boolean,default:!1},zIndex:{type:[Number,String,Boolean],default:!1},width:{type:[Number,String],default:800},height:{type:[Number,String],default:500},minHeight:{type:[Number,String,Boolean],default:!1},maxWidth:{type:[Number,String,Boolean],default:!1},maxHeight:{type:[Number,String,Boolean],default:!1},padding:{type:[Number,String],default:15},icon:{type:String,default:""},title:{type:String,default:"提示"},cancelButtonShow:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},confirmButtonShow:{type:Boolean,default:!0},confirmText:{type:String,default:"确定"},confirmClose:{type:Boolean,default:!1},notClose:{type:Boolean,default:!1},notHeader:{type:Boolean,default:!1},notFooter:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},closeBefore:{type:[Boolean,Function],default(){return!1}}},emits:["update:modelValue","close","cancel","confirm"],setup(r,{expose:t,emit:n}){const o=ML(),l=n,i=r,{containerId:a,modalId:d,headerId:f,setId:c,formatStyleUnit:m,width:h,height:b,setDialogLayout:x}=NL(i),p=e.computed(()=>{let R,y=ip.getItem("wuiBaseDialogFloat","sessionStorage");return R=`z-index:${(i.zIndex?i.zIndex:y)+100}; top: 0; bottom: 0; left: 0; right: 0;`,R}),O=e.computed(()=>{let R=h.value,y=b.value;return`width:${R};height:${y};`}),C=e.computed(()=>"100%"),s=e.computed(()=>`padding:${m(i.padding)};`),S=e.computed(()=>{if(e.useSlots().footer)return"slot";if(!i.notFooter)return"default";if(i.notFooter)return"none"}),u=e.computed(()=>i.draggable?"wui-base-dialog-move":"");e.watch(()=>i.modelValue,(R,y)=>{R?(x(),I("add")):I("subtract"),i.draggable&&i.modelValue&&(o.reset(),e.nextTick(()=>{setTimeout(()=>{o.bind({containerId:a,modalId:d,headerId:f})},200)}))});const T=()=>{if(i.closeBefore&&typeof i.closeBefore=="function"){let y=i.closeBefore();return y&&!R(y)&&A(),!1}A();function R(y){return y&&typeof y.then=="function"&&typeof y.catch=="function"}},A=()=>{l("close"),l("update:modelValue",!1)},V=()=>{l("cancel"),l("update:modelValue",!1)},g=()=>{i.confirmClose&&l("update:modelValue",!1),l("confirm")},I=(R="add")=>{let y=ip.getItem("wuiBaseDialogFloat","sessionStorage");y||(y=0),R=="add"?y++:R=="subtract"&&y--,ip.setItem("wuiBaseDialogFloat",y,"sessionStorage")},w=()=>{c()};return e.onMounted(()=>{w()}),t({}),(R,y)=>{const $=e.resolveComponent("el-icon"),_=e.resolveComponent("el-scrollbar"),k=e.resolveComponent("el-button");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"wui-base-dialog_container wui-print-el",id:e.unref(a),style:e.normalizeStyle(p.value)},[QL,e.createElementVNode("div",WL,[e.createElementVNode("div",{class:"wui-base-dialog_modal",id:e.unref(d),style:e.normalizeStyle(O.value)},[i.notHeader?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`wui-base-dialog_header-none ${u.value}`),id:e.unref(f)},null,10,FL)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`wui-base-dialog_header ${u.value}`),id:e.unref(f)},[i.icon?(e.openBlock(),e.createElementBlock("div",zL,[i.icon?(e.openBlock(),e.createBlock($,{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.icon)))]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",HL,e.toDisplayString(i.title),1),i.notClose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"close",onClick:T},jL))],10,ZL)),i.scrollable?(e.openBlock(),e.createBlock(_,{key:2,"max-height":C.value,class:"wui-base-dialog_body","wrap-style":s.value,always:""},{default:e.withCtx(()=>[e.renderSlot(R.$slots,"default",{},void 0,!0)]),_:3},8,["max-height","wrap-style"])):(e.openBlock(),e.createElementBlock("div",{key:3,class:"wui-base-dialog_body",style:e.normalizeStyle(s.value)},[e.renderSlot(R.$slots,"default",{},void 0,!0)],4)),S.value=="default"?(e.openBlock(),e.createElementBlock("div",XL,[i.cancelButtonShow?(e.openBlock(),e.createBlock(k,{key:0,type:"warning",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.cancelText),1)]),_:1})):e.createCommentVNode("",!0),i.confirmButtonShow?(e.openBlock(),e.createBlock(k,{key:1,type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.confirmText),1)]),_:1})):e.createCommentVNode("",!0)])):S.value=="slot"?(e.openBlock(),e.createElementBlock("div",qL,[e.renderSlot(R.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],12,UL)])],12,DL)),[[e.vShow,i.modelValue]])}}},[["__scopeId","data-v-188a3b3f"]]),YL={__name:"index",emits:["dialogOpen","dialogClose","importSuccess"],setup(r,{expose:t,emit:n}){const o=n,l=e.ref(!1),i=e.ref(),a=e.ref("");e.watch(l,(m,h)=>{l.value?o("dialogOpen"):o("dialogClose")});const d=()=>{try{if(!a.value)return ge.alert("JSON数据为空,无法导入",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"}),!1;let m=JSON.parse(a.value);if(!m.printConfig)return ge.alert("JSON中缺少【printConfig】,无法导入",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"}),!1;if(!m.layoutConfig)return ge.alert("JSON中缺少【layoutConfig】,无法导入",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"}),!1;f()}catch(m){ge.alert(m,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})}},f=()=>{let m=JSON.parse(a.value);o("importSuccess",m),l.value=!1};return t({open:m=>{l.value=!0}}),(m,h)=>(e.openBlock(),e.createBlock(qr,{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=b=>l.value=b),title:"导入布局JSON",width:"98%",height:"98%",padding:"0",draggable:!1,scrollable:!1,"confirm-text":"导入",onConfirm:d},{default:e.withCtx(()=>[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=b=>a.value=b)},null,8,["modelValue"])]),_:1},8,["modelValue"]))}},GL={__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,l=e.ref(!1),i=e.ref(),a=e.ref("");return e.watch(l,(f,c)=>{l.value?o("dialogOpen"):o("dialogClose")}),t({open:f=>{l.value=!0,a.value=f?JSON.stringify(f,null," "):""}}),(f,c)=>(e.openBlock(),e.createBlock(qr,{modelValue:l.value,"onUpdate:modelValue":c[1]||(c[1]=m=>l.value=m),title:"导出布局JSON",width:"98%",height:"98%",padding:"0",draggable:!1,scrollable:!1,"not-footer":""},{default:e.withCtx(()=>[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=m=>a.value=m)},null,8,["modelValue"])]),_:1},8,["modelValue"]))}},KL={__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,l=e.ref(!1),i=e.ref(),a=e.ref("");e.watch(l,(c,m)=>{l.value?o("dialogOpen"):o("dialogClose")});const d=c=>{if(!c)return a.value="",!1;if(!a.value)return a.value=JSON.stringify(c,null," "),!1;let m=JSON.parse(a.value);Object.keys(c).forEach((h,b)=>{if(Array.isArray(c[h]))return!1;if(m[h]||m[h]===0)return c[h]=m[h],!1}),a.value=JSON.stringify(c,null," ")};return t({open:c=>{l.value=!0,d(c)}}),(c,m)=>(e.openBlock(),e.createBlock(qr,{modelValue:l.value,"onUpdate:modelValue":m[1]||(m[1]=h=>l.value=h),title:"导出参考数据",width:"98%",height:"98%",padding:"0",draggable:!1,scrollable:!1,"not-footer":""},{default:e.withCtx(()=>[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=h=>a.value=h)},null,8,["modelValue"])]),_:1},8,["modelValue"]))}},JL=()=>{const r=e.ref(!1),t=e.ref(),n=e.shallowRef(""),o=e.reactive({printData:{},printConfig:{},formConfig:{},layoutConfig:{}}),l=e.reactive({...o});return{dialogShow:r,codeMirrorEditorRef:t,codeValue:n,componentDataModel:o,componentData:l,setCodeValueByObj:d=>{if(!d)return n.value="",!1;if(!n.value)return n.value=JSON.stringify(d,null," "),!1;let f=JSON.parse(n.value);Object.keys(d).forEach((c,m)=>{(f[c]||f[c]===0)&&(d[c]=f[c])}),n.value=JSON.stringify(d,null," ")},clear:()=>{ue(l,o)}}},vL=r=>(e.pushScopeId("data-v-23342844"),r=r(),e.popScopeId(),r),eP={class:"print-dialog-container"},tP={class:"print-dialog-code"},oP=vL(()=>e.createElementVNode("div",{class:"print-dialog-iframe-container"},[e.createElementVNode("iframe",{id:"print-preview-iframe"})],-1)),nP=G({__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,{dialogShow:l,codeMirrorEditorRef:i,codeValue:a,componentDataModel:d,componentData:f,setCodeValueByObj:c,clear:m}=JL();e.watch(l,(s,S)=>{l.value?o("dialogOpen"):(m(),o("dialogClose"))}),e.watch(()=>f.printData,(s,S)=>{l.value&&c(f.printData)});const h=()=>{l.value=!1},b=()=>{uo.previewInIframe({iframeId:"print-preview-iframe",printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},x=()=>{uo.preview({printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},p=()=>{uo.print({type:"web",printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},O=()=>{uo.print({type:"soket",printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})};return t({open:({printData:s,formConfig:S,printConfig:u,layoutConfig:T}={})=>{l.value=!0,ue(f,d,{printData:s,printConfig:u,formConfig:S,layoutConfig:T}),e.nextTick(()=>{b()})}}),(s,S)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(qr,{modelValue:e.unref(l),"onUpdate:modelValue":S[1]||(S[1]=T=>e.isRef(l)?l.value=T:null),title:"打印 / 预览",width:"99%",height:"99%",padding:"0",draggable:!1,scrollable:!1},{footer:e.withCtx(()=>[e.createVNode(u,{type:"warning",onClick:h},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(u,{type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode("刷新 iframe")]),_:1}),e.createVNode(u,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印预览")]),_:1}),e.createVNode(u,{type:"primary",onClick:p},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印")]),_:1}),e.createVNode(u,{type:"primary",onClick:O},{default:e.withCtx(()=>[e.createTextVNode("静默打印")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",eP,[e.createElementVNode("div",tP,[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:e.unref(a),"onUpdate:modelValue":S[0]||(S[0]=T=>e.isRef(a)?a.value=T:null)},null,8,["modelValue"])]),oP])]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-23342844"]]),rP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>{let d=r.componentDetails.style;return M.createDynamicTextLabelStyle({styleConfig:d})}),o=e.computed(()=>{let d=r.componentDetails.style;return M.createDynamicTextContentStyle({styleConfig:d})}),l=e.computed(()=>{let d=r.componentDetails.style;return M.createDynamicTextStyle({styleConfig:d})}),i=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return"";let d=r.componentDetails.props,f=r.componentDetails.props.field;return d.isDateTime?a({dateText:t.value[f],format:d.dateTimeFormat}):t.value[f]||t.value[f]===0?t.value[f]:""});function a({dateText:d,format:f}={}){if(!d)return d;const c=new Date(d),m=c.getFullYear(),h=String(c.getMonth()+1).padStart(2,"0"),b=String(c.getDate()).padStart(2,"0"),x=String(c.getHours()).padStart(2,"0"),p=String(c.getMinutes()).padStart(2,"0"),O=String(c.getSeconds()).padStart(2,"0");return f.replace("YYYY",m).replace("MM",h).replace("DD",b).replace("HH",x).replace("mm",p).replace("ss",O)}return{labelStyle:n,textStyle:o,containerStyle:l,textStr:i}},ap=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{labelStyle:o,textStyle:l,containerStyle:i,textStr:a}=rP(n);return t({}),(d,f)=>{var c,m;return e.openBlock(),e.createElementBlock("div",{class:"dynamic-text-component-container",style:e.normalizeStyle(e.unref(i))},[e.createElementVNode("div",{class:"dynamic-text-component-container_label",style:e.normalizeStyle(e.unref(o))},e.toDisplayString((m=(c=r.componentDetails)==null?void 0:c.props)==null?void 0:m.label),5),e.createElementVNode("div",{class:"dynamic-text-component-container_text",style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(a)),5)],4)}}},[["__scopeId","data-v-f59b6d3c"]]),lP=r=>({containerStyle:e.computed(()=>{let n=r.componentDetails.style;return M.createTextStyle({styleConfig:n})})}),sp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o}=lP(n);return t({}),(l,i)=>{var a,d;return e.openBlock(),e.createElementBlock("div",{class:"text-component-container",style:e.normalizeStyle(e.unref(o))},e.toDisplayString((d=(a=r.componentDetails)==null?void 0:a.props)==null?void 0:d.defaultContent),5)}}},[["__scopeId","data-v-e71b87db"]]),iP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>{let c=r.componentDetails.style;return M.createTableStyle({styleConfig:c})}),o=e.computed(()=>c=>{let m=r.componentDetails.style;return M.createTableHeaderStyle({tableStyleConfig:m,columnStyleConfig:c.style})}),l=e.computed(()=>c=>{let m=r.componentDetails.style;return M.createTableCellStyle({tableStyleConfig:m,columnStyleConfig:c.style})}),i=e.computed(()=>c=>!c.props||!c.props.headerTitle?"":c.props.headerTitle),a=e.computed(()=>!r.componentDetails||!r.componentDetails.columns||r.componentDetails.columns.length<=0?[]:r.componentDetails.columns),d=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return[];let c=r.componentDetails.props.field;return t.value[c]?t.value[c]:[]}),f=e.computed(()=>(c,m)=>{if(!m.props||!m.props.field)return"";let h=m.props.field;return c[h]||c[h]===0?c[h]:""});return{tableStyle:n,columnHeaderStyle:o,columnCellStyle:l,columnTitle:i,columnList:a,tableData:d,tdValue:f}},dp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{tableStyle:o,columnHeaderStyle:l,columnCellStyle:i,columnTitle:a,columnList:d,tableData:f,tdValue:c}=iP(n);return t({}),(m,h)=>(e.openBlock(),e.createElementBlock("table",{class:"table-component-container",cellpadding:"0",cellspacing:"0",style:e.normalizeStyle(e.unref(o))},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(b,x)=>(e.openBlock(),e.createElementBlock("th",{key:x,style:e.normalizeStyle(e.unref(l)(b))},e.toDisplayString(e.unref(a)(b)),5))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(b,x)=>(e.openBlock(),e.createElementBlock("tr",{key:x},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(p,O)=>(e.openBlock(),e.createElementBlock("td",{key:x,style:e.normalizeStyle(e.unref(i)(b))},e.toDisplayString(e.unref(c)(b,p)),5))),128))]))),128))],4))}},[["__scopeId","data-v-3238709e"]]),aP=r=>{const{complexTableDetails:t}=e.inject("printForm_complexTabletComponent"),n=e.ref(),o=e.computed(()=>{let m=t.headerRules,h=M.getComplexTableHeaderRulesId({rowIndex:r.itemDetails.rowIndex,colIndex:r.itemDetails.colIndex});return m&&m[h]?m[h].props:{}}),l=e.computed(()=>{let m=[];return o.value.slash&&m.push(`header-item-slash-container--${o.value.slashDirection}`),m.join(" ")}),i=e.ref(""),a=e.computed(()=>o.value.slashTextLeft?o.value.slashTextLeft:""),d=e.computed(()=>o.value.slashTextRight?o.value.slashTextRight:""),f=e.computed(()=>!!o.value.slash);return{containerRef:n,tdPropsConfig:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,hasSlash:f,setSlashStyle:()=>{if(!o.value.slash){i.value="";return}let m=n.value.parentElement,h=M.createComplexTableHeaderTdSlashStyle({width:m.clientWidth,height:m.clientHeight,direction:o.value.slashDirection});i.value=h}}},sP={class:"_h-i-s-c_left"},dP={class:"_h-i-s-c_right"},fP=G({__name:"HeaderItemSlash",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerRef:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,hasSlash:f,setSlashStyle:c}=aP(n);return e.onMounted(()=>{c()}),t({}),(m,h)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"containerRef",ref:o,class:e.normalizeClass(`header-item-slash-container ${e.unref(l)}`)},[e.createElementVNode("span",sP,e.toDisplayString(e.unref(a)),1),e.createElementVNode("span",{class:"_h-i-s-c_slash",style:e.normalizeStyle(e.unref(i))},null,4),e.createElementVNode("span",dP,e.toDisplayString(e.unref(d)),1)],2)):e.createCommentVNode("",!0)}},[["__scopeId","data-v-0fbc56c2"]]),cP={class:"complex-table_pagination-container"},pP=G({__name:"Pagination",setup(r,{expose:t}){return t({}),(n,o)=>(e.openBlock(),e.createElementBlock("div",cP,"第1页"))}},[["__scopeId","data-v-4aa8c242"]]),mP=({complexTableDetails:r}={})=>{const t=e.computed(()=>{let b={};return r.headerLayout&&r.headerLayout.forEach((x,p)=>{b[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=x}),b}),n=e.computed(()=>{let b={};return r.headerLayout&&r.headerLayout.forEach((x,p)=>{x.rowspan&&(b[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=x.rowspan)}),b}),o=e.computed(()=>{let b={};return r.headerLayout&&r.headerLayout.forEach((x,p)=>{x.colspan&&(b[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=x.colspan)}),b}),l=e.reactive({}),i=e.reactive([]),a=()=>{let b={},x=[];if(!r.headerLayout||r.headerLayout.length<=0){ue(l,{}),i.splice(0,i.length);return}r.headerLayout.forEach((p,O)=>{let C=p.rowspan?p.rowspan:1,s=p.colspan?p.colspan:1,S=p.rowIndex,u=p.rowIndex+C-1,T=p.colIndex,A=p.colIndex+s-1,V=[];for(let g=S;g<=u;g++)for(let I=T;I<=A;I++)g===p.rowIndex&&I===p.colIndex?V.push({rowIndex:g,colIndex:I,rowspan:C,colspan:s,show:!0}):V.push({rowIndex:g,colIndex:I,rowspan:C,colspan:s,startRowIndex:p.rowIndex,startColIndex:p.colIndex,show:!1});b[d({rowIndex:p.rowIndex,colIndex:p.colIndex})]=V,x.push(...V)}),ue(l,b),i.splice(0,i.length,...x)},d=({rowIndex:b,colIndex:x}={})=>`${b}-${x}`,f=b=>{if(!b)return!1;let x=b.split("-");return{rowIndex:Number(x[0]),colIndex:Number(x[1])}},c=()=>{r.headerLayout||(r.headerLayout=[])},m=({rowIndex:b,colIndex:x}={})=>{if(!r.headerLayout||r.headerLayout.length<=0)return!1;let p=!1;return r.headerLayout.forEach((O,C)=>{O.rowIndex===b&&O.colIndex===x&&(p=O)}),p};return{layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,setSpanCell:a,getHeaderCellId:d,getHeaderCellIdDetails:f,createLayout:c,getLayoutItem:m,countUnmergedCells:({rowIndex:b,colIndex:x}={})=>{let p={row:r.props.headerRow-b-1,col:r.props.col-x-1};if(!r.headerLayout||r.headerLayout.length<=0)return p;let O=1,C=1,s=m({rowIndex:b,colIndex:x});s&&s.rowspan&&(O=s.rowspan),s&&s.colspan&&(C=s.colspan);let S=l[d({rowIndex:b,colIndex:x})];if(!S)return i.forEach((u,T)=>{if(u.colIndex===x&&u.rowIndex>b){let A=u.rowIndex-b-O;p.row>A&&(p.row=A);return}if(u.rowIndex===b&&u.colIndex>x){let A=u.colIndex-x-C;p.col>A&&(p.col=A);return}}),p;if(S){let u,T;return S.forEach((A,V)=>{i.forEach((g,I)=>{if(!(g.rowIndex===A.rowIndex&&g.colIndex===A.colIndex)){if(g.colIndex===A.colIndex&&g.rowIndex>A.rowIndex){g.startRowIndex===b&&g.startColIndex===x?u=r.props.headerRow-b-A.rowspan:u=g.rowIndex-A.rowIndex-A.rowspan,p.row>u&&(p.row=u);return}if(g.rowIndex===A.rowIndex&&g.colIndex>A.colIndex){g.startRowIndex===b&&g.startColIndex===x?T=r.props.col-x-A.colspan:T=g.colIndex-A.colIndex-A.colspan,p.col>T&&(p.col=T);return}}})}),p.row=p.row>=0?p.row:0,p.col=p.col>=0?p.col:0,p}}}},hP=({props:r,layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,getHeaderCellId:a}={})=>{const{defaultData:d}=e.inject("printForm"),f=e.computed(()=>{let w=r.componentDetails.props,R=[];return w&&w.canContinue&&w.continuePrintMode=="fixedHeight"?R.push("complex-table-component-container--fixed-height"):w&&w.canContinue&&w.continuePrintMode=="autoHeight"&&w.autoHeightSpanCell?R.push("complex-table-component-container--auto-height-span"):w&&w.canContinue&&w.continuePrintMode=="autoHeight"&&!w.autoHeightSpanCell&&R.push("complex-table-component-container--auto-height-not-span"),R.join(" ")}),c=e.computed(()=>{let w=r.componentDetails.props,R=r.componentDetails.style;return M.createComplexTableStyle({propsConfig:w,styleConfig:R})}),m=e.computed(()=>({rowIndex:w,colIndex:R})=>{let y=r.componentDetails.props,$=r.componentDetails.style,_=r.componentDetails.headerRules,k=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R}),L=!1,B=!1;return _&&_[k]&&(L=_[k].props,B=_[k].style),M.createComplexTableHeaderTdStyle({complexTablePropsConfig:y,complexTableStyleConfig:$,tdPropsConfig:L,tdStyleConfig:B})}),h=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=r.componentDetails.props,$=r.componentDetails.style,_=r.componentDetails.headerRules,k=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R}),L=!1,B=!1;return _&&_[k]&&(L=_[k].props,B=_[k].style),M.createComplexTableHeaderTdContainerStyle({complexTablePropsConfig:y,complexTableStyleConfig:$,tdPropsConfig:L,tdStyleConfig:B})}),b=e.computed(()=>{let w=r.componentDetails.props,R=r.componentDetails.style;return M.createComplexTableContentTdStyle({complexTablePropsConfig:w,complexTableStyleConfig:R})}),x=e.computed(()=>{let w=r.componentDetails.props,R=r.componentDetails.style;return M.createComplexTableContentTdContainerStyle({complexTablePropsConfig:w,complexTableStyleConfig:R})}),p=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.headerRow?0:r.componentDetails.props.headerRow),O=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.col?0:r.componentDetails.props.col),C=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=a({rowIndex:w,colIndex:R});return n.value[y]?n.value[y]:1}),s=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=a({rowIndex:w,colIndex:R});return o.value[y]?o.value[y]:1}),S=e.computed(()=>({rowIndex:w,colIndex:R}={})=>r.componentDetails.id?`${r.componentDetails.id}_${a({rowIndex:w,colIndex:R})}`:a({rowIndex:w,colIndex:R})),u=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{if(i.length<=0)return!0;let y=i.find(($,_)=>w===$.rowIndex&&$.colIndex===R);if(!y)return!0;if(y)return y.show}),T=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=r.componentDetails.headerRules,$=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R}),_=!1;return y&&y[$]&&(_=y[$].props),_?_.title:""}),A=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return[];let w=r.componentDetails.props.field;return Array.isArray(d.value[w])?q(d.value[w]):[]}),V=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=r.componentDetails.props;if(!y.columnsField||!y.columnsField[R])return"";let $=y.columnsField[R].field;if(!A.value[w])return"";let _=A.value[w][$];return _||_===0?_:""}),g=e.computed(()=>({rowIndex:w,colIndex:R})=>{let y=r.componentDetails.headerRules,$=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R});return y&&y[$]?!!y[$].props.slash:!1}),I=e.computed(()=>{let w=r.componentDetails.props;return w?!!w.isPaginationEnabled:!1});return{complexTableClass:f,complexTableStyle:c,complexTableHeaderTdStyle:m,complexTableHeaderTdContainerStyle:h,complexTableContentTdStyle:b,complexTableContentTdContainerStyle:x,headerRowNum:p,colNum:O,rowspan:C,colspan:s,tdKey:S,tdShow:u,headerTdText:T,contetnTableData:A,contentTdText:V,headerTdHasSlash:g,paginationShow:I}},uP=["rowspan","colspan"],gP=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getHeaderCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}=mP({complexTableDetails:n.componentDetails}),{complexTableClass:x,complexTableStyle:p,complexTableHeaderTdStyle:O,complexTableHeaderTdContainerStyle:C,complexTableContentTdStyle:s,complexTableContentTdContainerStyle:S,headerRowNum:u,colNum:T,rowspan:A,colspan:V,tdKey:g,tdShow:I,headerTdText:w,contetnTableData:R,contentTdText:y,headerTdHasSlash:$,paginationShow:_}=hP({props:n,layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,getHeaderCellId:c});return e.provide("printForm_complexTabletComponent",{complexTableDetails:n.componentDetails}),e.provide("printForm_complexTabletComponent--layout",{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getHeaderCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}),e.watch(()=>n.componentDetails.headerLayout,(k,L)=>{f()},{immediate:!0,deep:!0}),t({}),(k,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`complex-table-component-container ${e.unref(x)}`)},[e.createElementVNode("table",{class:"complex-table-component-table",cellspacing:"0",cellpadding:"0",style:e.normalizeStyle(e.unref(p))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(B,E)=>(e.openBlock(),e.createElementBlock("tr",{key:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),(N,W)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(I)({rowIndex:E,colIndex:W})?(e.openBlock(),e.createElementBlock("td",{key:e.unref(g)({rowIndex:E,colIndex:W}),style:e.normalizeStyle(e.unref(O)({rowIndex:E,colIndex:W})),rowspan:e.unref(A)({rowIndex:E,colIndex:W}),colspan:e.unref(V)({rowIndex:E,colIndex:W})},[e.unref($)({rowIndex:E,colIndex:W})?(e.openBlock(),e.createBlock(fP,{key:0,"item-details":{rowIndex:E,colIndex:W}},null,8,["item-details"])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(e.unref(C)({rowIndex:E,colIndex:W}))},e.toDisplayString(e.unref(w)({rowIndex:E,colIndex:W})),5))],12,uP)):e.createCommentVNode("",!0)],64))),256))]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R),(B,E)=>(e.openBlock(),e.createElementBlock("tr",{key:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),(N,W)=>(e.openBlock(),e.createElementBlock("td",{style:e.normalizeStyle(e.unref(s))},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(S))},e.toDisplayString(e.unref(y)({rowIndex:E,colIndex:W})),5)],4))),256))]))),128))],4),e.withDirectives(e.createVNode(pP,null,null,512),[[e.vShow,e.unref(_)]])],2))}},[["__scopeId","data-v-8e89d2fd"]]),bP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>`barcode-form_${r.componentDetails.id}`),o=e.computed(()=>{let a=r.componentDetails.style;return M.createBarcodeContainerStyle({styleConfig:a})}),l=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return"";let a=r.componentDetails.props.field;return t.value[a]||t.value[a]===0?t.value[a]:"00000000000"}),i=e.ref(!1);return{svgId:n,containerStyle:o,barcodeValue:l,barcodeInitError:i}},yP=["id"],xP={class:"barcode-error"},fp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{svgId:o,containerStyle:l,barcodeValue:i,barcodeInitError:a}=bP(n);e.watch(()=>n.componentDetails,(c,m)=>{e.nextTick(()=>{d()})},{immediate:!0,deep:!0}),e.watch(i,(c,m)=>{e.nextTick(()=>{f()})});const d=()=>{try{if(a.value=!1,!n.componentDetails||!n.componentDetails.props)return;f()}catch(c){console.warn(c),a.value=!0}},f=()=>{let c=n.componentDetails?n.componentDetails.props:{};JsBarcode(`#${o.value}`,i.value,{format:c.format,lineColor:c.lineColor,background:c.background,width:c.width,height:c.height,displayValue:c.displayValue,fontSize:c.fontSize,margin:c.margin,textAlign:c.textAlign,textPosition:c.textPosition})};return t({}),(c,m)=>{const h=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{class:"barcode-component-container",style:e.normalizeStyle(e.unref(l))},[(e.openBlock(),e.createElementBlock("svg",{id:e.unref(o)},null,8,yP)),e.withDirectives(e.createElementVNode("div",xP,[e.createVNode(h,{size:"small",plain:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode("刷新")]),_:1})],512),[[e.vShow,!!e.unref(a)]])],4)}}},[["__scopeId","data-v-9afba07f"]]),CP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>`qrcode-component_${r.componentDetails.id}`),o=e.computed(()=>{let a=r.componentDetails.style;return M.createQrcodeContainerStyle({styleConfig:a})}),l=e.ref(!1),i=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return"";let a=r.componentDetails.props.field;return t.value[a]||t.value[a]===0?t.value[a]:"无效二维码"});return{qrcodeId:n,containerStyle:o,qrcodeInstance:l,qrcodeText:i}},OP=["id"],cp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{qrcodeId:o,containerStyle:l,qrcodeInstance:i,qrcodeText:a}=CP(n);e.watch(()=>n.componentDetails,(f,c)=>{e.nextTick(()=>{d()})},{immediate:!0,deep:!0}),e.watch(a,(f,c)=>{i.value&&i.value.makeCode(a.value)});const d=()=>{try{let f=n.componentDetails?n.componentDetails.props:{};if(!f)return;i.value||(i.value=new window.QRCode(document.getElementById(o.value),{text:a.value,width:f.width,height:f.height}))}catch(f){console.warn(f)}};return t({}),(f,c)=>(e.openBlock(),e.createElementBlock("div",{class:"qrcode-component-container",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("div",{id:e.unref(o)},null,8,OP)],4))}},[["__scopeId","data-v-a83eeb76"]]),wP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>{let l=r.componentDetails.style;return M.createImageContainerStyle({styleConfig:l})}),o=e.computed(()=>{let l=r.componentDetails.props;return l&&!l.field&&l.src?l.src:l&&l.field?t.value[l.field]:""});return{containerStyle:n,imageSrc:o}},_P=["src"],pp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,imageSrc:l}=wP(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"image-component-container",style:e.normalizeStyle(e.unref(o))},[e.createElementVNode("img",{class:"image-component-content",src:e.unref(l)},null,8,_P)],4))}},[["__scopeId","data-v-40f5ffdf"]]),Yr=(r,t)=>{const{formConfig:n}=e.inject("printForm"),{changeLogs:o}=e.inject("valueChange"),l=e.computed(()=>{let x=r.componentDetails.style;return M.createFormItemStyle({styleConfig:x})}),i=e.computed(()=>{let x=r.componentDetails.style,p=r.componentDetails.props?r.componentDetails.props:{};return M.createFormItemLabelStyleInDesigner({styleConfig:x,formConfigProps:n,formItemProps:p})}),a=e.computed(()=>{let x=r.componentDetails.style;return M.createFormItemMainStyleInDesigner({styleConfig:x})}),d=e.computed(()=>{let x=r.componentDetails.formItemProps?q(r.componentDetails.formItemProps):{};return Object.keys(x).forEach(p=>{!x[p]&&n.value.props[p]&&(x[p]=n.value.props[p])}),x.size=n.value.props.size,x}),f=e.computed(()=>!!(r.componentDetails.formItemProps?q(r.componentDetails.formItemProps):{}).label),c=e.computed(()=>{let x=r.componentDetails.formItemProps?q(r.componentDetails.formItemProps):{};return x.label?x.label:""}),m=e.computed(()=>r.componentDetails.props?r.componentDetails.props:{});return{formItemStyle:l,formItemLabelStyle:i,formItemMainStyle:a,formItemProps:d,formItemLabelShow:f,formItemLabel:c,componentDetailsProps:m,selectChange:x=>{o.value.set(m.value.field,x)},inputChange:x=>{o.value.set(m.value.field,x)}}},SP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field);return{inputProps:n,field:o}},mp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},emits:["change"],setup(r,{expose:t,emit:n}){const o=r,{formItemStyle:l,formItemLabelStyle:i,formItemMainStyle:a,formItemProps:d,formItemLabelShow:f,formItemLabel:c,componentDetailsProps:m,inputChange:h}=Yr(o),{inputProps:b}=SP(o),{elFormData:x}=e.inject("printForm"),p=e.computed({get:()=>x[m.value.field],set:C=>{x[m.value.field]=C}}),{changeLogs:O}=e.inject("valueChange");return e.watch(O,()=>{if(console.log("watch:",m.value),m.value.compute){let C=0,s=0;switch(m.value.computeMethods){case"sum":m.value.fields.forEach(S=>{C+=parseInt(O.value.get(S)??0)}),x[m.value.field]=C;break;case"average":m.value.fields.forEach(S=>{C+=parseInt(O.value.get(S)??0)}),s=C/m.value.fields.length,x[m.value.field]=s;break}}},{deep:!0}),t({}),(C,s)=>{const S=e.resolveComponent("el-input"),u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,e.mergeProps({class:"input-component-container",style:e.unref(l)},e.unref(d)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(a))},[e.createVNode(S,e.mergeProps({modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=T=>p.value=T)},e.unref(b),{onChange:e.unref(h)}),null,16,["modelValue","onChange"])],4)]),_:2},[e.unref(f)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(i))},e.toDisplayString(e.unref(c)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-a590cd7b"]]),kP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>{let l=r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{};return l.autosize&&(l.rows=1),l}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field);return{textareaProps:n,field:o}},hp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{textareaProps:c,field:m}=kP(n),{elFormData:h}=e.inject("printForm");return t({}),(b,x)=>{const p=e.resolveComponent("el-input"),O=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(O,e.mergeProps({class:"textarea-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(p,e.mergeProps({modelValue:e.unref(h)[e.unref(m)],"onUpdate:modelValue":x[0]||(x[0]=C=>e.unref(h)[e.unref(m)]=C),type:"textarea"},e.unref(c)),null,16,["modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-3fcf7d21"]]),TP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),l=e.computed(()=>{let i=r.componentDetails.props?r.componentDetails.props:{};return i.dataSource?i.dataSource:[]});return{radioProps:n,field:o,dataSource:l}},up=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{radioProps:c,field:m,dataSource:h}=TP(n),{elFormData:b}=e.inject("printForm");return t({}),(x,p)=>{const O=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"radio-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(C,e.mergeProps({modelValue:e.unref(b)[e.unref(m)],"onUpdate:modelValue":p[0]||(p[0]=S=>e.unref(b)[e.unref(m)]=S)},e.unref(c)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(S,u)=>(e.openBlock(),e.createBlock(O,{key:S.value,value:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:1},16,["modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-375e469b"]]),IP=r=>{const{formConfig:t,elFormData:n}=e.inject("printForm"),o=e.ref([]),l=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),i=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),a=e.computed(()=>{let c=r.componentDetails.props?r.componentDetails.props:{};return c.dataSource?c.dataSource:[]});return{checkboxValue:o,checkboxProps:l,field:i,dataSource:a,setCheckboxValueByStr:c=>{if(typeof c!="string"||!c){o.value=[];return}let m=c.split(",");o.value=m},setFormItemDataByCheckboxValue:()=>{n[i.value]=o.value.join(",")}}},gp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{checkboxValue:c,checkboxProps:m,field:h,dataSource:b,setCheckboxValueByStr:x,setFormItemDataByCheckboxValue:p}=IP(n),{elFormData:O}=e.inject("printForm");return e.watch([()=>O[h.value],h],(C,s)=>{h.value&&x(O[h.value])},{immediate:!0,deep:!0}),e.watch(c,(C,s)=>{p()},{deep:!0}),t({}),(C,s)=>{const S=e.resolveComponent("el-checkbox"),u=e.resolveComponent("el-checkbox-group"),T=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(T,e.mergeProps({class:"checkbox-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(u,e.mergeProps({modelValue:e.unref(c),"onUpdate:modelValue":s[0]||(s[0]=A=>e.isRef(c)?c.value=A:null)},e.unref(m)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),(A,V)=>(e.openBlock(),e.createBlock(S,{key:A.value,value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),128))]),_:1},16,["modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-7153842c"]]),AP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),l=e.computed(()=>{let i=r.componentDetails.props?r.componentDetails.props:{};return i.dataSource?i.dataSource:[]});return{selectProps:n,field:o,dataSource:l}},bp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},emits:["change"],setup(r,{expose:t,emit:n}){const o=r,{formItemStyle:l,formItemLabelStyle:i,formItemMainStyle:a,formItemProps:d,formItemLabelShow:f,formItemLabel:c,selectChange:m}=Yr(o),{selectProps:h,field:b,dataSource:x}=AP(o),{elFormData:p}=e.inject("printForm");return t({}),(O,C)=>{const s=e.resolveComponent("el-option"),S=e.resolveComponent("el-select"),u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,e.mergeProps({class:"select-component-container",style:e.unref(l)},e.unref(d)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(a))},[e.createVNode(S,e.mergeProps({modelValue:e.unref(p)[e.unref(b)],"onUpdate:modelValue":C[0]||(C[0]=T=>e.unref(p)[e.unref(b)]=T)},e.unref(h),{onChange:e.unref(m)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),(T,A)=>(e.openBlock(),e.createBlock(s,{key:T.value,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","onChange"])],4)]),_:2},[e.unref(f)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(i))},e.toDisplayString(e.unref(c)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-dc58154e"]]),VP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>{let i=r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{};return i.valueFormat&&(i.format=i.valueFormat),i}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),l=e.computed(()=>{let i=r.componentDetails.props;if(!i)return"";let a=[];return i.hideTimeIcon&&a.push("datetime-component--hide-time-icon"),a.join(" ")});return{datetimeProps:n,field:o,elDatePickerClass:l}},yp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{datetimeProps:c,field:m,elDatePickerClass:h}=VP(n),{elFormData:b}=e.inject("printForm");return t({}),(x,p)=>{const O=e.resolveComponent("el-date-picker"),C=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(C,e.mergeProps({class:"datetime-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(O,e.mergeProps({class:`datetime-component ${e.unref(h)}`,modelValue:e.unref(b)[e.unref(m)],"onUpdate:modelValue":p[0]||(p[0]=s=>e.unref(b)[e.unref(m)]=s),type:"datetime"},e.unref(c)),null,16,["class","modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-f6f5348b"]]),BP=r=>{const t=e.computed(()=>{let o=r.itemDetails.style;return M.createGridItemStyle({styleConfig:o,props:r.itemDetails.props})}),n=e.computed(()=>!r.itemDetails.children||r.itemDetails.children.length<=0?[]:r.itemDetails.children);return{containerStyle:t,componentList:n}},RP=G({__name:"GridItem",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,componentList:l}=BP(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"grid-item-container",style:e.normalizeStyle(e.unref(o))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.type=="text"?(e.openBlock(),e.createBlock(sp,{key:0,"component-details":d},null,8,["component-details"])):d.type=="dynamicText"?(e.openBlock(),e.createBlock(ap,{key:1,"component-details":d},null,8,["component-details"])):d.type=="barcode"?(e.openBlock(),e.createBlock(fp,{key:2,"component-details":d},null,8,["component-details"])):d.type=="qrcode"?(e.openBlock(),e.createBlock(cp,{key:3,"component-details":d},null,8,["component-details"])):d.type=="image"?(e.openBlock(),e.createBlock(pp,{key:4,"component-details":d},null,8,["component-details"])):d.type=="table"?(e.openBlock(),e.createBlock(dp,{key:5,"component-details":d},null,8,["component-details"])):d.type=="input"?(e.openBlock(),e.createBlock(mp,{key:6,"component-details":d},null,8,["component-details"])):d.type=="textarea"?(e.openBlock(),e.createBlock(hp,{key:7,"component-details":d},null,8,["component-details"])):d.type=="radio"?(e.openBlock(),e.createBlock(up,{key:8,"component-details":d},null,8,["component-details"])):d.type=="checkbox"?(e.openBlock(),e.createBlock(gp,{key:9,"component-details":d},null,8,["component-details"])):d.type=="select"?(e.openBlock(),e.createBlock(bp,{key:10,"component-details":d},null,8,["component-details"])):d.type=="datetime"?(e.openBlock(),e.createBlock(yp,{key:11,"component-details":d},null,8,["component-details"])):e.createCommentVNode("",!0)],64))),256))],4))}},[["__scopeId","data-v-6ab6083e"]]),$P=r=>{const t=e.computed(()=>{let o=r.componentDetails.style;return M.createGridStyle({styleConfig:o})}),n=e.computed(()=>!r.componentDetails||!r.componentDetails.children||r.componentDetails.children.length<=0?[]:r.componentDetails.children);return{containerStyle:t,gridItemList:n}},LP=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,gridItemList:l}=$P(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"grid-component-container",style:e.normalizeStyle(e.unref(o))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(d,f)=>(e.openBlock(),e.createBlock(RP,{key:d.id,"item-details":d},null,8,["item-details"]))),128))],4))}},[["__scopeId","data-v-9fca917c"]]),PP=r=>{const{tableLayoutDetails:t}=e.inject("printForm_tableLayoutComponent"),{countUnmergedCells:n,getLayoutItem:o}=e.inject("printForm_tableLayoutComponent--layout"),l=e.computed(()=>{let f=t.style,c=t.styleRules,m=M.getTableLayoutStyleRulesId({rowIndex:r.itemDetails.rowIndex,colIndex:r.itemDetails.colIndex}),h=!1;return c&&c[m]&&(h=c[m]),M.createTableLayoutTdContainerStyle({tableLayoutStyleConfig:f,tdStyleConfig:h})}),i=e.computed(()=>r.itemDetails.rowIndex),a=e.computed(()=>r.itemDetails.colIndex),d=e.computed(()=>{let f=[];return t.children.forEach((c,m)=>{c.rowIndex===i.value&&c.colIndex===a.value&&f.push(c)}),f});return{containerStyle:l,rowIndex:i,colIndex:a,componentList:d}},EP=G({__name:"TableLayoutItem",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,componentList:l}=PP(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"table-layout-item-container",style:e.normalizeStyle(e.unref(o))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.type=="text"?(e.openBlock(),e.createBlock(sp,{key:0,"component-details":d},null,8,["component-details"])):d.type=="dynamicText"?(e.openBlock(),e.createBlock(ap,{key:1,"component-details":d},null,8,["component-details"])):d.type=="barcode"?(e.openBlock(),e.createBlock(fp,{key:2,"component-details":d},null,8,["component-details"])):d.type=="qrcode"?(e.openBlock(),e.createBlock(cp,{key:3,"component-details":d},null,8,["component-details"])):d.type=="image"?(e.openBlock(),e.createBlock(pp,{key:4,"component-details":d},null,8,["component-details"])):d.type=="table"?(e.openBlock(),e.createBlock(dp,{key:5,"component-details":d},null,8,["component-details"])):d.type=="input"?(e.openBlock(),e.createBlock(mp,{key:6,"component-details":d},null,8,["component-details"])):d.type=="textarea"?(e.openBlock(),e.createBlock(hp,{key:7,"component-details":d},null,8,["component-details"])):d.type=="radio"?(e.openBlock(),e.createBlock(up,{key:8,"component-details":d},null,8,["component-details"])):d.type=="checkbox"?(e.openBlock(),e.createBlock(gp,{key:9,"component-details":d},null,8,["component-details"])):d.type=="select"?(e.openBlock(),e.createBlock(bp,{key:10,"component-details":d},null,8,["component-details"])):d.type=="datetime"?(e.openBlock(),e.createBlock(yp,{key:11,"component-details":d},null,8,["component-details"])):e.createCommentVNode("",!0)],64))),256))],4))}},[["__scopeId","data-v-c883987a"]]),NP=r=>{const{tableLayoutDetails:t}=e.inject("printForm_tableLayoutComponent"),n=e.ref(),o=e.computed(()=>{let c=t.styleRules,m=M.getTableLayoutStyleRulesId({rowIndex:r.itemDetails.rowIndex,colIndex:r.itemDetails.colIndex});return c&&c[m]?c[m]:{}}),l=e.computed(()=>{let c=[];return o.value.container_custom_slash&&c.push(`table-layout-item-slash-container--${o.value.container_custom_slashDirection}`),c.join(" ")}),i=e.ref(""),a=e.computed(()=>o.value.container_custom_slashTextLeft?o.value.container_custom_slashTextLeft:""),d=e.computed(()=>o.value.container_custom_slashTextRight?o.value.container_custom_slashTextRight:"");return{containerRef:n,tdStyleConfig:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,setSlashStyle:()=>{if(!o.value.container_custom_slash){i.value="";return}let c=n.value.parentElement,m=M.createTableLayoutTdSlashStyle({width:c.clientWidth,height:c.clientHeight,direction:o.value.container_custom_slashDirection});i.value=m}}},MP={class:"_t-l-i-s_left"},DP={class:"_t-l-i-s_right"},QP=G({__name:"TableLayoutItemSlash",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerRef:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,setSlashStyle:f}=NP(n);return e.onMounted(()=>{f()}),t({}),(c,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:o,class:e.normalizeClass(`table-layout-item-slash-container ${e.unref(l)}`)},[e.createElementVNode("span",MP,e.toDisplayString(e.unref(a)),1),e.createElementVNode("span",{class:"_t-l-i-s_slash",style:e.normalizeStyle(e.unref(i))},null,4),e.createElementVNode("span",DP,e.toDisplayString(e.unref(d)),1)],2))}},[["__scopeId","data-v-14903364"]]),WP=({tableLayoutDetails:r}={})=>{const t=e.computed(()=>{let h={};return r.layout&&r.layout.forEach((b,x)=>{h[d({rowIndex:b.rowIndex,colIndex:b.colIndex})]=b}),h}),n=e.computed(()=>{let h={};return r.layout&&r.layout.forEach((b,x)=>{b.rowspan&&(h[d({rowIndex:b.rowIndex,colIndex:b.colIndex})]=b.rowspan)}),h}),o=e.computed(()=>{let h={};return r.layout&&r.layout.forEach((b,x)=>{b.colspan&&(h[d({rowIndex:b.rowIndex,colIndex:b.colIndex})]=b.colspan)}),h}),l=e.reactive({}),i=e.reactive([]),a=()=>{let h={},b=[];if(!r.layout||r.layout.length<=0){ue(l,{}),i.splice(0,i.length);return}r.layout.forEach((x,p)=>{let O=x.rowspan?x.rowspan:1,C=x.colspan?x.colspan:1,s=x.rowIndex,S=x.rowIndex+O-1,u=x.colIndex,T=x.colIndex+C-1,A=[];for(let V=s;V<=S;V++)for(let g=u;g<=T;g++)V===x.rowIndex&&g===x.colIndex?A.push({rowIndex:V,colIndex:g,rowspan:O,colspan:C,show:!0}):A.push({rowIndex:V,colIndex:g,rowspan:O,colspan:C,startRowIndex:x.rowIndex,startColIndex:x.colIndex,show:!1});h[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=A,b.push(...A)}),ue(l,h),i.splice(0,i.length,...b)},d=({rowIndex:h,colIndex:b}={})=>`${h}-${b}`,f=()=>{r.layout||(r.layout=[])},c=({rowIndex:h,colIndex:b}={})=>{if(!r.layout||r.layout.length<=0)return!1;let x=!1;return r.layout.forEach((p,O)=>{p.rowIndex===h&&p.colIndex===b&&(x=p)}),x};return{layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,setSpanCell:a,getCellId:d,createLayout:f,getLayoutItem:c,countUnmergedCells:({rowIndex:h,colIndex:b}={})=>{let x={row:r.props.row-h-1,col:r.props.col-b-1};if(!r.layout||r.layout.length<=0)return x;let p=1,O=1,C=c({rowIndex:h,colIndex:b});C&&C.rowspan&&(p=C.rowspan),C&&C.colspan&&(O=C.colspan);let s=l[d({rowIndex:h,colIndex:b})];if(!s)return i.forEach((S,u)=>{if(S.colIndex===b&&S.rowIndex>h){let T=S.rowIndex-h-p;x.row>T&&(x.row=T);return}if(S.rowIndex===h&&S.colIndex>b){let T=S.colIndex-b-O;x.col>T&&(x.col=T);return}}),x;if(s){let S,u;return s.forEach((T,A)=>{i.forEach((V,g)=>{if(!(V.rowIndex===T.rowIndex&&V.colIndex===T.colIndex)){if(V.colIndex===T.colIndex&&V.rowIndex>T.rowIndex){V.startRowIndex===h&&V.startColIndex===b?S=r.props.row-h-T.rowspan:S=V.rowIndex-T.rowIndex-T.rowspan,x.row>S&&(x.row=S);return}if(V.rowIndex===T.rowIndex&&V.colIndex>T.colIndex){V.startRowIndex===h&&V.startColIndex===b?u=r.props.col-b-T.colspan:u=V.colIndex-T.colIndex-T.colspan,x.col>u&&(x.col=u);return}}})}),x.row=x.row>=0?x.row:0,x.col=x.col>=0?x.col:0,x}}}},UP=({props:r,layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,getCellId:a}={})=>{const d=e.computed(()=>{let C=r.componentDetails.style;return M.createTableLayoutStyle({styleConfig:C})}),f=e.computed(()=>({rowIndex:C,colIndex:s})=>{let S=r.componentDetails.style,u=r.componentDetails.styleRules,T=M.getTableLayoutStyleRulesId({rowIndex:C,colIndex:s}),A=!1;return u&&u[T]&&(A=u[T]),M.createTableLayoutTdStyle({tableLayoutStyleConfig:S,tdStyleConfig:A})}),c=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.row?0:r.componentDetails.props.row),m=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.col?0:r.componentDetails.props.col),h=e.computed(()=>({rowIndex:C,colIndex:s}={})=>{let S=a({rowIndex:C,colIndex:s});return n.value[S]?n.value[S]:1}),b=e.computed(()=>({rowIndex:C,colIndex:s}={})=>{let S=a({rowIndex:C,colIndex:s});return o.value[S]?o.value[S]:1}),x=e.computed(()=>({rowIndex:C,colIndex:s}={})=>r.componentDetails.id?`${r.componentDetails.id}_${a({rowIndex:C,colIndex:s})}`:a({rowIndex:C,colIndex:s})),p=e.computed(()=>({rowIndex:C,colIndex:s}={})=>{if(i.length<=0)return!0;let S=i.find((u,T)=>C===u.rowIndex&&u.colIndex===s);if(!S)return!0;if(S)return S.show}),O=e.computed(()=>({rowIndex:C,colIndex:s})=>{let S=r.componentDetails.styleRules,u=M.getTableLayoutStyleRulesId({rowIndex:C,colIndex:s});return S&&S[u]?!!S[u].container_custom_slash:!1});return{tableLayoutStyle:d,tableLayoutTdStyle:f,rowNum:c,colNum:m,rowspan:h,colspan:b,tdKey:x,tdShow:p,tdHasSlash:O}},ZP={class:"table-layout-component-container"},zP=["rowspan","colspan"],HP=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}=WP({tableLayoutDetails:n.componentDetails}),{tableLayoutStyle:x,tableLayoutTdStyle:p,rowNum:O,colNum:C,rowspan:s,colspan:S,tdKey:u,tdShow:T,tdHasSlash:A}=UP({props:n,layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,getCellId:c});return e.provide("printForm_tableLayoutComponent",{tableLayoutDetails:n.componentDetails}),e.provide("printForm_tableLayoutComponent--layout",{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}),e.watch(()=>n.componentDetails.layout,(V,g)=>{f()},{immediate:!0,deep:!0}),t({}),(V,g)=>(e.openBlock(),e.createElementBlock("div",ZP,[e.createElementVNode("table",{class:"table-layout-component-table",cellspacing:"0",cellpadding:"0",style:e.normalizeStyle(e.unref(x))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(O),(I,w)=>(e.openBlock(),e.createElementBlock("tr",{key:w},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),(R,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(T)({rowIndex:w,colIndex:y})?(e.openBlock(),e.createElementBlock("td",{key:e.unref(u)({rowIndex:w,colIndex:y}),style:e.normalizeStyle(e.unref(p)({rowIndex:w,colIndex:y})),rowspan:e.unref(s)({rowIndex:w,colIndex:y}),colspan:e.unref(S)({rowIndex:w,colIndex:y})},[e.unref(A)({rowIndex:w,colIndex:y})?(e.openBlock(),e.createBlock(QP,{key:0,"item-details":{rowIndex:w,colIndex:y}},null,8,["item-details"])):(e.openBlock(),e.createBlock(EP,{key:1,"item-details":{tableLayoutId:n.componentDetails.id,rowIndex:w,colIndex:y,rowspan:e.unref(s)({rowIndex:w,colIndex:y}),colspan:e.unref(S)({rowIndex:w,colIndex:y})}},null,8,["item-details"]))],12,zP)):e.createCommentVNode("",!0)],64))),256))]))),128))],4)]))}},[["__scopeId","data-v-e53d72c5"]]),jP=()=>{const{componentProps:r,enableComponent:t,formConfig:n,printConfig:o}=e.inject("printForm"),l=e.ref(),i=e.computed(()=>{let f=[];if(o.value){let c=o.value.pageSize?o.value.pageSize:"";if(c=="custom")return f.join(" ");c&&o.value.landscape&&(c+="-landscape"),f.push(`print-default-form-container--${c.toLowerCase()}`)}return f.join(" ")}),a=e.computed(()=>{let f=o.value.style,c=M.createPageSizeStyle({printConfig:o.value});return c+=M.createContainerStyle({styleConfig:f}),c}),d=e.computed(()=>t.value?n.value.props:{});return{formRef:l,containerClass:i,containerStyle:a,elFormProps:d}},$0=G({__name:"index",setup(r,{expose:t}){const n=e.ref(new Map);e.provide("valueChange",{changeLogs:n});const{formRef:o,containerClass:l,containerStyle:i,elFormProps:a}=jP(),{layoutConfig:d,elFormData:f,elFormRules:c}=e.inject("printForm");return t({}),(m,h)=>{const b=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`print-default-form-container ${e.unref(l)}`),style:e.normalizeStyle(e.unref(i))},[e.createVNode(b,e.mergeProps({class:"print-default-form",ref_key:"formRef",ref:o},e.unref(a),{model:e.unref(f),rules:e.unref(c),onSubmit:h[0]||(h[0]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(x,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x.type=="text"?(e.openBlock(),e.createBlock(sp,{key:0,"component-details":x},null,8,["component-details"])):x.type=="dynamicText"?(e.openBlock(),e.createBlock(ap,{key:1,"component-details":x},null,8,["component-details"])):x.type=="barcode"?(e.openBlock(),e.createBlock(fp,{key:2,"component-details":x},null,8,["component-details"])):x.type=="qrcode"?(e.openBlock(),e.createBlock(cp,{key:3,"component-details":x},null,8,["component-details"])):x.type=="image"?(e.openBlock(),e.createBlock(pp,{key:4,"component-details":x},null,8,["component-details"])):x.type=="table"?(e.openBlock(),e.createBlock(dp,{key:5,"component-details":x},null,8,["component-details"])):x.type=="complexTable"?(e.openBlock(),e.createBlock(gP,{key:6,"component-details":x},null,8,["component-details"])):x.type=="input"?(e.openBlock(),e.createBlock(mp,{key:7,"component-details":x},null,8,["component-details"])):x.type=="textarea"?(e.openBlock(),e.createBlock(hp,{key:8,"component-details":x},null,8,["component-details"])):x.type=="radio"?(e.openBlock(),e.createBlock(up,{key:9,"component-details":x},null,8,["component-details"])):x.type=="checkbox"?(e.openBlock(),e.createBlock(gp,{key:10,"component-details":x},null,8,["component-details"])):x.type=="select"?(e.openBlock(),e.createBlock(bp,{key:11,"component-details":x},null,8,["component-details"])):x.type=="datetime"?(e.openBlock(),e.createBlock(yp,{key:12,"component-details":x},null,8,["component-details"])):x.type=="grid"?(e.openBlock(),e.createBlock(LP,{key:13,"component-details":x},null,8,["component-details"])):x.type=="tableLayout"?(e.openBlock(),e.createBlock(HP,{key:14,"component-details":x},null,8,["component-details"])):e.createCommentVNode("",!0)],64))),256))]),_:1},16,["model","rules"])],6)}}},[["__scopeId","data-v-6af9b1c3"]]),FP=(r,t)=>{const n=e.ref(!1),o=e.computed(()=>n.value?r.designerConfig.printConfig:{}),l=e.computed(()=>n.value?r.designerConfig.formConfig:{}),i=e.computed(()=>n.value?r.designerConfig.layoutConfig:[]),a=e.computed(()=>{if(!n.value)return{};let V=r.data;return q(V)}),d=e.ref(),f=e.ref(),c=e.computed(()=>n.value?r.mode=="default":!1),m=e.computed(()=>n.value?r.mode=="simple":!1),h=()=>r.mode=="default"?d.value:r.mode=="simple"?f.value:!1,b={printConfig:{},formConfig:{},layoutConfig:[]},x=()=>new Promise((V,g)=>{let I=r.designerConfig;if(typeof I!="object")return n.value=!1,g("print-form组件:designerConfig应该是一个对象");let w=[];return I.printConfig||w.push("printConfig"),I.formConfig||w.push("formConfig"),I.layoutConfig||w.push("layoutConfig"),w.length>0?(n.value=!1,g(`print-form组件:designerConfig缺少属性【${w.join(",")}】`)):typeof I.printConfig!="object"?(n.value=!1,g("print-form组件:designerConfig属性printConfig应该是一个对象")):typeof I.formConfig!="object"?(n.value=!1,g("print-form组件:designerConfig属性formConfig应该是一个对象")):Array.isArray(I.layoutConfig)?(n.value=!0,V()):(n.value=!1,g("print-form组件:designerConfig属性layoutConfig应该是一个数组"))}),p=e.reactive({}),O=e.reactive({}),C=()=>{if(!n.value||i.value.length<=0){ue(p,{}),ue(O,{});return}let V=["input","textarea","radio","checkbox","select","datetime"],g={};i.value.forEach((w,R)=>{if(w.type=="grid"){if(!w.children||w.children.length<=0)return;w.children.forEach((y,$)=>{!y.children||y.children.length<=0||y.children.forEach((_,k)=>{I(_)})});return}if(w.type=="tableLayout"){if(!w.children||w.children.length<=0)return;w.children.forEach((y,$)=>{I(y)});return}I(w)});function I(w){if(V.indexOf(w.type)<0||!w.props||!w.props.field)return;let R=w.props.field;if(w.type=="checkbox"){if(a.value[R])g[R]=a.value[R];else{let y=w.props.defaultValue;g[R]=y}return}if(a.value[R]||a.value[R]===0)g[R]=a.value[R];else{let y=w.props.defaultValue;g[R]=y}}ue(p,g)},s=V=>{if(!n.value||!V)return;let g=q(V),I=Object.keys(g);Object.keys(p).forEach(R=>{I.indexOf(R)<0||(p[R]=g[R])})},S=[],u=()=>{S.length>0&&T();let V=Object.keys(p);V.length<=0||V.forEach(g=>{const I=e.watch(()=>p[g],(w,R)=>{t("change",{formData:q(p),printData:A(),field:g})},{deep:!0});S.push(I)})},T=()=>{S.forEach(V=>{V()}),S.splice(0,S.length)},A=()=>{let V=uo.createPrintDataByLayoutConfig(i.value),g=q(p),I=Object.keys(g),w=q(a.value);return Object.keys(V).forEach(R=>{if(I.indexOf(R)>=0){V[R]=g[R];return}if(w[R]||w[R]===0){V[R]=w[R];return}}),V};return{enableComponent:n,printConfig:o,formConfig:l,layoutConfig:i,defaultData:a,defaultFormRef:d,simpleFormRef:f,defaultFormShow:c,simpleFormShow:m,nowFormRef:h,designerConfigModel:b,validateDesignerConfig:x,elFormData:p,elFormRules:O,createFormDetails:C,setElFormData:s,dynamicWatchers:S,createDynamicWacth:u,stopAllWatchers:T,getPrintData:A}},L0={__name:"index",props:{mode:{type:String,default:"default"},designerConfig:{type:Object,default(){return{}},required:!0},data:{type:Object,default(){return{}}}},emits:["change"],setup(r,{expose:t,emit:n}){const o=n,l=r,{enableComponent:i,printConfig:a,formConfig:d,layoutConfig:f,defaultData:c,defaultFormRef:m,simpleFormRef:h,defaultFormShow:b,simpleFormShow:x,validateDesignerConfig:p,elFormData:O,elFormRules:C,createFormDetails:s,setElFormData:S,createDynamicWacth:u,getPrintData:T}=FP(l,o);e.provide("printForm",{componentProps:l,enableComponent:i,printConfig:a,formConfig:d,layoutConfig:f,defaultData:c,elFormData:O,elFormRules:C}),e.watch(()=>l.designerConfig,(y,$)=>{i.value=!1,e.nextTick(()=>{A()})},{immediate:!0,deep:!0}),e.watch(()=>l.data,(y,$)=>{S(l.data)},{deep:!0});const A=async()=>{try{await p(),s(),u()}catch(y){console.warn(y)}};return t({getFormData:()=>q(O),getPrintData:()=>T(),getDesignerConfig:()=>q(l.designerConfig),print:()=>{},printPreview:()=>{}}),(y,$)=>e.unref(b)?(e.openBlock(),e.createBlock($0,{key:0,ref_key:"defaultFormRef",ref:m},null,512)):e.unref(x)?(e.openBlock(),e.createBlock($0,{key:1,ref_key:"simpleFormRef",ref:h},null,512)):e.createCommentVNode("",!0)}},XP=()=>{const r=e.ref(!1),t=e.ref(),n=e.ref(),o=e.ref(""),l={printConfig:{},formConfig:{},layoutConfig:{}},i=e.reactive({...l}),a=e.computed(()=>({designerConfig:{printConfig:i.printConfig,formConfig:i.formConfig,layoutConfig:i.layoutConfig}})),d=e.computed(()=>o.value?JSON.parse(o.value):{});return{dialogShow:r,codeMirrorEditorRef:t,printFormRef:n,codeValue:o,componentDataModel:l,componentData:i,printFormProps:a,printFormData:d}},qP={class:"preview-form-dialog"},YP={class:"preview-form-dialog_code"},GP={class:"preview-form-dialog_form"},KP=G({__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,{dialogShow:l,codeMirrorEditorRef:i,printFormRef:a,codeValue:d,componentDataModel:f,componentData:c,printFormProps:m,printFormData:h}=XP();e.watch(l,(s,S)=>{l.value?o("dialogOpen"):o("dialogClose")});const b=({formData:s,printData:S,field:u})=>{d.value=JSON.stringify(S,null," ")},x=()=>{let s=a.value.getPrintData(),S=a.value.getDesignerConfig();uo.preview({printData:s,designerConfig:S}).catch(u=>{console.warn(u),ge.alert(u,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},p=()=>{let s=a.value.getPrintData(),S=a.value.getDesignerConfig();uo.print({type:"web",printData:s,designerConfig:S}).catch(u=>{console.warn(u),ge.alert(u,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},O=()=>{let s=a.value.getPrintData(),S=a.value.getDesignerConfig();uo.print({type:"soket",printData:s,designerConfig:S}).catch(u=>{console.warn(u),ge.alert(u,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})};return t({open:({printConfig:s,formConfig:S,layoutConfig:u}={})=>{l.value=!0,ue(c,f,{printConfig:s,formConfig:S,layoutConfig:u});let T=uo.createPrintDataByLayoutConfig(c.layoutConfig);d.value=JSON.stringify(T,null," ")}}),(s,S)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(qr,{modelValue:e.unref(l),"onUpdate:modelValue":S[1]||(S[1]=T=>e.isRef(l)?l.value=T:null),title:"预览表单",width:"90%",height:"90%",padding:"0",draggable:!1,scrollable:!1,"not-footer":""},{footer:e.withCtx(()=>[e.createVNode(u,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印预览")]),_:1}),e.createVNode(u,{type:"primary",onClick:p},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印")]),_:1}),e.createVNode(u,{type:"primary",onClick:O},{default:e.withCtx(()=>[e.createTextVNode("静默打印")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",qP,[e.createElementVNode("div",YP,[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:e.unref(d),"onUpdate:modelValue":S[0]||(S[0]=T=>e.isRef(d)?d.value=T:null)},null,8,["modelValue"])]),e.createElementVNode("div",GP,[e.createVNode(L0,e.mergeProps({ref_key:"printFormRef",ref:a,class:"preview-form-dialog_print-form"},e.unref(m),{data:e.unref(h),onChange:b}),null,16,["data"])])])]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-dd31a580"]]),P0=r=>(e.pushScopeId("data-v-d73423af"),r=r(),e.popScopeId(),r),JP={class:"print-designer_designer-panel-container"},vP={class:"designer-panel-header"},eE=P0(()=>e.createElementVNode("div",{class:"designer-panel-header_title"},"设计器面板",-1)),tE={class:"designer-panel-header_slot-operate-buttons"},oE={class:"designer-panel-header_operate"},nE=P0(()=>e.createElementVNode("span",{class:"designer-panel-header_operate-item_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),rE={class:"designer-panel-main"},lE=G({__name:"index",setup(r,{expose:t}){const{designerMode:n,printConfigRef:o,formConfigRef:l,printConfigData:i,formConfigData:a,copyActiveSortableComponent:d,ableCtrlC:f,ableCtrlV:c,dict:m}=e.inject("printDesigner"),h=e.ref(),b=e.ref(),x=e.ref(),p=e.ref(),O=e.ref(),C=e.ref(),s=e.computed(()=>d.value?"danger":"info"),S=()=>{if(!d.value){ge.alert("未复制组件,无法清除",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}d.value=!1,gh.success("清除成功")},u=L=>{if(L=="importLayout"){T();return}if(L=="exportLayout"){V();return}if(L=="exportData"){g();return}},T=()=>{b.value.open()},A=L=>{o.value.setPrintConfig(L.printConfig),l.value.setFormConfig(L.formConfig),h.value.setLayoutConfig(L.layoutConfig)},V=()=>{let L=h.value.getLayoutConfig();x.value.open({printConfig:i.value,formConfig:a.value,layoutConfig:L})},g=()=>{let L=h.value.getLayoutConfig(),B=uo.createPrintDataByLayoutConfig(L);p.value.open(B)},I=()=>{let L=h.value.getLayoutConfig(),B=uo.createPrintDataByLayoutConfig(L);O.value.open({printData:B,printConfig:q(i.value),formConfig:q(a.value),layoutConfig:L})},w=()=>{let L=h.value.getLayoutConfig();C.value.open({printConfig:q(i.value),formConfig:q(a.value),layoutConfig:q(L)})},R=()=>{h.value.clear(),o.value.clear()},y=()=>{f.value=!1,c.value=!1},$=()=>{f.value=!0,c.value=!0};return t({getLayoutConfig:()=>{let L=h.value.getLayoutConfig();return q(L)},setLayoutConfig:L=>{h.value.setLayoutConfig(L)}}),(L,B)=>{const E=e.resolveComponent("el-button"),N=e.resolveComponent("el-option"),W=e.resolveComponent("el-select"),X=e.resolveComponent("el-dropdown-item"),K=e.resolveComponent("el-dropdown-menu"),ee=e.resolveComponent("el-dropdown"),se=e.resolveComponent("el-popconfirm");return e.openBlock(),e.createElementBlock("div",JP,[e.createElementVNode("div",vP,[eE,e.createElementVNode("div",tE,[e.renderSlot(L.$slots,"operateButtons",{},void 0,!0)]),e.createElementVNode("div",oE,[e.createVNode(E,{class:"designer-panel-header_operate-item",type:s.value,size:"small",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(" 清空粘贴板 ")]),_:1},8,["type"]),e.createVNode(W,{class:"designer-panel-header_operate-item",modelValue:e.unref(n),"onUpdate:modelValue":B[0]||(B[0]=U=>e.isRef(n)?n.value=U:null),placeholder:"请选择",size:"small",style:{width:"95px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).designerMode,(U,D)=>(e.openBlock(),e.createBlock(N,{key:U.value,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(ee,{trigger:"click",class:"designer-panel-header_operate-item",onCommand:u},{dropdown:e.withCtx(()=>[e.createVNode(K,null,{default:e.withCtx(()=>[e.createVNode(X,{command:"importLayout"},{default:e.withCtx(()=>[e.createTextVNode("导入布局JSON")]),_:1}),e.createVNode(X,{command:"exportLayout"},{default:e.withCtx(()=>[e.createTextVNode(" 导出布局JSON ")]),_:1}),e.createVNode(X,{command:"exportData"},{default:e.withCtx(()=>[e.createTextVNode("导出参考数据")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(E,{class:"designer-panel-header_operate-item_dropdown-button",size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("导入导出"),nE]),_:1})]),_:1}),e.createVNode(E,{class:"designer-panel-header_operate-item",type:"primary",size:"small",onClick:I},{default:e.withCtx(()=>[e.createTextVNode(" 打印 / 预览 ")]),_:1}),e.createVNode(E,{class:"designer-panel-header_operate-item",type:"primary",size:"small",onClick:w},{default:e.withCtx(()=>[e.createTextVNode(" 预览表单 ")]),_:1}),e.createVNode(se,{title:"重置后将清除所有配置,是否继续?",onConfirm:R},{reference:e.withCtx(()=>[e.createVNode(E,{class:"designer-panel-header_operate-item",type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("重置")]),_:1})]),_:1})])]),e.createElementVNode("div",rE,[e.createVNode(PT,{ref_key:"panelRef",ref:h},null,512)]),e.createVNode(YL,{ref_key:"importLayoutDialogRef",ref:b,onDialogOpen:y,onDialogClose:$,onImportSuccess:A},null,512),e.createVNode(GL,{ref_key:"exportLayoutDialogRef",ref:x,onDialogOpen:y,onDialogClose:$},null,512),e.createVNode(KL,{ref_key:"exportDataDialogRef",ref:p,onDialogOpen:y,onDialogClose:$},null,512),e.createVNode(nP,{ref_key:"printDialogRef",ref:O,onDialogOpen:y,onDialogClose:$},null,512),e.createVNode(KP,{ref_key:"previewFormDialogRef",ref:C,onDialogOpen:y,onDialogClose:$},null,512)])}}},[["__scopeId","data-v-d73423af"]]),iE={class:"print-designer_config-tabs-container"},aE={class:"config-tabs-nav"},sE={class:"config-tabs-main"},dE=G({__name:"index",setup(r,{expose:t}){const{configTabsActiveName:n,activeSortableComponent:o}=e.inject("printDesigner"),l=e.computed(()=>a=>{let d=["config-tabs-nav_item"];return a==n.value&&d.push("config-tabs-nav_item--active"),d.join(" ")});e.watch(o,(a,d)=>{o.value&&(n.value="componentConfig")},{immediate:!0,deep:!0});const i=a=>{n.value=a};return t({}),(a,d)=>(e.openBlock(),e.createElementBlock("div",iE,[e.createElementVNode("div",aE,[e.createElementVNode("div",{class:e.normalizeClass(l.value("componentConfig")),onClick:d[0]||(d[0]=f=>i("componentConfig"))},"组件配置",2),e.createElementVNode("div",{class:e.normalizeClass(l.value("printConfig")),onClick:d[1]||(d[1]=f=>i("printConfig"))},"打印配置",2),e.createElementVNode("div",{class:e.normalizeClass(l.value("formConfig")),onClick:d[2]||(d[2]=f=>i("formConfig"))},"表单配置",2)]),e.createElementVNode("div",sE,[e.renderSlot(a.$slots,"default",{},void 0,!0)])]))}},[["__scopeId","data-v-62f8e19e"]]),yt=r=>({formatter:a=>{if(!a)return a;let d=/^\d+$|^\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},parser:a=>{if(!a)return a;let d=/^\d+$|^\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},formatterHasNegative:a=>{if(!a)return a;let d=/^-$|^-?\d+$|^-?\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},parserHasNegative:a=>{if(!a)return a;let d=/^-$|^-?\d+$|^-?\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},complementValue:a=>{let d=/^-?\d+$/,f=r[a];f&&d.test(f)&&(r[a]=r[a]+"px")}}),fE=(r,t)=>{const n=e.reactive({marginTopValue:"",marginBottomValue:"",marginLeftValue:"",marginRightValue:"",paddingTopValue:"",paddingBottomValue:"",paddingLeftValue:"",paddingRightValue:""}),{marginTopValue:o,marginBottomValue:l,marginLeftValue:i,marginRightValue:a,paddingTopValue:d,paddingBottomValue:f,paddingLeftValue:c,paddingRightValue:m}=e.toRefs(n),h=e.computed({get(){return r.marginTop},set(B){t("update:marginTop",o.value)}}),b=e.computed({get(){return r.marginBottom},set(B){t("update:marginBottom",l.value)}}),x=e.computed({get(){return r.marginLeft},set(B){t("update:marginLeft",i.value)}}),p=e.computed({get(){return r.marginRight},set(B){t("update:marginRight",a.value)}}),O=e.computed({get(){return r.paddingTop},set(B){t("update:paddingTop",d.value)}}),C=e.computed({get(){return r.paddingBottom},set(B){t("update:paddingBottom",f.value)}}),s=e.computed({get(){return r.paddingLeft},set(B){t("update:paddingLeft",c.value)}}),S=e.computed({get(){return r.paddingRight},set(B){t("update:paddingRight",m.value)}}),u=e.ref(!1),T=e.computed(()=>u.value?"active":""),A=e.computed(()=>g.value&&g.value=="margin"?"active":g.value&&g.value!="margin"?"not-active":""),V=e.computed(()=>g.value&&g.value=="padding"?"active":g.value&&g.value!="padding"?"not-active":""),g=e.ref(""),I=()=>{u.value=!u.value},w=B=>{if(!u.value)return!1;i.value=B,a.value=B,o.value=B,l.value=B},R=()=>{i.value="",a.value="",o.value="",l.value=""},y=e.ref(!1),$=e.computed(()=>y.value?"active":"");return{valueObj:n,marginTopValue:o,marginBottomValue:l,marginLeftValue:i,marginRightValue:a,paddingTopValue:d,paddingBottomValue:f,paddingLeftValue:c,paddingRightValue:m,marginTopModelValue:h,marginBottomModelValue:b,marginLeftModelValue:x,marginRightModelValue:p,paddingTopModelValue:O,paddingBottomModelValue:C,paddingLeftModelValue:s,paddingRightModelValue:S,marginAllSetting:u,marginAllIconClass:T,marginConfigClass:A,paddingConfigClass:V,activeType:g,toggleMarginAllSetting:I,setAllMarginValue:w,clearAllMarginValue:R,paddingAllSetting:y,paddingAllIconClass:$,togglePaddingllSetting:()=>{y.value=!y.value},setAllPaddingValue:B=>{if(!y.value)return!1;c.value=B,m.value=B,d.value=B,f.value=B},clearAllPaddingValue:()=>{c.value="",m.value="",d.value="",f.value=""}}},ar=r=>(e.pushScopeId("data-v-0bd01768"),r=r(),e.popScopeId(),r),cE=ar(()=>e.createElementVNode("div",{class:"_s-p-c_margin-title"},"外边距",-1)),pE={class:"_s-p-c_margin-operate"},mE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_quanbu"},null,-1))],hE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchu"},null,-1))],uE=ar(()=>e.createElementVNode("div",{class:"_s-p-c_padding-title"},"内边距",-1)),gE=ar(()=>e.createElementVNode("div",{class:"_s-p-c_box"},null,-1)),bE={class:"_s-p-c_padding-operate"},yE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_quanbu"},null,-1))],xE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchu"},null,-1))],Oe=G({__name:"index",props:{marginTop:{type:String,default:""},marginBottom:{type:String,default:""},marginLeft:{type:String,default:""},marginRight:{type:String,default:""},paddingTop:{type:String,default:""},paddingBottom:{type:String,default:""},paddingLeft:{type:String,default:""},paddingRight:{type:String,default:""}},emits:["update:marginTop","update:marginBottom","update:marginLeft","update:marginRight","update:paddingTop","update:paddingBottom","update:paddingLeft","update:paddingRight"],setup(r,{expose:t,emit:n}){const o=n,l=r,{valueObj:i,marginTopValue:a,marginBottomValue:d,marginLeftValue:f,marginRightValue:c,paddingTopValue:m,paddingBottomValue:h,paddingLeftValue:b,paddingRightValue:x,marginTopModelValue:p,marginBottomModelValue:O,marginLeftModelValue:C,marginRightModelValue:s,paddingTopModelValue:S,paddingBottomModelValue:u,paddingLeftModelValue:T,paddingRightModelValue:A,marginAllIconClass:V,marginConfigClass:g,paddingConfigClass:I,activeType:w,toggleMarginAllSetting:R,setAllMarginValue:y,clearAllMarginValue:$,paddingAllIconClass:_,togglePaddingllSetting:k,setAllPaddingValue:L,clearAllPaddingValue:B}=fE(l,o),{formatterHasNegative:E,parserHasNegative:N,complementValue:W}=yt(i);e.watch(()=>l.marginTop,(se,U)=>{a.value=l.marginTop},{immediate:!0,deep:!0}),e.watch(()=>l.marginBottom,(se,U)=>{d.value=l.marginBottom},{immediate:!0,deep:!0}),e.watch(()=>l.marginLeft,(se,U)=>{f.value=l.marginLeft},{immediate:!0,deep:!0}),e.watch(()=>l.marginRight,(se,U)=>{c.value=l.marginRight},{immediate:!0,deep:!0}),e.watch(()=>l.paddingTop,(se,U)=>{m.value=l.paddingTop},{immediate:!0,deep:!0}),e.watch(()=>l.paddingBottom,(se,U)=>{h.value=l.paddingBottom},{immediate:!0,deep:!0}),e.watch(()=>l.paddingLeft,(se,U)=>{b.value=l.paddingLeft},{immediate:!0,deep:!0}),e.watch(()=>l.paddingRight,(se,U)=>{x.value=l.paddingRight},{immediate:!0,deep:!0}),e.watch(a,(se,U)=>{p.value=a.value,y(a.value)}),e.watch(d,(se,U)=>{O.value=d.value,y(d.value)}),e.watch(f,(se,U)=>{C.value=f.value,y(f.value)}),e.watch(c,(se,U)=>{s.value=c.value,y(c.value)}),e.watch(m,(se,U)=>{S.value=m.value,L(m.value)}),e.watch(h,(se,U)=>{u.value=h.value,L(h.value)}),e.watch(b,(se,U)=>{T.value=b.value,L(b.value)}),e.watch(x,(se,U)=>{A.value=x.value,L(x.value)});const X=()=>{w.value="margin"},K=()=>{w.value=""},ee=()=>{w.value="padding"};return t({}),(se,U)=>{const D=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`style-space-config-container ${e.unref(g)}`),onMouseover:e.withModifiers(X,["stop"]),onMouseout:e.withModifiers(K,["stop"])},[cE,e.createElementVNode("div",pE,[e.createElementVNode("div",{class:e.normalizeClass(`_s-p-c_margin-operate-item _s-p-c_margin-operate-item--all ${e.unref(V)}`),onClick:U[0]||(U[0]=(...P)=>e.unref(R)&&e.unref(R)(...P))},mE,2),e.createElementVNode("div",{class:"_s-p-c_margin-operate-item",onClick:U[1]||(U[1]=(...P)=>e.unref($)&&e.unref($)(...P))},hE)]),e.createVNode(D,{modelValue:e.unref(a),"onUpdate:modelValue":U[2]||(U[2]=P=>e.isRef(a)?a.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-top",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[3]||(U[3]=P=>e.unref(W)("marginTopValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(d),"onUpdate:modelValue":U[4]||(U[4]=P=>e.isRef(d)?d.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-bottom",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[5]||(U[5]=P=>e.unref(W)("marginBottomValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(f),"onUpdate:modelValue":U[6]||(U[6]=P=>e.isRef(f)?f.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-left",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[7]||(U[7]=P=>e.unref(W)("marginLeftValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(c),"onUpdate:modelValue":U[8]||(U[8]=P=>e.isRef(c)?c.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-right",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[9]||(U[9]=P=>e.unref(W)("marginRightValue"))},null,8,["modelValue","formatter","parser"]),e.createElementVNode("div",{class:e.normalizeClass(`_s-p-c_padding-config ${e.unref(I)}`),onMouseover:e.withModifiers(ee,["stop"])},[uE,gE,e.createElementVNode("div",bE,[e.createElementVNode("div",{class:e.normalizeClass(`_s-p-c_padding-operate-item _s-p-c_padding-operate-item--all ${e.unref(_)}`),onClick:U[10]||(U[10]=(...P)=>e.unref(k)&&e.unref(k)(...P))},yE,2),e.createElementVNode("div",{class:"_s-p-c_padding-operate-item",onClick:U[11]||(U[11]=(...P)=>e.unref(B)&&e.unref(B)(...P))},xE)]),e.createVNode(D,{modelValue:e.unref(m),"onUpdate:modelValue":U[12]||(U[12]=P=>e.isRef(m)?m.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-top",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[13]||(U[13]=P=>e.unref(W)("paddingTopValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(h),"onUpdate:modelValue":U[14]||(U[14]=P=>e.isRef(h)?h.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-bottom",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[15]||(U[15]=P=>e.unref(W)("paddingBottomValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(b),"onUpdate:modelValue":U[16]||(U[16]=P=>e.isRef(b)?b.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-left",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[17]||(U[17]=P=>e.unref(W)("paddingLeftValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(x),"onUpdate:modelValue":U[18]||(U[18]=P=>e.isRef(x)?x.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-right",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[19]||(U[19]=P=>e.unref(W)("paddingRightValue"))},null,8,["modelValue","formatter","parser"])],34)],34)}}},[["__scopeId","data-v-0bd01768"]]),CE=(r,t)=>{const n=e.reactive({fontSizeValue:"",fontWeightValue:"",fontFamilyValue:"",textDecorationValue:"",textAlignValue:"",lineHeightValue:"",letterSpacingValue:""}),{fontSizeValue:o,fontWeightValue:l,fontFamilyValue:i,textDecorationValue:a,textAlignValue:d,lineHeightValue:f,letterSpacingValue:c}=e.toRefs(n),m=e.computed({get(){return r.fontSize},set(T){t("update:fontSize",o.value)}}),h=e.computed({get(){return r.fontWeight},set(T){t("update:fontWeight",l.value)}}),b=e.computed({get(){return r.fontFamily},set(T){t("update:fontFamily",i.value)}}),x=e.computed({get(){return r.textDecoration},set(T){t("update:textDecoration",a.value)}}),p=e.computed({get(){return r.textAlign},set(T){t("update:textAlign",d.value)}}),O=e.computed({get(){return r.lineHeight},set(T){t("update:lineHeight",f.value)}}),C=e.computed({get(){return r.letterSpacing},set(T){t("update:letterSpacing",c.value)}}),s=e.ref(!0),S=()=>{s.value=!s.value},u=e.computed(()=>{let T="";return o.value&&(T+=`font-size:${o.value};`),l.value&&(T+=`font-weight:${l.value};`),a.value&&(T+=`text-decoration:${a.value};`),d.value&&(T+=`text-align:${d.value};`),f.value&&(T+=`line-height:${f.value};`),c.value&&(T+=`letter-spacing:${c.value};`),i.value&&(T+=`font-family:${i.value}`),T});return{valueObj:n,fontSizeValue:o,fontWeightValue:l,fontFamilyValue:i,textDecorationValue:a,textAlignValue:d,lineHeightValue:f,letterSpacingValue:c,fontSizeModelValue:m,fontWeightModelValue:h,fontFamilyModelValue:b,textAlignModelValue:p,textDecorationModelValue:x,lineHeightModelValue:O,letterSpacingModelValue:C,contentShow:s,toggleContent:S,previewStyle:u}},An=r=>(e.pushScopeId("data-v-e87bcf95"),r=r(),e.popScopeId(),r),OE={class:"font-config-container"},wE={class:"font-config-header"},_E=An(()=>e.createElementVNode("div",{class:"font-config-header_title"},"字体",-1)),SE={class:"iconfont_print icon-wui-print_xiala"},kE={class:"iconfont_print icon-wui-print_shangla"},TE={class:"font-config-content"},IE={class:"font-config-content_item"},AE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"字体",-1)),VE={class:"font-config-content_item-content"},BE={class:"font-config-content_item"},RE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"大小",-1)),$E={class:"font-config-content_item-content"},LE={class:"font-config-content_item"},PE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"粗细",-1)),EE={class:"font-config-content_item-content"},NE={class:"font-config-content_item"},ME=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"修饰",-1)),DE={class:"font-config-content_item-content"},QE={class:"font-config-content_item"},WE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"对齐方式",-1)),UE={class:"font-config-content_item-content"},ZE={class:"font-config-content_item"},zE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"行高",-1)),HE={class:"font-config-content_item-content"},jE={class:"font-config-content_item"},FE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"字间距",-1)),XE={class:"font-config-content_item-content"},Me=G({__name:"index",props:{contentShow:{type:Boolean,default:!0},fontSize:{type:String,default:""},fontWeight:{type:[String,Number],default:""},fontFamily:{type:[String,Number],default:""},textDecoration:{type:String,default:""},textAlign:{type:String,default:""},lineHeight:{type:String,default:""},letterSpacing:{type:String,default:""}},emits:["update:fontSize","update:fontWeight","update:fontFamily","update:textDecoration","update:textAlign","update:lineHeight","update:letterSpacing"],setup(r,{expose:t,emit:n}){const o=n,l=r,{valueObj:i,fontSizeValue:a,fontWeightValue:d,fontFamilyValue:f,textDecorationValue:c,textAlignValue:m,lineHeightValue:h,letterSpacingValue:b,fontSizeModelValue:x,fontFamilyModelValue:p,fontWeightModelValue:O,textAlignModelValue:C,textDecorationModelValue:s,lineHeightModelValue:S,letterSpacingModelValue:u,contentShow:T,toggleContent:A,previewStyle:V}=CE(l,o),{formatter:g,parser:I,complementValue:w}=yt(i),{dict:R}=e.inject("printDesigner");return e.watch(()=>l.contentShow,(y,$)=>{T.value=l.contentShow},{immediate:!0,deep:!0}),e.watch(()=>l.fontSize,(y,$)=>{a.value=l.fontSize},{immediate:!0,deep:!0}),e.watch(()=>l.fontWeight,(y,$)=>{d.value=l.fontWeight},{immediate:!0,deep:!0}),e.watch(()=>l.fontFamily,(y,$)=>{f.value=l.fontFamily},{immediate:!0,deep:!0}),e.watch(()=>l.textDecoration,(y,$)=>{c.value=l.textDecoration},{immediate:!0,deep:!0}),e.watch(()=>l.textAlign,(y,$)=>{m.value=l.textAlign},{immediate:!0,deep:!0}),e.watch(()=>l.lineHeight,(y,$)=>{h.value=l.lineHeight},{immediate:!0,deep:!0}),e.watch(()=>l.letterSpacing,(y,$)=>{b.value=l.letterSpacing},{immediate:!0,deep:!0}),e.watch(a,(y,$)=>{x.value=a.value}),e.watch(d,(y,$)=>{O.value=d.value}),e.watch(f,(y,$)=>{p.value=f.value}),e.watch(c,(y,$)=>{s.value=c.value}),e.watch(m,(y,$)=>{C.value=m.value}),e.watch(h,(y,$)=>{S.value=h.value}),e.watch(b,(y,$)=>{u.value=b.value}),t({}),(y,$)=>{const _=e.resolveComponent("el-option"),k=e.resolveComponent("el-select"),L=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",OE,[e.createElementVNode("div",wE,[_E,e.createElementVNode("div",{class:"font-config-header_icon",onClick:$[0]||($[0]=(...B)=>e.unref(A)&&e.unref(A)(...B))},[e.withDirectives(e.createElementVNode("span",SE,null,512),[[e.vShow,!e.unref(T)]]),e.withDirectives(e.createElementVNode("span",kE,null,512),[[e.vShow,e.unref(T)]])]),e.createElementVNode("div",{class:"font-config-header_preview",style:e.normalizeStyle(e.unref(V))},"样式预览",4)]),e.withDirectives(e.createElementVNode("div",TE,[e.createElementVNode("div",IE,[AE,e.createElementVNode("div",VE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(f),"onUpdate:modelValue":$[1]||($[1]=B=>e.isRef(f)?f.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).fontFamily,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",BE,[RE,e.createElementVNode("div",$E,[e.createVNode(L,{modelValue:e.unref(a),"onUpdate:modelValue":$[2]||($[2]=B=>e.isRef(a)?a.value=B:null),placeholder:"",clearable:"",formatter:e.unref(g),parser:e.unref(I),onBlur:$[3]||($[3]=B=>e.unref(w)("fontSizeValue"))},null,8,["modelValue","formatter","parser"])])]),e.createElementVNode("div",LE,[PE,e.createElementVNode("div",EE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(d),"onUpdate:modelValue":$[4]||($[4]=B=>e.isRef(d)?d.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).fontWeight,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",NE,[ME,e.createElementVNode("div",DE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(c),"onUpdate:modelValue":$[5]||($[5]=B=>e.isRef(c)?c.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).textDecoration,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",QE,[WE,e.createElementVNode("div",UE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(m),"onUpdate:modelValue":$[6]||($[6]=B=>e.isRef(m)?m.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).textAlign,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",ZE,[zE,e.createElementVNode("div",HE,[e.createVNode(L,{modelValue:e.unref(h),"onUpdate:modelValue":$[7]||($[7]=B=>e.isRef(h)?h.value=B:null),placeholder:"",clearable:"",formatter:e.unref(g),parser:e.unref(I),onBlur:$[8]||($[8]=B=>e.unref(w)("lineHeightValue"))},null,8,["modelValue","formatter","parser"])])]),e.createElementVNode("div",jE,[FE,e.createElementVNode("div",XE,[e.createVNode(L,{modelValue:e.unref(b),"onUpdate:modelValue":$[9]||($[9]=B=>e.isRef(b)?b.value=B:null),placeholder:"",clearable:"",formatter:e.unref(g),parser:e.unref(I),onBlur:$[10]||($[10]=B=>e.unref(w)("letterSpacingValue"))},null,8,["modelValue","formatter","parser"])])])],512),[[e.vShow,e.unref(T)]])])}}},[["__scopeId","data-v-e87bcf95"]]),qE=(r,t)=>{const n=e.reactive({borderStyleValue:"",borderColorValue:"",borderWidthValue:"",borderTopStyleValue:"",borderTopColorValue:"",borderTopWidthValue:"",borderBottomStyleValue:"",borderBottomColorValue:"",borderBottomWidthValue:"",borderLeftStyleValue:"",borderLeftColorValue:"",borderLeftWidthValue:"",borderRightStyleValue:"",borderRightColorValue:"",borderRightWidthValue:""}),{borderStyleValue:o,borderColorValue:l,borderWidthValue:i,borderTopStyleValue:a,borderTopColorValue:d,borderTopWidthValue:f,borderBottomStyleValue:c,borderBottomColorValue:m,borderBottomWidthValue:h,borderLeftStyleValue:b,borderLeftColorValue:x,borderLeftWidthValue:p,borderRightStyleValue:O,borderRightColorValue:C,borderRightWidthValue:s}=e.toRefs(n),S=e.computed({get(){return r.borderStyle},set(D){t("update:borderStyle",o.value)}}),u=e.computed({get(){return r.borderColor},set(D){t("update:borderColor",l.value)}}),T=e.computed({get(){return r.borderWidth},set(D){t("update:borderWidth",i.value)}}),A=e.computed({get(){return r.borderTopStyle},set(D){t("update:borderTopStyle",a.value)}}),V=e.computed({get(){return r.borderTopColor},set(D){t("update:borderTopColor",d.value)}}),g=e.computed({get(){return r.borderTopWidth},set(D){t("update:borderTopWidth",f.value)}}),I=e.computed({get(){return r.borderBottomStyle},set(D){t("update:borderBottomStyle",c.value)}}),w=e.computed({get(){return r.borderBottomColor},set(D){t("update:borderBottomColor",m.value)}}),R=e.computed({get(){return r.borderBottomWidth},set(D){t("update:borderBottomWidth",h.value)}}),y=e.computed({get(){return r.borderLeftStyle},set(D){t("update:borderLeftStyle",b.value)}}),$=e.computed({get(){return r.borderLeftColor},set(D){t("update:borderLeftColor",x.value)}}),_=e.computed({get(){return r.borderLeftWidth},set(D){t("update:borderLeftWidth",p.value)}}),k=e.computed({get(){return r.borderRightStyle},set(D){t("update:borderRightStyle",O.value)}}),L=e.computed({get(){return r.borderRightColor},set(D){t("update:borderRightColor",C.value)}}),B=e.computed({get(){return r.borderRightWidth},set(D){t("update:borderRightWidth",s.value)}}),E=e.ref(!0),N=()=>{E.value=!E.value},W=e.ref("center"),X=e.computed(()=>D=>D==W.value?"border-config-content_border-icon--selected":""),K=D=>{W.value=D},ee=e.computed(()=>{let D="";return o.value&&(D+=`border-style:${o.value};`),l.value&&(D+=`border-color:${l.value};`),i.value&&(D+=`border-width:${i.value};`),a.value&&(D+=`border-top-style:${a.value};`),d.value&&(D+=`border-top-color:${d.value};`),f.value&&(D+=`border-top-width:${f.value};`),c.value&&(D+=`border-bottom-style:${c.value};`),m.value&&(D+=`border-bottom-color:${m.value};`),h.value&&(D+=`border-bottom-width:${h.value};`),b.value&&(D+=`border-left-style:${b.value};`),x.value&&(D+=`border-left-color:${x.value};`),p.value&&(D+=`border-left-width:${p.value};`),O.value&&(D+=`border-right-style:${O.value};`),C.value&&(D+=`border-right-color:${C.value};`),s.value&&(D+=`border-right-width:${s.value};`),D});return{valueObj:n,borderStyleValue:o,borderColorValue:l,borderWidthValue:i,borderTopStyleValue:a,borderTopColorValue:d,borderTopWidthValue:f,borderBottomStyleValue:c,borderBottomColorValue:m,borderBottomWidthValue:h,borderLeftStyleValue:b,borderLeftColorValue:x,borderLeftWidthValue:p,borderRightStyleValue:O,borderRightColorValue:C,borderRightWidthValue:s,borderStyleModelValue:S,borderColorModelValue:u,borderWidthModelValue:T,borderTopStyleModelValue:A,borderTopColorModelValue:V,borderTopWidthModelValue:g,borderBottomStyleModelValue:I,borderBottomColorModelValue:w,borderBottomWidthModelValue:R,borderLeftStyleModelValue:y,borderLeftColorModelValue:$,borderLeftWidthModelValue:_,borderRightStyleModelValue:k,borderRightColorModelValue:L,borderRightWidthModelValue:B,contentShow:E,toggleContent:N,activeBorderIcon:W,borderIconClass:X,setActiveBorderIcon:K,previewStyle:ee,clear:()=>{if(W.value=="center")return o.value="",l.value="",i.value="",!1;if(W.value=="top")return a.value="",d.value="",f.value="",!1;if(W.value=="bottom")return c.value="",m.value="",h.value="",!1;if(W.value=="left")return b.value="",x.value="",p.value="",!1;if(W.value=="right")return O.value="",C.value="",s.value="",!1},clearAll:()=>{o.value="",l.value="",i.value="",a.value="",d.value="",f.value="",c.value="",m.value="",h.value="",b.value="",x.value="",p.value="",O.value="",C.value="",s.value=""}}},Gr=r=>(e.pushScopeId("data-v-7599b4ca"),r=r(),e.popScopeId(),r),YE={class:"border-config-container"},GE={class:"border-config-header"},KE=Gr(()=>e.createElementVNode("div",{class:"border-config-header_title"},"边框",-1)),JE={class:"iconfont_print icon-wui-print_xiala"},vE={class:"iconfont_print icon-wui-print_shangla"},e8={class:"border-config-header_operate"},t8={class:"border-config-content"},o8={class:"border-config-content_left"},n8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_biankuang"},null,-1))],r8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_zuobiankuang"},null,-1))],l8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_youbiankuang"},null,-1))],i8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shangbiankuang"},null,-1))],a8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_xiabiankuang"},null,-1))],s8={class:"border-config-content_form"},d8={class:"border-config-content_form-item"},f8={class:"border-config-content_form-item"},c8={class:"border-config-content_form-item"},p8={class:"border-config-content_form"},m8={class:"border-config-content_form-item"},h8={class:"border-config-content_form-item"},u8={class:"border-config-content_form-item"},g8={class:"border-config-content_form"},b8={class:"border-config-content_form-item"},y8={class:"border-config-content_form-item"},x8={class:"border-config-content_form-item"},C8={class:"border-config-content_form"},O8={class:"border-config-content_form-item"},w8={class:"border-config-content_form-item"},_8={class:"border-config-content_form-item"},S8={class:"border-config-content_form"},k8={class:"border-config-content_form-item"},T8={class:"border-config-content_form-item"},I8={class:"border-config-content_form-item"},Se=G({__name:"index",props:{contentShow:{type:Boolean,default:!0},borderStyle:{type:String,default:""},borderColor:{type:String,default:""},borderWidth:{type:String,default:""},borderTopStyle:{type:String,default:""},borderTopColor:{type:String,default:""},borderTopWidth:{type:String,default:""},borderBottomStyle:{type:String,default:""},borderBottomColor:{type:String,default:""},borderBottomWidth:{type:String,default:""},borderLeftStyle:{type:String,default:""},borderLeftColor:{type:String,default:""},borderLeftWidth:{type:String,default:""},borderRightStyle:{type:String,default:""},borderRightColor:{type:String,default:""},borderRightWidth:{type:String,default:""}},emits:["update:borderStyle","update:borderColor","update:borderWidth","update:borderTopStyle","update:borderTopColor","update:borderTopWidth","update:borderBottomStyle","update:borderBottomColor","update:borderBottomWidth","update:borderLeftStyle","update:borderLeftColor","update:borderLeftWidth","update:borderRightStyle","update:borderRightColor","update:borderRightWidth"],setup(r,{expose:t,emit:n}){const o=n,l=r,{valueObj:i,borderStyleValue:a,borderColorValue:d,borderWidthValue:f,borderTopStyleValue:c,borderTopColorValue:m,borderTopWidthValue:h,borderBottomStyleValue:b,borderBottomColorValue:x,borderBottomWidthValue:p,borderLeftStyleValue:O,borderLeftColorValue:C,borderLeftWidthValue:s,borderRightStyleValue:S,borderRightColorValue:u,borderRightWidthValue:T,borderStyleModelValue:A,borderColorModelValue:V,borderWidthModelValue:g,borderTopStyleModelValue:I,borderTopColorModelValue:w,borderTopWidthModelValue:R,borderBottomStyleModelValue:y,borderBottomColorModelValue:$,borderBottomWidthModelValue:_,borderLeftStyleModelValue:k,borderLeftColorModelValue:L,borderLeftWidthModelValue:B,borderRightStyleModelValue:E,borderRightColorModelValue:N,borderRightWidthModelValue:W,contentShow:X,toggleContent:K,activeBorderIcon:ee,borderIconClass:se,setActiveBorderIcon:U,previewStyle:D,clear:P,clearAll:H}=qE(l,o),{formatter:z,parser:ae,complementValue:Ve}=yt(i),{dict:Pe}=e.inject("printDesigner");return e.watch(()=>l.contentShow,(be,Z)=>{X.value=l.contentShow},{immediate:!0,deep:!0}),e.watch(()=>l.borderStyle,(be,Z)=>{a.value=l.borderStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderColor,(be,Z)=>{d.value=l.borderColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderWidth,(be,Z)=>{f.value=l.borderWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderTopStyle,(be,Z)=>{c.value=l.borderTopStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderTopColor,(be,Z)=>{m.value=l.borderTopColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderTopWidth,(be,Z)=>{h.value=l.borderTopWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderBottomStyle,(be,Z)=>{b.value=l.borderBottomStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderBottomColor,(be,Z)=>{x.value=l.borderBottomColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderBottomWidth,(be,Z)=>{p.value=l.borderBottomWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderLeftStyle,(be,Z)=>{O.value=l.borderLeftStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderLeftColor,(be,Z)=>{C.value=l.borderLeftColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderLeftWidth,(be,Z)=>{s.value=l.borderLeftWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderRightStyle,(be,Z)=>{S.value=l.borderRightStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderRightColor,(be,Z)=>{u.value=l.borderRightColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderRightWidth,(be,Z)=>{T.value=l.borderRightWidth},{immediate:!0,deep:!0}),e.watch(a,(be,Z)=>{A.value=a.value}),e.watch(d,(be,Z)=>{V.value=d.value}),e.watch(f,(be,Z)=>{g.value=f.value}),e.watch(c,(be,Z)=>{I.value=c.value}),e.watch(m,(be,Z)=>{w.value=m.value}),e.watch(h,(be,Z)=>{R.value=h.value}),e.watch(b,(be,Z)=>{y.value=b.value}),e.watch(x,(be,Z)=>{$.value=x.value}),e.watch(p,(be,Z)=>{_.value=p.value}),e.watch(O,(be,Z)=>{k.value=O.value}),e.watch(C,(be,Z)=>{L.value=C.value}),e.watch(s,(be,Z)=>{B.value=s.value}),e.watch(S,(be,Z)=>{E.value=S.value}),e.watch(u,(be,Z)=>{N.value=u.value}),e.watch(T,(be,Z)=>{W.value=T.value}),t({}),(be,Z)=>{const he=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),ie=e.resolveComponent("el-input"),de=e.resolveComponent("el-color-picker");return e.openBlock(),e.createElementBlock("div",YE,[e.createElementVNode("div",GE,[KE,e.createElementVNode("div",{class:"border-config-header_icon",onClick:Z[0]||(Z[0]=(...J)=>e.unref(K)&&e.unref(K)(...J))},[e.withDirectives(e.createElementVNode("span",JE,null,512),[[e.vShow,!e.unref(X)]]),e.withDirectives(e.createElementVNode("span",vE,null,512),[[e.vShow,e.unref(X)]])]),e.createElementVNode("div",{class:"border-config-header_preview",style:e.normalizeStyle(e.unref(D))},"样式预览",4),e.createElementVNode("div",e8,[e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchu",onClick:Z[1]||(Z[1]=(...J)=>e.unref(P)&&e.unref(P)(...J))}),e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchuquanbu",onClick:Z[2]||(Z[2]=(...J)=>e.unref(H)&&e.unref(H)(...J))})])]),e.withDirectives(e.createElementVNode("div",t8,[e.createElementVNode("div",o8,[e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--center ${e.unref(se)("center")}`),onClick:Z[3]||(Z[3]=J=>e.unref(U)("center"))},n8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--left ${e.unref(se)("left")}`),onClick:Z[4]||(Z[4]=J=>e.unref(U)("left"))},r8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--right ${e.unref(se)("right")}`),onClick:Z[5]||(Z[5]=J=>e.unref(U)("right"))},l8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--top ${e.unref(se)("top")}`),onClick:Z[6]||(Z[6]=J=>e.unref(U)("top"))},i8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--bottom ${e.unref(se)("bottom")}`),onClick:Z[7]||(Z[7]=J=>e.unref(U)("bottom"))},a8,2)]),e.withDirectives(e.createElementVNode("div",s8,[e.createElementVNode("div",d8,[e.createVNode(j,{modelValue:e.unref(a),"onUpdate:modelValue":Z[8]||(Z[8]=J=>e.isRef(a)?a.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",f8,[e.createVNode(ie,{modelValue:e.unref(f),"onUpdate:modelValue":Z[9]||(Z[9]=J=>e.isRef(f)?f.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[10]||(Z[10]=J=>e.unref(Ve)("borderWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",c8,[e.createVNode(ie,{modelValue:e.unref(d),"onUpdate:modelValue":Z[12]||(Z[12]=J=>e.isRef(d)?d.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(d),"onUpdate:modelValue":Z[11]||(Z[11]=J=>e.isRef(d)?d.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="center"]]),e.withDirectives(e.createElementVNode("div",p8,[e.createElementVNode("div",m8,[e.createVNode(j,{modelValue:e.unref(c),"onUpdate:modelValue":Z[13]||(Z[13]=J=>e.isRef(c)?c.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",h8,[e.createVNode(ie,{modelValue:e.unref(h),"onUpdate:modelValue":Z[14]||(Z[14]=J=>e.isRef(h)?h.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[15]||(Z[15]=J=>e.unref(Ve)("borderTopWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",u8,[e.createVNode(ie,{modelValue:e.unref(m),"onUpdate:modelValue":Z[17]||(Z[17]=J=>e.isRef(m)?m.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(m),"onUpdate:modelValue":Z[16]||(Z[16]=J=>e.isRef(m)?m.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="top"]]),e.withDirectives(e.createElementVNode("div",g8,[e.createElementVNode("div",b8,[e.createVNode(j,{modelValue:e.unref(b),"onUpdate:modelValue":Z[18]||(Z[18]=J=>e.isRef(b)?b.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",y8,[e.createVNode(ie,{modelValue:e.unref(p),"onUpdate:modelValue":Z[19]||(Z[19]=J=>e.isRef(p)?p.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[20]||(Z[20]=J=>e.unref(Ve)("borderBottomWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",x8,[e.createVNode(ie,{modelValue:e.unref(x),"onUpdate:modelValue":Z[22]||(Z[22]=J=>e.isRef(x)?x.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(x),"onUpdate:modelValue":Z[21]||(Z[21]=J=>e.isRef(x)?x.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="bottom"]]),e.withDirectives(e.createElementVNode("div",C8,[e.createElementVNode("div",O8,[e.createVNode(j,{modelValue:e.unref(O),"onUpdate:modelValue":Z[23]||(Z[23]=J=>e.isRef(O)?O.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",w8,[e.createVNode(ie,{modelValue:e.unref(s),"onUpdate:modelValue":Z[24]||(Z[24]=J=>e.isRef(s)?s.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[25]||(Z[25]=J=>e.unref(Ve)("borderLeftWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",_8,[e.createVNode(ie,{modelValue:e.unref(C),"onUpdate:modelValue":Z[27]||(Z[27]=J=>e.isRef(C)?C.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(C),"onUpdate:modelValue":Z[26]||(Z[26]=J=>e.isRef(C)?C.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="left"]]),e.withDirectives(e.createElementVNode("div",S8,[e.createElementVNode("div",k8,[e.createVNode(j,{modelValue:e.unref(S),"onUpdate:modelValue":Z[28]||(Z[28]=J=>e.isRef(S)?S.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",T8,[e.createVNode(ie,{modelValue:e.unref(T),"onUpdate:modelValue":Z[29]||(Z[29]=J=>e.isRef(T)?T.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[30]||(Z[30]=J=>e.unref(Ve)("borderRightWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",I8,[e.createVNode(ie,{modelValue:e.unref(u),"onUpdate:modelValue":Z[32]||(Z[32]=J=>e.isRef(u)?u.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(u),"onUpdate:modelValue":Z[31]||(Z[31]=J=>e.isRef(u)?u.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="right"]])],512),[[e.vShow,e.unref(X)]])])}}},[["__scopeId","data-v-7599b4ca"]]),A8=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"",fieldType:"base"},{label:"文本内容",key:"defaultContent",default:"文本内容",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"5px",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"5px",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"5px",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"5px",fieldType:"style"},{label:"字体颜色",key:"color",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"宽度",key:"width",default:"",fieldType:"style"},{label:"高度",key:"height",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"14px",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"center",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},sr=r=>(e.pushScopeId("data-v-77d38c10"),r=r(),e.popScopeId(),r),V8={class:"component-config-container text-component-config-container"},B8={class:"component-config-header"},R8=sr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"文本")],-1)),$8=sr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),L8=[sr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],P8=sr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),E8=sr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),N8=sr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),M8=sr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),D8=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=A8(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",V8,[e.createElementVNode("div",B8,[R8,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),$8]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},L8)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[P8,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),E8,e.createVNode(g,{label:"文本内容",prop:"defaultContent"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultContent,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).defaultContent=y),type:"textarea",placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).showOnLastPage=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),N8,M8,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[4]||(s[4]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[5]||(s[5]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[6]||(s[6]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[7]||(s[7]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[8]||(s[8]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[9]||(s[9]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[10]||(s[10]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[11]||(s[11]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(g,{label:"颜色","label-position":"left",prop:"color"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).color,"onUpdate:modelValue":s[13]||(s[13]=y=>e.unref(o).color=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).color,"onUpdate:modelValue":s[12]||(s[12]=y=>e.unref(o).color=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[15]||(s[15]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[14]||(s[14]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"宽度",prop:"width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[16]||(s[16]=y=>e.unref(o).width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[17]||(s[17]=y=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[18]||(s[18]=y=>e.unref(o).height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[19]||(s[19]=y=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":s[20]||(s[20]=y=>e.unref(o).fontSize=y),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":s[21]||(s[21]=y=>e.unref(o).fontWeight=y),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":s[22]||(s[22]=y=>e.unref(o).textDecoration=y),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":s[23]||(s[23]=y=>e.unref(o).textAlign=y),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":s[24]||(s[24]=y=>e.unref(o).lineHeight=y),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":s[25]||(s[25]=y=>e.unref(o).letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[26]||(s[26]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[27]||(s[27]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[28]||(s[28]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[29]||(s[29]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[30]||(s[30]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[31]||(s[31]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[32]||(s[32]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[33]||(s[33]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[34]||(s[34]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[35]||(s[35]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[36]||(s[36]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[37]||(s[37]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[38]||(s[38]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[39]||(s[39]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[40]||(s[40]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-77d38c10"]]),Q8=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"标签名称",key:"label",default:"标题:",fieldType:"prop"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"是否为时间格式",key:"isDateTime",default:!1,fieldType:"prop"},{label:"时间格式",key:"dateTimeFormat",default:"",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"宽度",key:"width",default:"",fieldType:"style"},{label:"高度",key:"height",default:"",fieldType:"style"},{label:"标签-外边距-上",key:"label_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"label_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"label_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"label_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"label_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"label_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"label_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"label_paddingRight",default:"",fieldType:"style"},{label:"标签-字体大小",key:"label_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"label_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"label_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"label_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"label_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"label_letterSpacing",default:"",fieldType:"style"},{label:"标签-边框样式",key:"label_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"label_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"label_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"label_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"label_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"label_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"label_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"label_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"label_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"label_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"label_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"label_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"label_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"label_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"label_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体颜色",key:"label_color",default:"",fieldType:"style"},{label:"标签-背景颜色",key:"label_backgroundColor",default:"",fieldType:"style"},{label:"文本-外边距-上",key:"text_marginTop",default:"",fieldType:"style"},{label:"文本-外边距-下",key:"text_marginBottom",default:"",fieldType:"style"},{label:"文本-外边距-左",key:"text_marginLeft",default:"",fieldType:"style"},{label:"文本-外边距-右",key:"text_marginRight",default:"",fieldType:"style"},{label:"文本-内边距-上",key:"text_paddingTop",default:"",fieldType:"style"},{label:"文本-内边距-下",key:"text_paddingBottom",default:"",fieldType:"style"},{label:"文本-内边距-左",key:"text_paddingLeft",default:"3px",fieldType:"style"},{label:"文本-内边距-右",key:"text_paddingRight",default:"",fieldType:"style"},{label:"文本-字体大小",key:"text_fontSize",default:"",fieldType:"style"},{label:"文本-字体粗细",key:"text_fontWeight",default:"",fieldType:"style"},{label:"文本-字体修饰",key:"text_textDecoration",default:"",fieldType:"style"},{label:"文本-对齐方式",key:"text_textAlign",default:"left",fieldType:"style"},{label:"文本-字体行高",key:"text_lineHeight",default:"",fieldType:"style"},{label:"文本-字间距",key:"text_letterSpacing",default:"",fieldType:"style"},{label:"文本-边框样式",key:"text_borderStyle",default:"",fieldType:"style"},{label:"文本-边框宽度",key:"text_borderWidth",default:"",fieldType:"style"},{label:"文本-边框颜色",key:"text_borderColor",default:"",fieldType:"style"},{label:"文本-边框样式-上",key:"text_borderTopStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-上",key:"text_borderTopWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-上",key:"text_borderTopColor",default:"",fieldType:"style"},{label:"文本-边框样式-下",key:"text_borderBottomStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-下",key:"text_borderBottomWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-下",key:"text_borderBottomColor",default:"",fieldType:"style"},{label:"文本-边框样式-左",key:"text_borderLeftStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-左",key:"text_borderLeftWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-左",key:"text_borderLeftColor",default:"",fieldType:"style"},{label:"文本-边框样式-右",key:"text_borderRightStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-右",key:"text_borderRightWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-右",key:"text_borderRightColor",default:"",fieldType:"style"},{label:"文本-字体颜色",key:"text_color",default:"",fieldType:"style"},{label:"文本-背景颜色",key:"text_backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},vo=r=>(e.pushScopeId("data-v-d983882f"),r=r(),e.popScopeId(),r),W8={class:"component-config-container dynamic-text-component-config-container"},U8={class:"component-config-header"},Z8=vo(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"动态文本")],-1)),z8=vo(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),H8=[vo(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],j8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),F8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),X8=vo(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),q8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),Y8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"标签样式配置")],-1)),G8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"文本样式配置")],-1)),K8=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=Q8(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-option"),R=e.resolveComponent("el-select"),y=e.resolveComponent("el-color-picker"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",W8,[e.createElementVNode("div",U8,[Z8,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),z8]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},H8)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[j8,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=_=>e.unref(o).id=_),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=_=>e.unref(o).title=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),F8,e.createVNode(g,{label:"标签名称",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[2]||(s[2]=_=>e.unref(o).label=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[3]||(s[3]=_=>e.unref(o).field=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"是否为日期时间",prop:"isDateTime","label-width":"100","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).isDateTime,"onUpdate:modelValue":s[4]||(s[4]=_=>e.unref(o).isDateTime=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"日期时间格式",prop:"dateTimeFormat"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).dateTimeFormat,"onUpdate:modelValue":s[5]||(s[5]=_=>e.unref(o).dateTimeFormat=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).textDateTimeFormat,(_,k)=>(e.openBlock(),e.createBlock(w,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[6]||(s[6]=_=>e.unref(o).showOnLastPage=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),X8,q8,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[7]||(s[7]=_=>e.unref(o).marginTop=_),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[8]||(s[8]=_=>e.unref(o).marginBottom=_),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[9]||(s[9]=_=>e.unref(o).marginLeft=_),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[10]||(s[10]=_=>e.unref(o).marginRight=_),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[11]||(s[11]=_=>e.unref(o).paddingTop=_),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[12]||(s[12]=_=>e.unref(o).paddingBottom=_),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[13]||(s[13]=_=>e.unref(o).paddingLeft=_),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[14]||(s[14]=_=>e.unref(o).paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[15]||(s[15]=_=>e.unref(o).borderStyle=_),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[16]||(s[16]=_=>e.unref(o).borderWidth=_),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[17]||(s[17]=_=>e.unref(o).borderColor=_),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[18]||(s[18]=_=>e.unref(o).borderTopStyle=_),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[19]||(s[19]=_=>e.unref(o).borderTopWidth=_),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[20]||(s[20]=_=>e.unref(o).borderTopColor=_),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[21]||(s[21]=_=>e.unref(o).borderBottomStyle=_),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[22]||(s[22]=_=>e.unref(o).borderBottomWidth=_),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[23]||(s[23]=_=>e.unref(o).borderBottomColor=_),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[24]||(s[24]=_=>e.unref(o).borderLeftStyle=_),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[25]||(s[25]=_=>e.unref(o).borderLeftWidth=_),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[26]||(s[26]=_=>e.unref(o).borderLeftColor=_),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[27]||(s[27]=_=>e.unref(o).borderRightStyle=_),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[28]||(s[28]=_=>e.unref(o).borderRightWidth=_),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[29]||(s[29]=_=>e.unref(o).borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[31]||(s[31]=_=>e.unref(o).backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[30]||(s[30]=_=>e.unref(o).backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"宽度",prop:"width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[32]||(s[32]=_=>e.unref(o).width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[33]||(s[33]=_=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[34]||(s[34]=_=>e.unref(o).height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[35]||(s[35]=_=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),Y8,e.createVNode(Oe,{marginTop:e.unref(o).label_marginTop,"onUpdate:marginTop":s[36]||(s[36]=_=>e.unref(o).label_marginTop=_),marginBottom:e.unref(o).label_marginBottom,"onUpdate:marginBottom":s[37]||(s[37]=_=>e.unref(o).label_marginBottom=_),marginLeft:e.unref(o).label_marginLeft,"onUpdate:marginLeft":s[38]||(s[38]=_=>e.unref(o).label_marginLeft=_),marginRight:e.unref(o).label_marginRight,"onUpdate:marginRight":s[39]||(s[39]=_=>e.unref(o).label_marginRight=_),paddingTop:e.unref(o).label_paddingTop,"onUpdate:paddingTop":s[40]||(s[40]=_=>e.unref(o).label_paddingTop=_),paddingBottom:e.unref(o).label_paddingBottom,"onUpdate:paddingBottom":s[41]||(s[41]=_=>e.unref(o).label_paddingBottom=_),paddingLeft:e.unref(o).label_paddingLeft,"onUpdate:paddingLeft":s[42]||(s[42]=_=>e.unref(o).label_paddingLeft=_),paddingRight:e.unref(o).label_paddingRight,"onUpdate:paddingRight":s[43]||(s[43]=_=>e.unref(o).label_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Me,{fontSize:e.unref(o).label_fontSize,"onUpdate:fontSize":s[44]||(s[44]=_=>e.unref(o).label_fontSize=_),fontWeight:e.unref(o).label_fontWeight,"onUpdate:fontWeight":s[45]||(s[45]=_=>e.unref(o).label_fontWeight=_),textDecoration:e.unref(o).label_textDecoration,"onUpdate:textDecoration":s[46]||(s[46]=_=>e.unref(o).label_textDecoration=_),textAlign:e.unref(o).label_textAlign,"onUpdate:textAlign":s[47]||(s[47]=_=>e.unref(o).label_textAlign=_),lineHeight:e.unref(o).label_lineHeight,"onUpdate:lineHeight":s[48]||(s[48]=_=>e.unref(o).label_lineHeight=_),letterSpacing:e.unref(o).label_letterSpacing,"onUpdate:letterSpacing":s[49]||(s[49]=_=>e.unref(o).label_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(Se,{borderStyle:e.unref(o).label_borderStyle,"onUpdate:borderStyle":s[50]||(s[50]=_=>e.unref(o).label_borderStyle=_),borderWidth:e.unref(o).label_borderWidth,"onUpdate:borderWidth":s[51]||(s[51]=_=>e.unref(o).label_borderWidth=_),borderColor:e.unref(o).label_borderColor,"onUpdate:borderColor":s[52]||(s[52]=_=>e.unref(o).label_borderColor=_),borderTopStyle:e.unref(o).label_borderTopStyle,"onUpdate:borderTopStyle":s[53]||(s[53]=_=>e.unref(o).label_borderTopStyle=_),borderTopWidth:e.unref(o).label_borderTopWidth,"onUpdate:borderTopWidth":s[54]||(s[54]=_=>e.unref(o).label_borderTopWidth=_),borderTopColor:e.unref(o).label_borderTopColor,"onUpdate:borderTopColor":s[55]||(s[55]=_=>e.unref(o).label_borderTopColor=_),borderBottomStyle:e.unref(o).label_borderBottomStyle,"onUpdate:borderBottomStyle":s[56]||(s[56]=_=>e.unref(o).label_borderBottomStyle=_),borderBottomWidth:e.unref(o).label_borderBottomWidth,"onUpdate:borderBottomWidth":s[57]||(s[57]=_=>e.unref(o).label_borderBottomWidth=_),borderBottomColor:e.unref(o).label_borderBottomColor,"onUpdate:borderBottomColor":s[58]||(s[58]=_=>e.unref(o).label_borderBottomColor=_),borderLeftStyle:e.unref(o).label_borderLeftStyle,"onUpdate:borderLeftStyle":s[59]||(s[59]=_=>e.unref(o).label_borderLeftStyle=_),borderLeftWidth:e.unref(o).label_borderLeftWidth,"onUpdate:borderLeftWidth":s[60]||(s[60]=_=>e.unref(o).label_borderLeftWidth=_),borderLeftColor:e.unref(o).label_borderLeftColor,"onUpdate:borderLeftColor":s[61]||(s[61]=_=>e.unref(o).label_borderLeftColor=_),borderRightStyle:e.unref(o).label_borderRightStyle,"onUpdate:borderRightStyle":s[62]||(s[62]=_=>e.unref(o).label_borderRightStyle=_),borderRightWidth:e.unref(o).label_borderRightWidth,"onUpdate:borderRightWidth":s[63]||(s[63]=_=>e.unref(o).label_borderRightWidth=_),borderRightColor:e.unref(o).label_borderRightColor,"onUpdate:borderRightColor":s[64]||(s[64]=_=>e.unref(o).label_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"颜色","label-position":"left",prop:"label_color"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label_color,"onUpdate:modelValue":s[66]||(s[66]=_=>e.unref(o).label_color=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).label_color,"onUpdate:modelValue":s[65]||(s[65]=_=>e.unref(o).label_color=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"label_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label_backgroundColor,"onUpdate:modelValue":s[68]||(s[68]=_=>e.unref(o).label_backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).label_backgroundColor,"onUpdate:modelValue":s[67]||(s[67]=_=>e.unref(o).label_backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),G8,e.createVNode(Oe,{marginTop:e.unref(o).text_marginTop,"onUpdate:marginTop":s[69]||(s[69]=_=>e.unref(o).text_marginTop=_),marginBottom:e.unref(o).text_marginBottom,"onUpdate:marginBottom":s[70]||(s[70]=_=>e.unref(o).text_marginBottom=_),marginLeft:e.unref(o).text_marginLeft,"onUpdate:marginLeft":s[71]||(s[71]=_=>e.unref(o).text_marginLeft=_),marginRight:e.unref(o).text_marginRight,"onUpdate:marginRight":s[72]||(s[72]=_=>e.unref(o).text_marginRight=_),paddingTop:e.unref(o).text_paddingTop,"onUpdate:paddingTop":s[73]||(s[73]=_=>e.unref(o).text_paddingTop=_),paddingBottom:e.unref(o).text_paddingBottom,"onUpdate:paddingBottom":s[74]||(s[74]=_=>e.unref(o).text_paddingBottom=_),paddingLeft:e.unref(o).text_paddingLeft,"onUpdate:paddingLeft":s[75]||(s[75]=_=>e.unref(o).text_paddingLeft=_),paddingRight:e.unref(o).text_paddingRight,"onUpdate:paddingRight":s[76]||(s[76]=_=>e.unref(o).text_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Me,{fontSize:e.unref(o).text_fontSize,"onUpdate:fontSize":s[77]||(s[77]=_=>e.unref(o).text_fontSize=_),fontWeight:e.unref(o).text_fontWeight,"onUpdate:fontWeight":s[78]||(s[78]=_=>e.unref(o).text_fontWeight=_),textDecoration:e.unref(o).text_textDecoration,"onUpdate:textDecoration":s[79]||(s[79]=_=>e.unref(o).text_textDecoration=_),textAlign:e.unref(o).text_textAlign,"onUpdate:textAlign":s[80]||(s[80]=_=>e.unref(o).text_textAlign=_),lineHeight:e.unref(o).text_lineHeight,"onUpdate:lineHeight":s[81]||(s[81]=_=>e.unref(o).text_lineHeight=_),letterSpacing:e.unref(o).text_letterSpacing,"onUpdate:letterSpacing":s[82]||(s[82]=_=>e.unref(o).text_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(Se,{borderStyle:e.unref(o).text_borderStyle,"onUpdate:borderStyle":s[83]||(s[83]=_=>e.unref(o).text_borderStyle=_),borderWidth:e.unref(o).text_borderWidth,"onUpdate:borderWidth":s[84]||(s[84]=_=>e.unref(o).text_borderWidth=_),borderColor:e.unref(o).text_borderColor,"onUpdate:borderColor":s[85]||(s[85]=_=>e.unref(o).text_borderColor=_),borderTopStyle:e.unref(o).text_borderTopStyle,"onUpdate:borderTopStyle":s[86]||(s[86]=_=>e.unref(o).text_borderTopStyle=_),borderTopWidth:e.unref(o).text_borderTopWidth,"onUpdate:borderTopWidth":s[87]||(s[87]=_=>e.unref(o).text_borderTopWidth=_),borderTopColor:e.unref(o).text_borderTopColor,"onUpdate:borderTopColor":s[88]||(s[88]=_=>e.unref(o).text_borderTopColor=_),borderBottomStyle:e.unref(o).text_borderBottomStyle,"onUpdate:borderBottomStyle":s[89]||(s[89]=_=>e.unref(o).text_borderBottomStyle=_),borderBottomWidth:e.unref(o).text_borderBottomWidth,"onUpdate:borderBottomWidth":s[90]||(s[90]=_=>e.unref(o).text_borderBottomWidth=_),borderBottomColor:e.unref(o).text_borderBottomColor,"onUpdate:borderBottomColor":s[91]||(s[91]=_=>e.unref(o).text_borderBottomColor=_),borderLeftStyle:e.unref(o).text_borderLeftStyle,"onUpdate:borderLeftStyle":s[92]||(s[92]=_=>e.unref(o).text_borderLeftStyle=_),borderLeftWidth:e.unref(o).text_borderLeftWidth,"onUpdate:borderLeftWidth":s[93]||(s[93]=_=>e.unref(o).text_borderLeftWidth=_),borderLeftColor:e.unref(o).text_borderLeftColor,"onUpdate:borderLeftColor":s[94]||(s[94]=_=>e.unref(o).text_borderLeftColor=_),borderRightStyle:e.unref(o).text_borderRightStyle,"onUpdate:borderRightStyle":s[95]||(s[95]=_=>e.unref(o).text_borderRightStyle=_),borderRightWidth:e.unref(o).text_borderRightWidth,"onUpdate:borderRightWidth":s[96]||(s[96]=_=>e.unref(o).text_borderRightWidth=_),borderRightColor:e.unref(o).text_borderRightColor,"onUpdate:borderRightColor":s[97]||(s[97]=_=>e.unref(o).text_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"颜色","label-position":"left",prop:"text_color"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).text_color,"onUpdate:modelValue":s[99]||(s[99]=_=>e.unref(o).text_color=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).text_color,"onUpdate:modelValue":s[98]||(s[98]=_=>e.unref(o).text_color=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"text_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).text_backgroundColor,"onUpdate:modelValue":s[101]||(s[101]=_=>e.unref(o).text_backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).text_backgroundColor,"onUpdate:modelValue":s[100]||(s[100]=_=>e.unref(o).text_backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-d983882f"]]),J8=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"栅格布局",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"solid",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"1px",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"#ADADAD",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"solid",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"1px",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"#ADADAD",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"14px",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"left",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"表头-外边距-上",key:"header_marginTop",default:"",fieldType:"style"},{label:"表头-外边距-下",key:"header_marginBottom",default:"",fieldType:"style"},{label:"表头-外边距-左",key:"header_marginLeft",default:"",fieldType:"style"},{label:"表头-外边距-右",key:"header_marginRight",default:"",fieldType:"style"},{label:"表头-内边距-上",key:"header_paddingTop",default:"5px",fieldType:"style"},{label:"表头-内边距-下",key:"header_paddingBottom",default:"5px",fieldType:"style"},{label:"表头-内边距-左",key:"header_paddingLeft",default:"5px",fieldType:"style"},{label:"表头-内边距-右",key:"header_paddingRight",default:"5px",fieldType:"style"},{label:"表头-边框样式",key:"header_borderStyle",default:"",fieldType:"style"},{label:"表头-边框宽度",key:"header_borderWidth",default:"",fieldType:"style"},{label:"表头-边框颜色",key:"header_borderColor",default:"",fieldType:"style"},{label:"表头-边框样式-上",key:"header_borderTopStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-上",key:"header_borderTopWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-上",key:"header_borderTopColor",default:"",fieldType:"style"},{label:"表头-边框样式-下",key:"header_borderBottomStyle",default:"solid",fieldType:"style"},{label:"表头-边框宽度-下",key:"header_borderBottomWidth",default:"1px",fieldType:"style"},{label:"表头-边框颜色-下",key:"header_borderBottomColor",default:"#ADADAD",fieldType:"style"},{label:"表头-边框样式-左",key:"header_borderLeftStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-左",key:"header_borderLeftWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-左",key:"header_borderLeftColor",default:"",fieldType:"style"},{label:"表头-边框样式-右",key:"header_borderRightStyle",default:"solid",fieldType:"style"},{label:"表头-边框宽度-右",key:"header_borderRightWidth",default:"1px",fieldType:"style"},{label:"表头-边框颜色-右",key:"header_borderRightColor",default:"#ADADAD",fieldType:"style"},{label:"表头-字体大小",key:"header_fontSize",default:"",fieldType:"style"},{label:"表头-字体粗细",key:"header_fontWeight",default:700,fieldType:"style"},{label:"表头-字体修饰",key:"header_textDecoration",default:"",fieldType:"style"},{label:"表头-对齐方式",key:"header_textAlign",default:"left",fieldType:"style"},{label:"表头-字体行高",key:"header_lineHeight",default:"",fieldType:"style"},{label:"表头-字间距",key:"header_letterSpacing",default:"",fieldType:"style"},{label:"表头-背景颜色",key:"header_backgroundColor",default:"",fieldType:"style"},{label:"单元格-外边距-上",key:"cell_marginTop",default:"",fieldType:"style"},{label:"单元格-外边距-下",key:"cell_marginBottom",default:"",fieldType:"style"},{label:"单元格-外边距-左",key:"cell_marginLeft",default:"",fieldType:"style"},{label:"单元格-外边距-右",key:"cell_marginRight",default:"",fieldType:"style"},{label:"单元格-内边距-上",key:"cell_paddingTop",default:"5px",fieldType:"style"},{label:"单元格-内边距-下",key:"cell_paddingBottom",default:"5px",fieldType:"style"},{label:"单元格-内边距-左",key:"cell_paddingLeft",default:"5px",fieldType:"style"},{label:"单元格-内边距-右",key:"cell_paddingRight",default:"5px",fieldType:"style"},{label:"单元格-边框样式",key:"cell_borderStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度",key:"cell_borderWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色",key:"cell_borderColor",default:"",fieldType:"style"},{label:"单元格-边框样式-上",key:"cell_borderTopStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-上",key:"cell_borderTopWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-上",key:"cell_borderTopColor",default:"",fieldType:"style"},{label:"单元格-边框样式-下",key:"cell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-下",key:"cell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-下",key:"cell_borderBottomColor",default:"#ADADAD",fieldType:"style"},{label:"单元格-边框样式-左",key:"cell_borderLeftStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-左",key:"cell_borderLeftWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-左",key:"cell_borderLeftColor",default:"",fieldType:"style"},{label:"单元格-边框样式-右",key:"cell_borderRightStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-右",key:"cell_borderRightWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-右",key:"cell_borderRightColor",default:"#ADADAD",fieldType:"style"},{label:"单元格-字体大小",key:"cell_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"cell_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"cell_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"cell_textAlign",default:"left",fieldType:"style"},{label:"单元格-字体行高",key:"cell_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"cell_letterSpacing",default:"",fieldType:"style"},{label:"单元格-背景颜色",key:"cell_backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Vn=r=>(e.pushScopeId("data-v-c2bab41c"),r=r(),e.popScopeId(),r),v8={class:"component-config-container table-component-config-container"},eN={class:"component-config-header"},tN=Vn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格")],-1)),oN=Vn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),nN=[Vn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],rN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),lN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),iN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表格样式配置")],-1)),aN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表头样式")],-1)),sN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"单元格样式配置")],-1)),dN=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=J8(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",v8,[e.createElementVNode("div",eN,[tN,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),oN]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},nN)]),e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[rN,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(o).id=g),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(o).title=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),lN,e.createVNode(T,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).field,"onUpdate:modelValue":p[2]||(p[2]=g=>e.unref(o).field=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),iN,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[3]||(p[3]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[4]||(p[4]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[5]||(p[5]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[6]||(p[6]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[7]||(p[7]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[8]||(p[8]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[9]||(p[9]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[10]||(p[10]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[11]||(p[11]=g=>e.unref(o).borderStyle=g),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[12]||(p[12]=g=>e.unref(o).borderWidth=g),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[13]||(p[13]=g=>e.unref(o).borderColor=g),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[14]||(p[14]=g=>e.unref(o).borderTopStyle=g),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[15]||(p[15]=g=>e.unref(o).borderTopWidth=g),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[16]||(p[16]=g=>e.unref(o).borderTopColor=g),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[17]||(p[17]=g=>e.unref(o).borderBottomStyle=g),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[18]||(p[18]=g=>e.unref(o).borderBottomWidth=g),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[19]||(p[19]=g=>e.unref(o).borderBottomColor=g),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[20]||(p[20]=g=>e.unref(o).borderLeftStyle=g),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[21]||(p[21]=g=>e.unref(o).borderLeftWidth=g),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[22]||(p[22]=g=>e.unref(o).borderLeftColor=g),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[23]||(p[23]=g=>e.unref(o).borderRightStyle=g),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[24]||(p[24]=g=>e.unref(o).borderRightWidth=g),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[25]||(p[25]=g=>e.unref(o).borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":p[26]||(p[26]=g=>e.unref(o).fontSize=g),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":p[27]||(p[27]=g=>e.unref(o).fontWeight=g),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":p[28]||(p[28]=g=>e.unref(o).textDecoration=g),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":p[29]||(p[29]=g=>e.unref(o).textAlign=g),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":p[30]||(p[30]=g=>e.unref(o).lineHeight=g),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":p[31]||(p[31]=g=>e.unref(o).letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[33]||(p[33]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[32]||(p[32]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),aN,e.createVNode(Oe,{marginTop:e.unref(o).header_marginTop,"onUpdate:marginTop":p[34]||(p[34]=g=>e.unref(o).header_marginTop=g),marginBottom:e.unref(o).header_marginBottom,"onUpdate:marginBottom":p[35]||(p[35]=g=>e.unref(o).header_marginBottom=g),marginLeft:e.unref(o).header_marginLeft,"onUpdate:marginLeft":p[36]||(p[36]=g=>e.unref(o).header_marginLeft=g),marginRight:e.unref(o).header_marginRight,"onUpdate:marginRight":p[37]||(p[37]=g=>e.unref(o).header_marginRight=g),paddingTop:e.unref(o).header_paddingTop,"onUpdate:paddingTop":p[38]||(p[38]=g=>e.unref(o).header_paddingTop=g),paddingBottom:e.unref(o).header_paddingBottom,"onUpdate:paddingBottom":p[39]||(p[39]=g=>e.unref(o).header_paddingBottom=g),paddingLeft:e.unref(o).header_paddingLeft,"onUpdate:paddingLeft":p[40]||(p[40]=g=>e.unref(o).header_paddingLeft=g),paddingRight:e.unref(o).header_paddingRight,"onUpdate:paddingRight":p[41]||(p[41]=g=>e.unref(o).header_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).header_borderStyle,"onUpdate:borderStyle":p[42]||(p[42]=g=>e.unref(o).header_borderStyle=g),borderWidth:e.unref(o).header_borderWidth,"onUpdate:borderWidth":p[43]||(p[43]=g=>e.unref(o).header_borderWidth=g),borderColor:e.unref(o).header_borderColor,"onUpdate:borderColor":p[44]||(p[44]=g=>e.unref(o).header_borderColor=g),borderTopStyle:e.unref(o).header_borderTopStyle,"onUpdate:borderTopStyle":p[45]||(p[45]=g=>e.unref(o).header_borderTopStyle=g),borderTopWidth:e.unref(o).header_borderTopWidth,"onUpdate:borderTopWidth":p[46]||(p[46]=g=>e.unref(o).header_borderTopWidth=g),borderTopColor:e.unref(o).header_borderTopColor,"onUpdate:borderTopColor":p[47]||(p[47]=g=>e.unref(o).header_borderTopColor=g),borderBottomStyle:e.unref(o).header_borderBottomStyle,"onUpdate:borderBottomStyle":p[48]||(p[48]=g=>e.unref(o).header_borderBottomStyle=g),borderBottomWidth:e.unref(o).header_borderBottomWidth,"onUpdate:borderBottomWidth":p[49]||(p[49]=g=>e.unref(o).header_borderBottomWidth=g),borderBottomColor:e.unref(o).header_borderBottomColor,"onUpdate:borderBottomColor":p[50]||(p[50]=g=>e.unref(o).header_borderBottomColor=g),borderLeftStyle:e.unref(o).header_borderLeftStyle,"onUpdate:borderLeftStyle":p[51]||(p[51]=g=>e.unref(o).header_borderLeftStyle=g),borderLeftWidth:e.unref(o).header_borderLeftWidth,"onUpdate:borderLeftWidth":p[52]||(p[52]=g=>e.unref(o).header_borderLeftWidth=g),borderLeftColor:e.unref(o).header_borderLeftColor,"onUpdate:borderLeftColor":p[53]||(p[53]=g=>e.unref(o).header_borderLeftColor=g),borderRightStyle:e.unref(o).header_borderRightStyle,"onUpdate:borderRightStyle":p[54]||(p[54]=g=>e.unref(o).header_borderRightStyle=g),borderRightWidth:e.unref(o).header_borderRightWidth,"onUpdate:borderRightWidth":p[55]||(p[55]=g=>e.unref(o).header_borderRightWidth=g),borderRightColor:e.unref(o).header_borderRightColor,"onUpdate:borderRightColor":p[56]||(p[56]=g=>e.unref(o).header_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).header_fontSize,"onUpdate:fontSize":p[57]||(p[57]=g=>e.unref(o).header_fontSize=g),fontWeight:e.unref(o).header_fontWeight,"onUpdate:fontWeight":p[58]||(p[58]=g=>e.unref(o).header_fontWeight=g),textDecoration:e.unref(o).header_textDecoration,"onUpdate:textDecoration":p[59]||(p[59]=g=>e.unref(o).header_textDecoration=g),textAlign:e.unref(o).header_textAlign,"onUpdate:textAlign":p[60]||(p[60]=g=>e.unref(o).header_textAlign=g),lineHeight:e.unref(o).header_lineHeight,"onUpdate:lineHeight":p[61]||(p[61]=g=>e.unref(o).header_lineHeight=g),letterSpacing:e.unref(o).header_letterSpacing,"onUpdate:letterSpacing":p[62]||(p[62]=g=>e.unref(o).header_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"header_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[64]||(p[64]=g=>e.unref(o).header_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[63]||(p[63]=g=>e.unref(o).header_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),sN,e.createVNode(Oe,{marginTop:e.unref(o).cell_marginTop,"onUpdate:marginTop":p[65]||(p[65]=g=>e.unref(o).cell_marginTop=g),marginBottom:e.unref(o).cell_marginBottom,"onUpdate:marginBottom":p[66]||(p[66]=g=>e.unref(o).cell_marginBottom=g),marginLeft:e.unref(o).cell_marginLeft,"onUpdate:marginLeft":p[67]||(p[67]=g=>e.unref(o).cell_marginLeft=g),marginRight:e.unref(o).cell_marginRight,"onUpdate:marginRight":p[68]||(p[68]=g=>e.unref(o).cell_marginRight=g),paddingTop:e.unref(o).cell_paddingTop,"onUpdate:paddingTop":p[69]||(p[69]=g=>e.unref(o).cell_paddingTop=g),paddingBottom:e.unref(o).cell_paddingBottom,"onUpdate:paddingBottom":p[70]||(p[70]=g=>e.unref(o).cell_paddingBottom=g),paddingLeft:e.unref(o).cell_paddingLeft,"onUpdate:paddingLeft":p[71]||(p[71]=g=>e.unref(o).cell_paddingLeft=g),paddingRight:e.unref(o).cell_paddingRight,"onUpdate:paddingRight":p[72]||(p[72]=g=>e.unref(o).cell_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).cell_borderStyle,"onUpdate:borderStyle":p[73]||(p[73]=g=>e.unref(o).cell_borderStyle=g),borderWidth:e.unref(o).cell_borderWidth,"onUpdate:borderWidth":p[74]||(p[74]=g=>e.unref(o).cell_borderWidth=g),borderColor:e.unref(o).cell_borderColor,"onUpdate:borderColor":p[75]||(p[75]=g=>e.unref(o).cell_borderColor=g),borderTopStyle:e.unref(o).cell_borderTopStyle,"onUpdate:borderTopStyle":p[76]||(p[76]=g=>e.unref(o).cell_borderTopStyle=g),borderTopWidth:e.unref(o).cell_borderTopWidth,"onUpdate:borderTopWidth":p[77]||(p[77]=g=>e.unref(o).cell_borderTopWidth=g),borderTopColor:e.unref(o).cell_borderTopColor,"onUpdate:borderTopColor":p[78]||(p[78]=g=>e.unref(o).cell_borderTopColor=g),borderBottomStyle:e.unref(o).cell_borderBottomStyle,"onUpdate:borderBottomStyle":p[79]||(p[79]=g=>e.unref(o).cell_borderBottomStyle=g),borderBottomWidth:e.unref(o).cell_borderBottomWidth,"onUpdate:borderBottomWidth":p[80]||(p[80]=g=>e.unref(o).cell_borderBottomWidth=g),borderBottomColor:e.unref(o).cell_borderBottomColor,"onUpdate:borderBottomColor":p[81]||(p[81]=g=>e.unref(o).cell_borderBottomColor=g),borderLeftStyle:e.unref(o).cell_borderLeftStyle,"onUpdate:borderLeftStyle":p[82]||(p[82]=g=>e.unref(o).cell_borderLeftStyle=g),borderLeftWidth:e.unref(o).cell_borderLeftWidth,"onUpdate:borderLeftWidth":p[83]||(p[83]=g=>e.unref(o).cell_borderLeftWidth=g),borderLeftColor:e.unref(o).cell_borderLeftColor,"onUpdate:borderLeftColor":p[84]||(p[84]=g=>e.unref(o).cell_borderLeftColor=g),borderRightStyle:e.unref(o).cell_borderRightStyle,"onUpdate:borderRightStyle":p[85]||(p[85]=g=>e.unref(o).cell_borderRightStyle=g),borderRightWidth:e.unref(o).cell_borderRightWidth,"onUpdate:borderRightWidth":p[86]||(p[86]=g=>e.unref(o).cell_borderRightWidth=g),borderRightColor:e.unref(o).cell_borderRightColor,"onUpdate:borderRightColor":p[87]||(p[87]=g=>e.unref(o).cell_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":p[88]||(p[88]=g=>e.unref(o).cell_fontSize=g),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":p[89]||(p[89]=g=>e.unref(o).cell_fontWeight=g),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":p[90]||(p[90]=g=>e.unref(o).cell_textDecoration=g),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":p[91]||(p[91]=g=>e.unref(o).cell_textAlign=g),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":p[92]||(p[92]=g=>e.unref(o).cell_lineHeight=g),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":p[93]||(p[93]=g=>e.unref(o).cell_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"cell_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[95]||(p[95]=g=>e.unref(o).cell_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[94]||(p[94]=g=>e.unref(o).cell_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-c2bab41c"]]),fN=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"列",fieldType:"base"},{label:"表头名称",key:"headerTitle",default:"表格列",fieldType:"prop"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"宽度",key:"width",default:"",fieldType:"style"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"表头-外边距-上",key:"header_marginTop",default:"",fieldType:"style"},{label:"表头-外边距-下",key:"header_marginBottom",default:"",fieldType:"style"},{label:"表头-外边距-左",key:"header_marginLeft",default:"",fieldType:"style"},{label:"表头-外边距-右",key:"header_marginRight",default:"",fieldType:"style"},{label:"表头-内边距-上",key:"header_paddingTop",default:"",fieldType:"style"},{label:"表头-内边距-下",key:"header_paddingBottom",default:"",fieldType:"style"},{label:"表头-内边距-左",key:"header_paddingLeft",default:"",fieldType:"style"},{label:"表头-内边距-右",key:"header_paddingRight",default:"",fieldType:"style"},{label:"表头-边框样式",key:"header_borderStyle",default:"",fieldType:"style"},{label:"表头-边框宽度",key:"header_borderWidth",default:"",fieldType:"style"},{label:"表头-边框颜色",key:"header_borderColor",default:"",fieldType:"style"},{label:"表头-边框样式-上",key:"header_borderTopStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-上",key:"header_borderTopWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-上",key:"header_borderTopColor",default:"",fieldType:"style"},{label:"表头-边框样式-下",key:"header_borderBottomStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-下",key:"header_borderBottomWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-下",key:"header_borderBottomColor",default:"",fieldType:"style"},{label:"表头-边框样式-左",key:"header_borderLeftStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-左",key:"header_borderLeftWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-左",key:"header_borderLeftColor",default:"",fieldType:"style"},{label:"表头-边框样式-右",key:"header_borderRightStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-右",key:"header_borderRightWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-右",key:"header_borderRightColor",default:"",fieldType:"style"},{label:"表头-字体大小",key:"header_fontSize",default:"",fieldType:"style"},{label:"表头-字体粗细",key:"header_fontWeight",default:"",fieldType:"style"},{label:"表头-字体修饰",key:"header_textDecoration",default:"",fieldType:"style"},{label:"表头-对齐方式",key:"header_textAlign",default:"",fieldType:"style"},{label:"表头-字体行高",key:"header_lineHeight",default:"",fieldType:"style"},{label:"表头-字间距",key:"header_letterSpacing",default:"",fieldType:"style"},{label:"表头-背景颜色",key:"header_backgroundColor",default:"",fieldType:"style"},{label:"单元格-外边距-上",key:"cell_marginTop",default:"",fieldType:"style"},{label:"单元格-外边距-下",key:"cell_marginBottom",default:"",fieldType:"style"},{label:"单元格-外边距-左",key:"cell_marginLeft",default:"",fieldType:"style"},{label:"单元格-外边距-右",key:"cell_marginRight",default:"",fieldType:"style"},{label:"单元格-内边距-上",key:"cell_paddingTop",default:"",fieldType:"style"},{label:"单元格-内边距-下",key:"cell_paddingBottom",default:"",fieldType:"style"},{label:"单元格-内边距-左",key:"cell_paddingLeft",default:"",fieldType:"style"},{label:"单元格-内边距-右",key:"cell_paddingRight",default:"",fieldType:"style"},{label:"单元格-边框样式",key:"cell_borderStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度",key:"cell_borderWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色",key:"cell_borderColor",default:"",fieldType:"style"},{label:"单元格-边框样式-上",key:"cell_borderTopStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-上",key:"cell_borderTopWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-上",key:"cell_borderTopColor",default:"",fieldType:"style"},{label:"单元格-边框样式-下",key:"cell_borderBottomStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-下",key:"cell_borderBottomWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-下",key:"cell_borderBottomColor",default:"",fieldType:"style"},{label:"单元格-边框样式-左",key:"cell_borderLeftStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-左",key:"cell_borderLeftWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-左",key:"cell_borderLeftColor",default:"",fieldType:"style"},{label:"单元格-边框样式-右",key:"cell_borderRightStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-右",key:"cell_borderRightWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-右",key:"cell_borderRightColor",default:"",fieldType:"style"},{label:"单元格-字体大小",key:"cell_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"cell_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"cell_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"cell_textAlign",default:"",fieldType:"style"},{label:"单元格-字体行高",key:"cell_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"cell_letterSpacing",default:"",fieldType:"style"},{label:"单元格-背景颜色",key:"cell_backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Bn=r=>(e.pushScopeId("data-v-bada5acf"),r=r(),e.popScopeId(),r),cN={class:"component-config-container table-column-config-container"},pN={class:"component-config-header"},mN=Bn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格列")],-1)),hN=Bn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),uN=[Bn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],gN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),bN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),yN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表格列样式")],-1)),xN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表头样式")],-1)),CN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"单元格样式配置")],-1)),ON=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=fN(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",cN,[e.createElementVNode("div",pN,[mN,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),hN]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},uN)]),e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[gN,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(o).id=g),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(o).title=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),bN,e.createVNode(T,{label:"表头名称",prop:"headerTitle"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).headerTitle,"onUpdate:modelValue":p[2]||(p[2]=g=>e.unref(o).headerTitle=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).field,"onUpdate:modelValue":p[3]||(p[3]=g=>e.unref(o).field=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),yN,e.createVNode(T,{label:"宽度",prop:"width"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).width,"onUpdate:modelValue":p[4]||(p[4]=g=>e.unref(o).width=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[5]||(p[5]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[6]||(p[6]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[7]||(p[7]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[8]||(p[8]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[9]||(p[9]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[10]||(p[10]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[11]||(p[11]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[12]||(p[12]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[13]||(p[13]=g=>e.unref(o).borderStyle=g),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[14]||(p[14]=g=>e.unref(o).borderWidth=g),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[15]||(p[15]=g=>e.unref(o).borderColor=g),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[16]||(p[16]=g=>e.unref(o).borderTopStyle=g),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[17]||(p[17]=g=>e.unref(o).borderTopWidth=g),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[18]||(p[18]=g=>e.unref(o).borderTopColor=g),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[19]||(p[19]=g=>e.unref(o).borderBottomStyle=g),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[20]||(p[20]=g=>e.unref(o).borderBottomWidth=g),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[21]||(p[21]=g=>e.unref(o).borderBottomColor=g),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[22]||(p[22]=g=>e.unref(o).borderLeftStyle=g),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[23]||(p[23]=g=>e.unref(o).borderLeftWidth=g),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[24]||(p[24]=g=>e.unref(o).borderLeftColor=g),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[25]||(p[25]=g=>e.unref(o).borderRightStyle=g),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[26]||(p[26]=g=>e.unref(o).borderRightWidth=g),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[27]||(p[27]=g=>e.unref(o).borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":p[28]||(p[28]=g=>e.unref(o).fontSize=g),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":p[29]||(p[29]=g=>e.unref(o).fontWeight=g),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":p[30]||(p[30]=g=>e.unref(o).textDecoration=g),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":p[31]||(p[31]=g=>e.unref(o).textAlign=g),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":p[32]||(p[32]=g=>e.unref(o).lineHeight=g),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":p[33]||(p[33]=g=>e.unref(o).letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[35]||(p[35]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[34]||(p[34]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),xN,e.createVNode(Oe,{marginTop:e.unref(o).header_marginTop,"onUpdate:marginTop":p[36]||(p[36]=g=>e.unref(o).header_marginTop=g),marginBottom:e.unref(o).header_marginBottom,"onUpdate:marginBottom":p[37]||(p[37]=g=>e.unref(o).header_marginBottom=g),marginLeft:e.unref(o).header_marginLeft,"onUpdate:marginLeft":p[38]||(p[38]=g=>e.unref(o).header_marginLeft=g),marginRight:e.unref(o).header_marginRight,"onUpdate:marginRight":p[39]||(p[39]=g=>e.unref(o).header_marginRight=g),paddingTop:e.unref(o).header_paddingTop,"onUpdate:paddingTop":p[40]||(p[40]=g=>e.unref(o).header_paddingTop=g),paddingBottom:e.unref(o).header_paddingBottom,"onUpdate:paddingBottom":p[41]||(p[41]=g=>e.unref(o).header_paddingBottom=g),paddingLeft:e.unref(o).header_paddingLeft,"onUpdate:paddingLeft":p[42]||(p[42]=g=>e.unref(o).header_paddingLeft=g),paddingRight:e.unref(o).header_paddingRight,"onUpdate:paddingRight":p[43]||(p[43]=g=>e.unref(o).header_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).header_borderStyle,"onUpdate:borderStyle":p[44]||(p[44]=g=>e.unref(o).header_borderStyle=g),borderWidth:e.unref(o).header_borderWidth,"onUpdate:borderWidth":p[45]||(p[45]=g=>e.unref(o).header_borderWidth=g),borderColor:e.unref(o).header_borderColor,"onUpdate:borderColor":p[46]||(p[46]=g=>e.unref(o).header_borderColor=g),borderTopStyle:e.unref(o).header_borderTopStyle,"onUpdate:borderTopStyle":p[47]||(p[47]=g=>e.unref(o).header_borderTopStyle=g),borderTopWidth:e.unref(o).header_borderTopWidth,"onUpdate:borderTopWidth":p[48]||(p[48]=g=>e.unref(o).header_borderTopWidth=g),borderTopColor:e.unref(o).header_borderTopColor,"onUpdate:borderTopColor":p[49]||(p[49]=g=>e.unref(o).header_borderTopColor=g),borderBottomStyle:e.unref(o).header_borderBottomStyle,"onUpdate:borderBottomStyle":p[50]||(p[50]=g=>e.unref(o).header_borderBottomStyle=g),borderBottomWidth:e.unref(o).header_borderBottomWidth,"onUpdate:borderBottomWidth":p[51]||(p[51]=g=>e.unref(o).header_borderBottomWidth=g),borderBottomColor:e.unref(o).header_borderBottomColor,"onUpdate:borderBottomColor":p[52]||(p[52]=g=>e.unref(o).header_borderBottomColor=g),borderLeftStyle:e.unref(o).header_borderLeftStyle,"onUpdate:borderLeftStyle":p[53]||(p[53]=g=>e.unref(o).header_borderLeftStyle=g),borderLeftWidth:e.unref(o).header_borderLeftWidth,"onUpdate:borderLeftWidth":p[54]||(p[54]=g=>e.unref(o).header_borderLeftWidth=g),borderLeftColor:e.unref(o).header_borderLeftColor,"onUpdate:borderLeftColor":p[55]||(p[55]=g=>e.unref(o).header_borderLeftColor=g),borderRightStyle:e.unref(o).header_borderRightStyle,"onUpdate:borderRightStyle":p[56]||(p[56]=g=>e.unref(o).header_borderRightStyle=g),borderRightWidth:e.unref(o).header_borderRightWidth,"onUpdate:borderRightWidth":p[57]||(p[57]=g=>e.unref(o).header_borderRightWidth=g),borderRightColor:e.unref(o).header_borderRightColor,"onUpdate:borderRightColor":p[58]||(p[58]=g=>e.unref(o).header_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).header_fontSize,"onUpdate:fontSize":p[59]||(p[59]=g=>e.unref(o).header_fontSize=g),fontWeight:e.unref(o).header_fontWeight,"onUpdate:fontWeight":p[60]||(p[60]=g=>e.unref(o).header_fontWeight=g),textDecoration:e.unref(o).header_textDecoration,"onUpdate:textDecoration":p[61]||(p[61]=g=>e.unref(o).header_textDecoration=g),textAlign:e.unref(o).header_textAlign,"onUpdate:textAlign":p[62]||(p[62]=g=>e.unref(o).header_textAlign=g),lineHeight:e.unref(o).header_lineHeight,"onUpdate:lineHeight":p[63]||(p[63]=g=>e.unref(o).header_lineHeight=g),letterSpacing:e.unref(o).header_letterSpacing,"onUpdate:letterSpacing":p[64]||(p[64]=g=>e.unref(o).header_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"header_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[66]||(p[66]=g=>e.unref(o).header_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[65]||(p[65]=g=>e.unref(o).header_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),CN,e.createVNode(Oe,{marginTop:e.unref(o).cell_marginTop,"onUpdate:marginTop":p[67]||(p[67]=g=>e.unref(o).cell_marginTop=g),marginBottom:e.unref(o).cell_marginBottom,"onUpdate:marginBottom":p[68]||(p[68]=g=>e.unref(o).cell_marginBottom=g),marginLeft:e.unref(o).cell_marginLeft,"onUpdate:marginLeft":p[69]||(p[69]=g=>e.unref(o).cell_marginLeft=g),marginRight:e.unref(o).cell_marginRight,"onUpdate:marginRight":p[70]||(p[70]=g=>e.unref(o).cell_marginRight=g),paddingTop:e.unref(o).cell_paddingTop,"onUpdate:paddingTop":p[71]||(p[71]=g=>e.unref(o).cell_paddingTop=g),paddingBottom:e.unref(o).cell_paddingBottom,"onUpdate:paddingBottom":p[72]||(p[72]=g=>e.unref(o).cell_paddingBottom=g),paddingLeft:e.unref(o).cell_paddingLeft,"onUpdate:paddingLeft":p[73]||(p[73]=g=>e.unref(o).cell_paddingLeft=g),paddingRight:e.unref(o).cell_paddingRight,"onUpdate:paddingRight":p[74]||(p[74]=g=>e.unref(o).cell_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).cell_borderStyle,"onUpdate:borderStyle":p[75]||(p[75]=g=>e.unref(o).cell_borderStyle=g),borderWidth:e.unref(o).cell_borderWidth,"onUpdate:borderWidth":p[76]||(p[76]=g=>e.unref(o).cell_borderWidth=g),borderColor:e.unref(o).cell_borderColor,"onUpdate:borderColor":p[77]||(p[77]=g=>e.unref(o).cell_borderColor=g),borderTopStyle:e.unref(o).cell_borderTopStyle,"onUpdate:borderTopStyle":p[78]||(p[78]=g=>e.unref(o).cell_borderTopStyle=g),borderTopWidth:e.unref(o).cell_borderTopWidth,"onUpdate:borderTopWidth":p[79]||(p[79]=g=>e.unref(o).cell_borderTopWidth=g),borderTopColor:e.unref(o).cell_borderTopColor,"onUpdate:borderTopColor":p[80]||(p[80]=g=>e.unref(o).cell_borderTopColor=g),borderBottomStyle:e.unref(o).cell_borderBottomStyle,"onUpdate:borderBottomStyle":p[81]||(p[81]=g=>e.unref(o).cell_borderBottomStyle=g),borderBottomWidth:e.unref(o).cell_borderBottomWidth,"onUpdate:borderBottomWidth":p[82]||(p[82]=g=>e.unref(o).cell_borderBottomWidth=g),borderBottomColor:e.unref(o).cell_borderBottomColor,"onUpdate:borderBottomColor":p[83]||(p[83]=g=>e.unref(o).cell_borderBottomColor=g),borderLeftStyle:e.unref(o).cell_borderLeftStyle,"onUpdate:borderLeftStyle":p[84]||(p[84]=g=>e.unref(o).cell_borderLeftStyle=g),borderLeftWidth:e.unref(o).cell_borderLeftWidth,"onUpdate:borderLeftWidth":p[85]||(p[85]=g=>e.unref(o).cell_borderLeftWidth=g),borderLeftColor:e.unref(o).cell_borderLeftColor,"onUpdate:borderLeftColor":p[86]||(p[86]=g=>e.unref(o).cell_borderLeftColor=g),borderRightStyle:e.unref(o).cell_borderRightStyle,"onUpdate:borderRightStyle":p[87]||(p[87]=g=>e.unref(o).cell_borderRightStyle=g),borderRightWidth:e.unref(o).cell_borderRightWidth,"onUpdate:borderRightWidth":p[88]||(p[88]=g=>e.unref(o).cell_borderRightWidth=g),borderRightColor:e.unref(o).cell_borderRightColor,"onUpdate:borderRightColor":p[89]||(p[89]=g=>e.unref(o).cell_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":p[90]||(p[90]=g=>e.unref(o).cell_fontSize=g),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":p[91]||(p[91]=g=>e.unref(o).cell_fontWeight=g),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":p[92]||(p[92]=g=>e.unref(o).cell_textDecoration=g),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":p[93]||(p[93]=g=>e.unref(o).cell_textAlign=g),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":p[94]||(p[94]=g=>e.unref(o).cell_lineHeight=g),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":p[95]||(p[95]=g=>e.unref(o).cell_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"cell_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[97]||(p[97]=g=>e.unref(o).cell_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[96]||(p[96]=g=>e.unref(o).cell_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-bada5acf"]]),wN=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(f){t("update:modelValue",f)}}),o=e.reactive([]),l=f=>{const c={field:""};let m={};return ue(m,c,f),m};return{modelValue:n,configList:o,createItem:l,addNewItem:()=>{let f=l();o.push(f)},insertItem:f=>{let c=l(),m=f+1;o.splice(m,0,c)},removeItem:f=>{let c=o[f],m="是否删除";c.field&&(m+=`【${c.field}】`),ge.confirm(`${m}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(f,1)})}}},_N={class:"columns-field-config-container"},SN={class:"columns-field-operate"},kN={class:"columns-field-content"},TN={class:"columns-field-item_label"},IN={class:"columns-field-item_content"},AN={class:"columns-field-item_operate"},VN=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,configList:a,addNewItem:d,insertItem:f,removeItem:c}=wN(l,o);return e.watch(()=>l.modelValue,(m,h)=>{let b=l.modelValue?l.modelValue:[];a.splice(0,a.length,...b)},{immediate:!0,deep:!0}),e.watch(a,(m,h)=>{i.value=a},{deep:!0}),t({}),(m,h)=>{const b=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",_N,[e.createElementVNode("div",SN,[e.createVNode(b,{type:"primary",size:"small",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode("新增字段")]),_:1},8,["onClick"])]),e.createElementVNode("div",kN,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(p,O)=>(e.openBlock(),e.createElementBlock("div",{class:"columns-field-item",key:O},[e.createElementVNode("div",TN,"第"+e.toDisplayString(O+1)+"列",1),e.createElementVNode("div",IN,[e.createVNode(x,{modelValue:p.field,"onUpdate:modelValue":C=>p.field=C,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",AN,[e.createVNode(b,{type:"primary",size:"small",plain:"",onClick:C=>e.unref(f)(O)},{default:e.withCtx(()=>[e.createTextVNode("插入")]),_:2},1032,["onClick"]),e.createVNode(b,{type:"warning",size:"small",plain:"",onClick:C=>e.unref(c)(O)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])]))),128))])])}}},[["__scopeId","data-v-bba377bc"]]),BN=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"复制表格",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"表头行数",key:"headerRow",default:2,fieldType:"prop"},{label:"列数",key:"col",default:4,fieldType:"prop"},{label:"表格列对应数据字段配置",key:"columnsField",default:[],fieldType:"prop"},{label:"是否启用分页",key:"isPaginationMode",default:!0,fieldType:"prop"},{label:"是否显示分页码",key:"isPaginationEnabled",default:!0,fieldType:"prop"},{label:"每页最大行数",key:"perPageMaxRow",default:6,fieldType:"prop"},{label:"表格内容行高度",key:"contentRowHeight",default:20,fieldType:"prop"},{label:"页尾向上合并行数",key:"mergedFooterRowCount",default:1,fieldType:"prop"},{label:"是否续打",key:"canContinue",default:!1,fieldType:"prop"},{label:"续打模式",key:"continuePrintMode",default:"autoHeight",fieldType:"prop"},{label:"自适应高度是否合并单元格",key:"autoHeightSpanCell",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"solid",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"1px",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"#090909",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"solid",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"1px",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"#090909",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"共享-字体大小",key:"common_fontSize",default:"12px",fieldType:"style"},{label:"共享-字体粗细",key:"common_fontWeight",default:"",fieldType:"style"},{label:"共享-字体修饰",key:"common_textDecoration",default:"",fieldType:"style"},{label:"共享-对齐方式",key:"common_textAlign",default:"",fieldType:"style"},{label:"共享-字体行高",key:"common_lineHeight",default:"",fieldType:"style"},{label:"共享-字间距",key:"common_letterSpacing",default:"",fieldType:"style"},{label:"表头单元格-最小高度",key:"headerCell_container_minHeight",default:"20px",fieldType:"style"},{label:"表头单元格-外边距-上",key:"headerCell_marginTop",default:"",fieldType:"style"},{label:"表头单元格-外边距-下",key:"headerCell_marginBottom",default:"",fieldType:"style"},{label:"表头单元格-外边距-左",key:"headerCell_marginLeft",default:"",fieldType:"style"},{label:"表头单元格-外边距-右",key:"headerCell_marginRight",default:"",fieldType:"style"},{label:"表头单元格-内边距-上",key:"headerCell_paddingTop",default:"2px",fieldType:"style"},{label:"表头单元格-内边距-下",key:"headerCell_paddingBottom",default:"2px",fieldType:"style"},{label:"表头单元格-内边距-左",key:"headerCell_paddingLeft",default:"2px",fieldType:"style"},{label:"表头单元格-内边距-右",key:"headerCell_paddingRight",default:"2px",fieldType:"style"},{label:"表头单元格-边框样式",key:"headerCell_borderStyle",default:"",fieldType:"style"},{label:"表头单元格-边框宽度",key:"headerCell_borderWidth",default:"",fieldType:"style"},{label:"表头单元格-边框颜色",key:"headerCell_borderColor",default:"",fieldType:"style"},{label:"表头单元格-边框样式-上",key:"headerCell_borderTopStyle",default:"",fieldType:"style"},{label:"表头单元格-边框宽度-上",key:"headerCell_borderTopWidth",default:"",fieldType:"style"},{label:"表头单元格-边框颜色-上",key:"headerCell_borderTopColor",default:"",fieldType:"style"},{label:"表头单元格-边框样式-下",key:"headerCell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"表头单元格-边框宽度-下",key:"headerCell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"表头单元格-边框颜色-下",key:"headerCell_borderBottomColor",default:"#090909",fieldType:"style"},{label:"表头单元格-边框样式-左",key:"headerCell_borderLeftStyle",default:"",fieldType:"style"},{label:"表头单元格-边框宽度-左",key:"headerCell_borderLeftWidth",default:"",fieldType:"style"},{label:"表头单元格-边框颜色-左",key:"headerCell_borderLeftColor",default:"",fieldType:"style"},{label:"表头单元格-边框样式-右",key:"headerCell_borderRightStyle",default:"solid",fieldType:"style"},{label:"表头单元格-边框宽度-右",key:"headerCell_borderRightWidth",default:"1px",fieldType:"style"},{label:"表头单元格-边框颜色-右",key:"headerCell_borderRightColor",default:"#090909",fieldType:"style"},{label:"表头单元格-字体大小",key:"headerCell_container_fontSize",default:"",fieldType:"style"},{label:"表头单元格-字体粗细",key:"headerCell_container_fontWeight",default:"",fieldType:"style"},{label:"表头单元格-字体修饰",key:"headerCell_container_textDecoration",default:"",fieldType:"style"},{label:"表头单元格-对齐方式",key:"headerCell_container_textAlign",default:"left",fieldType:"style"},{label:"表头单元格-字体行高",key:"headerCell_container_lineHeight",default:"",fieldType:"style"},{label:"表头单元格-字间距",key:"headerCell_container_letterSpacing",default:"",fieldType:"style"},{label:"内容单元格-最小高度",key:"contentCell_container_minHeight",default:"20px",fieldType:"style"},{label:"内容单元格-外边距-上",key:"contentCell_marginTop",default:"",fieldType:"style"},{label:"内容单元格-外边距-下",key:"contentCell_marginBottom",default:"",fieldType:"style"},{label:"内容单元格-外边距-左",key:"contentCell_marginLeft",default:"",fieldType:"style"},{label:"内容单元格-外边距-右",key:"contentCell_marginRight",default:"",fieldType:"style"},{label:"内容单元格-内边距-上",key:"contentCell_paddingTop",default:"2px",fieldType:"style"},{label:"内容单元格-内边距-下",key:"contentCell_paddingBottom",default:"2px",fieldType:"style"},{label:"内容单元格-内边距-左",key:"contentCell_paddingLeft",default:"2px",fieldType:"style"},{label:"内容单元格-内边距-右",key:"contentCell_paddingRight",default:"2px",fieldType:"style"},{label:"内容单元格-边框样式",key:"contentCell_borderStyle",default:"",fieldType:"style"},{label:"内容单元格-边框宽度",key:"contentCell_borderWidth",default:"",fieldType:"style"},{label:"内容单元格-边框颜色",key:"contentCell_borderColor",default:"",fieldType:"style"},{label:"内容单元格-边框样式-上",key:"contentCell_borderTopStyle",default:"",fieldType:"style"},{label:"内容单元格-边框宽度-上",key:"contentCell_borderTopWidth",default:"",fieldType:"style"},{label:"内容单元格-边框颜色-上",key:"contentCell_borderTopColor",default:"",fieldType:"style"},{label:"内容单元格-边框样式-下",key:"contentCell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"内容单元格-边框宽度-下",key:"contentCell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"内容单元格-边框颜色-下",key:"contentCell_borderBottomColor",default:"#090909",fieldType:"style"},{label:"内容单元格-边框样式-左",key:"contentCell_borderLeftStyle",default:"",fieldType:"style"},{label:"内容单元格-边框宽度-左",key:"contentCell_borderLeftWidth",default:"",fieldType:"style"},{label:"内容单元格-边框颜色-左",key:"contentCell_borderLeftColor",default:"",fieldType:"style"},{label:"内容单元格-边框样式-右",key:"contentCell_borderRightStyle",default:"solid",fieldType:"style"},{label:"内容单元格-边框宽度-右",key:"contentCell_borderRightWidth",default:"1px",fieldType:"style"},{label:"内容单元格-边框颜色-右",key:"contentCell_borderRightColor",default:"#090909",fieldType:"style"},{label:"内容单元格-字体大小",key:"contentCell_container_fontSize",default:"",fieldType:"style"},{label:"内容单元格-字体粗细",key:"contentCell_container_fontWeight",default:"",fieldType:"style"},{label:"内容单元格-字体修饰",key:"contentCell_container_textDecoration",default:"",fieldType:"style"},{label:"内容单元格-对齐方式",key:"contentCell_container_textAlign",default:"left",fieldType:"style"},{label:"内容单元格-字体行高",key:"contentCell_container_lineHeight",default:"",fieldType:"style"},{label:"内容单元格-字间距",key:"contentCell_container_letterSpacing",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],headerRow:[{required:!0,message:"请输入表头行数",trigger:"blur"}],col:[{required:!0,message:"请输入列数",trigger:"blur"}],columnsField:[{required:!0,message:"请输入列数",trigger:"change"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},ve=r=>(e.pushScopeId("data-v-ef6c1768"),r=r(),e.popScopeId(),r),RN={class:"component-config-container complex-table-component-config-container"},$N={class:"component-config-header"},LN=ve(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"复杂表格")],-1)),PN=ve(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),EN=[ve(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],NN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"复杂表格不能在布局组件中使用!",-1)),MN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),DN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),QN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"分页配置")],-1)),WN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"续打配置")],-1)),UN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【重点】启用续打后自动启用分页",-1)),ZN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 固定高度:表格每行内容高度固定,超出单元格的内容会被裁剪 ",-1)),zN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 自适应高度:表格每行内容高度自适应,超出单元格的内容会显示在下方空白行 ",-1)),HN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),jN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【边框】配置无效",-1)),FN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表头单元格样式")],-1)),XN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【最小高度】配置无效",-1)),qN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【边框】配置无效",-1)),YN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"内容单元格样式")],-1)),GN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时:【最小高度】配置无效",-1)),KN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 【续打模式】为【自适应高度】时:外边距无效,上下内边距无效 ",-1)),JN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【边框】配置无效",-1)),vN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时:【行高】配置无效",-1)),e5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=BN(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-switch"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",RN,[e.createElementVNode("div",$N,[LN,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),PN]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},EN)]),e.createVNode(_,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-position":"top",size:"small"},{default:e.withCtx(()=>[NN,MN,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=k=>e.unref(o).id=k),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=k=>e.unref(o).title=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),DN,e.createVNode(g,{label:"对应数据字段",prop:"field","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(o).field=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表头行数",prop:"headerRow","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).headerRow,"onUpdate:modelValue":s[3]||(s[3]=k=>e.unref(o).headerRow=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"列数",prop:"col","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).col,"onUpdate:modelValue":s[4]||(s[4]=k=>e.unref(o).col=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表格列对应数据字段配置,一列显示多个字段用&#拼接,例:name&#age",prop:"columnsField"},{default:e.withCtx(()=>[e.createVNode(VN,{modelValue:e.unref(o).columnsField,"onUpdate:modelValue":s[5]||(s[5]=k=>e.unref(o).columnsField=k)},null,8,["modelValue"])]),_:1}),QN,e.createVNode(g,{label:"是否启用分页",prop:"isPaginationMode","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).isPaginationMode,"onUpdate:modelValue":s[6]||(s[6]=k=>e.unref(o).isPaginationMode=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"是否显示分页码",prop:"isPaginationEnabled","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).isPaginationEnabled,"onUpdate:modelValue":s[7]||(s[7]=k=>e.unref(o).isPaginationEnabled=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"每页最大行数",prop:"perPageMaxRow","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).perPageMaxRow,"onUpdate:modelValue":s[8]||(s[8]=k=>e.unref(o).perPageMaxRow=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表格内容行高度",prop:"contentRowHeight","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).contentRowHeight,"onUpdate:modelValue":s[9]||(s[9]=k=>e.unref(o).contentRowHeight=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"页尾向上合并行数",prop:"mergedFooterRowCount","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).mergedFooterRowCount,"onUpdate:modelValue":s[10]||(s[10]=k=>e.unref(o).mergedFooterRowCount=k),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),WN,e.createVNode(g,{label:"是否续打",prop:"canContinue","label-width":"70px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).canContinue,"onUpdate:modelValue":s[11]||(s[11]=k=>e.unref(o).canContinue=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"续打模式",prop:"continuePrintMode","label-width":"70px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).continuePrintMode,"onUpdate:modelValue":s[12]||(s[12]=k=>e.unref(o).continuePrintMode=k)},{default:e.withCtx(()=>[e.createVNode(R,{value:"fixedHeight"},{default:e.withCtx(()=>[e.createTextVNode("固定高度")]),_:1}),e.createVNode(R,{value:"autoHeight"},{default:e.withCtx(()=>[e.createTextVNode("自适应高度")]),_:1})]),_:1},8,["modelValue"])]),_:1}),UN,ZN,zN,e.createVNode(g,{label:"自适应高度是否合并单元格",prop:"autoHeightSpanCell","label-width":"180px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).autoHeightSpanCell,"onUpdate:modelValue":s[13]||(s[13]=k=>e.unref(o).autoHeightSpanCell=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),HN,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[14]||(s[14]=k=>e.unref(o).marginTop=k),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[15]||(s[15]=k=>e.unref(o).marginBottom=k),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[16]||(s[16]=k=>e.unref(o).marginLeft=k),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[17]||(s[17]=k=>e.unref(o).marginRight=k),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[18]||(s[18]=k=>e.unref(o).paddingTop=k),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[19]||(s[19]=k=>e.unref(o).paddingBottom=k),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[20]||(s[20]=k=>e.unref(o).paddingLeft=k),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[21]||(s[21]=k=>e.unref(o).paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),jN,e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[22]||(s[22]=k=>e.unref(o).borderStyle=k),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[23]||(s[23]=k=>e.unref(o).borderWidth=k),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[24]||(s[24]=k=>e.unref(o).borderColor=k),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[25]||(s[25]=k=>e.unref(o).borderTopStyle=k),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[26]||(s[26]=k=>e.unref(o).borderTopWidth=k),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[27]||(s[27]=k=>e.unref(o).borderTopColor=k),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[28]||(s[28]=k=>e.unref(o).borderBottomStyle=k),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[29]||(s[29]=k=>e.unref(o).borderBottomWidth=k),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[30]||(s[30]=k=>e.unref(o).borderBottomColor=k),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[31]||(s[31]=k=>e.unref(o).borderLeftStyle=k),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[32]||(s[32]=k=>e.unref(o).borderLeftWidth=k),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[33]||(s[33]=k=>e.unref(o).borderLeftColor=k),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[34]||(s[34]=k=>e.unref(o).borderRightStyle=k),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[35]||(s[35]=k=>e.unref(o).borderRightWidth=k),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[36]||(s[36]=k=>e.unref(o).borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[38]||(s[38]=k=>e.unref(o).backgroundColor=k),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[37]||(s[37]=k=>e.unref(o).backgroundColor=k),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).common_fontSize,"onUpdate:fontSize":s[39]||(s[39]=k=>e.unref(o).common_fontSize=k),fontWeight:e.unref(o).common_fontWeight,"onUpdate:fontWeight":s[40]||(s[40]=k=>e.unref(o).common_fontWeight=k),textDecoration:e.unref(o).common_textDecoration,"onUpdate:textDecoration":s[41]||(s[41]=k=>e.unref(o).common_textDecoration=k),textAlign:e.unref(o).common_textAlign,"onUpdate:textAlign":s[42]||(s[42]=k=>e.unref(o).common_textAlign=k),lineHeight:e.unref(o).common_lineHeight,"onUpdate:lineHeight":s[43]||(s[43]=k=>e.unref(o).common_lineHeight=k),letterSpacing:e.unref(o).common_letterSpacing,"onUpdate:letterSpacing":s[44]||(s[44]=k=>e.unref(o).common_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),FN,XN,e.createVNode(g,{prop:"headerCell_container_minHeight",label:"最小高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).headerCell_container_minHeight,"onUpdate:modelValue":s[45]||(s[45]=k=>e.unref(o).headerCell_container_minHeight=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[46]||(s[46]=k=>e.unref(c)("headerCell_container_minHeight"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).headerCell_marginTop,"onUpdate:marginTop":s[47]||(s[47]=k=>e.unref(o).headerCell_marginTop=k),marginBottom:e.unref(o).headerCell_marginBottom,"onUpdate:marginBottom":s[48]||(s[48]=k=>e.unref(o).headerCell_marginBottom=k),marginLeft:e.unref(o).headerCell_marginLeft,"onUpdate:marginLeft":s[49]||(s[49]=k=>e.unref(o).headerCell_marginLeft=k),marginRight:e.unref(o).headerCell_marginRight,"onUpdate:marginRight":s[50]||(s[50]=k=>e.unref(o).headerCell_marginRight=k),paddingTop:e.unref(o).headerCell_paddingTop,"onUpdate:paddingTop":s[51]||(s[51]=k=>e.unref(o).headerCell_paddingTop=k),paddingBottom:e.unref(o).headerCell_paddingBottom,"onUpdate:paddingBottom":s[52]||(s[52]=k=>e.unref(o).headerCell_paddingBottom=k),paddingLeft:e.unref(o).headerCell_paddingLeft,"onUpdate:paddingLeft":s[53]||(s[53]=k=>e.unref(o).headerCell_paddingLeft=k),paddingRight:e.unref(o).headerCell_paddingRight,"onUpdate:paddingRight":s[54]||(s[54]=k=>e.unref(o).headerCell_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),qN,e.createVNode(Se,{borderStyle:e.unref(o).headerCell_borderStyle,"onUpdate:borderStyle":s[55]||(s[55]=k=>e.unref(o).headerCell_borderStyle=k),borderWidth:e.unref(o).headerCell_borderWidth,"onUpdate:borderWidth":s[56]||(s[56]=k=>e.unref(o).headerCell_borderWidth=k),borderColor:e.unref(o).headerCell_borderColor,"onUpdate:borderColor":s[57]||(s[57]=k=>e.unref(o).headerCell_borderColor=k),borderTopStyle:e.unref(o).headerCell_borderTopStyle,"onUpdate:borderTopStyle":s[58]||(s[58]=k=>e.unref(o).headerCell_borderTopStyle=k),borderTopWidth:e.unref(o).headerCell_borderTopWidth,"onUpdate:borderTopWidth":s[59]||(s[59]=k=>e.unref(o).headerCell_borderTopWidth=k),borderTopColor:e.unref(o).headerCell_borderTopColor,"onUpdate:borderTopColor":s[60]||(s[60]=k=>e.unref(o).headerCell_borderTopColor=k),borderBottomStyle:e.unref(o).headerCell_borderBottomStyle,"onUpdate:borderBottomStyle":s[61]||(s[61]=k=>e.unref(o).headerCell_borderBottomStyle=k),borderBottomWidth:e.unref(o).headerCell_borderBottomWidth,"onUpdate:borderBottomWidth":s[62]||(s[62]=k=>e.unref(o).headerCell_borderBottomWidth=k),borderBottomColor:e.unref(o).headerCell_borderBottomColor,"onUpdate:borderBottomColor":s[63]||(s[63]=k=>e.unref(o).headerCell_borderBottomColor=k),borderLeftStyle:e.unref(o).headerCell_borderLeftStyle,"onUpdate:borderLeftStyle":s[64]||(s[64]=k=>e.unref(o).headerCell_borderLeftStyle=k),borderLeftWidth:e.unref(o).headerCell_borderLeftWidth,"onUpdate:borderLeftWidth":s[65]||(s[65]=k=>e.unref(o).headerCell_borderLeftWidth=k),borderLeftColor:e.unref(o).headerCell_borderLeftColor,"onUpdate:borderLeftColor":s[66]||(s[66]=k=>e.unref(o).headerCell_borderLeftColor=k),borderRightStyle:e.unref(o).headerCell_borderRightStyle,"onUpdate:borderRightStyle":s[67]||(s[67]=k=>e.unref(o).headerCell_borderRightStyle=k),borderRightWidth:e.unref(o).headerCell_borderRightWidth,"onUpdate:borderRightWidth":s[68]||(s[68]=k=>e.unref(o).headerCell_borderRightWidth=k),borderRightColor:e.unref(o).headerCell_borderRightColor,"onUpdate:borderRightColor":s[69]||(s[69]=k=>e.unref(o).headerCell_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).headerCell_container_fontSize,"onUpdate:fontSize":s[70]||(s[70]=k=>e.unref(o).headerCell_container_fontSize=k),fontWeight:e.unref(o).headerCell_container_fontWeight,"onUpdate:fontWeight":s[71]||(s[71]=k=>e.unref(o).headerCell_container_fontWeight=k),textDecoration:e.unref(o).headerCell_container_textDecoration,"onUpdate:textDecoration":s[72]||(s[72]=k=>e.unref(o).headerCell_container_textDecoration=k),textAlign:e.unref(o).headerCell_container_textAlign,"onUpdate:textAlign":s[73]||(s[73]=k=>e.unref(o).headerCell_container_textAlign=k),lineHeight:e.unref(o).headerCell_container_lineHeight,"onUpdate:lineHeight":s[74]||(s[74]=k=>e.unref(o).headerCell_container_lineHeight=k),letterSpacing:e.unref(o).headerCell_container_letterSpacing,"onUpdate:letterSpacing":s[75]||(s[75]=k=>e.unref(o).headerCell_container_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),YN,GN,e.createVNode(g,{prop:"contentCell_minHeight",label:"最小高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).contentCell_container_minHeight,"onUpdate:modelValue":s[76]||(s[76]=k=>e.unref(o).contentCell_container_minHeight=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[77]||(s[77]=k=>e.unref(c)("contentCell_minHeight"))},null,8,["modelValue","formatter","parser"])]),_:1}),KN,e.createVNode(Oe,{marginTop:e.unref(o).contentCell_marginTop,"onUpdate:marginTop":s[78]||(s[78]=k=>e.unref(o).contentCell_marginTop=k),marginBottom:e.unref(o).contentCell_marginBottom,"onUpdate:marginBottom":s[79]||(s[79]=k=>e.unref(o).contentCell_marginBottom=k),marginLeft:e.unref(o).contentCell_marginLeft,"onUpdate:marginLeft":s[80]||(s[80]=k=>e.unref(o).contentCell_marginLeft=k),marginRight:e.unref(o).contentCell_marginRight,"onUpdate:marginRight":s[81]||(s[81]=k=>e.unref(o).contentCell_marginRight=k),paddingTop:e.unref(o).contentCell_paddingTop,"onUpdate:paddingTop":s[82]||(s[82]=k=>e.unref(o).contentCell_paddingTop=k),paddingBottom:e.unref(o).contentCell_paddingBottom,"onUpdate:paddingBottom":s[83]||(s[83]=k=>e.unref(o).contentCell_paddingBottom=k),paddingLeft:e.unref(o).contentCell_paddingLeft,"onUpdate:paddingLeft":s[84]||(s[84]=k=>e.unref(o).contentCell_paddingLeft=k),paddingRight:e.unref(o).contentCell_paddingRight,"onUpdate:paddingRight":s[85]||(s[85]=k=>e.unref(o).contentCell_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),JN,e.createVNode(Se,{borderStyle:e.unref(o).contentCell_borderStyle,"onUpdate:borderStyle":s[86]||(s[86]=k=>e.unref(o).contentCell_borderStyle=k),borderWidth:e.unref(o).contentCell_borderWidth,"onUpdate:borderWidth":s[87]||(s[87]=k=>e.unref(o).contentCell_borderWidth=k),borderColor:e.unref(o).contentCell_borderColor,"onUpdate:borderColor":s[88]||(s[88]=k=>e.unref(o).contentCell_borderColor=k),borderTopStyle:e.unref(o).contentCell_borderTopStyle,"onUpdate:borderTopStyle":s[89]||(s[89]=k=>e.unref(o).contentCell_borderTopStyle=k),borderTopWidth:e.unref(o).contentCell_borderTopWidth,"onUpdate:borderTopWidth":s[90]||(s[90]=k=>e.unref(o).contentCell_borderTopWidth=k),borderTopColor:e.unref(o).contentCell_borderTopColor,"onUpdate:borderTopColor":s[91]||(s[91]=k=>e.unref(o).contentCell_borderTopColor=k),borderBottomStyle:e.unref(o).contentCell_borderBottomStyle,"onUpdate:borderBottomStyle":s[92]||(s[92]=k=>e.unref(o).contentCell_borderBottomStyle=k),borderBottomWidth:e.unref(o).contentCell_borderBottomWidth,"onUpdate:borderBottomWidth":s[93]||(s[93]=k=>e.unref(o).contentCell_borderBottomWidth=k),borderBottomColor:e.unref(o).contentCell_borderBottomColor,"onUpdate:borderBottomColor":s[94]||(s[94]=k=>e.unref(o).contentCell_borderBottomColor=k),borderLeftStyle:e.unref(o).contentCell_borderLeftStyle,"onUpdate:borderLeftStyle":s[95]||(s[95]=k=>e.unref(o).contentCell_borderLeftStyle=k),borderLeftWidth:e.unref(o).contentCell_borderLeftWidth,"onUpdate:borderLeftWidth":s[96]||(s[96]=k=>e.unref(o).contentCell_borderLeftWidth=k),borderLeftColor:e.unref(o).contentCell_borderLeftColor,"onUpdate:borderLeftColor":s[97]||(s[97]=k=>e.unref(o).contentCell_borderLeftColor=k),borderRightStyle:e.unref(o).contentCell_borderRightStyle,"onUpdate:borderRightStyle":s[98]||(s[98]=k=>e.unref(o).contentCell_borderRightStyle=k),borderRightWidth:e.unref(o).contentCell_borderRightWidth,"onUpdate:borderRightWidth":s[99]||(s[99]=k=>e.unref(o).contentCell_borderRightWidth=k),borderRightColor:e.unref(o).contentCell_borderRightColor,"onUpdate:borderRightColor":s[100]||(s[100]=k=>e.unref(o).contentCell_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),vN,e.createVNode(Me,{fontSize:e.unref(o).contentCell_container_fontSize,"onUpdate:fontSize":s[101]||(s[101]=k=>e.unref(o).contentCell_container_fontSize=k),fontWeight:e.unref(o).contentCell_container_fontWeight,"onUpdate:fontWeight":s[102]||(s[102]=k=>e.unref(o).contentCell_container_fontWeight=k),textDecoration:e.unref(o).contentCell_container_textDecoration,"onUpdate:textDecoration":s[103]||(s[103]=k=>e.unref(o).contentCell_container_textDecoration=k),textAlign:e.unref(o).contentCell_container_textAlign,"onUpdate:textAlign":s[104]||(s[104]=k=>e.unref(o).contentCell_container_textAlign=k),lineHeight:e.unref(o).contentCell_container_lineHeight,"onUpdate:lineHeight":s[105]||(s[105]=k=>e.unref(o).contentCell_container_lineHeight=k),letterSpacing:e.unref(o).contentCell_container_letterSpacing,"onUpdate:letterSpacing":s[106]||(s[106]=k=>e.unref(o).contentCell_container_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-ef6c1768"]]),t5=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(l){t("update:modelValue",l)}}),o=e.computed(()=>l=>l==n.value?"slash-direction-item--active":"");return{modelValue:n,itemClass:o}},E0=r=>(e.pushScopeId("data-v-214be2f2"),r=r(),e.popScopeId(),r),o5={class:"slash-direction-config-container"},n5=[E0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],r5=[E0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],l5=G({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,itemClass:a}=t5(l,o),d=f=>{i.value=f};return t({}),(f,c)=>(e.openBlock(),e.createElementBlock("div",o5,[e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--top-left ${e.unref(a)("top-left")}`),onClick:c[0]||(c[0]=m=>d("top-left"))},n5,2),e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--bottom-left ${e.unref(a)("bottom-left")}`),onClick:c[1]||(c[1]=m=>d("bottom-left"))},r5,2)]))}},[["__scopeId","data-v-214be2f2"]]),i5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"标题",key:"title",default:"",fieldType:"prop"},{label:"斜线",key:"slash",default:!1,fieldType:"prop"},{label:"斜线方向",key:"slashDirection",default:"top-left",fieldType:"prop"},{label:"斜线文本(左)",key:"slashTextLeft",default:"",fieldType:"prop"},{label:"斜线文本(右)",key:"slashTextRight",default:"",fieldType:"prop"},{label:"水平居中",key:"centerHorizontally",default:!0,fieldType:"prop"},{label:"垂直居中",key:"centerVertical",default:!0,fieldType:"prop"},{label:"格子宽度",key:"width",default:"",fieldType:"style"},{label:"格子高度",key:"height",default:"",fieldType:"style"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"单元格-字体大小",key:"container_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"container_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"container_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"container_textAlign",default:"left",fieldType:"style"},{label:"单元格-字体行高",key:"container_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"container_letterSpacing",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({title:[{required:!0,message:"请填写标题",trigger:"blur"}],width:[{required:!0,message:"请填写格子宽度",trigger:"blur"}]}),a=Ye(t,O=>{}),d=O=>{ue(l,t,O)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let O=[];return n.forEach((C,s)=>{C.fieldType=="prop"&&O.push(C.key)}),O},m=()=>{let O=[];return n.forEach((C,s)=>{C.fieldType=="style"&&O.push(C.key)}),O},h=O=>{O||(O={});let C={},s=c(),S=m(),u=[],T=[];return O.props&&(u=Object.keys(O.props)),O.style&&(T=Object.keys(O.style)),s.forEach((A,V)=>{u.indexOf(A)>=0?C[A]=O.props[A]:C[A]=t[A]}),S.forEach((A,V)=>{T.indexOf(A)>=0?C[A]=O.style[A]:C[A]=t[A]}),C},b=()=>{let O={props:{},style:{}},C=c(),s=m();return C.forEach((S,u)=>{O.props[S]=l[S]}),s.forEach((S,u)=>{O.style[S]=l[S]}),O};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getPropKeys:c,getStyleKeys:m,headerRuleToFormData:h,formDataToHeaderRule:b,setFormDataByActiveSortableComponent:()=>{if(!r.value||r.value&&r.value.type!="complexTable-headerItem")return;let O=r.value.complexTableDetails;if(!O.headerRules)return;let C=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex}),s=O.headerRules[C],S=h(s);d(S)},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let O=r.value.complexTableDetails,C=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex});O.headerRules||(O.headerRules={});let s=b();O.headerRules[C]=q(s)}}},Rn=r=>(e.pushScopeId("data-v-a925b83e"),r=r(),e.popScopeId(),r),a5={class:"component-config-container table-layout-component-config-container"},s5={class:"component-config-header"},d5=Rn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"复杂表格表头格子")],-1)),f5=Rn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),c5=[Rn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],p5=Rn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),m5=Rn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 1、斜线开启后标题、水平居中、垂直居中将失效,格子中的组件不会渲染 ",-1)),h5=Rn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"2、斜线开启后必须设置【格子宽度】与【格子高度】",-1)),u5=Rn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),g5=Rn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"未合并布局格子和未合并的列必须须填写格子宽度",-1)),b5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=i5(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.complexTableId&&!s.complexTableId||C.complexTableId&&s.complexTableId&&C.complexTableId===s.complexTableId&&(C.rowIndex!=s.rowIndex||C.colIndex!=s.colIndex))&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",a5,[e.createElementVNode("div",s5,[d5,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),f5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},c5)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[p5,e.createVNode(g,{prop:"title",label:"标题","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),m5,h5,e.createVNode(g,{prop:"slash",label:"斜线","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).slash,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).slash=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"slashDirection",label:"斜线方向","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(l5,{modelValue:e.unref(o).slashDirection,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).slashDirection=y)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"slashTextLeft",label:"斜线文本(左)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).slashTextLeft,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).slashTextLeft=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"slashTextRight",label:"斜线文本(右)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).slashTextRight,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).slashTextRight=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"centerHorizontally",label:"水平居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).centerHorizontally,"onUpdate:modelValue":s[5]||(s[5]=y=>e.unref(o).centerHorizontally=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"centerVertical",label:"垂直居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).centerVertical,"onUpdate:modelValue":s[6]||(s[6]=y=>e.unref(o).centerVertical=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),u5,g5,e.createVNode(g,{prop:"width",label:"格子宽度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[7]||(s[7]=y=>e.unref(o).width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[8]||(s[8]=y=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{prop:"height",label:"格子高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[9]||(s[9]=y=>e.unref(o).height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[10]||(s[10]=y=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[11]||(s[11]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[12]||(s[12]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[13]||(s[13]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[14]||(s[14]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[15]||(s[15]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[16]||(s[16]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[17]||(s[17]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[18]||(s[18]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[19]||(s[19]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[20]||(s[20]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[21]||(s[21]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[22]||(s[22]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[23]||(s[23]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[24]||(s[24]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[25]||(s[25]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[26]||(s[26]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[27]||(s[27]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[28]||(s[28]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[29]||(s[29]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[30]||(s[30]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[31]||(s[31]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[32]||(s[32]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[33]||(s[33]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{prop:"backgroundColor",label:"背景颜色","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[35]||(s[35]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[34]||(s[34]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).container_fontSize,"onUpdate:fontSize":s[36]||(s[36]=y=>e.unref(o).container_fontSize=y),fontWeight:e.unref(o).container_fontWeight,"onUpdate:fontWeight":s[37]||(s[37]=y=>e.unref(o).container_fontWeight=y),textDecoration:e.unref(o).container_textDecoration,"onUpdate:textDecoration":s[38]||(s[38]=y=>e.unref(o).container_textDecoration=y),textAlign:e.unref(o).container_textAlign,"onUpdate:textAlign":s[39]||(s[39]=y=>e.unref(o).container_textAlign=y),lineHeight:e.unref(o).container_lineHeight,"onUpdate:lineHeight":s[40]||(s[40]=y=>e.unref(o).container_lineHeight=y),letterSpacing:e.unref(o).container_letterSpacing,"onUpdate:letterSpacing":s[41]||(s[41]=y=>e.unref(o).container_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-a925b83e"]]),y5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"条形码类型",key:"format",default:"CODE128",fieldType:"prop"},{label:"条形码线条颜色",key:"lineColor",default:"#000000",fieldType:"prop"},{label:"条形码背景色",key:"background",default:"#ffffff",fieldType:"prop"},{label:"条形码模块宽度",key:"width",default:1,fieldType:"prop"},{label:"条形码高度",key:"height",default:30,fieldType:"prop"},{label:"是否显示条形码的文本值",key:"displayValue",default:!0,fieldType:"prop"},{label:"显示文本的字体大小",key:"fontSize",default:12,fieldType:"prop"},{label:"条形码外边距",key:"margin",default:0,fieldType:"prop"},{label:"条形码文本对齐方式",key:"textAlign",default:"",fieldType:"prop"},{label:"条形码文本位置",key:"textPosition",default:"",fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"宽度",key:"barcode_width",default:"",fieldType:"style"},{label:"高度",key:"barcode_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],barcode_width:[{required:!0,message:"请填写条形码宽度",trigger:"blur"}],barcode_height:[{required:!0,message:"请填写条形码高度",trigger:"blur"}]}),a=Ye(t,s=>{}),d=s=>{ue(l,t,s)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="base"&&s.push(S.key)}),s},m=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="prop"&&s.push(S.key)}),s},h=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="style"&&s.push(S.key)}),s};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h(),T=[],A=[];s.forEach((V,g)=>{l[V]=r.value[V]}),r.value.props&&(T=Object.keys(r.value.props)),S.forEach((V,g)=>{T.indexOf(V)>=0?l[V]=r.value.props[V]:l[V]=t[V]}),r.value.style&&(A=Object.keys(r.value.style)),u.forEach((V,g)=>{A.indexOf(V)>=0?l[V]=r.value.style[V]:l[V]=t[V]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h();s.forEach((V,g)=>{r.value[V]=l[V]});let T={};S.forEach((V,g)=>{T[V]=l[V]}),r.value.props=T;let A={};u.forEach((V,g)=>{A[V]=l[V]}),r.value.style=A},inputFormatter:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},inputParser:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},complementInputValue:s=>{let S=/^\d+$/,u=l[s];u&&S.test(u)&&(l[s]=l[s]+"px")}}},$n=r=>(e.pushScopeId("data-v-0efcc35f"),r=r(),e.popScopeId(),r),x5={class:"component-config-container barcode-component-config-container"},C5={class:"component-config-header"},O5=$n(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"条形码")],-1)),w5=$n(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),_5=[$n(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],S5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),k5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),T5=$n(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),I5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),A5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"条形码样式配置")],-1)),V5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a,inputFormatter:d,inputParser:f,complementInputValue:c}=y5(),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-option"),R=e.resolveComponent("el-select"),y=e.resolveComponent("el-color-picker"),$=e.resolveComponent("el-input-number"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",x5,[e.createElementVNode("div",C5,[O5,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),w5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},_5)]),e.createVNode(_,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[S5,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=k=>e.unref(o).id=k),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=k=>e.unref(o).title=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),k5,e.createVNode(g,{label:"对应数据字段",prop:"field","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(o).field=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[3]||(s[3]=k=>e.unref(o).showOnLastPage=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),T5,e.createVNode(g,{label:"条形码类型",prop:"format","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).format,"onUpdate:modelValue":s[4]||(s[4]=k=>e.unref(o).format=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).barcodeFormat,(k,L)=>(e.openBlock(),e.createBlock(w,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码背景色",prop:"background","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).background,"onUpdate:modelValue":s[6]||(s[6]=k=>e.unref(o).background=k),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).background,"onUpdate:modelValue":s[5]||(s[5]=k=>e.unref(o).background=k),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码模块宽度",prop:"width","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[7]||(s[7]=k=>e.unref(o).width=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码高度",prop:"height","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[8]||(s[8]=k=>e.unref(o).height=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"是否显示条形码的文本值",prop:"displayValue","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).displayValue,"onUpdate:modelValue":s[9]||(s[9]=k=>e.unref(o).displayValue=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"显示文本的字体大小",prop:"fontSize","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).fontSize,"onUpdate:modelValue":s[10]||(s[10]=k=>e.unref(o).fontSize=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码外边距",prop:"margin","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).margin,"onUpdate:modelValue":s[11]||(s[11]=k=>e.unref(o).margin=k),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码文本对齐方式",prop:"textAlign","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).textAlign,"onUpdate:modelValue":s[12]||(s[12]=k=>e.unref(o).textAlign=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).barcodeTextAlign,(k,L)=>(e.openBlock(),e.createBlock(w,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码文本位置",prop:"textPosition","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).textPosition,"onUpdate:modelValue":s[13]||(s[13]=k=>e.unref(o).textPosition=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).barcodeTextPosition,(k,L)=>(e.openBlock(),e.createBlock(w,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I5,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[14]||(s[14]=k=>e.unref(o).marginTop=k),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[15]||(s[15]=k=>e.unref(o).marginBottom=k),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[16]||(s[16]=k=>e.unref(o).marginLeft=k),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[17]||(s[17]=k=>e.unref(o).marginRight=k),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[18]||(s[18]=k=>e.unref(o).paddingTop=k),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[19]||(s[19]=k=>e.unref(o).paddingBottom=k),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[20]||(s[20]=k=>e.unref(o).paddingLeft=k),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[21]||(s[21]=k=>e.unref(o).paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),A5,e.createVNode(g,{label:"宽度",prop:"barcode_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).barcode_width,"onUpdate:modelValue":s[22]||(s[22]=k=>e.unref(o).barcode_width=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[23]||(s[23]=k=>e.unref(c)("barcode_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"barcode_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).barcode_height,"onUpdate:modelValue":s[24]||(s[24]=k=>e.unref(o).barcode_height=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[25]||(s[25]=k=>e.unref(c)("barcode_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-0efcc35f"]]),B5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"二维码宽度",key:"width",default:100,fieldType:"prop"},{label:"二维码高度",key:"height",default:100,fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],barcode_width:[{required:!0,message:"请填写条形码宽度",trigger:"blur"}],barcode_height:[{required:!0,message:"请填写条形码高度",trigger:"blur"}]}),a=Ye(t,s=>{}),d=s=>{ue(l,t,s)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="base"&&s.push(S.key)}),s},m=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="prop"&&s.push(S.key)}),s},h=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="style"&&s.push(S.key)}),s};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h(),T=[],A=[];s.forEach((V,g)=>{l[V]=r.value[V]}),r.value.props&&(T=Object.keys(r.value.props)),S.forEach((V,g)=>{T.indexOf(V)>=0?l[V]=r.value.props[V]:l[V]=t[V]}),r.value.style&&(A=Object.keys(r.value.style)),u.forEach((V,g)=>{A.indexOf(V)>=0?l[V]=r.value.style[V]:l[V]=t[V]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h();s.forEach((V,g)=>{r.value[V]=l[V]});let T={};S.forEach((V,g)=>{T[V]=l[V]}),r.value.props=T;let A={};u.forEach((V,g)=>{A[V]=l[V]}),r.value.style=A},inputFormatter:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},inputParser:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},complementInputValue:s=>{let S=/^\d+$/,u=l[s];u&&S.test(u)&&(l[s]=l[s]+"px")}}},dr=r=>(e.pushScopeId("data-v-d274db71"),r=r(),e.popScopeId(),r),R5={class:"component-config-container qrcode-component-config-container"},$5={class:"component-config-header"},L5=dr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"二维码")],-1)),P5=dr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),E5=[dr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],N5=dr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),M5=dr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),D5=dr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),Q5=dr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),W5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=B5(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-switch"),g=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",R5,[e.createElementVNode("div",$5,[L5,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),P5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},E5)]),e.createVNode(g,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[N5,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=I=>e.unref(o).id=I),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=I=>e.unref(o).title=I),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),M5,e.createVNode(T,{label:"对应数据字段",prop:"field","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).field,"onUpdate:modelValue":p[2]||(p[2]=I=>e.unref(o).field=I),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"二维码宽度",prop:"width","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).width,"onUpdate:modelValue":p[3]||(p[3]=I=>e.unref(o).width=I),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"二维码高度",prop:"height","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).height,"onUpdate:modelValue":p[4]||(p[4]=I=>e.unref(o).height=I),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":p[5]||(p[5]=I=>e.unref(o).showOnLastPage=I),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),D5,Q5,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[6]||(p[6]=I=>e.unref(o).marginTop=I),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[7]||(p[7]=I=>e.unref(o).marginBottom=I),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[8]||(p[8]=I=>e.unref(o).marginLeft=I),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[9]||(p[9]=I=>e.unref(o).marginRight=I),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[10]||(p[10]=I=>e.unref(o).paddingTop=I),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[11]||(p[11]=I=>e.unref(o).paddingBottom=I),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[12]||(p[12]=I=>e.unref(o).paddingLeft=I),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[13]||(p[13]=I=>e.unref(o).paddingRight=I)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-d274db71"]]),U5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"图片链接",key:"src",default:"",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"宽度",key:"width",default:"200px",fieldType:"style"},{label:"高度",key:"height",default:"50px",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],width:[{required:!0,message:"请填写宽度",trigger:"blur"}],height:[{required:!0,message:"请填写高度",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Ln=r=>(e.pushScopeId("data-v-e48dcaf0"),r=r(),e.popScopeId(),r),Z5={class:"component-config-container image-component-config-container"},z5={class:"component-config-header"},H5=Ln(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"图片")],-1)),j5=Ln(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),F5=[Ln(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],X5=Ln(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),q5=Ln(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),Y5=Ln(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"填写了【对应数据字段】后,【图片链接】将失效",-1)),G5=Ln(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),K5=Ln(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),J5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=U5(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Z5,[e.createElementVNode("div",z5,[H5,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),j5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},F5)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[X5,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),q5,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).field=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),Y5,e.createVNode(g,{label:"图片链接",prop:"src"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).src,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).src=y),type:"textarea",placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).showOnLastPage=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),G5,K5,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[5]||(s[5]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[6]||(s[6]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[7]||(s[7]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[8]||(s[8]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[9]||(s[9]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[10]||(s[10]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[11]||(s[11]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[12]||(s[12]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[13]||(s[13]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[14]||(s[14]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[15]||(s[15]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[16]||(s[16]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[17]||(s[17]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[18]||(s[18]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[19]||(s[19]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[20]||(s[20]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[21]||(s[21]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[22]||(s[22]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[23]||(s[23]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[24]||(s[24]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[25]||(s[25]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[26]||(s[26]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[27]||(s[27]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[29]||(s[29]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[28]||(s[28]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"宽度",prop:"width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[30]||(s[30]=y=>e.unref(o).width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[31]||(s[31]=y=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[32]||(s[32]=y=>e.unref(o).height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[33]||(s[33]=y=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-e48dcaf0"]]),v5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"数据字段",key:"fields",default:"",fieldType:"prop"},{label:"是否使用方法",key:"compute",default:!1,fieldType:"prop"},{label:"求值方式",key:"computeMethods",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"标签",key:"label",default:"输入框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{A.indexOf(w)>=0?l[w]=r.value.props[w]:l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},en=r=>(e.pushScopeId("data-v-8cf9cec6"),r=r(),e.popScopeId(),r),eM={class:"component-config-container input-component-config-container"},tM={class:"component-config-header"},oM=en(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"输入框")],-1)),nM=en(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),rM=[en(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],lM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),iM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),aM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"方法配置")],-1)),sM={style:{"font-weight":"bold"}},dM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),fM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),cM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),pM=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=v5(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x,fieldArr:p}=e.inject("printDesigner");e.watch(o,(S,u)=>{a()},{deep:!0}),e.watch(h,(S,u)=>{(S&&!u||S.id!=u.id)&&i()},{immediate:!0,deep:!0});const O=S=>{if(S=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(S=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},C=()=>{p.value.set(o.id,o.field)},s=()=>{h.value=!1};return t({}),(S,u)=>{const T=e.resolveComponent("el-button"),A=e.resolveComponent("el-dropdown-item"),V=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),I=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-switch"),_=e.resolveComponent("el-option"),k=e.resolveComponent("el-select"),L=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",eM,[e.createElementVNode("div",tM,[oM,e.createVNode(g,{trigger:"click",class:"component-config-header_operate",onCommand:O},{dropdown:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(A,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(A,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(T,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),nM]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:s},rM)]),e.createVNode(L,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[lM,e.createVNode(w,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).id,"onUpdate:modelValue":u[0]||(u[0]=B=>e.unref(o).id=B),disabled:""},null,8,["modelValue"])]),_:1}),iM,e.createVNode(w,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).field,"onUpdate:modelValue":u[1]||(u[1]=B=>e.unref(o).field=B),placeholder:"",clearable:"",onChange:C},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":u[2]||(u[2]=B=>e.unref(o).placeholder=B),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":u[3]||(u[3]=B=>e.unref(o).defaultValue=B),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).size,"onUpdate:modelValue":u[4]||(u[4]=B=>e.unref(o).size=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(B,E)=>(e.openBlock(),e.createBlock(R,{value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),aM,e.createVNode(w,{label:"是否使用",prop:"compute","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).compute,"onUpdate:modelValue":u[5]||(u[5]=B=>e.unref(o).compute=B),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.unref(o).compute?(e.openBlock(),e.createBlock(w,{key:0,label:"数据字段",prop:"fields"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:e.unref(o).fields,"onUpdate:modelValue":u[6]||(u[6]=B=>e.unref(o).fields=B),clearable:"",multiple:""},{label:e.withCtx(({label:B,value:E})=>[e.createElementVNode("span",sM,e.toDisplayString(E),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Array.from(e.unref(p).values()),B=>(e.openBlock(),e.createBlock(_,{key:B,label:B,value:B},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(o).compute?(e.openBlock(),e.createBlock(w,{key:1,label:"求值方式",prop:"computeMethods"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:e.unref(o).computeMethods,"onUpdate:modelValue":u[7]||(u[7]=B=>e.unref(o).computeMethods=B),clearable:""},{default:e.withCtx(()=>[e.createVNode(_,{key:"Sum",label:"和",value:"sum"}),e.createVNode(_,{key:"Average",label:"平均值",value:"average"})]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),dM,e.createVNode(w,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).label,"onUpdate:modelValue":u[8]||(u[8]=B=>e.unref(o).label=B),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":u[9]||(u[9]=B=>e.unref(o).labelWidth=B),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[10]||(u[10]=B=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":u[11]||(u[11]=B=>e.unref(o).labelPosition=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(B,E)=>(e.openBlock(),e.createBlock(R,{value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":u[12]||(u[12]=B=>e.unref(o).formItemLabel_marginTop=B),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":u[13]||(u[13]=B=>e.unref(o).formItemLabel_marginBottom=B),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":u[14]||(u[14]=B=>e.unref(o).formItemLabel_marginLeft=B),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":u[15]||(u[15]=B=>e.unref(o).formItemLabel_marginRight=B),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":u[16]||(u[16]=B=>e.unref(o).formItemLabel_paddingTop=B),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":u[17]||(u[17]=B=>e.unref(o).formItemLabel_paddingBottom=B),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":u[18]||(u[18]=B=>e.unref(o).formItemLabel_paddingLeft=B),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":u[19]||(u[19]=B=>e.unref(o).formItemLabel_paddingRight=B)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":u[20]||(u[20]=B=>e.unref(o).formItemLabel_borderStyle=B),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":u[21]||(u[21]=B=>e.unref(o).formItemLabel_borderWidth=B),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":u[22]||(u[22]=B=>e.unref(o).formItemLabel_borderColor=B),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":u[23]||(u[23]=B=>e.unref(o).formItemLabel_borderTopStyle=B),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":u[24]||(u[24]=B=>e.unref(o).formItemLabel_borderTopWidth=B),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":u[25]||(u[25]=B=>e.unref(o).formItemLabel_borderTopColor=B),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":u[26]||(u[26]=B=>e.unref(o).formItemLabel_borderBottomStyle=B),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":u[27]||(u[27]=B=>e.unref(o).formItemLabel_borderBottomWidth=B),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":u[28]||(u[28]=B=>e.unref(o).formItemLabel_borderBottomColor=B),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":u[29]||(u[29]=B=>e.unref(o).formItemLabel_borderLeftStyle=B),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":u[30]||(u[30]=B=>e.unref(o).formItemLabel_borderLeftWidth=B),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":u[31]||(u[31]=B=>e.unref(o).formItemLabel_borderLeftColor=B),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":u[32]||(u[32]=B=>e.unref(o).formItemLabel_borderRightStyle=B),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":u[33]||(u[33]=B=>e.unref(o).formItemLabel_borderRightWidth=B),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":u[34]||(u[34]=B=>e.unref(o).formItemLabel_borderRightColor=B),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":u[35]||(u[35]=B=>e.unref(o).formItemLabel_fontSize=B),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":u[36]||(u[36]=B=>e.unref(o).formItemLabel_fontWeight=B),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":u[37]||(u[37]=B=>e.unref(o).formItemLabel_textDecoration=B),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":u[38]||(u[38]=B=>e.unref(o).formItemLabel_textAlign=B),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":u[39]||(u[39]=B=>e.unref(o).formItemLabel_lineHeight=B),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":u[40]||(u[40]=B=>e.unref(o).formItemLabel_letterSpacing=B),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),fM,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":u[41]||(u[41]=B=>e.unref(o).formItemMain_marginTop=B),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":u[42]||(u[42]=B=>e.unref(o).formItemMain_marginBottom=B),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":u[43]||(u[43]=B=>e.unref(o).formItemMain_marginLeft=B),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":u[44]||(u[44]=B=>e.unref(o).formItemMain_marginRight=B),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":u[45]||(u[45]=B=>e.unref(o).formItemMain_paddingTop=B),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":u[46]||(u[46]=B=>e.unref(o).formItemMain_paddingBottom=B),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":u[47]||(u[47]=B=>e.unref(o).formItemMain_paddingLeft=B),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":u[48]||(u[48]=B=>e.unref(o).formItemMain_paddingRight=B)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":u[49]||(u[49]=B=>e.unref(o).formItemMain_borderStyle=B),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":u[50]||(u[50]=B=>e.unref(o).formItemMain_borderWidth=B),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":u[51]||(u[51]=B=>e.unref(o).formItemMain_borderColor=B),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":u[52]||(u[52]=B=>e.unref(o).formItemMain_borderTopStyle=B),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":u[53]||(u[53]=B=>e.unref(o).formItemMain_borderTopWidth=B),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":u[54]||(u[54]=B=>e.unref(o).formItemMain_borderTopColor=B),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":u[55]||(u[55]=B=>e.unref(o).formItemMain_borderBottomStyle=B),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":u[56]||(u[56]=B=>e.unref(o).formItemMain_borderBottomWidth=B),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":u[57]||(u[57]=B=>e.unref(o).formItemMain_borderBottomColor=B),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":u[58]||(u[58]=B=>e.unref(o).formItemMain_borderLeftStyle=B),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":u[59]||(u[59]=B=>e.unref(o).formItemMain_borderLeftWidth=B),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":u[60]||(u[60]=B=>e.unref(o).formItemMain_borderLeftColor=B),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":u[61]||(u[61]=B=>e.unref(o).formItemMain_borderRightStyle=B),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":u[62]||(u[62]=B=>e.unref(o).formItemMain_borderRightWidth=B),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":u[63]||(u[63]=B=>e.unref(o).formItemMain_borderRightColor=B),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":u[64]||(u[64]=B=>e.unref(o).formItemMain_fontSize=B),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":u[65]||(u[65]=B=>e.unref(o).formItemMain_fontWeight=B),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":u[66]||(u[66]=B=>e.unref(o).formItemMain_textDecoration=B),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":u[67]||(u[67]=B=>e.unref(o).formItemMain_textAlign=B),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":u[68]||(u[68]=B=>e.unref(o).formItemMain_lineHeight=B),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":u[69]||(u[69]=B=>e.unref(o).formItemMain_letterSpacing=B),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),cM,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":u[70]||(u[70]=B=>e.unref(o).formItem_marginTop=B),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":u[71]||(u[71]=B=>e.unref(o).formItem_marginBottom=B),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":u[72]||(u[72]=B=>e.unref(o).formItem_marginLeft=B),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":u[73]||(u[73]=B=>e.unref(o).formItem_marginRight=B),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":u[74]||(u[74]=B=>e.unref(o).formItem_paddingTop=B),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":u[75]||(u[75]=B=>e.unref(o).formItem_paddingBottom=B),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":u[76]||(u[76]=B=>e.unref(o).formItem_paddingLeft=B),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":u[77]||(u[77]=B=>e.unref(o).formItem_paddingRight=B)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":u[78]||(u[78]=B=>e.unref(o).formItem_borderStyle=B),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":u[79]||(u[79]=B=>e.unref(o).formItem_borderWidth=B),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":u[80]||(u[80]=B=>e.unref(o).formItem_borderColor=B),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":u[81]||(u[81]=B=>e.unref(o).formItem_borderTopStyle=B),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":u[82]||(u[82]=B=>e.unref(o).formItem_borderTopWidth=B),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":u[83]||(u[83]=B=>e.unref(o).formItem_borderTopColor=B),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":u[84]||(u[84]=B=>e.unref(o).formItem_borderBottomStyle=B),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":u[85]||(u[85]=B=>e.unref(o).formItem_borderBottomWidth=B),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":u[86]||(u[86]=B=>e.unref(o).formItem_borderBottomColor=B),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":u[87]||(u[87]=B=>e.unref(o).formItem_borderLeftStyle=B),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":u[88]||(u[88]=B=>e.unref(o).formItem_borderLeftWidth=B),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":u[89]||(u[89]=B=>e.unref(o).formItem_borderLeftColor=B),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":u[90]||(u[90]=B=>e.unref(o).formItem_borderRightStyle=B),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":u[91]||(u[91]=B=>e.unref(o).formItem_borderRightWidth=B),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":u[92]||(u[92]=B=>e.unref(o).formItem_borderRightColor=B),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(w,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":u[93]||(u[93]=B=>e.unref(o).formItem_width=B),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[94]||(u[94]=B=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":u[95]||(u[95]=B=>e.unref(o).formItem_height=B),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[96]||(u[96]=B=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-8cf9cec6"]]),mM=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"高度是否自适应",key:"autosize",default:!0,fieldType:"formComponentProp"},{label:"输入行数",key:"rows",default:2,fieldType:"formComponentProp"},{label:"标签",key:"label",default:"多行输入框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{A.indexOf(w)>=0?l[w]=r.value.props[w]:l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},tn=r=>(e.pushScopeId("data-v-b21e1c1d"),r=r(),e.popScopeId(),r),hM={class:"component-config-container textarea-component-config-container"},uM={class:"component-config-header"},gM=tn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"多行输入框")],-1)),bM=tn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),yM=[tn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],xM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),CM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),OM=tn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small"},[e.createElementVNode("span",null,"输入行数"),e.createElementVNode("span",{class:"wui-print-color--warning"},"高度自适应开启时该项配置无效")],-1)),wM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),_M=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),SM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),kM=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=mM(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-input-number"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",hM,[e.createElementVNode("div",uM,[gM,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),bM]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},yM)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[xM,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=_=>e.unref(o).id=_),disabled:""},null,8,["modelValue"])]),_:1}),CM,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=_=>e.unref(o).field=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":s[2]||(s[2]=_=>e.unref(o).placeholder=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[3]||(s[3]=_=>e.unref(o).defaultValue=_),type:"textarea",autosize:{minRows:2,maxRows:10},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"高度是否自适应",prop:"rows","label-width":"100px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).autosize,"onUpdate:modelValue":s[4]||(s[4]=_=>e.unref(o).autosize=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"rows"},{label:e.withCtx(()=>[OM]),default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).rows,"onUpdate:modelValue":s[5]||(s[5]=_=>e.unref(o).rows=_),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[6]||(s[6]=_=>e.unref(o).size=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),wM,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[7]||(s[7]=_=>e.unref(o).label=_),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[8]||(s[8]=_=>e.unref(o).labelWidth=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[9]||(s[9]=_=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[10]||(s[10]=_=>e.unref(o).labelPosition=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[11]||(s[11]=_=>e.unref(o).formItemLabel_marginTop=_),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[12]||(s[12]=_=>e.unref(o).formItemLabel_marginBottom=_),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[13]||(s[13]=_=>e.unref(o).formItemLabel_marginLeft=_),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[14]||(s[14]=_=>e.unref(o).formItemLabel_marginRight=_),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[15]||(s[15]=_=>e.unref(o).formItemLabel_paddingTop=_),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[16]||(s[16]=_=>e.unref(o).formItemLabel_paddingBottom=_),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[17]||(s[17]=_=>e.unref(o).formItemLabel_paddingLeft=_),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[18]||(s[18]=_=>e.unref(o).formItemLabel_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[19]||(s[19]=_=>e.unref(o).formItemLabel_borderStyle=_),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[20]||(s[20]=_=>e.unref(o).formItemLabel_borderWidth=_),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[21]||(s[21]=_=>e.unref(o).formItemLabel_borderColor=_),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[22]||(s[22]=_=>e.unref(o).formItemLabel_borderTopStyle=_),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[23]||(s[23]=_=>e.unref(o).formItemLabel_borderTopWidth=_),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[24]||(s[24]=_=>e.unref(o).formItemLabel_borderTopColor=_),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[25]||(s[25]=_=>e.unref(o).formItemLabel_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[26]||(s[26]=_=>e.unref(o).formItemLabel_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[27]||(s[27]=_=>e.unref(o).formItemLabel_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[28]||(s[28]=_=>e.unref(o).formItemLabel_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[29]||(s[29]=_=>e.unref(o).formItemLabel_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[30]||(s[30]=_=>e.unref(o).formItemLabel_borderLeftColor=_),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[31]||(s[31]=_=>e.unref(o).formItemLabel_borderRightStyle=_),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[32]||(s[32]=_=>e.unref(o).formItemLabel_borderRightWidth=_),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[33]||(s[33]=_=>e.unref(o).formItemLabel_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[34]||(s[34]=_=>e.unref(o).formItemLabel_fontSize=_),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[35]||(s[35]=_=>e.unref(o).formItemLabel_fontWeight=_),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[36]||(s[36]=_=>e.unref(o).formItemLabel_textDecoration=_),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[37]||(s[37]=_=>e.unref(o).formItemLabel_textAlign=_),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[38]||(s[38]=_=>e.unref(o).formItemLabel_lineHeight=_),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[39]||(s[39]=_=>e.unref(o).formItemLabel_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),_M,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[40]||(s[40]=_=>e.unref(o).formItemMain_marginTop=_),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[41]||(s[41]=_=>e.unref(o).formItemMain_marginBottom=_),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[42]||(s[42]=_=>e.unref(o).formItemMain_marginLeft=_),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[43]||(s[43]=_=>e.unref(o).formItemMain_marginRight=_),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[44]||(s[44]=_=>e.unref(o).formItemMain_paddingTop=_),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[45]||(s[45]=_=>e.unref(o).formItemMain_paddingBottom=_),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[46]||(s[46]=_=>e.unref(o).formItemMain_paddingLeft=_),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[47]||(s[47]=_=>e.unref(o).formItemMain_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[48]||(s[48]=_=>e.unref(o).formItemMain_borderStyle=_),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[49]||(s[49]=_=>e.unref(o).formItemMain_borderWidth=_),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[50]||(s[50]=_=>e.unref(o).formItemMain_borderColor=_),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[51]||(s[51]=_=>e.unref(o).formItemMain_borderTopStyle=_),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[52]||(s[52]=_=>e.unref(o).formItemMain_borderTopWidth=_),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[53]||(s[53]=_=>e.unref(o).formItemMain_borderTopColor=_),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[54]||(s[54]=_=>e.unref(o).formItemMain_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[55]||(s[55]=_=>e.unref(o).formItemMain_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[56]||(s[56]=_=>e.unref(o).formItemMain_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[57]||(s[57]=_=>e.unref(o).formItemMain_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[58]||(s[58]=_=>e.unref(o).formItemMain_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[59]||(s[59]=_=>e.unref(o).formItemMain_borderLeftColor=_),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[60]||(s[60]=_=>e.unref(o).formItemMain_borderRightStyle=_),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[61]||(s[61]=_=>e.unref(o).formItemMain_borderRightWidth=_),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[62]||(s[62]=_=>e.unref(o).formItemMain_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[63]||(s[63]=_=>e.unref(o).formItemMain_fontSize=_),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[64]||(s[64]=_=>e.unref(o).formItemMain_fontWeight=_),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[65]||(s[65]=_=>e.unref(o).formItemMain_textDecoration=_),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[66]||(s[66]=_=>e.unref(o).formItemMain_textAlign=_),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[67]||(s[67]=_=>e.unref(o).formItemMain_lineHeight=_),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[68]||(s[68]=_=>e.unref(o).formItemMain_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),SM,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[69]||(s[69]=_=>e.unref(o).formItem_marginTop=_),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[70]||(s[70]=_=>e.unref(o).formItem_marginBottom=_),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[71]||(s[71]=_=>e.unref(o).formItem_marginLeft=_),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[72]||(s[72]=_=>e.unref(o).formItem_marginRight=_),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[73]||(s[73]=_=>e.unref(o).formItem_paddingTop=_),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[74]||(s[74]=_=>e.unref(o).formItem_paddingBottom=_),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[75]||(s[75]=_=>e.unref(o).formItem_paddingLeft=_),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[76]||(s[76]=_=>e.unref(o).formItem_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[77]||(s[77]=_=>e.unref(o).formItem_borderStyle=_),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[78]||(s[78]=_=>e.unref(o).formItem_borderWidth=_),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[79]||(s[79]=_=>e.unref(o).formItem_borderColor=_),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[80]||(s[80]=_=>e.unref(o).formItem_borderTopStyle=_),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[81]||(s[81]=_=>e.unref(o).formItem_borderTopWidth=_),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[82]||(s[82]=_=>e.unref(o).formItem_borderTopColor=_),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[83]||(s[83]=_=>e.unref(o).formItem_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[84]||(s[84]=_=>e.unref(o).formItem_borderBottomWidth=_),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[85]||(s[85]=_=>e.unref(o).formItem_borderBottomColor=_),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[86]||(s[86]=_=>e.unref(o).formItem_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[87]||(s[87]=_=>e.unref(o).formItem_borderLeftWidth=_),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[88]||(s[88]=_=>e.unref(o).formItem_borderLeftColor=_),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[89]||(s[89]=_=>e.unref(o).formItem_borderRightStyle=_),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[90]||(s[90]=_=>e.unref(o).formItem_borderRightWidth=_),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[91]||(s[91]=_=>e.unref(o).formItem_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[92]||(s[92]=_=>e.unref(o).formItem_width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=_=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[94]||(s[94]=_=>e.unref(o).formItem_height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[95]||(s[95]=_=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-b21e1c1d"]]),TM=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(b){t("update:modelValue",b)}}),o=e.reactive([]),l=e.computed(()=>b=>b>0),i=e.computed(()=>b=>b<o.length-1),a=b=>{const x={label:"",value:""};let p={};return ue(p,x,b),p},d=()=>{let b=a();o.push(b)},f=({oldItemIndex:b,newItemIndex:x}={})=>{let p=o[b];o.splice(b,1),o.splice(x,0,p)};return{modelValue:n,dataSource:o,moveUpButtonShow:l,moveDownButtonShow:i,createItem:a,addNewItem:d,moveItem:f,moveItemUp:b=>{if(b<=0){ge.alert("选项的位置需要在第一个之后",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b-1;f({oldItemIndex:b,newItemIndex:x})},moveItemDown:b=>{if(b>=o.length-1){ge.alert("选项的位置需要在最后一个选项之前",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b+1;f({oldItemIndex:b,newItemIndex:x})},removeItem:b=>{if(o.length<=1){ge.alert("最少1项,无法删除",{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"});return}let x=o[b],p="是否删除";x.label&&(p+=`【${x.label}】`),ge.confirm(`${p}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(b,1)})}}},N0=r=>(e.pushScopeId("data-v-df68cfbd"),r=r(),e.popScopeId(),r),IM={class:"data-source-config-container"},AM={class:"data-source-operate"},VM={class:"data-source-content"},BM={class:"data-source-item_main"},RM={class:"data-source-item_row"},$M=N0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"选项:",-1)),LM={class:"data-source-item_row-content"},PM={class:"data-source-item_row"},EM=N0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"值:",-1)),NM={class:"data-source-item_row-content"},MM={class:"data-source-item_operate"},DM=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,dataSource:a,moveUpButtonShow:d,moveDownButtonShow:f,addNewItem:c,moveItemUp:m,moveItemDown:h,removeItem:b}=TM(l,o);return e.watch(()=>l.modelValue,(x,p)=>{let O=l.modelValue?l.modelValue:[];a.splice(0,a.length,...O)},{immediate:!0,deep:!0}),e.watch(a,(x,p)=>{i.value=a},{deep:!0}),t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",IM,[e.createElementVNode("div",AM,[e.createVNode(O,{type:"primary",size:"small",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("新增选项")]),_:1},8,["onClick"])]),e.createElementVNode("div",VM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(s,S)=>(e.openBlock(),e.createElementBlock("div",{class:"data-source-item",key:S},[e.createElementVNode("div",BM,[e.createElementVNode("div",RM,[$M,e.createElementVNode("div",LM,[e.createVNode(C,{modelValue:s.label,"onUpdate:modelValue":u=>s.label=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",PM,[EM,e.createElementVNode("div",NM,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])])]),e.createElementVNode("div",MM,[e.createVNode(O,{type:"warning",size:"small",plain:"",onClick:u=>e.unref(b)(S)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(m)(S)},{default:e.withCtx(()=>[e.createTextVNode("上移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(d)(S)]]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(h)(S)},{default:e.withCtx(()=>[e.createTextVNode("下移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(f)(S)]])])]))),128))])])}}},[["__scopeId","data-v-df68cfbd"]]),QM=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据源",key:"dataSource",default:[],fieldType:"prop"},{label:"标签",key:"label",default:"单选框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],dataSource:[{required:!0,message:"请添加数据源",trigger:"change"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{let y=A.indexOf(w)>=0;if(y&&w=="dataSource"){l[w]=q(r.value.props[w]);return}if(y){l[w]=r.value.props[w];return}l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{w=="dataSource"?A[w]=q(l[w]):A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},Pn=r=>(e.pushScopeId("data-v-69ff94bb"),r=r(),e.popScopeId(),r),WM={class:"component-config-container radio-component-config-container"},UM={class:"component-config-header"},ZM=Pn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"单选框")],-1)),zM=Pn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),HM=[Pn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],jM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),FM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),XM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),qM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),YM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),GM=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=QM(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",WM,[e.createElementVNode("div",UM,[ZM,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),zM]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},HM)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[jM,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),FM,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).field=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).defaultValue=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).size=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"数据源配置",prop:"dataSource","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(DM,{modelValue:e.unref(o).dataSource,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).dataSource=y)},null,8,["modelValue"])]),_:1}),XM,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[5]||(s[5]=y=>e.unref(o).label=y),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[6]||(s[6]=y=>e.unref(o).labelWidth=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[7]||(s[7]=y=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[8]||(s[8]=y=>e.unref(o).labelPosition=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[9]||(s[9]=y=>e.unref(o).formItemLabel_marginTop=y),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[10]||(s[10]=y=>e.unref(o).formItemLabel_marginBottom=y),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[11]||(s[11]=y=>e.unref(o).formItemLabel_marginLeft=y),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[12]||(s[12]=y=>e.unref(o).formItemLabel_marginRight=y),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[13]||(s[13]=y=>e.unref(o).formItemLabel_paddingTop=y),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[14]||(s[14]=y=>e.unref(o).formItemLabel_paddingBottom=y),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[15]||(s[15]=y=>e.unref(o).formItemLabel_paddingLeft=y),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[16]||(s[16]=y=>e.unref(o).formItemLabel_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[17]||(s[17]=y=>e.unref(o).formItemLabel_borderStyle=y),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[18]||(s[18]=y=>e.unref(o).formItemLabel_borderWidth=y),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[19]||(s[19]=y=>e.unref(o).formItemLabel_borderColor=y),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[20]||(s[20]=y=>e.unref(o).formItemLabel_borderTopStyle=y),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[21]||(s[21]=y=>e.unref(o).formItemLabel_borderTopWidth=y),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[22]||(s[22]=y=>e.unref(o).formItemLabel_borderTopColor=y),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[23]||(s[23]=y=>e.unref(o).formItemLabel_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[24]||(s[24]=y=>e.unref(o).formItemLabel_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[25]||(s[25]=y=>e.unref(o).formItemLabel_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[26]||(s[26]=y=>e.unref(o).formItemLabel_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[27]||(s[27]=y=>e.unref(o).formItemLabel_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[28]||(s[28]=y=>e.unref(o).formItemLabel_borderLeftColor=y),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[29]||(s[29]=y=>e.unref(o).formItemLabel_borderRightStyle=y),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[30]||(s[30]=y=>e.unref(o).formItemLabel_borderRightWidth=y),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[31]||(s[31]=y=>e.unref(o).formItemLabel_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[32]||(s[32]=y=>e.unref(o).formItemLabel_fontSize=y),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[33]||(s[33]=y=>e.unref(o).formItemLabel_fontWeight=y),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[34]||(s[34]=y=>e.unref(o).formItemLabel_textDecoration=y),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[35]||(s[35]=y=>e.unref(o).formItemLabel_textAlign=y),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[36]||(s[36]=y=>e.unref(o).formItemLabel_lineHeight=y),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[37]||(s[37]=y=>e.unref(o).formItemLabel_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),qM,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[38]||(s[38]=y=>e.unref(o).formItemMain_marginTop=y),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[39]||(s[39]=y=>e.unref(o).formItemMain_marginBottom=y),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[40]||(s[40]=y=>e.unref(o).formItemMain_marginLeft=y),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[41]||(s[41]=y=>e.unref(o).formItemMain_marginRight=y),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[42]||(s[42]=y=>e.unref(o).formItemMain_paddingTop=y),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[43]||(s[43]=y=>e.unref(o).formItemMain_paddingBottom=y),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[44]||(s[44]=y=>e.unref(o).formItemMain_paddingLeft=y),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[45]||(s[45]=y=>e.unref(o).formItemMain_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[46]||(s[46]=y=>e.unref(o).formItemMain_borderStyle=y),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[47]||(s[47]=y=>e.unref(o).formItemMain_borderWidth=y),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[48]||(s[48]=y=>e.unref(o).formItemMain_borderColor=y),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[49]||(s[49]=y=>e.unref(o).formItemMain_borderTopStyle=y),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[50]||(s[50]=y=>e.unref(o).formItemMain_borderTopWidth=y),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[51]||(s[51]=y=>e.unref(o).formItemMain_borderTopColor=y),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[52]||(s[52]=y=>e.unref(o).formItemMain_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[53]||(s[53]=y=>e.unref(o).formItemMain_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[54]||(s[54]=y=>e.unref(o).formItemMain_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[55]||(s[55]=y=>e.unref(o).formItemMain_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[56]||(s[56]=y=>e.unref(o).formItemMain_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[57]||(s[57]=y=>e.unref(o).formItemMain_borderLeftColor=y),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[58]||(s[58]=y=>e.unref(o).formItemMain_borderRightStyle=y),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[59]||(s[59]=y=>e.unref(o).formItemMain_borderRightWidth=y),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[60]||(s[60]=y=>e.unref(o).formItemMain_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[61]||(s[61]=y=>e.unref(o).formItemMain_fontSize=y),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[62]||(s[62]=y=>e.unref(o).formItemMain_fontWeight=y),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[63]||(s[63]=y=>e.unref(o).formItemMain_textDecoration=y),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[64]||(s[64]=y=>e.unref(o).formItemMain_textAlign=y),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[65]||(s[65]=y=>e.unref(o).formItemMain_lineHeight=y),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[66]||(s[66]=y=>e.unref(o).formItemMain_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),YM,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[67]||(s[67]=y=>e.unref(o).formItem_marginTop=y),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[68]||(s[68]=y=>e.unref(o).formItem_marginBottom=y),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[69]||(s[69]=y=>e.unref(o).formItem_marginLeft=y),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[70]||(s[70]=y=>e.unref(o).formItem_marginRight=y),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[71]||(s[71]=y=>e.unref(o).formItem_paddingTop=y),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[72]||(s[72]=y=>e.unref(o).formItem_paddingBottom=y),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[73]||(s[73]=y=>e.unref(o).formItem_paddingLeft=y),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[74]||(s[74]=y=>e.unref(o).formItem_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[75]||(s[75]=y=>e.unref(o).formItem_borderStyle=y),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[76]||(s[76]=y=>e.unref(o).formItem_borderWidth=y),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[77]||(s[77]=y=>e.unref(o).formItem_borderColor=y),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[78]||(s[78]=y=>e.unref(o).formItem_borderTopStyle=y),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[79]||(s[79]=y=>e.unref(o).formItem_borderTopWidth=y),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[80]||(s[80]=y=>e.unref(o).formItem_borderTopColor=y),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[81]||(s[81]=y=>e.unref(o).formItem_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[82]||(s[82]=y=>e.unref(o).formItem_borderBottomWidth=y),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[83]||(s[83]=y=>e.unref(o).formItem_borderBottomColor=y),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[84]||(s[84]=y=>e.unref(o).formItem_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[85]||(s[85]=y=>e.unref(o).formItem_borderLeftWidth=y),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[86]||(s[86]=y=>e.unref(o).formItem_borderLeftColor=y),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[87]||(s[87]=y=>e.unref(o).formItem_borderRightStyle=y),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[88]||(s[88]=y=>e.unref(o).formItem_borderRightWidth=y),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[89]||(s[89]=y=>e.unref(o).formItem_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[90]||(s[90]=y=>e.unref(o).formItem_width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[91]||(s[91]=y=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[92]||(s[92]=y=>e.unref(o).formItem_height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=y=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-69ff94bb"]]),KM=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(d){t("update:modelValue",q(d))}}),o=e.reactive([]);return{modelValue:n,defaultValues:o,addNewItem:()=>{o.push("")},removeItem:d=>{ge.confirm(`是否删除【${o[d]}】?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(d,1)})},setDefaultValuesByModelValue:()=>{if(!n.value)return;let d=n.value.split(",");o.splice(0,o.length,...d)}}},JM={class:"default-value-container"},vM={class:"default-value-operate"},eD={class:"default-value-content"},tD={class:"default-value-item_main"},oD={class:"default-value-item_operate"},nD=G({__name:"index",props:{modelValue:{type:String,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,defaultValues:a,addNewItem:d,removeItem:f,setDefaultValuesByModelValue:c}=KM(l,o);return e.watch(()=>l.modelValue,(m,h)=>{c()},{immediate:!0,deep:!0}),e.watch(a,(m,h)=>{i.value=a.join(",")},{deep:!0}),t({}),(m,h)=>{const b=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",JM,[e.createElementVNode("div",vM,[e.createVNode(b,{type:"primary",size:"small",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode("新增默认值")]),_:1},8,["onClick"])]),e.createElementVNode("div",eD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(p,O)=>(e.openBlock(),e.createElementBlock("div",{class:"default-value-item",key:O},[e.createElementVNode("div",tD,[e.createVNode(x,{modelValue:e.unref(a)[O],"onUpdate:modelValue":C=>e.unref(a)[O]=C,modelModifiers:{trim:!0},placeholder:"",size:"small",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",oD,[e.createVNode(b,{type:"warning",size:"small",plain:"",onClick:C=>e.unref(f)(O)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])]))),128))])])}}},[["__scopeId","data-v-52c045d8"]]),rD=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(b){t("update:modelValue",b)}}),o=e.reactive([]),l=e.computed(()=>b=>b>0),i=e.computed(()=>b=>b<o.length-1),a=b=>{const x={label:"",value:""};let p={};return ue(p,x,b),p},d=()=>{let b=a();o.push(b)},f=({oldItemIndex:b,newItemIndex:x}={})=>{let p=o[b];o.splice(b,1),o.splice(x,0,p)};return{modelValue:n,dataSource:o,moveUpButtonShow:l,moveDownButtonShow:i,createItem:a,addNewItem:d,moveItem:f,moveItemUp:b=>{if(b<=0){ge.alert("选项的位置需要在第一个之后",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b-1;f({oldItemIndex:b,newItemIndex:x})},moveItemDown:b=>{if(b>=o.length-1){ge.alert("选项的位置需要在最后一个选项之前",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b+1;f({oldItemIndex:b,newItemIndex:x})},removeItem:b=>{if(o.length<=1){ge.alert("最少1项,无法删除",{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"});return}let x=o[b],p="是否删除";x.label&&(p+=`【${x.label}】`),ge.confirm(`${p}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(b,1)})}}},M0=r=>(e.pushScopeId("data-v-eafac6c5"),r=r(),e.popScopeId(),r),lD={class:"data-source-config-container"},iD={class:"data-source-operate"},aD={class:"data-source-content"},sD={class:"data-source-item_main"},dD={class:"data-source-item_row"},fD=M0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"选项:",-1)),cD={class:"data-source-item_row-content"},pD={class:"data-source-item_row"},mD=M0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"值:",-1)),hD={class:"data-source-item_row-content"},uD={class:"data-source-item_operate"},gD=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,dataSource:a,moveUpButtonShow:d,moveDownButtonShow:f,addNewItem:c,moveItemUp:m,moveItemDown:h,removeItem:b}=rD(l,o);return e.watch(()=>l.modelValue,(x,p)=>{let O=l.modelValue?l.modelValue:[];a.splice(0,a.length,...O)},{immediate:!0,deep:!0}),e.watch(a,(x,p)=>{i.value=a},{deep:!0}),t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",lD,[e.createElementVNode("div",iD,[e.createVNode(O,{type:"primary",size:"small",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("新增选项")]),_:1},8,["onClick"])]),e.createElementVNode("div",aD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(s,S)=>(e.openBlock(),e.createElementBlock("div",{class:"data-source-item",key:S},[e.createElementVNode("div",sD,[e.createElementVNode("div",dD,[fD,e.createElementVNode("div",cD,[e.createVNode(C,{modelValue:s.label,"onUpdate:modelValue":u=>s.label=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",pD,[mD,e.createElementVNode("div",hD,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])])]),e.createElementVNode("div",uD,[e.createVNode(O,{type:"warning",size:"small",plain:"",onClick:u=>e.unref(b)(S)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(m)(S)},{default:e.withCtx(()=>[e.createTextVNode("上移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(d)(S)]]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(h)(S)},{default:e.withCtx(()=>[e.createTextVNode("下移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(f)(S)]])])]))),128))])])}}},[["__scopeId","data-v-eafac6c5"]]),bD=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据源",key:"dataSource",default:[],fieldType:"prop"},{label:"标签",key:"label",default:"多选框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],dataSource:[{required:!0,message:"请添加数据源",trigger:"change"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{let y=A.indexOf(w)>=0;if(y&&w=="dataSource"){l[w]=q(r.value.props[w]);return}if(y){l[w]=r.value.props[w];return}l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{w=="dataSource"?A[w]=q(l[w]):A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},En=r=>(e.pushScopeId("data-v-d27523aa"),r=r(),e.popScopeId(),r),yD={class:"component-config-container checkbox-component-config-container"},xD={class:"component-config-header"},CD=En(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"多选框")],-1)),OD=En(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),wD=[En(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],_D=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),SD=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),kD=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),TD=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),ID=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),AD=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=bD(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",yD,[e.createElementVNode("div",xD,[CD,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),OD]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},wD)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[_D,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),SD,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).field=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(nD,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).defaultValue=y)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).size=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"数据源配置",prop:"dataSource","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(gD,{modelValue:e.unref(o).dataSource,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).dataSource=y)},null,8,["modelValue"])]),_:1}),kD,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[5]||(s[5]=y=>e.unref(o).label=y),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[6]||(s[6]=y=>e.unref(o).labelWidth=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[7]||(s[7]=y=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[8]||(s[8]=y=>e.unref(o).labelPosition=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[9]||(s[9]=y=>e.unref(o).formItemLabel_marginTop=y),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[10]||(s[10]=y=>e.unref(o).formItemLabel_marginBottom=y),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[11]||(s[11]=y=>e.unref(o).formItemLabel_marginLeft=y),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[12]||(s[12]=y=>e.unref(o).formItemLabel_marginRight=y),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[13]||(s[13]=y=>e.unref(o).formItemLabel_paddingTop=y),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[14]||(s[14]=y=>e.unref(o).formItemLabel_paddingBottom=y),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[15]||(s[15]=y=>e.unref(o).formItemLabel_paddingLeft=y),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[16]||(s[16]=y=>e.unref(o).formItemLabel_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[17]||(s[17]=y=>e.unref(o).formItemLabel_borderStyle=y),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[18]||(s[18]=y=>e.unref(o).formItemLabel_borderWidth=y),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[19]||(s[19]=y=>e.unref(o).formItemLabel_borderColor=y),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[20]||(s[20]=y=>e.unref(o).formItemLabel_borderTopStyle=y),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[21]||(s[21]=y=>e.unref(o).formItemLabel_borderTopWidth=y),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[22]||(s[22]=y=>e.unref(o).formItemLabel_borderTopColor=y),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[23]||(s[23]=y=>e.unref(o).formItemLabel_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[24]||(s[24]=y=>e.unref(o).formItemLabel_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[25]||(s[25]=y=>e.unref(o).formItemLabel_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[26]||(s[26]=y=>e.unref(o).formItemLabel_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[27]||(s[27]=y=>e.unref(o).formItemLabel_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[28]||(s[28]=y=>e.unref(o).formItemLabel_borderLeftColor=y),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[29]||(s[29]=y=>e.unref(o).formItemLabel_borderRightStyle=y),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[30]||(s[30]=y=>e.unref(o).formItemLabel_borderRightWidth=y),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[31]||(s[31]=y=>e.unref(o).formItemLabel_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[32]||(s[32]=y=>e.unref(o).formItemLabel_fontSize=y),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[33]||(s[33]=y=>e.unref(o).formItemLabel_fontWeight=y),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[34]||(s[34]=y=>e.unref(o).formItemLabel_textDecoration=y),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[35]||(s[35]=y=>e.unref(o).formItemLabel_textAlign=y),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[36]||(s[36]=y=>e.unref(o).formItemLabel_lineHeight=y),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[37]||(s[37]=y=>e.unref(o).formItemLabel_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),TD,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[38]||(s[38]=y=>e.unref(o).formItemMain_marginTop=y),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[39]||(s[39]=y=>e.unref(o).formItemMain_marginBottom=y),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[40]||(s[40]=y=>e.unref(o).formItemMain_marginLeft=y),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[41]||(s[41]=y=>e.unref(o).formItemMain_marginRight=y),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[42]||(s[42]=y=>e.unref(o).formItemMain_paddingTop=y),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[43]||(s[43]=y=>e.unref(o).formItemMain_paddingBottom=y),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[44]||(s[44]=y=>e.unref(o).formItemMain_paddingLeft=y),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[45]||(s[45]=y=>e.unref(o).formItemMain_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[46]||(s[46]=y=>e.unref(o).formItemMain_borderStyle=y),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[47]||(s[47]=y=>e.unref(o).formItemMain_borderWidth=y),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[48]||(s[48]=y=>e.unref(o).formItemMain_borderColor=y),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[49]||(s[49]=y=>e.unref(o).formItemMain_borderTopStyle=y),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[50]||(s[50]=y=>e.unref(o).formItemMain_borderTopWidth=y),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[51]||(s[51]=y=>e.unref(o).formItemMain_borderTopColor=y),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[52]||(s[52]=y=>e.unref(o).formItemMain_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[53]||(s[53]=y=>e.unref(o).formItemMain_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[54]||(s[54]=y=>e.unref(o).formItemMain_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[55]||(s[55]=y=>e.unref(o).formItemMain_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[56]||(s[56]=y=>e.unref(o).formItemMain_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[57]||(s[57]=y=>e.unref(o).formItemMain_borderLeftColor=y),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[58]||(s[58]=y=>e.unref(o).formItemMain_borderRightStyle=y),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[59]||(s[59]=y=>e.unref(o).formItemMain_borderRightWidth=y),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[60]||(s[60]=y=>e.unref(o).formItemMain_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[61]||(s[61]=y=>e.unref(o).formItemMain_fontSize=y),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[62]||(s[62]=y=>e.unref(o).formItemMain_fontWeight=y),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[63]||(s[63]=y=>e.unref(o).formItemMain_textDecoration=y),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[64]||(s[64]=y=>e.unref(o).formItemMain_textAlign=y),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[65]||(s[65]=y=>e.unref(o).formItemMain_lineHeight=y),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[66]||(s[66]=y=>e.unref(o).formItemMain_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),ID,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[67]||(s[67]=y=>e.unref(o).formItem_marginTop=y),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[68]||(s[68]=y=>e.unref(o).formItem_marginBottom=y),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[69]||(s[69]=y=>e.unref(o).formItem_marginLeft=y),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[70]||(s[70]=y=>e.unref(o).formItem_marginRight=y),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[71]||(s[71]=y=>e.unref(o).formItem_paddingTop=y),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[72]||(s[72]=y=>e.unref(o).formItem_paddingBottom=y),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[73]||(s[73]=y=>e.unref(o).formItem_paddingLeft=y),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[74]||(s[74]=y=>e.unref(o).formItem_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[75]||(s[75]=y=>e.unref(o).formItem_borderStyle=y),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[76]||(s[76]=y=>e.unref(o).formItem_borderWidth=y),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[77]||(s[77]=y=>e.unref(o).formItem_borderColor=y),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[78]||(s[78]=y=>e.unref(o).formItem_borderTopStyle=y),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[79]||(s[79]=y=>e.unref(o).formItem_borderTopWidth=y),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[80]||(s[80]=y=>e.unref(o).formItem_borderTopColor=y),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[81]||(s[81]=y=>e.unref(o).formItem_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[82]||(s[82]=y=>e.unref(o).formItem_borderBottomWidth=y),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[83]||(s[83]=y=>e.unref(o).formItem_borderBottomColor=y),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[84]||(s[84]=y=>e.unref(o).formItem_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[85]||(s[85]=y=>e.unref(o).formItem_borderLeftWidth=y),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[86]||(s[86]=y=>e.unref(o).formItem_borderLeftColor=y),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[87]||(s[87]=y=>e.unref(o).formItem_borderRightStyle=y),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[88]||(s[88]=y=>e.unref(o).formItem_borderRightWidth=y),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[89]||(s[89]=y=>e.unref(o).formItem_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[90]||(s[90]=y=>e.unref(o).formItem_width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[91]||(s[91]=y=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[92]||(s[92]=y=>e.unref(o).formItem_height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=y=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-d27523aa"]]),VD=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(b){t("update:modelValue",b)}}),o=e.reactive([]),l=e.computed(()=>b=>b>0),i=e.computed(()=>b=>b<o.length-1),a=b=>{const x={label:"",value:""};let p={};return ue(p,x,b),p},d=()=>{let b=a();o.push(b)},f=({oldItemIndex:b,newItemIndex:x}={})=>{let p=o[b];o.splice(b,1),o.splice(x,0,p)};return{modelValue:n,dataSource:o,moveUpButtonShow:l,moveDownButtonShow:i,createItem:a,addNewItem:d,moveItem:f,moveItemUp:b=>{if(b<=0){ge.alert("选项的位置需要在第一个之后",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b-1;f({oldItemIndex:b,newItemIndex:x})},moveItemDown:b=>{if(b>=o.length-1){ge.alert("选项的位置需要在最后一个选项之前",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b+1;f({oldItemIndex:b,newItemIndex:x})},removeItem:b=>{if(o.length<=1){ge.alert("最少1项,无法删除",{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"});return}let x=o[b],p="是否删除";x.label&&(p+=`【${x.label}】`),ge.confirm(`${p}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(b,1)})}}},D0=r=>(e.pushScopeId("data-v-85f8a22e"),r=r(),e.popScopeId(),r),BD={class:"data-source-config-container"},RD={class:"data-source-operate"},$D={class:"data-source-content"},LD={class:"data-source-item_main"},PD={class:"data-source-item_row"},ED=D0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"选项:",-1)),ND={class:"data-source-item_row-content"},MD={class:"data-source-item_row"},DD=D0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"值:",-1)),QD={class:"data-source-item_row-content"},WD={class:"data-source-item_operate"},UD=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,dataSource:a,moveUpButtonShow:d,moveDownButtonShow:f,addNewItem:c,moveItemUp:m,moveItemDown:h,removeItem:b}=VD(l,o);return e.watch(()=>l.modelValue,(x,p)=>{let O=l.modelValue?l.modelValue:[];a.splice(0,a.length,...O)},{immediate:!0,deep:!0}),e.watch(a,(x,p)=>{i.value=a},{deep:!0}),t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",BD,[e.createElementVNode("div",RD,[e.createVNode(O,{type:"primary",size:"small",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("新增选项")]),_:1},8,["onClick"])]),e.createElementVNode("div",$D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(s,S)=>(e.openBlock(),e.createElementBlock("div",{class:"data-source-item",key:S},[e.createElementVNode("div",LD,[e.createElementVNode("div",PD,[ED,e.createElementVNode("div",ND,[e.createVNode(C,{modelValue:s.label,"onUpdate:modelValue":u=>s.label=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",MD,[DD,e.createElementVNode("div",QD,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])])]),e.createElementVNode("div",WD,[e.createVNode(O,{type:"warning",size:"small",plain:"",onClick:u=>e.unref(b)(S)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(m)(S)},{default:e.withCtx(()=>[e.createTextVNode("上移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(d)(S)]]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(h)(S)},{default:e.withCtx(()=>[e.createTextVNode("下移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(f)(S)]])])]))),128))])])}}},[["__scopeId","data-v-85f8a22e"]]),ZD=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"请选择",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据源",key:"dataSource",default:[],fieldType:"prop"},{label:"标签",key:"label",default:"选择器:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],dataSource:[{required:!0,message:"请添加数据源",trigger:"change"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{let y=A.indexOf(w)>=0;if(y&&w=="dataSource"){l[w]=q(r.value.props[w]);return}if(y){l[w]=r.value.props[w];return}l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{w=="dataSource"?A[w]=q(l[w]):A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},Nn=r=>(e.pushScopeId("data-v-8034818f"),r=r(),e.popScopeId(),r),zD={class:"component-config-container select-component-config-container"},HD={class:"component-config-header"},jD=Nn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"选择器")],-1)),FD=Nn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),XD=[Nn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],qD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),YD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),GD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),KD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),JD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),vD=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=ZD(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(S,u)=>{a()},{deep:!0}),e.watch(h,(S,u)=>{(S&&!u||S.id!=u.id)&&i()},{immediate:!0,deep:!0});const p=S=>{if(S=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(S=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1},{fieldArr:C}=e.inject("printDesigner"),s=()=>{C.value.set(o.id,o.field)};return t({}),(S,u)=>{const T=e.resolveComponent("el-button"),A=e.resolveComponent("el-dropdown-item"),V=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),I=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",zD,[e.createElementVNode("div",HD,[jD,e.createVNode(g,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(A,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(A,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(T,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),FD]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},XD)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[qD,e.createVNode(w,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).id,"onUpdate:modelValue":u[0]||(u[0]=_=>e.unref(o).id=_),disabled:""},null,8,["modelValue"])]),_:1}),YD,e.createVNode(w,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).field,"onUpdate:modelValue":u[1]||(u[1]=_=>e.unref(o).field=_),placeholder:"",clearable:"",onChange:s},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":u[2]||(u[2]=_=>e.unref(o).defaultValue=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":u[3]||(u[3]=_=>e.unref(o).placeholder=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).size,"onUpdate:modelValue":u[4]||(u[4]=_=>e.unref(o).size=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(w,{label:"数据源配置",prop:"dataSource","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(UD,{modelValue:e.unref(o).dataSource,"onUpdate:modelValue":u[5]||(u[5]=_=>e.unref(o).dataSource=_)},null,8,["modelValue"])]),_:1}),GD,e.createVNode(w,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).label,"onUpdate:modelValue":u[6]||(u[6]=_=>e.unref(o).label=_),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":u[7]||(u[7]=_=>e.unref(o).labelWidth=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[8]||(u[8]=_=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":u[9]||(u[9]=_=>e.unref(o).labelPosition=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":u[10]||(u[10]=_=>e.unref(o).formItemLabel_marginTop=_),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":u[11]||(u[11]=_=>e.unref(o).formItemLabel_marginBottom=_),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":u[12]||(u[12]=_=>e.unref(o).formItemLabel_marginLeft=_),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":u[13]||(u[13]=_=>e.unref(o).formItemLabel_marginRight=_),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":u[14]||(u[14]=_=>e.unref(o).formItemLabel_paddingTop=_),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":u[15]||(u[15]=_=>e.unref(o).formItemLabel_paddingBottom=_),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":u[16]||(u[16]=_=>e.unref(o).formItemLabel_paddingLeft=_),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":u[17]||(u[17]=_=>e.unref(o).formItemLabel_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":u[18]||(u[18]=_=>e.unref(o).formItemLabel_borderStyle=_),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":u[19]||(u[19]=_=>e.unref(o).formItemLabel_borderWidth=_),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":u[20]||(u[20]=_=>e.unref(o).formItemLabel_borderColor=_),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":u[21]||(u[21]=_=>e.unref(o).formItemLabel_borderTopStyle=_),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":u[22]||(u[22]=_=>e.unref(o).formItemLabel_borderTopWidth=_),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":u[23]||(u[23]=_=>e.unref(o).formItemLabel_borderTopColor=_),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":u[24]||(u[24]=_=>e.unref(o).formItemLabel_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":u[25]||(u[25]=_=>e.unref(o).formItemLabel_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":u[26]||(u[26]=_=>e.unref(o).formItemLabel_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":u[27]||(u[27]=_=>e.unref(o).formItemLabel_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":u[28]||(u[28]=_=>e.unref(o).formItemLabel_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":u[29]||(u[29]=_=>e.unref(o).formItemLabel_borderLeftColor=_),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":u[30]||(u[30]=_=>e.unref(o).formItemLabel_borderRightStyle=_),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":u[31]||(u[31]=_=>e.unref(o).formItemLabel_borderRightWidth=_),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":u[32]||(u[32]=_=>e.unref(o).formItemLabel_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":u[33]||(u[33]=_=>e.unref(o).formItemLabel_fontSize=_),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":u[34]||(u[34]=_=>e.unref(o).formItemLabel_fontWeight=_),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":u[35]||(u[35]=_=>e.unref(o).formItemLabel_textDecoration=_),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":u[36]||(u[36]=_=>e.unref(o).formItemLabel_textAlign=_),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":u[37]||(u[37]=_=>e.unref(o).formItemLabel_lineHeight=_),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":u[38]||(u[38]=_=>e.unref(o).formItemLabel_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),KD,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":u[39]||(u[39]=_=>e.unref(o).formItemMain_marginTop=_),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":u[40]||(u[40]=_=>e.unref(o).formItemMain_marginBottom=_),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":u[41]||(u[41]=_=>e.unref(o).formItemMain_marginLeft=_),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":u[42]||(u[42]=_=>e.unref(o).formItemMain_marginRight=_),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":u[43]||(u[43]=_=>e.unref(o).formItemMain_paddingTop=_),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":u[44]||(u[44]=_=>e.unref(o).formItemMain_paddingBottom=_),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":u[45]||(u[45]=_=>e.unref(o).formItemMain_paddingLeft=_),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":u[46]||(u[46]=_=>e.unref(o).formItemMain_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":u[47]||(u[47]=_=>e.unref(o).formItemMain_borderStyle=_),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":u[48]||(u[48]=_=>e.unref(o).formItemMain_borderWidth=_),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":u[49]||(u[49]=_=>e.unref(o).formItemMain_borderColor=_),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":u[50]||(u[50]=_=>e.unref(o).formItemMain_borderTopStyle=_),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":u[51]||(u[51]=_=>e.unref(o).formItemMain_borderTopWidth=_),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":u[52]||(u[52]=_=>e.unref(o).formItemMain_borderTopColor=_),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":u[53]||(u[53]=_=>e.unref(o).formItemMain_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":u[54]||(u[54]=_=>e.unref(o).formItemMain_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":u[55]||(u[55]=_=>e.unref(o).formItemMain_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":u[56]||(u[56]=_=>e.unref(o).formItemMain_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":u[57]||(u[57]=_=>e.unref(o).formItemMain_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":u[58]||(u[58]=_=>e.unref(o).formItemMain_borderLeftColor=_),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":u[59]||(u[59]=_=>e.unref(o).formItemMain_borderRightStyle=_),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":u[60]||(u[60]=_=>e.unref(o).formItemMain_borderRightWidth=_),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":u[61]||(u[61]=_=>e.unref(o).formItemMain_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":u[62]||(u[62]=_=>e.unref(o).formItemMain_fontSize=_),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":u[63]||(u[63]=_=>e.unref(o).formItemMain_fontWeight=_),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":u[64]||(u[64]=_=>e.unref(o).formItemMain_textDecoration=_),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":u[65]||(u[65]=_=>e.unref(o).formItemMain_textAlign=_),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":u[66]||(u[66]=_=>e.unref(o).formItemMain_lineHeight=_),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":u[67]||(u[67]=_=>e.unref(o).formItemMain_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),JD,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":u[68]||(u[68]=_=>e.unref(o).formItem_marginTop=_),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":u[69]||(u[69]=_=>e.unref(o).formItem_marginBottom=_),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":u[70]||(u[70]=_=>e.unref(o).formItem_marginLeft=_),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":u[71]||(u[71]=_=>e.unref(o).formItem_marginRight=_),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":u[72]||(u[72]=_=>e.unref(o).formItem_paddingTop=_),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":u[73]||(u[73]=_=>e.unref(o).formItem_paddingBottom=_),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":u[74]||(u[74]=_=>e.unref(o).formItem_paddingLeft=_),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":u[75]||(u[75]=_=>e.unref(o).formItem_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":u[76]||(u[76]=_=>e.unref(o).formItem_borderStyle=_),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":u[77]||(u[77]=_=>e.unref(o).formItem_borderWidth=_),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":u[78]||(u[78]=_=>e.unref(o).formItem_borderColor=_),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":u[79]||(u[79]=_=>e.unref(o).formItem_borderTopStyle=_),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":u[80]||(u[80]=_=>e.unref(o).formItem_borderTopWidth=_),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":u[81]||(u[81]=_=>e.unref(o).formItem_borderTopColor=_),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":u[82]||(u[82]=_=>e.unref(o).formItem_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":u[83]||(u[83]=_=>e.unref(o).formItem_borderBottomWidth=_),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":u[84]||(u[84]=_=>e.unref(o).formItem_borderBottomColor=_),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":u[85]||(u[85]=_=>e.unref(o).formItem_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":u[86]||(u[86]=_=>e.unref(o).formItem_borderLeftWidth=_),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":u[87]||(u[87]=_=>e.unref(o).formItem_borderLeftColor=_),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":u[88]||(u[88]=_=>e.unref(o).formItem_borderRightStyle=_),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":u[89]||(u[89]=_=>e.unref(o).formItem_borderRightWidth=_),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":u[90]||(u[90]=_=>e.unref(o).formItem_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(w,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":u[91]||(u[91]=_=>e.unref(o).formItem_width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[92]||(u[92]=_=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":u[93]||(u[93]=_=>e.unref(o).formItem_height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[94]||(u[94]=_=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-8034818f"]]),e3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据格式",key:"valueFormat",default:"YYYY-MM-DD HH:mm:ss",fieldType:"formComponentProp"},{label:"是否隐藏时间图标",key:"hideTimeIcon",default:!1,fieldType:"prop"},{label:"标签",key:"label",default:"日期时间:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{A.indexOf(w)>=0?l[w]=r.value.props[w]:l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},Mn=r=>(e.pushScopeId("data-v-85bb68d8"),r=r(),e.popScopeId(),r),t3={class:"component-config-container datetime-component-config-container"},o3={class:"component-config-header"},n3=Mn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"输入框")],-1)),r3=Mn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),l3=[Mn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],i3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),a3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),s3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),d3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),f3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),c3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=e3(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-option"),y=e.resolveComponent("el-select"),$=e.resolveComponent("el-switch"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",t3,[e.createElementVNode("div",o3,[n3,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),r3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},l3)]),e.createVNode(_,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[i3,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=k=>e.unref(o).id=k),disabled:""},null,8,["modelValue"])]),_:1}),a3,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=k=>e.unref(o).field=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(o).placeholder=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[3]||(s[3]=k=>e.unref(o).defaultValue=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[4]||(s[4]=k=>e.unref(o).size=k)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(k,L)=>(e.openBlock(),e.createBlock(I,{value:k.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"数据格式",prop:"format"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).valueFormat,"onUpdate:modelValue":s[5]||(s[5]=k=>e.unref(o).valueFormat=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).datetimeFormat,(k,L)=>(e.openBlock(),e.createBlock(R,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表单是否隐藏时间图标",prop:"hideTimeIcon ","label-width":"140px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).hideTimeIcon,"onUpdate:modelValue":s[6]||(s[6]=k=>e.unref(o).hideTimeIcon=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),s3,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[7]||(s[7]=k=>e.unref(o).label=k),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[8]||(s[8]=k=>e.unref(o).labelWidth=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[9]||(s[9]=k=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[10]||(s[10]=k=>e.unref(o).labelPosition=k)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(k,L)=>(e.openBlock(),e.createBlock(I,{value:k.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[11]||(s[11]=k=>e.unref(o).formItemLabel_marginTop=k),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[12]||(s[12]=k=>e.unref(o).formItemLabel_marginBottom=k),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[13]||(s[13]=k=>e.unref(o).formItemLabel_marginLeft=k),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[14]||(s[14]=k=>e.unref(o).formItemLabel_marginRight=k),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[15]||(s[15]=k=>e.unref(o).formItemLabel_paddingTop=k),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[16]||(s[16]=k=>e.unref(o).formItemLabel_paddingBottom=k),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[17]||(s[17]=k=>e.unref(o).formItemLabel_paddingLeft=k),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[18]||(s[18]=k=>e.unref(o).formItemLabel_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[19]||(s[19]=k=>e.unref(o).formItemLabel_borderStyle=k),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[20]||(s[20]=k=>e.unref(o).formItemLabel_borderWidth=k),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[21]||(s[21]=k=>e.unref(o).formItemLabel_borderColor=k),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[22]||(s[22]=k=>e.unref(o).formItemLabel_borderTopStyle=k),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[23]||(s[23]=k=>e.unref(o).formItemLabel_borderTopWidth=k),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[24]||(s[24]=k=>e.unref(o).formItemLabel_borderTopColor=k),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[25]||(s[25]=k=>e.unref(o).formItemLabel_borderBottomStyle=k),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[26]||(s[26]=k=>e.unref(o).formItemLabel_borderBottomWidth=k),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[27]||(s[27]=k=>e.unref(o).formItemLabel_borderBottomColor=k),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[28]||(s[28]=k=>e.unref(o).formItemLabel_borderLeftStyle=k),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[29]||(s[29]=k=>e.unref(o).formItemLabel_borderLeftWidth=k),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[30]||(s[30]=k=>e.unref(o).formItemLabel_borderLeftColor=k),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[31]||(s[31]=k=>e.unref(o).formItemLabel_borderRightStyle=k),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[32]||(s[32]=k=>e.unref(o).formItemLabel_borderRightWidth=k),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[33]||(s[33]=k=>e.unref(o).formItemLabel_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[34]||(s[34]=k=>e.unref(o).formItemLabel_fontSize=k),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[35]||(s[35]=k=>e.unref(o).formItemLabel_fontWeight=k),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[36]||(s[36]=k=>e.unref(o).formItemLabel_textDecoration=k),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[37]||(s[37]=k=>e.unref(o).formItemLabel_textAlign=k),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[38]||(s[38]=k=>e.unref(o).formItemLabel_lineHeight=k),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[39]||(s[39]=k=>e.unref(o).formItemLabel_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),d3,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[40]||(s[40]=k=>e.unref(o).formItemMain_marginTop=k),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[41]||(s[41]=k=>e.unref(o).formItemMain_marginBottom=k),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[42]||(s[42]=k=>e.unref(o).formItemMain_marginLeft=k),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[43]||(s[43]=k=>e.unref(o).formItemMain_marginRight=k),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[44]||(s[44]=k=>e.unref(o).formItemMain_paddingTop=k),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[45]||(s[45]=k=>e.unref(o).formItemMain_paddingBottom=k),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[46]||(s[46]=k=>e.unref(o).formItemMain_paddingLeft=k),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[47]||(s[47]=k=>e.unref(o).formItemMain_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[48]||(s[48]=k=>e.unref(o).formItemMain_borderStyle=k),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[49]||(s[49]=k=>e.unref(o).formItemMain_borderWidth=k),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[50]||(s[50]=k=>e.unref(o).formItemMain_borderColor=k),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[51]||(s[51]=k=>e.unref(o).formItemMain_borderTopStyle=k),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[52]||(s[52]=k=>e.unref(o).formItemMain_borderTopWidth=k),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[53]||(s[53]=k=>e.unref(o).formItemMain_borderTopColor=k),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[54]||(s[54]=k=>e.unref(o).formItemMain_borderBottomStyle=k),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[55]||(s[55]=k=>e.unref(o).formItemMain_borderBottomWidth=k),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[56]||(s[56]=k=>e.unref(o).formItemMain_borderBottomColor=k),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[57]||(s[57]=k=>e.unref(o).formItemMain_borderLeftStyle=k),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[58]||(s[58]=k=>e.unref(o).formItemMain_borderLeftWidth=k),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[59]||(s[59]=k=>e.unref(o).formItemMain_borderLeftColor=k),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[60]||(s[60]=k=>e.unref(o).formItemMain_borderRightStyle=k),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[61]||(s[61]=k=>e.unref(o).formItemMain_borderRightWidth=k),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[62]||(s[62]=k=>e.unref(o).formItemMain_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[63]||(s[63]=k=>e.unref(o).formItemMain_fontSize=k),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[64]||(s[64]=k=>e.unref(o).formItemMain_fontWeight=k),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[65]||(s[65]=k=>e.unref(o).formItemMain_textDecoration=k),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[66]||(s[66]=k=>e.unref(o).formItemMain_textAlign=k),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[67]||(s[67]=k=>e.unref(o).formItemMain_lineHeight=k),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[68]||(s[68]=k=>e.unref(o).formItemMain_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),f3,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[69]||(s[69]=k=>e.unref(o).formItem_marginTop=k),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[70]||(s[70]=k=>e.unref(o).formItem_marginBottom=k),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[71]||(s[71]=k=>e.unref(o).formItem_marginLeft=k),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[72]||(s[72]=k=>e.unref(o).formItem_marginRight=k),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[73]||(s[73]=k=>e.unref(o).formItem_paddingTop=k),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[74]||(s[74]=k=>e.unref(o).formItem_paddingBottom=k),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[75]||(s[75]=k=>e.unref(o).formItem_paddingLeft=k),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[76]||(s[76]=k=>e.unref(o).formItem_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[77]||(s[77]=k=>e.unref(o).formItem_borderStyle=k),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[78]||(s[78]=k=>e.unref(o).formItem_borderWidth=k),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[79]||(s[79]=k=>e.unref(o).formItem_borderColor=k),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[80]||(s[80]=k=>e.unref(o).formItem_borderTopStyle=k),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[81]||(s[81]=k=>e.unref(o).formItem_borderTopWidth=k),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[82]||(s[82]=k=>e.unref(o).formItem_borderTopColor=k),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[83]||(s[83]=k=>e.unref(o).formItem_borderBottomStyle=k),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[84]||(s[84]=k=>e.unref(o).formItem_borderBottomWidth=k),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[85]||(s[85]=k=>e.unref(o).formItem_borderBottomColor=k),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[86]||(s[86]=k=>e.unref(o).formItem_borderLeftStyle=k),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[87]||(s[87]=k=>e.unref(o).formItem_borderLeftWidth=k),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[88]||(s[88]=k=>e.unref(o).formItem_borderLeftColor=k),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[89]||(s[89]=k=>e.unref(o).formItem_borderRightStyle=k),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[90]||(s[90]=k=>e.unref(o).formItem_borderRightWidth=k),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[91]||(s[91]=k=>e.unref(o).formItem_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[92]||(s[92]=k=>e.unref(o).formItem_width=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=k=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[94]||(s[94]=k=>e.unref(o).formItem_height=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[95]||(s[95]=k=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-85bb68d8"]]),p3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"栅格布局",fieldType:"base"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},hi=r=>(e.pushScopeId("data-v-05c220d3"),r=r(),e.popScopeId(),r),m3={class:"component-config-container grid-component-config-container"},h3={class:"component-config-header"},u3=hi(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"栅格布局")],-1)),g3=hi(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),b3=[hi(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],y3=hi(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),x3=hi(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),C3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=p3(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",m3,[e.createElementVNode("div",h3,[u3,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),g3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},b3)]),e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[y3,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(o).id=g),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(o).title=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),x3,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[2]||(p[2]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[3]||(p[3]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[4]||(p[4]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[5]||(p[5]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[6]||(p[6]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[7]||(p[7]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[8]||(p[8]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[9]||(p[9]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[10]||(p[10]=g=>e.unref(o).borderStyle=g),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[11]||(p[11]=g=>e.unref(o).borderWidth=g),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[12]||(p[12]=g=>e.unref(o).borderColor=g),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[13]||(p[13]=g=>e.unref(o).borderTopStyle=g),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[14]||(p[14]=g=>e.unref(o).borderTopWidth=g),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[15]||(p[15]=g=>e.unref(o).borderTopColor=g),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[16]||(p[16]=g=>e.unref(o).borderBottomStyle=g),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[17]||(p[17]=g=>e.unref(o).borderBottomWidth=g),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[18]||(p[18]=g=>e.unref(o).borderBottomColor=g),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[19]||(p[19]=g=>e.unref(o).borderLeftStyle=g),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[20]||(p[20]=g=>e.unref(o).borderLeftWidth=g),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[21]||(p[21]=g=>e.unref(o).borderLeftColor=g),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[22]||(p[22]=g=>e.unref(o).borderRightStyle=g),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[23]||(p[23]=g=>e.unref(o).borderRightWidth=g),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[24]||(p[24]=g=>e.unref(o).borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[26]||(p[26]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[25]||(p[25]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-05c220d3"]]),O3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"栅格布局格子",fieldType:"base"},{label:"栅格占据的列数",key:"span",default:12,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Kr=r=>(e.pushScopeId("data-v-6354b92c"),r=r(),e.popScopeId(),r),w3={class:"component-config-container grid-item-config-container"},_3={class:"component-config-header"},S3=Kr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"栅格布局格子")],-1)),k3=Kr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),T3=[Kr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],I3=Kr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),A3=Kr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),V3=Kr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),B3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=O3(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-slider"),g=e.resolveComponent("el-color-picker"),I=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",w3,[e.createElementVNode("div",_3,[S3,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),k3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},T3)]),e.createVNode(I,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[I3,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=w=>e.unref(o).id=w),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=w=>e.unref(o).title=w),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),A3,e.createVNode(T,{label:"栅格占据的列数",prop:"span"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).span,"onUpdate:modelValue":p[2]||(p[2]=w=>e.unref(o).span=w),min:1,max:24,"controls-position":"right"},null,8,["modelValue"]),e.createVNode(V,{modelValue:e.unref(o).span,"onUpdate:modelValue":p[3]||(p[3]=w=>e.unref(o).span=w),step:1,max:24,"show-stops":""},null,8,["modelValue"])]),_:1}),V3,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[4]||(p[4]=w=>e.unref(o).marginTop=w),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[5]||(p[5]=w=>e.unref(o).marginBottom=w),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[6]||(p[6]=w=>e.unref(o).marginLeft=w),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[7]||(p[7]=w=>e.unref(o).marginRight=w),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[8]||(p[8]=w=>e.unref(o).paddingTop=w),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[9]||(p[9]=w=>e.unref(o).paddingBottom=w),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[10]||(p[10]=w=>e.unref(o).paddingLeft=w),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[11]||(p[11]=w=>e.unref(o).paddingRight=w)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[12]||(p[12]=w=>e.unref(o).borderStyle=w),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[13]||(p[13]=w=>e.unref(o).borderWidth=w),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[14]||(p[14]=w=>e.unref(o).borderColor=w),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[15]||(p[15]=w=>e.unref(o).borderTopStyle=w),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[16]||(p[16]=w=>e.unref(o).borderTopWidth=w),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[17]||(p[17]=w=>e.unref(o).borderTopColor=w),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[18]||(p[18]=w=>e.unref(o).borderBottomStyle=w),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[19]||(p[19]=w=>e.unref(o).borderBottomWidth=w),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[20]||(p[20]=w=>e.unref(o).borderBottomColor=w),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[21]||(p[21]=w=>e.unref(o).borderLeftStyle=w),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[22]||(p[22]=w=>e.unref(o).borderLeftWidth=w),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[23]||(p[23]=w=>e.unref(o).borderLeftColor=w),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[24]||(p[24]=w=>e.unref(o).borderRightStyle=w),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[25]||(p[25]=w=>e.unref(o).borderRightWidth=w),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[26]||(p[26]=w=>e.unref(o).borderRightColor=w),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[28]||(p[28]=w=>e.unref(o).backgroundColor=w),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[27]||(p[27]=w=>e.unref(o).backgroundColor=w),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-6354b92c"]]),R3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"表格布局",fieldType:"base"},{label:"行数",key:"row",default:6,fieldType:"prop"},{label:"列数",key:"col",default:4,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"solid",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"1px",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"#090909",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"solid",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"1px",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"#090909",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"单元格-最小高度",key:"cell_container_minHeight",default:"20px",fieldType:"style"},{label:"单元格-外边距-上",key:"cell_marginTop",default:"",fieldType:"style"},{label:"单元格-外边距-下",key:"cell_marginBottom",default:"",fieldType:"style"},{label:"单元格-外边距-左",key:"cell_marginLeft",default:"",fieldType:"style"},{label:"单元格-外边距-右",key:"cell_marginRight",default:"",fieldType:"style"},{label:"单元格-内边距-上",key:"cell_paddingTop",default:"2px",fieldType:"style"},{label:"单元格-内边距-下",key:"cell_paddingBottom",default:"2px",fieldType:"style"},{label:"单元格-内边距-左",key:"cell_paddingLeft",default:"2px",fieldType:"style"},{label:"单元格-内边距-右",key:"cell_paddingRight",default:"2px",fieldType:"style"},{label:"单元格-边框样式",key:"cell_borderStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度",key:"cell_borderWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色",key:"cell_borderColor",default:"",fieldType:"style"},{label:"单元格-边框样式-上",key:"cell_borderTopStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-上",key:"cell_borderTopWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-上",key:"cell_borderTopColor",default:"",fieldType:"style"},{label:"单元格-边框样式-下",key:"cell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-下",key:"cell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-下",key:"cell_borderBottomColor",default:"#090909",fieldType:"style"},{label:"单元格-边框样式-左",key:"cell_borderLeftStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-左",key:"cell_borderLeftWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-左",key:"cell_borderLeftColor",default:"",fieldType:"style"},{label:"单元格-边框样式-右",key:"cell_borderRightStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-右",key:"cell_borderRightWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-右",key:"cell_borderRightColor",default:"#090909",fieldType:"style"},{label:"单元格-字体",key:"cell_fontFamily",default:"",fieldType:"style"},{label:"单元格-字体大小",key:"cell_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"cell_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"cell_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"cell_textAlign",default:"left",fieldType:"style"},{label:"单元格-字体行高",key:"cell_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"cell_letterSpacing",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},fr=r=>(e.pushScopeId("data-v-c79eb0bc"),r=r(),e.popScopeId(),r),$3={class:"component-config-container table-layout-component-config-container"},L3={class:"component-config-header"},P3=fr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格布局")],-1)),E3=fr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),N3=[fr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],M3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),D3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),Q3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),W3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"单元格样式配置")],-1)),U3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=R3(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",$3,[e.createElementVNode("div",L3,[P3,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),E3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},N3)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[M3,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),D3,e.createVNode(g,{label:"行数",prop:"row","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).row,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).row=y),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"列数",prop:"col","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).col,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).col=y),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),Q3,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[4]||(s[4]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[5]||(s[5]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[6]||(s[6]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[7]||(s[7]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[8]||(s[8]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[9]||(s[9]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[10]||(s[10]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[11]||(s[11]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[12]||(s[12]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[13]||(s[13]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[14]||(s[14]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[15]||(s[15]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[16]||(s[16]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[17]||(s[17]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[18]||(s[18]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[19]||(s[19]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[20]||(s[20]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[21]||(s[21]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[22]||(s[22]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[23]||(s[23]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[24]||(s[24]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[25]||(s[25]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[26]||(s[26]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[28]||(s[28]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[27]||(s[27]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),W3,e.createVNode(g,{prop:"cell_container_minHeight",label:"最小高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).cell_container_minHeight,"onUpdate:modelValue":s[29]||(s[29]=y=>e.unref(o).cell_container_minHeight=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[30]||(s[30]=y=>e.unref(c)("cell_container_minHeight"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).cell_marginTop,"onUpdate:marginTop":s[31]||(s[31]=y=>e.unref(o).cell_marginTop=y),marginBottom:e.unref(o).cell_marginBottom,"onUpdate:marginBottom":s[32]||(s[32]=y=>e.unref(o).cell_marginBottom=y),marginLeft:e.unref(o).cell_marginLeft,"onUpdate:marginLeft":s[33]||(s[33]=y=>e.unref(o).cell_marginLeft=y),marginRight:e.unref(o).cell_marginRight,"onUpdate:marginRight":s[34]||(s[34]=y=>e.unref(o).cell_marginRight=y),paddingTop:e.unref(o).cell_paddingTop,"onUpdate:paddingTop":s[35]||(s[35]=y=>e.unref(o).cell_paddingTop=y),paddingBottom:e.unref(o).cell_paddingBottom,"onUpdate:paddingBottom":s[36]||(s[36]=y=>e.unref(o).cell_paddingBottom=y),paddingLeft:e.unref(o).cell_paddingLeft,"onUpdate:paddingLeft":s[37]||(s[37]=y=>e.unref(o).cell_paddingLeft=y),paddingRight:e.unref(o).cell_paddingRight,"onUpdate:paddingRight":s[38]||(s[38]=y=>e.unref(o).cell_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).cell_borderStyle,"onUpdate:borderStyle":s[39]||(s[39]=y=>e.unref(o).cell_borderStyle=y),borderWidth:e.unref(o).cell_borderWidth,"onUpdate:borderWidth":s[40]||(s[40]=y=>e.unref(o).cell_borderWidth=y),borderColor:e.unref(o).cell_borderColor,"onUpdate:borderColor":s[41]||(s[41]=y=>e.unref(o).cell_borderColor=y),borderTopStyle:e.unref(o).cell_borderTopStyle,"onUpdate:borderTopStyle":s[42]||(s[42]=y=>e.unref(o).cell_borderTopStyle=y),borderTopWidth:e.unref(o).cell_borderTopWidth,"onUpdate:borderTopWidth":s[43]||(s[43]=y=>e.unref(o).cell_borderTopWidth=y),borderTopColor:e.unref(o).cell_borderTopColor,"onUpdate:borderTopColor":s[44]||(s[44]=y=>e.unref(o).cell_borderTopColor=y),borderBottomStyle:e.unref(o).cell_borderBottomStyle,"onUpdate:borderBottomStyle":s[45]||(s[45]=y=>e.unref(o).cell_borderBottomStyle=y),borderBottomWidth:e.unref(o).cell_borderBottomWidth,"onUpdate:borderBottomWidth":s[46]||(s[46]=y=>e.unref(o).cell_borderBottomWidth=y),borderBottomColor:e.unref(o).cell_borderBottomColor,"onUpdate:borderBottomColor":s[47]||(s[47]=y=>e.unref(o).cell_borderBottomColor=y),borderLeftStyle:e.unref(o).cell_borderLeftStyle,"onUpdate:borderLeftStyle":s[48]||(s[48]=y=>e.unref(o).cell_borderLeftStyle=y),borderLeftWidth:e.unref(o).cell_borderLeftWidth,"onUpdate:borderLeftWidth":s[49]||(s[49]=y=>e.unref(o).cell_borderLeftWidth=y),borderLeftColor:e.unref(o).cell_borderLeftColor,"onUpdate:borderLeftColor":s[50]||(s[50]=y=>e.unref(o).cell_borderLeftColor=y),borderRightStyle:e.unref(o).cell_borderRightStyle,"onUpdate:borderRightStyle":s[51]||(s[51]=y=>e.unref(o).cell_borderRightStyle=y),borderRightWidth:e.unref(o).cell_borderRightWidth,"onUpdate:borderRightWidth":s[52]||(s[52]=y=>e.unref(o).cell_borderRightWidth=y),borderRightColor:e.unref(o).cell_borderRightColor,"onUpdate:borderRightColor":s[53]||(s[53]=y=>e.unref(o).cell_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":s[54]||(s[54]=y=>e.unref(o).cell_fontSize=y),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":s[55]||(s[55]=y=>e.unref(o).cell_fontWeight=y),fontFamily:e.unref(o).cell_fontFamily,"onUpdate:fontFamily":s[56]||(s[56]=y=>e.unref(o).cell_fontFamily=y),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":s[57]||(s[57]=y=>e.unref(o).cell_textDecoration=y),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":s[58]||(s[58]=y=>e.unref(o).cell_textAlign=y),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":s[59]||(s[59]=y=>e.unref(o).cell_lineHeight=y),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":s[60]||(s[60]=y=>e.unref(o).cell_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","fontFamily","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-c79eb0bc"]]),Z3=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(l){t("update:modelValue",l)}}),o=e.computed(()=>l=>l==n.value?"slash-direction-item--active":"");return{modelValue:n,itemClass:o}},Q0=r=>(e.pushScopeId("data-v-94ec41ef"),r=r(),e.popScopeId(),r),z3={class:"slash-direction-config-container"},H3=[Q0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],j3=[Q0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],F3=G({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,itemClass:a}=Z3(l,o),d=f=>{i.value=f};return t({}),(f,c)=>(e.openBlock(),e.createElementBlock("div",z3,[e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--top-left ${e.unref(a)("top-left")}`),onClick:c[0]||(c[0]=m=>d("top-left"))},H3,2),e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--bottom-left ${e.unref(a)("bottom-left")}`),onClick:c[1]||(c[1]=m=>d("bottom-left"))},j3,2)]))}},[["__scopeId","data-v-94ec41ef"]]),X3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"flex布局",key:"container_custom_isFLex",default:!1},{label:"flex布局方向",key:"container_flexFlow",default:""},{label:"flex布局横向对齐方式",key:"container_justifyContent",default:""},{label:"flex布局竖向对齐方式",key:"container_alignItems",default:""},{label:"flex布局是否换行",key:"container_flexWrap",default:""},{label:"水平居中",key:"container_custom_centerHorizontally",default:!1},{label:"垂直居中",key:"container_custom_centerVertical",default:!1},{label:"斜线",key:"container_custom_slash",default:!1},{label:"斜线方向",key:"container_custom_slashDirection",default:"top-left"},{label:"斜线文本(左)",key:"container_custom_slashTextLeft",default:""},{label:"斜线文本(右)",key:"container_custom_slashTextRight",default:""},{label:"格子宽度",key:"width",default:""},{label:"格子高度",key:"height",default:""},{label:"外边距-上",key:"marginTop",default:""},{label:"外边距-下",key:"marginBottom",default:""},{label:"外边距-左",key:"marginLeft",default:""},{label:"外边距-右",key:"marginRight",default:""},{label:"内边距-上",key:"paddingTop",default:""},{label:"内边距-下",key:"paddingBottom",default:""},{label:"内边距-左",key:"paddingLeft",default:""},{label:"内边距-右",key:"paddingRight",default:""},{label:"边框样式",key:"borderStyle",default:""},{label:"边框宽度",key:"borderWidth",default:""},{label:"边框颜色",key:"borderColor",default:""},{label:"边框样式-上",key:"borderTopStyle",default:""},{label:"边框宽度-上",key:"borderTopWidth",default:""},{label:"边框颜色-上",key:"borderTopColor",default:""},{label:"边框样式-下",key:"borderBottomStyle",default:""},{label:"边框宽度-下",key:"borderBottomWidth",default:""},{label:"边框颜色-下",key:"borderBottomColor",default:""},{label:"边框样式-左",key:"borderLeftStyle",default:""},{label:"边框宽度-左",key:"borderLeftWidth",default:""},{label:"边框颜色-左",key:"borderLeftColor",default:""},{label:"边框样式-右",key:"borderRightStyle",default:""},{label:"边框宽度-右",key:"borderRightWidth",default:""},{label:"边框颜色-右",key:"borderRightColor",default:""},{label:"背景颜色",key:"backgroundColor",default:""}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({width:[{required:!0,message:"请填写格子宽度",trigger:"blur"}]}),a=Ye(t,h=>{}),d=h=>{ue(l,t,h)};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},setFormDataByActiveSortableComponent:()=>{if(!r.value||r.value&&r.value.type!="tableLayout-item")return;let h=r.value.tableLayoutDetails;if(!h.styleRules)return;let b=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex}),x=h.styleRules[b];d(x)},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let h=r.value.tableLayoutDetails,b=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex});h.styleRules||(h.styleRules={}),h.styleRules[b]=q(l)}}},on=r=>(e.pushScopeId("data-v-ed3f9785"),r=r(),e.popScopeId(),r),q3={class:"component-config-container table-layout-component-config-container"},Y3={class:"component-config-header"},G3=on(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格布局格子")],-1)),K3=on(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),J3=[on(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],v3=on(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"容器属性配置")],-1)),eQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"flex布局开启后水平居中、垂直居中将失效",-1)),tQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 1、斜线开启后flex布局、水平居中、垂直居中将失效,格子中的组件不会渲染 ",-1)),oQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"2、斜线开启后必须设置【格子宽度】与【格子高度】",-1)),nQ=on(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),rQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 为保持样式的一致性,未合并布局格子须填写格子宽度 ",-1)),lQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=X3(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.tableLayoutId&&!s.tableLayoutId||C.tableLayoutId&&s.tableLayoutId&&C.tableLayoutId===s.tableLayoutId&&(C.rowIndex!=s.rowIndex||C.colIndex!=s.colIndex))&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-switch"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-option"),w=e.resolveComponent("el-select"),R=e.resolveComponent("el-input"),y=e.resolveComponent("el-color-picker"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",q3,[e.createElementVNode("div",Y3,[G3,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),K3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},J3)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[v3,eQ,e.createVNode(g,{prop:"container_custom_isFLex",label:"flex布局","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_isFLex,"onUpdate:modelValue":s[0]||(s[0]=_=>e.unref(o).container_custom_isFLex=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_flexFlow",label:"flex布局方向","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_flexFlow,"onUpdate:modelValue":s[1]||(s[1]=_=>e.unref(o).container_flexFlow=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssFlexFlow,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_justifyContent",label:"flex布局横向对齐方式","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_justifyContent,"onUpdate:modelValue":s[2]||(s[2]=_=>e.unref(o).container_justifyContent=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssJustifyContent,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_alignItems",label:"flex布局竖向对齐方式","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_alignItems,"onUpdate:modelValue":s[3]||(s[3]=_=>e.unref(o).container_alignItems=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssAlignItems,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_flexWrap",label:"flex布局是否换行","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_flexWrap,"onUpdate:modelValue":s[4]||(s[4]=_=>e.unref(o).container_flexWrap=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssFlexWrap,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_centerHorizontally",label:"水平居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_centerHorizontally,"onUpdate:modelValue":s[5]||(s[5]=_=>e.unref(o).container_custom_centerHorizontally=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_centerVertical",label:"垂直居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_centerVertical,"onUpdate:modelValue":s[6]||(s[6]=_=>e.unref(o).container_custom_centerVertical=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),tQ,oQ,e.createVNode(g,{prop:"container_custom_slash",label:"斜线","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_slash,"onUpdate:modelValue":s[7]||(s[7]=_=>e.unref(o).container_custom_slash=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_slashDirection",label:"斜线方向","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(F3,{modelValue:e.unref(o).container_custom_slashDirection,"onUpdate:modelValue":s[8]||(s[8]=_=>e.unref(o).container_custom_slashDirection=_)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_slashTextLeft",label:"斜线文本(左)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).container_custom_slashTextLeft,"onUpdate:modelValue":s[9]||(s[9]=_=>e.unref(o).container_custom_slashTextLeft=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_slashTextRight",label:"斜线文本(右)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).container_custom_slashTextRight,"onUpdate:modelValue":s[10]||(s[10]=_=>e.unref(o).container_custom_slashTextRight=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),nQ,rQ,e.createVNode(g,{prop:"width",label:"格子宽度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[11]||(s[11]=_=>e.unref(o).width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[12]||(s[12]=_=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{prop:"height",label:"格子高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[13]||(s[13]=_=>e.unref(o).height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[14]||(s[14]=_=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[15]||(s[15]=_=>e.unref(o).marginTop=_),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[16]||(s[16]=_=>e.unref(o).marginBottom=_),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[17]||(s[17]=_=>e.unref(o).marginLeft=_),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[18]||(s[18]=_=>e.unref(o).marginRight=_),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[19]||(s[19]=_=>e.unref(o).paddingTop=_),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[20]||(s[20]=_=>e.unref(o).paddingBottom=_),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[21]||(s[21]=_=>e.unref(o).paddingLeft=_),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[22]||(s[22]=_=>e.unref(o).paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[23]||(s[23]=_=>e.unref(o).borderStyle=_),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[24]||(s[24]=_=>e.unref(o).borderWidth=_),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[25]||(s[25]=_=>e.unref(o).borderColor=_),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[26]||(s[26]=_=>e.unref(o).borderTopStyle=_),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[27]||(s[27]=_=>e.unref(o).borderTopWidth=_),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[28]||(s[28]=_=>e.unref(o).borderTopColor=_),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[29]||(s[29]=_=>e.unref(o).borderBottomStyle=_),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[30]||(s[30]=_=>e.unref(o).borderBottomWidth=_),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[31]||(s[31]=_=>e.unref(o).borderBottomColor=_),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[32]||(s[32]=_=>e.unref(o).borderLeftStyle=_),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[33]||(s[33]=_=>e.unref(o).borderLeftWidth=_),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[34]||(s[34]=_=>e.unref(o).borderLeftColor=_),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[35]||(s[35]=_=>e.unref(o).borderRightStyle=_),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[36]||(s[36]=_=>e.unref(o).borderRightWidth=_),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[37]||(s[37]=_=>e.unref(o).borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{prop:"backgroundColor",label:"背景颜色","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[39]||(s[39]=_=>e.unref(o).backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[38]||(s[38]=_=>e.unref(o).backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":s[40]||(s[40]=_=>e.unref(o).cell_fontSize=_),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":s[41]||(s[41]=_=>e.unref(o).cell_fontWeight=_),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":s[42]||(s[42]=_=>e.unref(o).cell_textDecoration=_),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":s[43]||(s[43]=_=>e.unref(o).cell_textAlign=_),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":s[44]||(s[44]=_=>e.unref(o).cell_lineHeight=_),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":s[45]||(s[45]=_=>e.unref(o).cell_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-ed3f9785"]]),iQ=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Ss=r=>(e.pushScopeId("data-v-816a21bb"),r=r(),e.popScopeId(),r),aQ={class:"component-config-container print-pagination-component-config-container"},sQ={class:"component-config-header"},dQ=Ss(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"打印分页")],-1)),fQ=Ss(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),cQ=[Ss(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],pQ=Ss(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),mQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=iQ(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",aQ,[e.createElementVNode("div",sQ,[dQ,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),fQ]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},cQ)]),e.createVNode(A,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[pQ,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=V=>e.unref(o).id=V),disabled:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-816a21bb"]]),hQ={class:"print-designer_component-config-container"},uQ={key:0,class:"print-designer_component-config-hint"},gQ=G({__name:"index",setup(r,{expose:t}){const{activeSortableComponent:n}=e.inject("printDesigner");return t({}),(o,l)=>{var i,a,d,f,c,m,h,b,x,p,O,C,s,S,u,T,A,V,g,I;return e.openBlock(),e.createElementBlock("div",hQ,[e.unref(n)?((i=e.unref(n))==null?void 0:i.type)=="text"?(e.openBlock(),e.createBlock(D8,{key:1})):((a=e.unref(n))==null?void 0:a.type)=="dynamicText"?(e.openBlock(),e.createBlock(K8,{key:2})):((d=e.unref(n))==null?void 0:d.type)=="table"?(e.openBlock(),e.createBlock(dN,{key:3})):((f=e.unref(n))==null?void 0:f.type)=="table-column"?(e.openBlock(),e.createBlock(ON,{key:4})):((c=e.unref(n))==null?void 0:c.type)=="complexTable"?(e.openBlock(),e.createBlock(e5,{key:5})):((m=e.unref(n))==null?void 0:m.type)=="complexTable-headerItem"?(e.openBlock(),e.createBlock(b5,{key:6})):((h=e.unref(n))==null?void 0:h.type)=="barcode"?(e.openBlock(),e.createBlock(V5,{key:7})):((b=e.unref(n))==null?void 0:b.type)=="qrcode"?(e.openBlock(),e.createBlock(W5,{key:8})):((x=e.unref(n))==null?void 0:x.type)=="image"?(e.openBlock(),e.createBlock(J5,{key:9})):((p=e.unref(n))==null?void 0:p.type)=="input"?(e.openBlock(),e.createBlock(pM,{key:10})):((O=e.unref(n))==null?void 0:O.type)=="textarea"?(e.openBlock(),e.createBlock(kM,{key:11})):((C=e.unref(n))==null?void 0:C.type)=="radio"?(e.openBlock(),e.createBlock(GM,{key:12})):((s=e.unref(n))==null?void 0:s.type)=="checkbox"?(e.openBlock(),e.createBlock(AD,{key:13})):((S=e.unref(n))==null?void 0:S.type)=="select"?(e.openBlock(),e.createBlock(vD,{key:14})):((u=e.unref(n))==null?void 0:u.type)=="datetime"?(e.openBlock(),e.createBlock(c3,{key:15})):((T=e.unref(n))==null?void 0:T.type)=="grid"?(e.openBlock(),e.createBlock(C3,{key:16})):((A=e.unref(n))==null?void 0:A.type)=="grid-item"?(e.openBlock(),e.createBlock(B3,{key:17})):((V=e.unref(n))==null?void 0:V.type)=="tableLayout"?(e.openBlock(),e.createBlock(U3,{key:18})):((g=e.unref(n))==null?void 0:g.type)=="tableLayout-item"?(e.openBlock(),e.createBlock(lQ,{key:19})):((I=e.unref(n))==null?void 0:I.type)=="printPagination"?(e.openBlock(),e.createBlock(mQ,{key:20})):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",uQ,"未选择组件"))])}}},[["__scopeId","data-v-450ac038"]]),bQ=()=>{const{printConfigData:r}=e.inject("printDesigner");let t;const n=[{label:"模板名称",key:"templateTitle",default:"",fieldType:"base"},{label:"模板编码",key:"templateCode",default:"",fieldType:"base"},{label:"纸张尺寸",key:"pageSize",default:"A4",fieldType:"base"},{label:"自定义尺寸-长",key:"customHeight",default:0,fieldType:"base"},{label:"自定义尺寸-宽",key:"customWidth",default:0,fieldType:"base"},{label:"是否横向打印",key:"landscape",default:!1,fieldType:"base"},{label:"预览缩放比例",key:"previewScale",default:1,fieldType:"base"},{label:"打印类型",key:"servePrintType",default:"pdf",fieldType:"base"},{label:"打印机名称",key:"printer",default:"",fieldType:"base"},{label:"是否静默打印",key:"silent",default:!0,fieldType:"base"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"30px",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"30px",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"30px",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"30px",fieldType:"style"},{label:"字体颜色",key:"color",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"14px",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"#fff",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,x=>{}),d=x=>{ue(l,t,x)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let x=[];return n.forEach((p,O)=>{p.fieldType=="base"&&x.push(p.key)}),x},m=()=>{let x=[];return n.forEach((p,O)=>{p.fieldType=="style"&&x.push(p.key)}),x};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getStyleKeys:m,setFormDataByPrintConfig:x=>{if(!x)return!1;let p=c(),O=m(),C=[];p.forEach((s,S)=>{if(s=="customHeight"&&!x[s]){l[s]=0;return}if(s=="customWidth"&&!x[s]){l[s]=0;return}l[s]=x[s]}),x.style&&(C=Object.keys(x.style)),C.forEach((s,S)=>{O.indexOf(s)>=0&&(l[s]=x.style[s])})},syncFormDataToPrintConfigData:()=>{r.value||(r.value={});let x=c(),p=m();x.forEach((C,s)=>{r.value[C]=l[C]});let O={};p.forEach((C,s)=>{(l[C]||l[C]===0)&&(O[C]=l[C])}),r.value.style=O}}},Jr=r=>(e.pushScopeId("data-v-e99696c4"),r=r(),e.popScopeId(),r),yQ={class:"print-designer_print-config-container"},xQ=Jr(()=>e.createElementVNode("div",{class:"print-config-divider"},[e.createElementVNode("div",{class:"print-config-divider_text"},"基础配置")],-1)),CQ=Jr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--primary"},"自定义尺寸单位:mm(毫米)",-1)),OQ=Jr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"纸张尺寸为【自定义】时,横向打印配置失效",-1)),wQ=Jr(()=>e.createElementVNode("div",{class:"print-config-divider"},[e.createElementVNode("div",{class:"print-config-divider_text"},"打印服务配置")],-1)),_Q=Jr(()=>e.createElementVNode("div",{class:"print-config-divider"},[e.createElementVNode("div",{class:"print-config-divider_text"},"样式配置")],-1)),SQ=Jr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"如果需要续打,则不需要配置外边距",-1)),kQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,clearFormData:i,setFormDataByPrintConfig:a,syncFormDataToPrintConfigData:d}=bQ(),{dict:f}=e.inject("printDesigner");return e.watch(o,(h,b)=>{d()},{immediate:!0,deep:!0}),t({setPrintConfig:h=>{a(h)},clear:()=>{i()}}),(h,b)=>{const x=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),O=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),s=e.resolveComponent("el-input-number"),S=e.resolveComponent("el-switch"),u=e.resolveComponent("el-option"),T=e.resolveComponent("el-select"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",yQ,[e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"auto","label-position":"top",size:"small"},{default:e.withCtx(()=>[xQ,e.createVNode(p,{label:"模板名称",prop:"templateTitle"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).templateTitle,"onUpdate:modelValue":b[0]||(b[0]=g=>e.unref(o).templateTitle=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"模板编码",prop:"templateCode"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).templateCode,"onUpdate:modelValue":b[1]||(b[1]=g=>e.unref(o).templateCode=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"纸张尺寸",prop:"pageSize"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(o).pageSize,"onUpdate:modelValue":b[2]||(b[2]=g=>e.unref(o).pageSize=g)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).pageSize,(g,I)=>(e.openBlock(),e.createBlock(O,{value:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),CQ,e.createVNode(p,{label:"自定义尺寸-长",prop:"customHeight","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(o).customHeight,"onUpdate:modelValue":b[3]||(b[3]=g=>e.unref(o).customHeight=g),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"自定义尺寸-宽",prop:"customWidth","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(o).customWidth,"onUpdate:modelValue":b[4]||(b[4]=g=>e.unref(o).customWidth=g),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),OQ,e.createVNode(p,{label:"是否横向打印",prop:"landscape","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:e.unref(o).landscape,"onUpdate:modelValue":b[5]||(b[5]=g=>e.unref(o).landscape=g),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"预览缩放比例",prop:"previewScale","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(o).previewScale,"onUpdate:modelValue":b[6]||(b[6]=g=>e.unref(o).previewScale=g),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),wQ,e.createVNode(p,{label:"打印类型",prop:"servePrintType"},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(o).servePrintType,"onUpdate:modelValue":b[7]||(b[7]=g=>e.unref(o).servePrintType=g),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).servePrintType,(g,I)=>(e.openBlock(),e.createBlock(u,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,{label:"打印机名称",prop:"printer"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).printer,"onUpdate:modelValue":b[8]||(b[8]=g=>e.unref(o).printer=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"是否静默打印",prop:"silent","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:e.unref(o).silent,"onUpdate:modelValue":b[9]||(b[9]=g=>e.unref(o).silent=g),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),_Q,SQ,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":b[10]||(b[10]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":b[11]||(b[11]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":b[12]||(b[12]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":b[13]||(b[13]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":b[14]||(b[14]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":b[15]||(b[15]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":b[16]||(b[16]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":b[17]||(b[17]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":b[18]||(b[18]=g=>e.unref(o).fontSize=g),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":b[19]||(b[19]=g=>e.unref(o).fontWeight=g),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":b[20]||(b[20]=g=>e.unref(o).textDecoration=g),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":b[21]||(b[21]=g=>e.unref(o).textAlign=g),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":b[22]||(b[22]=g=>e.unref(o).lineHeight=g),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":b[23]||(b[23]=g=>e.unref(o).letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(p,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":b[25]||(b[25]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":b[24]||(b[24]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-e99696c4"]]),TQ=()=>{const{formConfigData:r}=e.inject("printDesigner");let t;const n=[{label:"标签宽度",key:"labelWidth",default:"80px",fieldType:"prop"},{label:"标签位置",key:"labelPosition",default:"left",fieldType:"prop"},{label:"尺寸",key:"size",default:"default",fieldType:"prop"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getStyleKeys:h,setFormDataByFormConfig:p=>{if(!p)return!1;let O=c(),C=m(),s=h(),S=[],u=[];O.forEach((T,A)=>{l[T]=p[T]}),p.props&&(S=Object.keys(p.props)),S.forEach((T,A)=>{C.indexOf(T)>=0&&(l[T]=p.props[T])}),p.style&&(u=Object.keys(p.style)),u.forEach((T,A)=>{s.indexOf(T)>=0&&(l[T]=p.style[T])})},syncFormDataToFormConfigData:()=>{r.value||(r.value={});let p=c(),O=m(),C=h();if(p.forEach((s,S)=>{r.value[s]=l[s]}),O.length>0){let s={};O.forEach((S,u)=>{s[S]=l[S]}),r.value.props=s}if(C.length>0){let s={};C.forEach((S,u)=>{(l[S]||l[S]===0)&&(s[S]=l[S])}),r.value.style=s}}}},IQ=r=>(e.pushScopeId("data-v-9b247795"),r=r(),e.popScopeId(),r),AQ={class:"print-designer_form-config-container"},VQ=IQ(()=>e.createElementVNode("div",{class:"form-config-divider"},[e.createElementVNode("div",{class:"form-config-divider_text"},"基础配置")],-1)),BQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,clearFormData:i,setFormDataByFormConfig:a,syncFormDataToFormConfigData:d}=TQ(),{formatter:f,parser:c,complementValue:m}=yt(o),{dict:h}=e.inject("printDesigner");return e.watch(o,(p,O)=>{d()},{immediate:!0,deep:!0}),t({setFormConfig:p=>{a(p)},clear:()=>{i()}}),(p,O)=>{const C=e.resolveComponent("el-input"),s=e.resolveComponent("el-form-item"),S=e.resolveComponent("el-radio"),u=e.resolveComponent("el-radio-group"),T=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",AQ,[e.createVNode(T,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"auto","label-position":"top",size:"small"},{default:e.withCtx(()=>[VQ,e.createVNode(s,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":O[0]||(O[0]=A=>e.unref(o).labelWidth=A),placeholder:"",clearable:"",formatter:e.unref(f),parser:e.unref(c),onBlur:O[1]||(O[1]=A=>e.unref(m)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(s,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":O[2]||(O[2]=A=>e.unref(o).labelPosition=A)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h).formLabelPosition,(A,V)=>(e.openBlock(),e.createBlock(S,{value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(s,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).size,"onUpdate:modelValue":O[3]||(O[3]=A=>e.unref(o).size=A)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h).formSize,(A,V)=>(e.openBlock(),e.createBlock(S,{value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-9b247795"]]);let ks;const RQ=new Uint8Array(16);function $Q(){if(!ks&&(ks=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ks))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ks(RQ)}const xt=[];for(let r=0;r<256;++r)xt.push((r+256).toString(16).slice(1));function LQ(r,t=0){return xt[r[t+0]]+xt[r[t+1]]+xt[r[t+2]]+xt[r[t+3]]+"-"+xt[r[t+4]]+xt[r[t+5]]+"-"+xt[r[t+6]]+xt[r[t+7]]+"-"+xt[r[t+8]]+xt[r[t+9]]+"-"+xt[r[t+10]]+xt[r[t+11]]+xt[r[t+12]]+xt[r[t+13]]+xt[r[t+14]]+xt[r[t+15]]}const W0={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function PQ(r,t,n){if(W0.randomUUID&&!r)return W0.randomUUID();r=r||{};const o=r.random||(r.rng||$Q)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,LQ(o)}const EQ=()=>{const r=e.ref("line"),t=e.ref(),n=e.ref(),o=e.ref(),l=e.ref(),i=e.ref(),a=e.ref(),d=e.ref("printConfig"),f=e.reactive({designerMode:[{label:"参考线模式",value:"line"},{label:"打印模式",value:"print"}],labelPosition:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}],labelWidthUnit:[{label:"auto",value:"auto"},{label:"px",value:"px"},{label:"%",value:"%"}],pageSize:[{label:"A5",value:"A5"},{label:"A4",value:"A4"},{label:"A3",value:"A3"},{label:"自定义",value:"custom"}],servePrintType:[{label:"pdf",value:"pdf"},{label:"html",value:"html"}],fontWeight:[{label:"细体",value:300},{label:"常规体",value:400},{label:"中黑体",value:500},{label:"中粗体",value:700}],fontFamily:[{label:"宋体",value:"宋体"},{label:"隶书",value:"隶书"},{label:"楷书",value:"楷书"},{label:"微软雅黑",value:"微软雅黑"}],textDecoration:[{label:"下划线",value:"underline"},{label:"中划线",value:"line-through"},{label:"上划线",value:"overline"}],textAlign:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}],borderStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状虚线",value:"dotted"},{label:"双实线",value:"double"},{label:"无边框",value:"none"}],barcodeFormat:[{label:"EAN13",value:"EAN13"},{label:"CODE128",value:"CODE128"},{label:"EAN8",value:"EAN8"},{label:"UPC ",value:"UPC"}],barcodeTextAlign:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],barcodeTextPosition:[{label:"上",value:"top"},{label:"下",value:"bottom"}],formSize:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}],formLabelPosition:[{label:"左",value:"left"},{label:"右",value:"right"},{label:"上",value:"top"}],cssFlexFlow:[{label:"横向",value:"row"},{label:"竖向",value:"column"}],cssJustifyContent:[{label:"左对齐",value:"flex-start"},{label:"居中",value:"center"},{label:"右对齐",value:"flex-end"}],cssAlignItems:[{label:"上对齐",value:"flex-start"},{label:"居中",value:"center"},{label:"下对齐",value:"flex-end"}],cssFlexWrap:[{label:"换行",value:"wrap"},{label:"不换行",value:"nowrap"}],datetimeFormat:[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY年MM月DD日 HH时mm分ss秒",value:"YYYY年MM月DD日 HH时mm分ss秒"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY年MM月DD日 HH时mm分",value:"YYYY年MM月DD日 HH时mm分"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY年MM月DD日",value:"YYYY年MM月DD日"},{label:"HH:mm",value:"HH:mm"},{label:"HH时mm分",value:"HH时mm分"}],textDateTimeFormat:[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY年MM月DD日 HH时mm分ss秒",value:"YYYY年MM月DD日 HH时mm分ss秒"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY年MM月DD日 HH时mm分",value:"YYYY年MM月DD日 HH时mm分"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY年MM月DD日",value:"YYYY年MM月DD日"},{label:"HH:mm",value:"HH:mm"},{label:"HH时mm分",value:"HH时mm分"}]}),c=e.ref({}),m=e.ref({}),h=e.ref(!1),b=e.ref(!1),x=e.ref(!1),p=e.ref(!1),O=e.ref(!1),C=e.ref(!1),s=e.ref(!1),S=k=>{let L={id:"",componentType:"",command:""},B={};return ue(B,L,k),B},u=()=>PQ(),T=()=>{document.addEventListener("keydown",A)},A=function(k){k.ctrlKey&&k.key==="c"?$i(L)():k.ctrlKey&&k.key==="v"&&$i(B)();function L(){let E=new Date;I.value=E.getTime()}function B(){let E=new Date;w.value=E.getTime()}},V=e.ref(!1),g=e.ref(!1),I=e.ref(0),w=e.ref(0),R=e.ref(!1),y=()=>{if(!V.value||!h.value)return;let k=["grid","grid-item","tableLayout","tableLayout-item"],L=h.value.type;k.indexOf(L)>=0||(R.value=q(h.value),gh.success("复制成功"))},$=e.ref(new Map),_=e.ref(new Map);return{designerMode:r,designerComponentsRef:t,designerPanelRef:n,configTabsRef:o,componentConfigRef:l,printConfigRef:i,formConfigRef:a,configTabsActiveName:d,dict:f,printConfigData:c,formConfigData:m,activeSortableComponent:h,dragSortableComponent:b,activeDesignerComponent:x,dragDesignerComponent:p,dragGridSortableComponent:O,dragTableLayoutSortableComponent:C,componentConfigCommand:s,createComponentConfigCommand:S,createId:u,initKeydown:T,handleKeydown:A,ableCtrlC:V,ableCtrlV:g,ctrlCTimestamp:I,ctrlVTimestamp:w,copyActiveSortableComponent:R,setCopyActiveSortableComponent:y,computeObj:$,fieldArr:_}},NQ={class:"print-designer-container wui-print-el"},MQ=G({__name:"index",setup(r,{expose:t}){const{designerMode:n,designerComponentsRef:o,designerPanelRef:l,configTabsRef:i,componentConfigRef:a,printConfigRef:d,formConfigRef:f,configTabsActiveName:c,dict:m,printConfigData:h,formConfigData:b,activeSortableComponent:x,dragSortableComponent:p,activeDesignerComponent:O,dragDesignerComponent:C,dragGridSortableComponent:s,dragTableLayoutSortableComponent:S,componentConfigCommand:u,createComponentConfigCommand:T,createId:A,initKeydown:V,ableCtrlC:g,ableCtrlV:I,ctrlCTimestamp:w,ctrlVTimestamp:R,copyActiveSortableComponent:y,setCopyActiveSortableComponent:$,computeObj:_,fieldArr:k}=EQ();return e.provide("printDesigner",{designerMode:n,designerComponentsRef:o,designerPanelRef:l,configTabsRef:i,componentConfigRef:a,printConfigRef:d,formConfigRef:f,configTabsActiveName:c,dict:m,printConfigData:h,formConfigData:b,activeSortableComponent:x,dragSortableComponent:p,activeDesignerComponent:O,dragDesignerComponent:C,dragGridSortableComponent:s,dragTableLayoutSortableComponent:S,componentConfigCommand:u,createComponentConfigCommand:T,createId:A,ableCtrlC:g,ableCtrlV:I,ctrlCTimestamp:w,ctrlVTimestamp:R,copyActiveSortableComponent:y,computeObj:_,fieldArr:k}),e.watch(x,(E,N)=>{x.value&&c.value!="componentConfig"?c.value="componentConfig":!x.value&&c.value!="printConfig"&&(c.value="printConfig")},{immediate:!0,deep:!0}),e.watch(w,(E,N)=>{g.value&&$()}),e.onMounted(()=>{V()}),t({getDesignerConfig:()=>{let E=l.value.getLayoutConfig();return{printConfig:q(h.value),layoutConfig:E,formConfig:q(b.value)}},setDesignerConfig:({printConfig:E,layoutConfig:N,formConfig:W}={})=>{E||(E={}),N||(N={}),N||(W={}),d.value.setPrintConfig(E),f.value.setFormConfig(W),l.value.setLayoutConfig(N)}}),(E,N)=>(e.openBlock(),e.createElementBlock("div",NQ,[e.createVNode(kx,{ref_key:"designerComponentsRef",ref:o},null,512),e.createVNode(lE,{ref_key:"designerPanelRef",ref:l},{operateButtons:e.withCtx(()=>[e.renderSlot(E.$slots,"operateButtons",{},void 0,!0)]),_:3},512),e.createVNode(dE,{ref_key:"configTabsRef",ref:i},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(gQ,{ref_key:"componentConfigRef",ref:a},null,512),[[e.vShow,e.unref(c)=="componentConfig"]]),e.withDirectives(e.createVNode(kQ,{ref_key:"printConfigRef",ref:d},null,512),[[e.vShow,e.unref(c)=="printConfig"]]),e.withDirectives(e.createVNode(BQ,{ref_key:"formConfigRef",ref:f},null,512),[[e.vShow,e.unref(c)=="formConfig"]])]),_:1},512)]))}},[["__scopeId","data-v-89cd7b90"]]);return{install(r){r.component("WuiPrintDesigner",MQ),r.component("WuiPrintForm",L0),r.component("WuiBaseDialog",qr)}}});
1030
+ */var LL=_s.exports,B0;function PL(){return B0||(B0=1,function(r){(function(t,n){r.exports?r.exports=n():t.numeral=n()})(LL,function(){var t,n,o="2.0.6",l={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},d={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function f(c,m){this._input=c,this._value=m}return t=function(c){var m,h,b,x;if(t.isNumeral(c))m=c.value();else if(c===0||typeof c>"u")m=0;else if(c===null||n.isNaN(c))m=null;else if(typeof c=="string")if(d.zeroFormat&&c===d.zeroFormat)m=0;else if(d.nullFormat&&c===d.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{for(h in l)if(x=typeof l[h].regexps.unformat=="function"?l[h].regexps.unformat():l[h].regexps.unformat,x&&c.match(x)){b=l[h].unformat;break}b=b||t._.stringToNumber,m=b(c)}else m=Number(c)||null;return new f(c,m)},t.version=o,t.isNumeral=function(c){return c instanceof f},t._=n={numberToFormat:function(c,m,h){var b=i[t.options.currentLocale],x=!1,p=!1,O=0,C="",s=1e12,S=1e9,u=1e6,T=1e3,A="",V=!1,g,I,w,R,y,$,_;if(c=c||0,I=Math.abs(c),t._.includes(m,"(")?(x=!0,m=m.replace(/[\(|\)]/g,"")):(t._.includes(m,"+")||t._.includes(m,"-"))&&(y=t._.includes(m,"+")?m.indexOf("+"):c<0?m.indexOf("-"):-1,m=m.replace(/[\+|\-]/g,"")),t._.includes(m,"a")&&(g=m.match(/a(k|m|b|t)?/),g=g?g[1]:!1,t._.includes(m," a")&&(C=" "),m=m.replace(new RegExp(C+"a[kmbt]?"),""),I>=s&&!g||g==="t"?(C+=b.abbreviations.trillion,c=c/s):I<s&&I>=S&&!g||g==="b"?(C+=b.abbreviations.billion,c=c/S):I<S&&I>=u&&!g||g==="m"?(C+=b.abbreviations.million,c=c/u):(I<u&&I>=T&&!g||g==="k")&&(C+=b.abbreviations.thousand,c=c/T)),t._.includes(m,"[.]")&&(p=!0,m=m.replace("[.]",".")),w=c.toString().split(".")[0],R=m.split(".")[1],$=m.indexOf(","),O=(m.split(".")[0].split(",")[0].match(/0/g)||[]).length,R?(t._.includes(R,"[")?(R=R.replace("]",""),R=R.split("["),A=t._.toFixed(c,R[0].length+R[1].length,h,R[1].length)):A=t._.toFixed(c,R.length,h),w=A.split(".")[0],t._.includes(A,".")?A=b.delimiters.decimal+A.split(".")[1]:A="",p&&Number(A.slice(1))===0&&(A="")):w=t._.toFixed(c,0,h),C&&!g&&Number(w)>=1e3&&C!==b.abbreviations.trillion)switch(w=String(Number(w)/1e3),C){case b.abbreviations.thousand:C=b.abbreviations.million;break;case b.abbreviations.million:C=b.abbreviations.billion;break;case b.abbreviations.billion:C=b.abbreviations.trillion;break}if(t._.includes(w,"-")&&(w=w.slice(1),V=!0),w.length<O)for(var k=O-w.length;k>0;k--)w="0"+w;return $>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+b.delimiters.thousands)),m.indexOf(".")===0&&(w=""),_=w+A+(C||""),x?_=(x&&V?"(":"")+_+(x&&V?")":""):y>=0?_=y===0?(V?"-":"+")+_:_+(V?"-":"+"):V&&(_="-"+_),_},stringToNumber:function(c){var m=i[d.currentLocale],h=c,b={thousand:3,million:6,billion:9,trillion:12},x,p,O;if(d.zeroFormat&&c===d.zeroFormat)p=0;else if(d.nullFormat&&c===d.nullFormat||!c.replace(/[^0-9]+/g,"").length)p=null;else{p=1,m.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(m.delimiters.decimal,"."));for(x in b)if(O=new RegExp("[^a-zA-Z]"+m.abbreviations[x]+"(?:\\)|(\\"+m.currency.symbol+")?(?:\\))?)?$"),h.match(O)){p*=Math.pow(10,b[x]);break}p*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),p*=Number(c)}return p},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,m){return c.indexOf(m)!==-1},insert:function(c,m,h){return c.slice(0,h)+m+c.slice(h)},reduce:function(c,m){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof m!="function")throw new TypeError(m+" is not a function");var h=Object(c),b=h.length>>>0,x=0,p;if(arguments.length===3)p=arguments[2];else{for(;x<b&&!(x in h);)x++;if(x>=b)throw new TypeError("Reduce of empty array with no initial value");p=h[x++]}for(;x<b;x++)x in h&&(p=m(p,h[x],x,h));return p},multiplier:function(c){var m=c.toString().split(".");return m.length<2?1:Math.pow(10,m[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(m,h){var b=n.multiplier(h);return m>b?m:b},1)},toFixed:function(c,m,h,b){var x=c.toString().split("."),p=m-(b||0),O,C,s,S;return x.length===2?O=Math.min(Math.max(x[1].length,p),m):O=p,s=Math.pow(10,O),S=(h(c+"e+"+O)/s).toFixed(O),b>m-O&&(C=new RegExp("\\.?0{1,"+(b-(m-O))+"}$"),S=S.replace(C,"")),S}},t.options=d,t.formats=l,t.locales=i,t.locale=function(c){return c&&(d.currentLocale=c.toLowerCase()),d.currentLocale},t.localeData=function(c){if(!c)return i[d.currentLocale];if(c=c.toLowerCase(),!i[c])throw new Error("Unknown locale : "+c);return i[c]},t.reset=function(){for(var c in a)d[c]=a[c]},t.zeroFormat=function(c){d.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){d.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){d.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,m,h){if(m=m.toLowerCase(),this[c+"s"][m])throw new TypeError(m+" "+c+" already registered.");return this[c+"s"][m]=h,h},t.validate=function(c,m){var h,b,x,p,O,C,s,S;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{s=t.localeData(m)}catch{s=t.localeData(t.locale())}return x=s.currency.symbol,O=s.abbreviations,h=s.delimiters.decimal,s.delimiters.thousands==="."?b="\\.":b=s.delimiters.thousands,S=c.match(/^[^\d]+/),S!==null&&(c=c.substr(1),S[0]!==x)||(S=c.match(/[^\d]+$/),S!==null&&(c=c.slice(0,-1),S[0]!==O.thousand&&S[0]!==O.million&&S[0]!==O.billion&&S[0]!==O.trillion))?!1:(C=new RegExp(b+"{2}"),c.match(/[^\d.,]/g)?!1:(p=c.split(h),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(C):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(C)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(C)&&!!p[1].match(/^\d+$/)))},t.fn=f.prototype={clone:function(){return t(this)},format:function(c,m){var h=this._value,b=c||d.defaultFormat,x,p,O;if(m=m||Math.round,h===0&&d.zeroFormat!==null)p=d.zeroFormat;else if(h===null&&d.nullFormat!==null)p=d.nullFormat;else{for(x in l)if(b.match(l[x].regexps.format)){O=l[x].format;break}O=O||t._.numberToFormat,p=O(h,b,m)}return p},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var m=n.correctionFactor.call(null,this._value,c);function h(b,x,p,O){return b+Math.round(m*x)}return this._value=n.reduce([this._value,c],h,0)/m,this},subtract:function(c){var m=n.correctionFactor.call(null,this._value,c);function h(b,x,p,O){return b-Math.round(m*x)}return this._value=n.reduce([c],h,Math.round(this._value*m))/m,this},multiply:function(c){function m(h,b,x,p){var O=n.correctionFactor(h,b);return Math.round(h*O)*Math.round(b*O)/Math.round(O*O)}return this._value=n.reduce([this._value,c],m,1),this},divide:function(c){function m(h,b,x,p){var O=n.correctionFactor(h,b);return Math.round(h*O)/Math.round(b*O)}return this._value=n.reduce([this._value,c],m),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var m=c%10;return~~(c%100/10)===1?"th":m===1?"st":m===2?"nd":m===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,m,h){var b=t._.includes(m," BPS")?" ":"",x;return c=c*1e4,m=m.replace(/\s?BPS/,""),x=t._.numberToFormat(c,m,h),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,b+"BPS"),x=x.join("")):x=x+b+"BPS",x},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},m={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(m.suffixes.filter(function(x){return c.suffixes.indexOf(x)<0})),b=h.join("|");b="("+b.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(b)},format:function(x,p,O){var C,s=t._.includes(p,"ib")?m:c,S=t._.includes(p," b")||t._.includes(p," ib")?" ":"",u,T,A;for(p=p.replace(/\s?i?b/,""),u=0;u<=s.suffixes.length;u++)if(T=Math.pow(s.base,u),A=Math.pow(s.base,u+1),x===null||x===0||x>=T&&x<A){S+=s.suffixes[u],T>0&&(x=x/T);break}return C=t._.numberToFormat(x,p,O),C+S},unformat:function(x){var p=t._.stringToNumber(x),O,C;if(p){for(O=c.suffixes.length-1;O>=0;O--){if(t._.includes(x,c.suffixes[O])){C=Math.pow(c.base,O);break}if(t._.includes(x,m.suffixes[O])){C=Math.pow(m.base,O);break}}p*=C||1}return p}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,m,h){var b=t.locales[t.options.currentLocale],x={before:m.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:m.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,O,C;for(m=m.replace(/\s?\$\s?/,""),p=t._.numberToFormat(c,m,h),c>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),C=0;C<x.before.length;C++)switch(O=x.before[C],O){case"$":p=t._.insert(p,b.currency.symbol,C);break;case" ":p=t._.insert(p," ",C+b.currency.symbol.length-1);break}for(C=x.after.length-1;C>=0;C--)switch(O=x.after[C],O){case"$":p=C===x.after.length-1?p+b.currency.symbol:t._.insert(p,b.currency.symbol,-(x.after.length-(1+C)));break;case" ":p=C===x.after.length-1?p+" ":t._.insert(p," ",-(x.after.length-(1+C)+b.currency.symbol.length-1));break}return p}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,m,h){var b,x=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",p=x.split("e");return m=m.replace(/e[\+|\-]{1}0/,""),b=t._.numberToFormat(Number(p[0]),m,h),b+"e"+p[1]},unformat:function(c){var m=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(m[0]),b=Number(m[1]);b=t._.includes(c,"e-")?b*=-1:b;function x(p,O,C,s){var S=t._.correctionFactor(p,O),u=p*S*(O*S)/(S*S);return u}return t._.reduce([h,Math.pow(10,b)],x,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,m,h){var b=t.locales[t.options.currentLocale],x,p=t._.includes(m," o")?" ":"";return m=m.replace(/\s?o/,""),p+=b.ordinal(c),x=t._.numberToFormat(c,m,h),x+p}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,m,h){var b=t._.includes(m," %")?" ":"",x;return t.options.scalePercentBy100&&(c=c*100),m=m.replace(/\s?\%/,""),x=t._.numberToFormat(c,m,h),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,b+"%"),x=x.join("")):x=x+b+"%",x},unformat:function(c){var m=t._.stringToNumber(c);return t.options.scalePercentBy100?m*.01:m}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,m,h){var b=Math.floor(c/60/60),x=Math.floor((c-b*60*60)/60),p=Math.round(c-b*60*60-x*60);return b+":"+(x<10?"0"+x:x)+":"+(p<10?"0"+p:p)},unformat:function(c){var m=c.split(":"),h=0;return m.length===3?(h=h+Number(m[0])*60*60,h=h+Number(m[1])*60,h=h+Number(m[2])):m.length===2&&(h=h+Number(m[0])*60,h=h+Number(m[1])),Number(h)}})}(),t})}(_s)),_s.exports}var EL=PL();const mi=W1(EL),NL=r=>{const t=e.ref(""),n=e.ref(""),o=e.ref(""),l=()=>{const c=Date.now();t.value="wui-base-dialog-container-"+c+Math.round(Math.random()*10),n.value="wui-base-dialog-modal-"+c+Math.round(Math.random()*10),o.value="wui-base-dialog-header-"+c+Math.round(Math.random()*10)},i=c=>{if(c=String(c),c=="auto")return c;let m=["%","px"],h=!1;for(let b=0;b<m.length;b++){let x=m[b];if(c.includes(x)){h=!0;break}}return h?c:mi(c).value()+"px"},a=e.ref(0),d=e.ref(0);return{containerId:t,modalId:n,headerId:o,setId:l,formatStyleUnit:i,width:a,height:d,setDialogLayout:()=>{let c={width:a.value,height:d.value},m=document.body.clientWidth,h=document.body.clientHeight,b=i(r.width),x=i(r.height);c.width=b,c.height=x,b.includes("px")&&mi(b).value()>=mi(m).value()&&(c.width="96%"),x.includes("px")&&mi(x).value()>=mi(h).value()&&(c.height="96%"),a.value=c.width,d.value=c.height}}},ML=()=>{const r={initialX:0,initialY:0,offsetX:0,offsetY:0};let t,n,o,l=!1;const i=()=>{if(!o||!n)return!1;n.style.position="",n.style.left="",n.style.top=""},a=({containerId:b,modalId:x,headerId:p}={})=>{if(l)return!1;t=document.getElementById(`${b.value}`),n=document.getElementById(`${x.value}`),o=document.getElementById(`${p.value}`),o.addEventListener("mousedown",d),o.addEventListener("mouseup",h),l=!0},d=b=>{r.initialX=b.clientX,r.initialY=b.clientY,r.offsetX=n.offsetLeft,r.offsetY=n.offsetTop,document.addEventListener("mousemove",f)},f=b=>{n.style.position="absolute",c(b),m(b)},c=b=>{let p=b.clientX-r.initialX,O=r.offsetX+p,C=0,s=t.offsetWidth;if(p<0)O=O<=C?0:O,n.style.left=O+"px";else{let S=n.offsetWidth;O=n.offsetLeft+S>=s?s-S:O,n.style.left=O+"px"}},m=b=>{let p=b.clientY-r.initialY,O=r.offsetY+p,C=0,s=t.offsetHeight;if(p<0)O=O<=C?0:O,n.style.top=O+"px";else{let S=n.offsetHeight;O=n.offsetTop+S>=s?s-S:O,n.style.top=O+"px"}},h=()=>{document.removeEventListener("mousemove",f)};return{reset:i,bind:a}},R0=r=>(e.pushScopeId("data-v-188a3b3f"),r=r(),e.popScopeId(),r),DL=["id"],QL=R0(()=>e.createElementVNode("div",{class:"wui-base-dialog_mask"},null,-1)),WL={class:"wui-base-dialog_wrap"},UL=["id"],ZL=["id"],zL={key:0,class:"icon"},HL={class:"title"},jL=[R0(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],FL=["id"],XL={key:4,class:"wui-base-dialog_footer"},qL={key:5,class:"wui-base-dialog_footer"},qr=G({__name:"index",props:{modelValue:{type:Boolean,default:!1},zIndex:{type:[Number,String,Boolean],default:!1},width:{type:[Number,String],default:800},height:{type:[Number,String],default:500},minHeight:{type:[Number,String,Boolean],default:!1},maxWidth:{type:[Number,String,Boolean],default:!1},maxHeight:{type:[Number,String,Boolean],default:!1},padding:{type:[Number,String],default:15},icon:{type:String,default:""},title:{type:String,default:"提示"},cancelButtonShow:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},confirmButtonShow:{type:Boolean,default:!0},confirmText:{type:String,default:"确定"},confirmClose:{type:Boolean,default:!1},notClose:{type:Boolean,default:!1},notHeader:{type:Boolean,default:!1},notFooter:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},closeBefore:{type:[Boolean,Function],default(){return!1}}},emits:["update:modelValue","close","cancel","confirm"],setup(r,{expose:t,emit:n}){const o=ML(),l=n,i=r,{containerId:a,modalId:d,headerId:f,setId:c,formatStyleUnit:m,width:h,height:b,setDialogLayout:x}=NL(i),p=e.computed(()=>{let R,y=ip.getItem("wuiBaseDialogFloat","sessionStorage");return R=`z-index:${(i.zIndex?i.zIndex:y)+100}; top: 0; bottom: 0; left: 0; right: 0;`,R}),O=e.computed(()=>{let R=h.value,y=b.value;return`width:${R};height:${y};`}),C=e.computed(()=>"100%"),s=e.computed(()=>`padding:${m(i.padding)};`),S=e.computed(()=>{if(e.useSlots().footer)return"slot";if(!i.notFooter)return"default";if(i.notFooter)return"none"}),u=e.computed(()=>i.draggable?"wui-base-dialog-move":"");e.watch(()=>i.modelValue,(R,y)=>{R?(x(),I("add")):I("subtract"),i.draggable&&i.modelValue&&(o.reset(),e.nextTick(()=>{setTimeout(()=>{o.bind({containerId:a,modalId:d,headerId:f})},200)}))});const T=()=>{if(i.closeBefore&&typeof i.closeBefore=="function"){let y=i.closeBefore();return y&&!R(y)&&A(),!1}A();function R(y){return y&&typeof y.then=="function"&&typeof y.catch=="function"}},A=()=>{l("close"),l("update:modelValue",!1)},V=()=>{l("cancel"),l("update:modelValue",!1)},g=()=>{i.confirmClose&&l("update:modelValue",!1),l("confirm")},I=(R="add")=>{let y=ip.getItem("wuiBaseDialogFloat","sessionStorage");y||(y=0),R=="add"?y++:R=="subtract"&&y--,ip.setItem("wuiBaseDialogFloat",y,"sessionStorage")},w=()=>{c()};return e.onMounted(()=>{w()}),t({}),(R,y)=>{const $=e.resolveComponent("el-icon"),_=e.resolveComponent("el-scrollbar"),k=e.resolveComponent("el-button");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"wui-base-dialog_container wui-print-el",id:e.unref(a),style:e.normalizeStyle(p.value)},[QL,e.createElementVNode("div",WL,[e.createElementVNode("div",{class:"wui-base-dialog_modal",id:e.unref(d),style:e.normalizeStyle(O.value)},[i.notHeader?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(`wui-base-dialog_header-none ${u.value}`),id:e.unref(f)},null,10,FL)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`wui-base-dialog_header ${u.value}`),id:e.unref(f)},[i.icon?(e.openBlock(),e.createElementBlock("div",zL,[i.icon?(e.openBlock(),e.createBlock($,{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.icon)))]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",HL,e.toDisplayString(i.title),1),i.notClose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"close",onClick:T},jL))],10,ZL)),i.scrollable?(e.openBlock(),e.createBlock(_,{key:2,"max-height":C.value,class:"wui-base-dialog_body","wrap-style":s.value,always:""},{default:e.withCtx(()=>[e.renderSlot(R.$slots,"default",{},void 0,!0)]),_:3},8,["max-height","wrap-style"])):(e.openBlock(),e.createElementBlock("div",{key:3,class:"wui-base-dialog_body",style:e.normalizeStyle(s.value)},[e.renderSlot(R.$slots,"default",{},void 0,!0)],4)),S.value=="default"?(e.openBlock(),e.createElementBlock("div",XL,[i.cancelButtonShow?(e.openBlock(),e.createBlock(k,{key:0,type:"warning",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.cancelText),1)]),_:1})):e.createCommentVNode("",!0),i.confirmButtonShow?(e.openBlock(),e.createBlock(k,{key:1,type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.confirmText),1)]),_:1})):e.createCommentVNode("",!0)])):S.value=="slot"?(e.openBlock(),e.createElementBlock("div",qL,[e.renderSlot(R.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],12,UL)])],12,DL)),[[e.vShow,i.modelValue]])}}},[["__scopeId","data-v-188a3b3f"]]),YL={__name:"index",emits:["dialogOpen","dialogClose","importSuccess"],setup(r,{expose:t,emit:n}){const o=n,l=e.ref(!1),i=e.ref(),a=e.ref("");e.watch(l,(m,h)=>{l.value?o("dialogOpen"):o("dialogClose")});const d=()=>{try{if(!a.value)return ge.alert("JSON数据为空,无法导入",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"}),!1;let m=JSON.parse(a.value);if(!m.printConfig)return ge.alert("JSON中缺少【printConfig】,无法导入",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"}),!1;if(!m.layoutConfig)return ge.alert("JSON中缺少【layoutConfig】,无法导入",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"}),!1;f()}catch(m){ge.alert(m,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})}},f=()=>{let m=JSON.parse(a.value);o("importSuccess",m),l.value=!1};return t({open:m=>{l.value=!0}}),(m,h)=>(e.openBlock(),e.createBlock(qr,{modelValue:l.value,"onUpdate:modelValue":h[1]||(h[1]=b=>l.value=b),title:"导入布局JSON",width:"98%",height:"98%",padding:"0",draggable:!1,scrollable:!1,"confirm-text":"导入",onConfirm:d},{default:e.withCtx(()=>[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=b=>a.value=b)},null,8,["modelValue"])]),_:1},8,["modelValue"]))}},GL={__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,l=e.ref(!1),i=e.ref(),a=e.ref("");return e.watch(l,(f,c)=>{l.value?o("dialogOpen"):o("dialogClose")}),t({open:f=>{l.value=!0,a.value=f?JSON.stringify(f,null," "):""}}),(f,c)=>(e.openBlock(),e.createBlock(qr,{modelValue:l.value,"onUpdate:modelValue":c[1]||(c[1]=m=>l.value=m),title:"导出布局JSON",width:"98%",height:"98%",padding:"0",draggable:!1,scrollable:!1,"not-footer":""},{default:e.withCtx(()=>[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=m=>a.value=m)},null,8,["modelValue"])]),_:1},8,["modelValue"]))}},KL={__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,l=e.ref(!1),i=e.ref(),a=e.ref("");e.watch(l,(c,m)=>{l.value?o("dialogOpen"):o("dialogClose")});const d=c=>{if(!c)return a.value="",!1;if(!a.value)return a.value=JSON.stringify(c,null," "),!1;let m=JSON.parse(a.value);Object.keys(c).forEach((h,b)=>{if(Array.isArray(c[h]))return!1;if(m[h]||m[h]===0)return c[h]=m[h],!1}),a.value=JSON.stringify(c,null," ")};return t({open:c=>{l.value=!0,d(c)}}),(c,m)=>(e.openBlock(),e.createBlock(qr,{modelValue:l.value,"onUpdate:modelValue":m[1]||(m[1]=h=>l.value=h),title:"导出参考数据",width:"98%",height:"98%",padding:"0",draggable:!1,scrollable:!1,"not-footer":""},{default:e.withCtx(()=>[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=h=>a.value=h)},null,8,["modelValue"])]),_:1},8,["modelValue"]))}},JL=()=>{const r=e.ref(!1),t=e.ref(),n=e.shallowRef(""),o=e.reactive({printData:{},printConfig:{},formConfig:{},layoutConfig:{}}),l=e.reactive({...o});return{dialogShow:r,codeMirrorEditorRef:t,codeValue:n,componentDataModel:o,componentData:l,setCodeValueByObj:d=>{if(!d)return n.value="",!1;if(!n.value)return n.value=JSON.stringify(d,null," "),!1;let f=JSON.parse(n.value);Object.keys(d).forEach((c,m)=>{(f[c]||f[c]===0)&&(d[c]=f[c])}),n.value=JSON.stringify(d,null," ")},clear:()=>{ue(l,o)}}},vL=r=>(e.pushScopeId("data-v-23342844"),r=r(),e.popScopeId(),r),eP={class:"print-dialog-container"},tP={class:"print-dialog-code"},oP=vL(()=>e.createElementVNode("div",{class:"print-dialog-iframe-container"},[e.createElementVNode("iframe",{id:"print-preview-iframe"})],-1)),nP=G({__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,{dialogShow:l,codeMirrorEditorRef:i,codeValue:a,componentDataModel:d,componentData:f,setCodeValueByObj:c,clear:m}=JL();e.watch(l,(s,S)=>{l.value?o("dialogOpen"):(m(),o("dialogClose"))}),e.watch(()=>f.printData,(s,S)=>{l.value&&c(f.printData)});const h=()=>{l.value=!1},b=()=>{uo.previewInIframe({iframeId:"print-preview-iframe",printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},x=()=>{uo.preview({printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},p=()=>{uo.print({type:"web",printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},O=()=>{uo.print({type:"soket",printData:JSON.parse(a.value),designerConfig:{printConfig:f.printConfig,formConfig:f.formConfig,layoutConfig:f.layoutConfig}}).catch(s=>{console.warn(s),ge.alert(s,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})};return t({open:({printData:s,formConfig:S,printConfig:u,layoutConfig:T}={})=>{l.value=!0,ue(f,d,{printData:s,printConfig:u,formConfig:S,layoutConfig:T}),e.nextTick(()=>{b()})}}),(s,S)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(qr,{modelValue:e.unref(l),"onUpdate:modelValue":S[1]||(S[1]=T=>e.isRef(l)?l.value=T:null),title:"打印 / 预览",width:"99%",height:"99%",padding:"0",draggable:!1,scrollable:!1},{footer:e.withCtx(()=>[e.createVNode(u,{type:"warning",onClick:h},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(u,{type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode("刷新 iframe")]),_:1}),e.createVNode(u,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印预览")]),_:1}),e.createVNode(u,{type:"primary",onClick:p},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印")]),_:1}),e.createVNode(u,{type:"primary",onClick:O},{default:e.withCtx(()=>[e.createTextVNode("静默打印")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",eP,[e.createElementVNode("div",tP,[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:e.unref(a),"onUpdate:modelValue":S[0]||(S[0]=T=>e.isRef(a)?a.value=T:null)},null,8,["modelValue"])]),oP])]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-23342844"]]),rP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>{let d=r.componentDetails.style;return M.createDynamicTextLabelStyle({styleConfig:d})}),o=e.computed(()=>{let d=r.componentDetails.style;return M.createDynamicTextContentStyle({styleConfig:d})}),l=e.computed(()=>{let d=r.componentDetails.style;return M.createDynamicTextStyle({styleConfig:d})}),i=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return"";let d=r.componentDetails.props,f=r.componentDetails.props.field;return d.isDateTime?a({dateText:t.value[f],format:d.dateTimeFormat}):t.value[f]||t.value[f]===0?t.value[f]:""});function a({dateText:d,format:f}={}){if(!d)return d;const c=new Date(d),m=c.getFullYear(),h=String(c.getMonth()+1).padStart(2,"0"),b=String(c.getDate()).padStart(2,"0"),x=String(c.getHours()).padStart(2,"0"),p=String(c.getMinutes()).padStart(2,"0"),O=String(c.getSeconds()).padStart(2,"0");return f.replace("YYYY",m).replace("MM",h).replace("DD",b).replace("HH",x).replace("mm",p).replace("ss",O)}return{labelStyle:n,textStyle:o,containerStyle:l,textStr:i}},ap=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{labelStyle:o,textStyle:l,containerStyle:i,textStr:a}=rP(n);return t({}),(d,f)=>{var c,m;return e.openBlock(),e.createElementBlock("div",{class:"dynamic-text-component-container",style:e.normalizeStyle(e.unref(i))},[e.createElementVNode("div",{class:"dynamic-text-component-container_label",style:e.normalizeStyle(e.unref(o))},e.toDisplayString((m=(c=r.componentDetails)==null?void 0:c.props)==null?void 0:m.label),5),e.createElementVNode("div",{class:"dynamic-text-component-container_text",style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(a)),5)],4)}}},[["__scopeId","data-v-f59b6d3c"]]),lP=r=>({containerStyle:e.computed(()=>{let n=r.componentDetails.style;return M.createTextStyle({styleConfig:n})})}),sp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o}=lP(n);return t({}),(l,i)=>{var a,d;return e.openBlock(),e.createElementBlock("div",{class:"text-component-container",style:e.normalizeStyle(e.unref(o))},e.toDisplayString((d=(a=r.componentDetails)==null?void 0:a.props)==null?void 0:d.defaultContent),5)}}},[["__scopeId","data-v-e71b87db"]]),iP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>{let c=r.componentDetails.style;return M.createTableStyle({styleConfig:c})}),o=e.computed(()=>c=>{let m=r.componentDetails.style;return M.createTableHeaderStyle({tableStyleConfig:m,columnStyleConfig:c.style})}),l=e.computed(()=>c=>{let m=r.componentDetails.style;return M.createTableCellStyle({tableStyleConfig:m,columnStyleConfig:c.style})}),i=e.computed(()=>c=>!c.props||!c.props.headerTitle?"":c.props.headerTitle),a=e.computed(()=>!r.componentDetails||!r.componentDetails.columns||r.componentDetails.columns.length<=0?[]:r.componentDetails.columns),d=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return[];let c=r.componentDetails.props.field;return t.value[c]?t.value[c]:[]}),f=e.computed(()=>(c,m)=>{if(!m.props||!m.props.field)return"";let h=m.props.field;return c[h]||c[h]===0?c[h]:""});return{tableStyle:n,columnHeaderStyle:o,columnCellStyle:l,columnTitle:i,columnList:a,tableData:d,tdValue:f}},dp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{tableStyle:o,columnHeaderStyle:l,columnCellStyle:i,columnTitle:a,columnList:d,tableData:f,tdValue:c}=iP(n);return t({}),(m,h)=>(e.openBlock(),e.createElementBlock("table",{class:"table-component-container",cellpadding:"0",cellspacing:"0",style:e.normalizeStyle(e.unref(o))},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(b,x)=>(e.openBlock(),e.createElementBlock("th",{key:x,style:e.normalizeStyle(e.unref(l)(b))},e.toDisplayString(e.unref(a)(b)),5))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(b,x)=>(e.openBlock(),e.createElementBlock("tr",{key:x},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(p,O)=>(e.openBlock(),e.createElementBlock("td",{key:x,style:e.normalizeStyle(e.unref(i)(b))},e.toDisplayString(e.unref(c)(b,p)),5))),128))]))),128))],4))}},[["__scopeId","data-v-3238709e"]]),aP=r=>{const{complexTableDetails:t}=e.inject("printForm_complexTabletComponent"),n=e.ref(),o=e.computed(()=>{let m=t.headerRules,h=M.getComplexTableHeaderRulesId({rowIndex:r.itemDetails.rowIndex,colIndex:r.itemDetails.colIndex});return m&&m[h]?m[h].props:{}}),l=e.computed(()=>{let m=[];return o.value.slash&&m.push(`header-item-slash-container--${o.value.slashDirection}`),m.join(" ")}),i=e.ref(""),a=e.computed(()=>o.value.slashTextLeft?o.value.slashTextLeft:""),d=e.computed(()=>o.value.slashTextRight?o.value.slashTextRight:""),f=e.computed(()=>!!o.value.slash);return{containerRef:n,tdPropsConfig:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,hasSlash:f,setSlashStyle:()=>{if(!o.value.slash){i.value="";return}let m=n.value.parentElement,h=M.createComplexTableHeaderTdSlashStyle({width:m.clientWidth,height:m.clientHeight,direction:o.value.slashDirection});i.value=h}}},sP={class:"_h-i-s-c_left"},dP={class:"_h-i-s-c_right"},fP=G({__name:"HeaderItemSlash",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerRef:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,hasSlash:f,setSlashStyle:c}=aP(n);return e.onMounted(()=>{c()}),t({}),(m,h)=>e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"containerRef",ref:o,class:e.normalizeClass(`header-item-slash-container ${e.unref(l)}`)},[e.createElementVNode("span",sP,e.toDisplayString(e.unref(a)),1),e.createElementVNode("span",{class:"_h-i-s-c_slash",style:e.normalizeStyle(e.unref(i))},null,4),e.createElementVNode("span",dP,e.toDisplayString(e.unref(d)),1)],2)):e.createCommentVNode("",!0)}},[["__scopeId","data-v-0fbc56c2"]]),cP={class:"complex-table_pagination-container"},pP=G({__name:"Pagination",setup(r,{expose:t}){return t({}),(n,o)=>(e.openBlock(),e.createElementBlock("div",cP,"第1页"))}},[["__scopeId","data-v-4aa8c242"]]),mP=({complexTableDetails:r}={})=>{const t=e.computed(()=>{let b={};return r.headerLayout&&r.headerLayout.forEach((x,p)=>{b[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=x}),b}),n=e.computed(()=>{let b={};return r.headerLayout&&r.headerLayout.forEach((x,p)=>{x.rowspan&&(b[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=x.rowspan)}),b}),o=e.computed(()=>{let b={};return r.headerLayout&&r.headerLayout.forEach((x,p)=>{x.colspan&&(b[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=x.colspan)}),b}),l=e.reactive({}),i=e.reactive([]),a=()=>{let b={},x=[];if(!r.headerLayout||r.headerLayout.length<=0){ue(l,{}),i.splice(0,i.length);return}r.headerLayout.forEach((p,O)=>{let C=p.rowspan?p.rowspan:1,s=p.colspan?p.colspan:1,S=p.rowIndex,u=p.rowIndex+C-1,T=p.colIndex,A=p.colIndex+s-1,V=[];for(let g=S;g<=u;g++)for(let I=T;I<=A;I++)g===p.rowIndex&&I===p.colIndex?V.push({rowIndex:g,colIndex:I,rowspan:C,colspan:s,show:!0}):V.push({rowIndex:g,colIndex:I,rowspan:C,colspan:s,startRowIndex:p.rowIndex,startColIndex:p.colIndex,show:!1});b[d({rowIndex:p.rowIndex,colIndex:p.colIndex})]=V,x.push(...V)}),ue(l,b),i.splice(0,i.length,...x)},d=({rowIndex:b,colIndex:x}={})=>`${b}-${x}`,f=b=>{if(!b)return!1;let x=b.split("-");return{rowIndex:Number(x[0]),colIndex:Number(x[1])}},c=()=>{r.headerLayout||(r.headerLayout=[])},m=({rowIndex:b,colIndex:x}={})=>{if(!r.headerLayout||r.headerLayout.length<=0)return!1;let p=!1;return r.headerLayout.forEach((O,C)=>{O.rowIndex===b&&O.colIndex===x&&(p=O)}),p};return{layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,setSpanCell:a,getHeaderCellId:d,getHeaderCellIdDetails:f,createLayout:c,getLayoutItem:m,countUnmergedCells:({rowIndex:b,colIndex:x}={})=>{let p={row:r.props.headerRow-b-1,col:r.props.col-x-1};if(!r.headerLayout||r.headerLayout.length<=0)return p;let O=1,C=1,s=m({rowIndex:b,colIndex:x});s&&s.rowspan&&(O=s.rowspan),s&&s.colspan&&(C=s.colspan);let S=l[d({rowIndex:b,colIndex:x})];if(!S)return i.forEach((u,T)=>{if(u.colIndex===x&&u.rowIndex>b){let A=u.rowIndex-b-O;p.row>A&&(p.row=A);return}if(u.rowIndex===b&&u.colIndex>x){let A=u.colIndex-x-C;p.col>A&&(p.col=A);return}}),p;if(S){let u,T;return S.forEach((A,V)=>{i.forEach((g,I)=>{if(!(g.rowIndex===A.rowIndex&&g.colIndex===A.colIndex)){if(g.colIndex===A.colIndex&&g.rowIndex>A.rowIndex){g.startRowIndex===b&&g.startColIndex===x?u=r.props.headerRow-b-A.rowspan:u=g.rowIndex-A.rowIndex-A.rowspan,p.row>u&&(p.row=u);return}if(g.rowIndex===A.rowIndex&&g.colIndex>A.colIndex){g.startRowIndex===b&&g.startColIndex===x?T=r.props.col-x-A.colspan:T=g.colIndex-A.colIndex-A.colspan,p.col>T&&(p.col=T);return}}})}),p.row=p.row>=0?p.row:0,p.col=p.col>=0?p.col:0,p}}}},hP=({props:r,layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,getHeaderCellId:a}={})=>{const{defaultData:d}=e.inject("printForm"),f=e.computed(()=>{let w=r.componentDetails.props,R=[];return w&&w.canContinue&&w.continuePrintMode=="fixedHeight"?R.push("complex-table-component-container--fixed-height"):w&&w.canContinue&&w.continuePrintMode=="autoHeight"&&w.autoHeightSpanCell?R.push("complex-table-component-container--auto-height-span"):w&&w.canContinue&&w.continuePrintMode=="autoHeight"&&!w.autoHeightSpanCell&&R.push("complex-table-component-container--auto-height-not-span"),R.join(" ")}),c=e.computed(()=>{let w=r.componentDetails.props,R=r.componentDetails.style;return M.createComplexTableStyle({propsConfig:w,styleConfig:R})}),m=e.computed(()=>({rowIndex:w,colIndex:R})=>{let y=r.componentDetails.props,$=r.componentDetails.style,_=r.componentDetails.headerRules,k=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R}),L=!1,B=!1;return _&&_[k]&&(L=_[k].props,B=_[k].style),M.createComplexTableHeaderTdStyle({complexTablePropsConfig:y,complexTableStyleConfig:$,tdPropsConfig:L,tdStyleConfig:B})}),h=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=r.componentDetails.props,$=r.componentDetails.style,_=r.componentDetails.headerRules,k=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R}),L=!1,B=!1;return _&&_[k]&&(L=_[k].props,B=_[k].style),M.createComplexTableHeaderTdContainerStyle({complexTablePropsConfig:y,complexTableStyleConfig:$,tdPropsConfig:L,tdStyleConfig:B})}),b=e.computed(()=>{let w=r.componentDetails.props,R=r.componentDetails.style;return M.createComplexTableContentTdStyle({complexTablePropsConfig:w,complexTableStyleConfig:R})}),x=e.computed(()=>{let w=r.componentDetails.props,R=r.componentDetails.style;return M.createComplexTableContentTdContainerStyle({complexTablePropsConfig:w,complexTableStyleConfig:R})}),p=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.headerRow?0:r.componentDetails.props.headerRow),O=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.col?0:r.componentDetails.props.col),C=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=a({rowIndex:w,colIndex:R});return n.value[y]?n.value[y]:1}),s=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=a({rowIndex:w,colIndex:R});return o.value[y]?o.value[y]:1}),S=e.computed(()=>({rowIndex:w,colIndex:R}={})=>r.componentDetails.id?`${r.componentDetails.id}_${a({rowIndex:w,colIndex:R})}`:a({rowIndex:w,colIndex:R})),u=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{if(i.length<=0)return!0;let y=i.find(($,_)=>w===$.rowIndex&&$.colIndex===R);if(!y)return!0;if(y)return y.show}),T=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=r.componentDetails.headerRules,$=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R}),_=!1;return y&&y[$]&&(_=y[$].props),_?_.title:""}),A=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return[];let w=r.componentDetails.props.field;return Array.isArray(d.value[w])?q(d.value[w]):[]}),V=e.computed(()=>({rowIndex:w,colIndex:R}={})=>{let y=r.componentDetails.props;if(!y.columnsField||!y.columnsField[R])return"";let $=y.columnsField[R].field;if(!A.value[w])return"";let _=A.value[w][$];return _||_===0?_:""}),g=e.computed(()=>({rowIndex:w,colIndex:R})=>{let y=r.componentDetails.headerRules,$=M.getComplexTableHeaderRulesId({rowIndex:w,colIndex:R});return y&&y[$]?!!y[$].props.slash:!1}),I=e.computed(()=>{let w=r.componentDetails.props;return w?!!w.isPaginationEnabled:!1});return{complexTableClass:f,complexTableStyle:c,complexTableHeaderTdStyle:m,complexTableHeaderTdContainerStyle:h,complexTableContentTdStyle:b,complexTableContentTdContainerStyle:x,headerRowNum:p,colNum:O,rowspan:C,colspan:s,tdKey:S,tdShow:u,headerTdText:T,contetnTableData:A,contentTdText:V,headerTdHasSlash:g,paginationShow:I}},uP=["rowspan","colspan"],gP=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getHeaderCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}=mP({complexTableDetails:n.componentDetails}),{complexTableClass:x,complexTableStyle:p,complexTableHeaderTdStyle:O,complexTableHeaderTdContainerStyle:C,complexTableContentTdStyle:s,complexTableContentTdContainerStyle:S,headerRowNum:u,colNum:T,rowspan:A,colspan:V,tdKey:g,tdShow:I,headerTdText:w,contetnTableData:R,contentTdText:y,headerTdHasSlash:$,paginationShow:_}=hP({props:n,layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,getHeaderCellId:c});return e.provide("printForm_complexTabletComponent",{complexTableDetails:n.componentDetails}),e.provide("printForm_complexTabletComponent--layout",{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getHeaderCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}),e.watch(()=>n.componentDetails.headerLayout,(k,L)=>{f()},{immediate:!0,deep:!0}),t({}),(k,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`complex-table-component-container ${e.unref(x)}`)},[e.createElementVNode("table",{class:"complex-table-component-table",cellspacing:"0",cellpadding:"0",style:e.normalizeStyle(e.unref(p))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(B,E)=>(e.openBlock(),e.createElementBlock("tr",{key:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),(N,W)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(I)({rowIndex:E,colIndex:W})?(e.openBlock(),e.createElementBlock("td",{key:e.unref(g)({rowIndex:E,colIndex:W}),style:e.normalizeStyle(e.unref(O)({rowIndex:E,colIndex:W})),rowspan:e.unref(A)({rowIndex:E,colIndex:W}),colspan:e.unref(V)({rowIndex:E,colIndex:W})},[e.unref($)({rowIndex:E,colIndex:W})?(e.openBlock(),e.createBlock(fP,{key:0,"item-details":{rowIndex:E,colIndex:W}},null,8,["item-details"])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(e.unref(C)({rowIndex:E,colIndex:W}))},e.toDisplayString(e.unref(w)({rowIndex:E,colIndex:W})),5))],12,uP)):e.createCommentVNode("",!0)],64))),256))]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R),(B,E)=>(e.openBlock(),e.createElementBlock("tr",{key:E},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),(N,W)=>(e.openBlock(),e.createElementBlock("td",{style:e.normalizeStyle(e.unref(s))},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(S))},e.toDisplayString(e.unref(y)({rowIndex:E,colIndex:W})),5)],4))),256))]))),128))],4),e.withDirectives(e.createVNode(pP,null,null,512),[[e.vShow,e.unref(_)]])],2))}},[["__scopeId","data-v-8e89d2fd"]]),bP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>`barcode-form_${r.componentDetails.id}`),o=e.computed(()=>{let a=r.componentDetails.style;return M.createBarcodeContainerStyle({styleConfig:a})}),l=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return"";let a=r.componentDetails.props.field;return t.value[a]||t.value[a]===0?t.value[a]:"00000000000"}),i=e.ref(!1);return{svgId:n,containerStyle:o,barcodeValue:l,barcodeInitError:i}},yP=["id"],xP={class:"barcode-error"},fp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{svgId:o,containerStyle:l,barcodeValue:i,barcodeInitError:a}=bP(n);e.watch(()=>n.componentDetails,(c,m)=>{e.nextTick(()=>{d()})},{immediate:!0,deep:!0}),e.watch(i,(c,m)=>{e.nextTick(()=>{f()})});const d=()=>{try{if(a.value=!1,!n.componentDetails||!n.componentDetails.props)return;f()}catch(c){console.warn(c),a.value=!0}},f=()=>{let c=n.componentDetails?n.componentDetails.props:{};JsBarcode(`#${o.value}`,i.value,{format:c.format,lineColor:c.lineColor,background:c.background,width:c.width,height:c.height,displayValue:c.displayValue,fontSize:c.fontSize,margin:c.margin,textAlign:c.textAlign,textPosition:c.textPosition})};return t({}),(c,m)=>{const h=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{class:"barcode-component-container",style:e.normalizeStyle(e.unref(l))},[(e.openBlock(),e.createElementBlock("svg",{id:e.unref(o)},null,8,yP)),e.withDirectives(e.createElementVNode("div",xP,[e.createVNode(h,{size:"small",plain:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode("刷新")]),_:1})],512),[[e.vShow,!!e.unref(a)]])],4)}}},[["__scopeId","data-v-9afba07f"]]),CP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>`qrcode-component_${r.componentDetails.id}`),o=e.computed(()=>{let a=r.componentDetails.style;return M.createQrcodeContainerStyle({styleConfig:a})}),l=e.ref(!1),i=e.computed(()=>{if(!r.componentDetails.props||!r.componentDetails.props.field)return"";let a=r.componentDetails.props.field;return t.value[a]||t.value[a]===0?t.value[a]:"无效二维码"});return{qrcodeId:n,containerStyle:o,qrcodeInstance:l,qrcodeText:i}},OP=["id"],cp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{qrcodeId:o,containerStyle:l,qrcodeInstance:i,qrcodeText:a}=CP(n);e.watch(()=>n.componentDetails,(f,c)=>{e.nextTick(()=>{d()})},{immediate:!0,deep:!0}),e.watch(a,(f,c)=>{i.value&&i.value.makeCode(a.value)});const d=()=>{try{let f=n.componentDetails?n.componentDetails.props:{};if(!f)return;i.value||(i.value=new window.QRCode(document.getElementById(o.value),{text:a.value,width:f.width,height:f.height}))}catch(f){console.warn(f)}};return t({}),(f,c)=>(e.openBlock(),e.createElementBlock("div",{class:"qrcode-component-container",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("div",{id:e.unref(o)},null,8,OP)],4))}},[["__scopeId","data-v-a83eeb76"]]),wP=r=>{const{defaultData:t}=e.inject("printForm"),n=e.computed(()=>{let l=r.componentDetails.style;return M.createImageContainerStyle({styleConfig:l})}),o=e.computed(()=>{let l=r.componentDetails.props;return l&&!l.field&&l.src?l.src:l&&l.field?t.value[l.field]:""});return{containerStyle:n,imageSrc:o}},_P=["src"],pp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,imageSrc:l}=wP(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"image-component-container",style:e.normalizeStyle(e.unref(o))},[e.createElementVNode("img",{class:"image-component-content",src:e.unref(l)},null,8,_P)],4))}},[["__scopeId","data-v-40f5ffdf"]]),Yr=(r,t)=>{const{formConfig:n}=e.inject("printForm"),{changeLogs:o}=e.inject("valueChange"),l=e.computed(()=>{let x=r.componentDetails.style;return M.createFormItemStyle({styleConfig:x})}),i=e.computed(()=>{let x=r.componentDetails.style,p=r.componentDetails.props?r.componentDetails.props:{};return M.createFormItemLabelStyleInDesigner({styleConfig:x,formConfigProps:n,formItemProps:p})}),a=e.computed(()=>{let x=r.componentDetails.style;return M.createFormItemMainStyleInDesigner({styleConfig:x})}),d=e.computed(()=>{let x=r.componentDetails.formItemProps?q(r.componentDetails.formItemProps):{};return Object.keys(x).forEach(p=>{!x[p]&&n.value.props[p]&&(x[p]=n.value.props[p])}),x.size=n.value.props.size,x}),f=e.computed(()=>!!(r.componentDetails.formItemProps?q(r.componentDetails.formItemProps):{}).label),c=e.computed(()=>{let x=r.componentDetails.formItemProps?q(r.componentDetails.formItemProps):{};return x.label?x.label:""}),m=e.computed(()=>r.componentDetails.props?r.componentDetails.props:{});return{formItemStyle:l,formItemLabelStyle:i,formItemMainStyle:a,formItemProps:d,formItemLabelShow:f,formItemLabel:c,componentDetailsProps:m,selectChange:x=>{o.value.set(m.value.field,x)},inputChange:x=>{o.value.set(m.value.field,x)}}},SP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field);return{inputProps:n,field:o}},mp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},emits:["change"],setup(r,{expose:t,emit:n}){const o=r,{formItemStyle:l,formItemLabelStyle:i,formItemMainStyle:a,formItemProps:d,formItemLabelShow:f,formItemLabel:c,componentDetailsProps:m,inputChange:h}=Yr(o),{inputProps:b}=SP(o),{elFormData:x}=e.inject("printForm"),p=e.computed({get:()=>x[m.value.field],set:C=>{x[m.value.field]=C}}),{changeLogs:O}=e.inject("valueChange");return e.watch(O,(C,s)=>{if(m.value.compute){let S=0,u=0;switch(m.value.computeMethods){case"sum":console.log("watch:",m.value,{n:C,o:s}),m.value.fields.forEach(T=>{S+=parseInt(O.value.get(T)??0)}),x[m.value.field]=S;break;case"average":console.log("watch:",m.value,{n:C,o:s}),m.value.fields.forEach(T=>{S+=parseInt(O.value.get(T)??0)}),u=S/m.value.fields.length,x[m.value.field]=u;break}}},{deep:!0}),t({}),(C,s)=>{const S=e.resolveComponent("el-input"),u=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(u,e.mergeProps({class:"input-component-container",style:e.unref(l)},e.unref(d)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(a))},[e.createVNode(S,e.mergeProps({modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=T=>p.value=T)},e.unref(b),{onChange:e.unref(h)}),null,16,["modelValue","onChange"])],4)]),_:2},[e.unref(f)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(i))},e.toDisplayString(e.unref(c)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-ce64ef71"]]),kP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>{let l=r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{};return l.autosize&&(l.rows=1),l}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field);return{textareaProps:n,field:o}},hp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{textareaProps:c,field:m}=kP(n),{elFormData:h}=e.inject("printForm");return t({}),(b,x)=>{const p=e.resolveComponent("el-input"),O=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(O,e.mergeProps({class:"textarea-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(p,e.mergeProps({modelValue:e.unref(h)[e.unref(m)],"onUpdate:modelValue":x[0]||(x[0]=C=>e.unref(h)[e.unref(m)]=C),type:"textarea"},e.unref(c)),null,16,["modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-3fcf7d21"]]),TP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),l=e.computed(()=>{let i=r.componentDetails.props?r.componentDetails.props:{};return i.dataSource?i.dataSource:[]});return{radioProps:n,field:o,dataSource:l}},up=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{radioProps:c,field:m,dataSource:h}=TP(n),{elFormData:b}=e.inject("printForm");return t({}),(x,p)=>{const O=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"radio-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(C,e.mergeProps({modelValue:e.unref(b)[e.unref(m)],"onUpdate:modelValue":p[0]||(p[0]=S=>e.unref(b)[e.unref(m)]=S)},e.unref(c)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(S,u)=>(e.openBlock(),e.createBlock(O,{key:S.value,value:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.label),1)]),_:2},1032,["value"]))),128))]),_:1},16,["modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-375e469b"]]),IP=r=>{const{formConfig:t,elFormData:n}=e.inject("printForm"),o=e.ref([]),l=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),i=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),a=e.computed(()=>{let c=r.componentDetails.props?r.componentDetails.props:{};return c.dataSource?c.dataSource:[]});return{checkboxValue:o,checkboxProps:l,field:i,dataSource:a,setCheckboxValueByStr:c=>{if(typeof c!="string"||!c){o.value=[];return}let m=c.split(",");o.value=m},setFormItemDataByCheckboxValue:()=>{n[i.value]=o.value.join(",")}}},gp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{checkboxValue:c,checkboxProps:m,field:h,dataSource:b,setCheckboxValueByStr:x,setFormItemDataByCheckboxValue:p}=IP(n),{elFormData:O}=e.inject("printForm");return e.watch([()=>O[h.value],h],(C,s)=>{h.value&&x(O[h.value])},{immediate:!0,deep:!0}),e.watch(c,(C,s)=>{p()},{deep:!0}),t({}),(C,s)=>{const S=e.resolveComponent("el-checkbox"),u=e.resolveComponent("el-checkbox-group"),T=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(T,e.mergeProps({class:"checkbox-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(u,e.mergeProps({modelValue:e.unref(c),"onUpdate:modelValue":s[0]||(s[0]=A=>e.isRef(c)?c.value=A:null)},e.unref(m)),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),(A,V)=>(e.openBlock(),e.createBlock(S,{key:A.value,value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),128))]),_:1},16,["modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-7153842c"]]),AP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),l=e.computed(()=>{let i=r.componentDetails.props?r.componentDetails.props:{};return i.dataSource?i.dataSource:[]});return{selectProps:n,field:o,dataSource:l}},bp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},emits:["change"],setup(r,{expose:t,emit:n}){const o=r,{formItemStyle:l,formItemLabelStyle:i,formItemMainStyle:a,formItemProps:d,formItemLabelShow:f,formItemLabel:c,selectChange:m}=Yr(o),{selectProps:h,field:b,dataSource:x}=AP(o),{elFormData:p}=e.inject("printForm"),{changeLogs:O}=e.inject("valueChange");return e.watch(p,()=>{p[b.value]&&O.value.set(b.value,p[b.value])},{deep:!0}),t({}),(C,s)=>{const S=e.resolveComponent("el-option"),u=e.resolveComponent("el-select"),T=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(T,e.mergeProps({class:"select-component-container",style:e.unref(l)},e.unref(d)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(a))},[e.createVNode(u,e.mergeProps({modelValue:e.unref(p)[e.unref(b)],"onUpdate:modelValue":s[0]||(s[0]=A=>e.unref(p)[e.unref(b)]=A)},e.unref(h),{onChange:e.unref(m)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),(A,V)=>(e.openBlock(),e.createBlock(S,{key:A.value,label:A.label,value:A.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","onChange"])],4)]),_:2},[e.unref(f)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(i))},e.toDisplayString(e.unref(c)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-35e8dce8"]]),VP=r=>{const{formConfig:t}=e.inject("printForm"),n=e.computed(()=>{let i=r.componentDetails.formComponentProps?q(r.componentDetails.formComponentProps):{};return i.valueFormat&&(i.format=i.valueFormat),i}),o=e.computed(()=>!r.componentDetails||!r.componentDetails.props||!r.componentDetails.props.field?"":r.componentDetails.props.field),l=e.computed(()=>{let i=r.componentDetails.props;if(!i)return"";let a=[];return i.hideTimeIcon&&a.push("datetime-component--hide-time-icon"),a.join(" ")});return{datetimeProps:n,field:o,elDatePickerClass:l}},yp=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{formItemStyle:o,formItemLabelStyle:l,formItemMainStyle:i,formItemProps:a,formItemLabelShow:d,formItemLabel:f}=Yr(n),{datetimeProps:c,field:m,elDatePickerClass:h}=VP(n),{elFormData:b}=e.inject("printForm");return t({}),(x,p)=>{const O=e.resolveComponent("el-date-picker"),C=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(C,e.mergeProps({class:"datetime-component-container",style:e.unref(o)},e.unref(a)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createVNode(O,e.mergeProps({class:`datetime-component ${e.unref(h)}`,modelValue:e.unref(b)[e.unref(m)],"onUpdate:modelValue":p[0]||(p[0]=s=>e.unref(b)[e.unref(m)]=s),type:"datetime"},e.unref(c)),null,16,["class","modelValue"])],4)]),_:2},[e.unref(d)?{name:"label",fn:e.withCtx(()=>[e.createElementVNode("p",{style:e.normalizeStyle(e.unref(l))},e.toDisplayString(e.unref(f)),5)]),key:"0"}:void 0]),1040,["style"])}}},[["__scopeId","data-v-f6f5348b"]]),BP=r=>{const t=e.computed(()=>{let o=r.itemDetails.style;return M.createGridItemStyle({styleConfig:o,props:r.itemDetails.props})}),n=e.computed(()=>!r.itemDetails.children||r.itemDetails.children.length<=0?[]:r.itemDetails.children);return{containerStyle:t,componentList:n}},RP=G({__name:"GridItem",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,componentList:l}=BP(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"grid-item-container",style:e.normalizeStyle(e.unref(o))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.type=="text"?(e.openBlock(),e.createBlock(sp,{key:0,"component-details":d},null,8,["component-details"])):d.type=="dynamicText"?(e.openBlock(),e.createBlock(ap,{key:1,"component-details":d},null,8,["component-details"])):d.type=="barcode"?(e.openBlock(),e.createBlock(fp,{key:2,"component-details":d},null,8,["component-details"])):d.type=="qrcode"?(e.openBlock(),e.createBlock(cp,{key:3,"component-details":d},null,8,["component-details"])):d.type=="image"?(e.openBlock(),e.createBlock(pp,{key:4,"component-details":d},null,8,["component-details"])):d.type=="table"?(e.openBlock(),e.createBlock(dp,{key:5,"component-details":d},null,8,["component-details"])):d.type=="input"?(e.openBlock(),e.createBlock(mp,{key:6,"component-details":d},null,8,["component-details"])):d.type=="textarea"?(e.openBlock(),e.createBlock(hp,{key:7,"component-details":d},null,8,["component-details"])):d.type=="radio"?(e.openBlock(),e.createBlock(up,{key:8,"component-details":d},null,8,["component-details"])):d.type=="checkbox"?(e.openBlock(),e.createBlock(gp,{key:9,"component-details":d},null,8,["component-details"])):d.type=="select"?(e.openBlock(),e.createBlock(bp,{key:10,"component-details":d},null,8,["component-details"])):d.type=="datetime"?(e.openBlock(),e.createBlock(yp,{key:11,"component-details":d},null,8,["component-details"])):e.createCommentVNode("",!0)],64))),256))],4))}},[["__scopeId","data-v-6ab6083e"]]),$P=r=>{const t=e.computed(()=>{let o=r.componentDetails.style;return M.createGridStyle({styleConfig:o})}),n=e.computed(()=>!r.componentDetails||!r.componentDetails.children||r.componentDetails.children.length<=0?[]:r.componentDetails.children);return{containerStyle:t,gridItemList:n}},LP=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,gridItemList:l}=$P(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"grid-component-container",style:e.normalizeStyle(e.unref(o))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(d,f)=>(e.openBlock(),e.createBlock(RP,{key:d.id,"item-details":d},null,8,["item-details"]))),128))],4))}},[["__scopeId","data-v-9fca917c"]]),PP=r=>{const{tableLayoutDetails:t}=e.inject("printForm_tableLayoutComponent"),{countUnmergedCells:n,getLayoutItem:o}=e.inject("printForm_tableLayoutComponent--layout"),l=e.computed(()=>{let f=t.style,c=t.styleRules,m=M.getTableLayoutStyleRulesId({rowIndex:r.itemDetails.rowIndex,colIndex:r.itemDetails.colIndex}),h=!1;return c&&c[m]&&(h=c[m]),M.createTableLayoutTdContainerStyle({tableLayoutStyleConfig:f,tdStyleConfig:h})}),i=e.computed(()=>r.itemDetails.rowIndex),a=e.computed(()=>r.itemDetails.colIndex),d=e.computed(()=>{let f=[];return t.children.forEach((c,m)=>{c.rowIndex===i.value&&c.colIndex===a.value&&f.push(c)}),f});return{containerStyle:l,rowIndex:i,colIndex:a,componentList:d}},EP=G({__name:"TableLayoutItem",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerStyle:o,componentList:l}=PP(n);return t({}),(i,a)=>(e.openBlock(),e.createElementBlock("div",{class:"table-layout-item-container",style:e.normalizeStyle(e.unref(o))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[d.type=="text"?(e.openBlock(),e.createBlock(sp,{key:0,"component-details":d},null,8,["component-details"])):d.type=="dynamicText"?(e.openBlock(),e.createBlock(ap,{key:1,"component-details":d},null,8,["component-details"])):d.type=="barcode"?(e.openBlock(),e.createBlock(fp,{key:2,"component-details":d},null,8,["component-details"])):d.type=="qrcode"?(e.openBlock(),e.createBlock(cp,{key:3,"component-details":d},null,8,["component-details"])):d.type=="image"?(e.openBlock(),e.createBlock(pp,{key:4,"component-details":d},null,8,["component-details"])):d.type=="table"?(e.openBlock(),e.createBlock(dp,{key:5,"component-details":d},null,8,["component-details"])):d.type=="input"?(e.openBlock(),e.createBlock(mp,{key:6,"component-details":d},null,8,["component-details"])):d.type=="textarea"?(e.openBlock(),e.createBlock(hp,{key:7,"component-details":d},null,8,["component-details"])):d.type=="radio"?(e.openBlock(),e.createBlock(up,{key:8,"component-details":d},null,8,["component-details"])):d.type=="checkbox"?(e.openBlock(),e.createBlock(gp,{key:9,"component-details":d},null,8,["component-details"])):d.type=="select"?(e.openBlock(),e.createBlock(bp,{key:10,"component-details":d},null,8,["component-details"])):d.type=="datetime"?(e.openBlock(),e.createBlock(yp,{key:11,"component-details":d},null,8,["component-details"])):e.createCommentVNode("",!0)],64))),256))],4))}},[["__scopeId","data-v-c883987a"]]),NP=r=>{const{tableLayoutDetails:t}=e.inject("printForm_tableLayoutComponent"),n=e.ref(),o=e.computed(()=>{let c=t.styleRules,m=M.getTableLayoutStyleRulesId({rowIndex:r.itemDetails.rowIndex,colIndex:r.itemDetails.colIndex});return c&&c[m]?c[m]:{}}),l=e.computed(()=>{let c=[];return o.value.container_custom_slash&&c.push(`table-layout-item-slash-container--${o.value.container_custom_slashDirection}`),c.join(" ")}),i=e.ref(""),a=e.computed(()=>o.value.container_custom_slashTextLeft?o.value.container_custom_slashTextLeft:""),d=e.computed(()=>o.value.container_custom_slashTextRight?o.value.container_custom_slashTextRight:"");return{containerRef:n,tdStyleConfig:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,setSlashStyle:()=>{if(!o.value.container_custom_slash){i.value="";return}let c=n.value.parentElement,m=M.createTableLayoutTdSlashStyle({width:c.clientWidth,height:c.clientHeight,direction:o.value.container_custom_slashDirection});i.value=m}}},MP={class:"_t-l-i-s_left"},DP={class:"_t-l-i-s_right"},QP=G({__name:"TableLayoutItemSlash",props:{itemDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{containerRef:o,containerClass:l,slashStyle:i,slashTextLeft:a,slashTextRight:d,setSlashStyle:f}=NP(n);return e.onMounted(()=>{f()}),t({}),(c,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:o,class:e.normalizeClass(`table-layout-item-slash-container ${e.unref(l)}`)},[e.createElementVNode("span",MP,e.toDisplayString(e.unref(a)),1),e.createElementVNode("span",{class:"_t-l-i-s_slash",style:e.normalizeStyle(e.unref(i))},null,4),e.createElementVNode("span",DP,e.toDisplayString(e.unref(d)),1)],2))}},[["__scopeId","data-v-14903364"]]),WP=({tableLayoutDetails:r}={})=>{const t=e.computed(()=>{let h={};return r.layout&&r.layout.forEach((b,x)=>{h[d({rowIndex:b.rowIndex,colIndex:b.colIndex})]=b}),h}),n=e.computed(()=>{let h={};return r.layout&&r.layout.forEach((b,x)=>{b.rowspan&&(h[d({rowIndex:b.rowIndex,colIndex:b.colIndex})]=b.rowspan)}),h}),o=e.computed(()=>{let h={};return r.layout&&r.layout.forEach((b,x)=>{b.colspan&&(h[d({rowIndex:b.rowIndex,colIndex:b.colIndex})]=b.colspan)}),h}),l=e.reactive({}),i=e.reactive([]),a=()=>{let h={},b=[];if(!r.layout||r.layout.length<=0){ue(l,{}),i.splice(0,i.length);return}r.layout.forEach((x,p)=>{let O=x.rowspan?x.rowspan:1,C=x.colspan?x.colspan:1,s=x.rowIndex,S=x.rowIndex+O-1,u=x.colIndex,T=x.colIndex+C-1,A=[];for(let V=s;V<=S;V++)for(let g=u;g<=T;g++)V===x.rowIndex&&g===x.colIndex?A.push({rowIndex:V,colIndex:g,rowspan:O,colspan:C,show:!0}):A.push({rowIndex:V,colIndex:g,rowspan:O,colspan:C,startRowIndex:x.rowIndex,startColIndex:x.colIndex,show:!1});h[d({rowIndex:x.rowIndex,colIndex:x.colIndex})]=A,b.push(...A)}),ue(l,h),i.splice(0,i.length,...b)},d=({rowIndex:h,colIndex:b}={})=>`${h}-${b}`,f=()=>{r.layout||(r.layout=[])},c=({rowIndex:h,colIndex:b}={})=>{if(!r.layout||r.layout.length<=0)return!1;let x=!1;return r.layout.forEach((p,O)=>{p.rowIndex===h&&p.colIndex===b&&(x=p)}),x};return{layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,setSpanCell:a,getCellId:d,createLayout:f,getLayoutItem:c,countUnmergedCells:({rowIndex:h,colIndex:b}={})=>{let x={row:r.props.row-h-1,col:r.props.col-b-1};if(!r.layout||r.layout.length<=0)return x;let p=1,O=1,C=c({rowIndex:h,colIndex:b});C&&C.rowspan&&(p=C.rowspan),C&&C.colspan&&(O=C.colspan);let s=l[d({rowIndex:h,colIndex:b})];if(!s)return i.forEach((S,u)=>{if(S.colIndex===b&&S.rowIndex>h){let T=S.rowIndex-h-p;x.row>T&&(x.row=T);return}if(S.rowIndex===h&&S.colIndex>b){let T=S.colIndex-b-O;x.col>T&&(x.col=T);return}}),x;if(s){let S,u;return s.forEach((T,A)=>{i.forEach((V,g)=>{if(!(V.rowIndex===T.rowIndex&&V.colIndex===T.colIndex)){if(V.colIndex===T.colIndex&&V.rowIndex>T.rowIndex){V.startRowIndex===h&&V.startColIndex===b?S=r.props.row-h-T.rowspan:S=V.rowIndex-T.rowIndex-T.rowspan,x.row>S&&(x.row=S);return}if(V.rowIndex===T.rowIndex&&V.colIndex>T.colIndex){V.startRowIndex===h&&V.startColIndex===b?u=r.props.col-b-T.colspan:u=V.colIndex-T.colIndex-T.colspan,x.col>u&&(x.col=u);return}}})}),x.row=x.row>=0?x.row:0,x.col=x.col>=0?x.col:0,x}}}},UP=({props:r,layoutDict:t,layoutRowspanDict:n,layoutColspanDict:o,spanCellDict:l,spanCellList:i,getCellId:a}={})=>{const d=e.computed(()=>{let C=r.componentDetails.style;return M.createTableLayoutStyle({styleConfig:C})}),f=e.computed(()=>({rowIndex:C,colIndex:s})=>{let S=r.componentDetails.style,u=r.componentDetails.styleRules,T=M.getTableLayoutStyleRulesId({rowIndex:C,colIndex:s}),A=!1;return u&&u[T]&&(A=u[T]),M.createTableLayoutTdStyle({tableLayoutStyleConfig:S,tdStyleConfig:A})}),c=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.row?0:r.componentDetails.props.row),m=e.computed(()=>!r.componentDetails.props||!r.componentDetails.props.col?0:r.componentDetails.props.col),h=e.computed(()=>({rowIndex:C,colIndex:s}={})=>{let S=a({rowIndex:C,colIndex:s});return n.value[S]?n.value[S]:1}),b=e.computed(()=>({rowIndex:C,colIndex:s}={})=>{let S=a({rowIndex:C,colIndex:s});return o.value[S]?o.value[S]:1}),x=e.computed(()=>({rowIndex:C,colIndex:s}={})=>r.componentDetails.id?`${r.componentDetails.id}_${a({rowIndex:C,colIndex:s})}`:a({rowIndex:C,colIndex:s})),p=e.computed(()=>({rowIndex:C,colIndex:s}={})=>{if(i.length<=0)return!0;let S=i.find((u,T)=>C===u.rowIndex&&u.colIndex===s);if(!S)return!0;if(S)return S.show}),O=e.computed(()=>({rowIndex:C,colIndex:s})=>{let S=r.componentDetails.styleRules,u=M.getTableLayoutStyleRulesId({rowIndex:C,colIndex:s});return S&&S[u]?!!S[u].container_custom_slash:!1});return{tableLayoutStyle:d,tableLayoutTdStyle:f,rowNum:c,colNum:m,rowspan:h,colspan:b,tdKey:x,tdShow:p,tdHasSlash:O}},ZP={class:"table-layout-component-container"},zP=["rowspan","colspan"],HP=G({__name:"index",props:{componentDetails:{type:Object,default(){return{}}}},setup(r,{expose:t}){const n=r,{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}=WP({tableLayoutDetails:n.componentDetails}),{tableLayoutStyle:x,tableLayoutTdStyle:p,rowNum:O,colNum:C,rowspan:s,colspan:S,tdKey:u,tdShow:T,tdHasSlash:A}=UP({props:n,layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,getCellId:c});return e.provide("printForm_tableLayoutComponent",{tableLayoutDetails:n.componentDetails}),e.provide("printForm_tableLayoutComponent--layout",{layoutDict:o,layoutRowspanDict:l,layoutColspanDict:i,spanCellDict:a,spanCellList:d,setSpanCell:f,getCellId:c,createLayout:m,getLayoutItem:h,countUnmergedCells:b}),e.watch(()=>n.componentDetails.layout,(V,g)=>{f()},{immediate:!0,deep:!0}),t({}),(V,g)=>(e.openBlock(),e.createElementBlock("div",ZP,[e.createElementVNode("table",{class:"table-layout-component-table",cellspacing:"0",cellpadding:"0",style:e.normalizeStyle(e.unref(x))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(O),(I,w)=>(e.openBlock(),e.createElementBlock("tr",{key:w},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),(R,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(T)({rowIndex:w,colIndex:y})?(e.openBlock(),e.createElementBlock("td",{key:e.unref(u)({rowIndex:w,colIndex:y}),style:e.normalizeStyle(e.unref(p)({rowIndex:w,colIndex:y})),rowspan:e.unref(s)({rowIndex:w,colIndex:y}),colspan:e.unref(S)({rowIndex:w,colIndex:y})},[e.unref(A)({rowIndex:w,colIndex:y})?(e.openBlock(),e.createBlock(QP,{key:0,"item-details":{rowIndex:w,colIndex:y}},null,8,["item-details"])):(e.openBlock(),e.createBlock(EP,{key:1,"item-details":{tableLayoutId:n.componentDetails.id,rowIndex:w,colIndex:y,rowspan:e.unref(s)({rowIndex:w,colIndex:y}),colspan:e.unref(S)({rowIndex:w,colIndex:y})}},null,8,["item-details"]))],12,zP)):e.createCommentVNode("",!0)],64))),256))]))),128))],4)]))}},[["__scopeId","data-v-e53d72c5"]]),jP=()=>{const{componentProps:r,enableComponent:t,formConfig:n,printConfig:o}=e.inject("printForm"),l=e.ref(),i=e.computed(()=>{let f=[];if(o.value){let c=o.value.pageSize?o.value.pageSize:"";if(c=="custom")return f.join(" ");c&&o.value.landscape&&(c+="-landscape"),f.push(`print-default-form-container--${c.toLowerCase()}`)}return f.join(" ")}),a=e.computed(()=>{let f=o.value.style,c=M.createPageSizeStyle({printConfig:o.value});return c+=M.createContainerStyle({styleConfig:f}),c}),d=e.computed(()=>t.value?n.value.props:{});return{formRef:l,containerClass:i,containerStyle:a,elFormProps:d}},$0=G({__name:"index",setup(r,{expose:t}){const n=e.ref(new Map);e.provide("valueChange",{changeLogs:n});const{formRef:o,containerClass:l,containerStyle:i,elFormProps:a}=jP(),{layoutConfig:d,elFormData:f,elFormRules:c}=e.inject("printForm");return t({}),(m,h)=>{const b=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`print-default-form-container ${e.unref(l)}`),style:e.normalizeStyle(e.unref(i))},[e.createVNode(b,e.mergeProps({class:"print-default-form",ref_key:"formRef",ref:o},e.unref(a),{model:e.unref(f),rules:e.unref(c),onSubmit:h[0]||(h[0]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(x,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x.type=="text"?(e.openBlock(),e.createBlock(sp,{key:0,"component-details":x},null,8,["component-details"])):x.type=="dynamicText"?(e.openBlock(),e.createBlock(ap,{key:1,"component-details":x},null,8,["component-details"])):x.type=="barcode"?(e.openBlock(),e.createBlock(fp,{key:2,"component-details":x},null,8,["component-details"])):x.type=="qrcode"?(e.openBlock(),e.createBlock(cp,{key:3,"component-details":x},null,8,["component-details"])):x.type=="image"?(e.openBlock(),e.createBlock(pp,{key:4,"component-details":x},null,8,["component-details"])):x.type=="table"?(e.openBlock(),e.createBlock(dp,{key:5,"component-details":x},null,8,["component-details"])):x.type=="complexTable"?(e.openBlock(),e.createBlock(gP,{key:6,"component-details":x},null,8,["component-details"])):x.type=="input"?(e.openBlock(),e.createBlock(mp,{key:7,"component-details":x},null,8,["component-details"])):x.type=="textarea"?(e.openBlock(),e.createBlock(hp,{key:8,"component-details":x},null,8,["component-details"])):x.type=="radio"?(e.openBlock(),e.createBlock(up,{key:9,"component-details":x},null,8,["component-details"])):x.type=="checkbox"?(e.openBlock(),e.createBlock(gp,{key:10,"component-details":x},null,8,["component-details"])):x.type=="select"?(e.openBlock(),e.createBlock(bp,{key:11,"component-details":x},null,8,["component-details"])):x.type=="datetime"?(e.openBlock(),e.createBlock(yp,{key:12,"component-details":x},null,8,["component-details"])):x.type=="grid"?(e.openBlock(),e.createBlock(LP,{key:13,"component-details":x},null,8,["component-details"])):x.type=="tableLayout"?(e.openBlock(),e.createBlock(HP,{key:14,"component-details":x},null,8,["component-details"])):e.createCommentVNode("",!0)],64))),256))]),_:1},16,["model","rules"])],6)}}},[["__scopeId","data-v-6af9b1c3"]]),FP=(r,t)=>{const n=e.ref(!1),o=e.computed(()=>n.value?r.designerConfig.printConfig:{}),l=e.computed(()=>n.value?r.designerConfig.formConfig:{}),i=e.computed(()=>n.value?r.designerConfig.layoutConfig:[]),a=e.computed(()=>{if(!n.value)return{};let V=r.data;return q(V)}),d=e.ref(),f=e.ref(),c=e.computed(()=>n.value?r.mode=="default":!1),m=e.computed(()=>n.value?r.mode=="simple":!1),h=()=>r.mode=="default"?d.value:r.mode=="simple"?f.value:!1,b={printConfig:{},formConfig:{},layoutConfig:[]},x=()=>new Promise((V,g)=>{let I=r.designerConfig;if(typeof I!="object")return n.value=!1,g("print-form组件:designerConfig应该是一个对象");let w=[];return I.printConfig||w.push("printConfig"),I.formConfig||w.push("formConfig"),I.layoutConfig||w.push("layoutConfig"),w.length>0?(n.value=!1,g(`print-form组件:designerConfig缺少属性【${w.join(",")}】`)):typeof I.printConfig!="object"?(n.value=!1,g("print-form组件:designerConfig属性printConfig应该是一个对象")):typeof I.formConfig!="object"?(n.value=!1,g("print-form组件:designerConfig属性formConfig应该是一个对象")):Array.isArray(I.layoutConfig)?(n.value=!0,V()):(n.value=!1,g("print-form组件:designerConfig属性layoutConfig应该是一个数组"))}),p=e.reactive({}),O=e.reactive({}),C=()=>{if(!n.value||i.value.length<=0){ue(p,{}),ue(O,{});return}let V=["input","textarea","radio","checkbox","select","datetime"],g={};i.value.forEach((w,R)=>{if(w.type=="grid"){if(!w.children||w.children.length<=0)return;w.children.forEach((y,$)=>{!y.children||y.children.length<=0||y.children.forEach((_,k)=>{I(_)})});return}if(w.type=="tableLayout"){if(!w.children||w.children.length<=0)return;w.children.forEach((y,$)=>{I(y)});return}I(w)});function I(w){if(V.indexOf(w.type)<0||!w.props||!w.props.field)return;let R=w.props.field;if(w.type=="checkbox"){if(a.value[R])g[R]=a.value[R];else{let y=w.props.defaultValue;g[R]=y}return}if(a.value[R]||a.value[R]===0)g[R]=a.value[R];else{let y=w.props.defaultValue;g[R]=y}}ue(p,g)},s=V=>{if(!n.value||!V)return;let g=q(V),I=Object.keys(g);Object.keys(p).forEach(R=>{I.indexOf(R)<0||(p[R]=g[R])})},S=[],u=()=>{S.length>0&&T();let V=Object.keys(p);V.length<=0||V.forEach(g=>{const I=e.watch(()=>p[g],(w,R)=>{t("change",{formData:q(p),printData:A(),field:g})},{deep:!0});S.push(I)})},T=()=>{S.forEach(V=>{V()}),S.splice(0,S.length)},A=()=>{let V=uo.createPrintDataByLayoutConfig(i.value),g=q(p),I=Object.keys(g),w=q(a.value);return Object.keys(V).forEach(R=>{if(I.indexOf(R)>=0){V[R]=g[R];return}if(w[R]||w[R]===0){V[R]=w[R];return}}),V};return{enableComponent:n,printConfig:o,formConfig:l,layoutConfig:i,defaultData:a,defaultFormRef:d,simpleFormRef:f,defaultFormShow:c,simpleFormShow:m,nowFormRef:h,designerConfigModel:b,validateDesignerConfig:x,elFormData:p,elFormRules:O,createFormDetails:C,setElFormData:s,dynamicWatchers:S,createDynamicWacth:u,stopAllWatchers:T,getPrintData:A}},L0={__name:"index",props:{mode:{type:String,default:"default"},designerConfig:{type:Object,default(){return{}},required:!0},data:{type:Object,default(){return{}}}},emits:["change"],setup(r,{expose:t,emit:n}){const o=n,l=r,{enableComponent:i,printConfig:a,formConfig:d,layoutConfig:f,defaultData:c,defaultFormRef:m,simpleFormRef:h,defaultFormShow:b,simpleFormShow:x,validateDesignerConfig:p,elFormData:O,elFormRules:C,createFormDetails:s,setElFormData:S,createDynamicWacth:u,getPrintData:T}=FP(l,o);e.provide("printForm",{componentProps:l,enableComponent:i,printConfig:a,formConfig:d,layoutConfig:f,defaultData:c,elFormData:O,elFormRules:C}),e.watch(()=>l.designerConfig,(y,$)=>{i.value=!1,e.nextTick(()=>{A()})},{immediate:!0,deep:!0}),e.watch(()=>l.data,(y,$)=>{S(l.data)},{deep:!0});const A=async()=>{try{await p(),s(),u()}catch(y){console.warn(y)}};return t({getFormData:()=>q(O),getPrintData:()=>T(),getDesignerConfig:()=>q(l.designerConfig),print:()=>{},printPreview:()=>{}}),(y,$)=>e.unref(b)?(e.openBlock(),e.createBlock($0,{key:0,ref_key:"defaultFormRef",ref:m},null,512)):e.unref(x)?(e.openBlock(),e.createBlock($0,{key:1,ref_key:"simpleFormRef",ref:h},null,512)):e.createCommentVNode("",!0)}},XP=()=>{const r=e.ref(!1),t=e.ref(),n=e.ref(),o=e.ref(""),l={printConfig:{},formConfig:{},layoutConfig:{}},i=e.reactive({...l}),a=e.computed(()=>({designerConfig:{printConfig:i.printConfig,formConfig:i.formConfig,layoutConfig:i.layoutConfig}})),d=e.computed(()=>o.value?JSON.parse(o.value):{});return{dialogShow:r,codeMirrorEditorRef:t,printFormRef:n,codeValue:o,componentDataModel:l,componentData:i,printFormProps:a,printFormData:d}},qP={class:"preview-form-dialog"},YP={class:"preview-form-dialog_code"},GP={class:"preview-form-dialog_form"},KP=G({__name:"index",emits:["dialogOpen","dialogClose"],setup(r,{expose:t,emit:n}){const o=n,{dialogShow:l,codeMirrorEditorRef:i,printFormRef:a,codeValue:d,componentDataModel:f,componentData:c,printFormProps:m,printFormData:h}=XP();e.watch(l,(s,S)=>{l.value?o("dialogOpen"):o("dialogClose")});const b=({formData:s,printData:S,field:u})=>{d.value=JSON.stringify(S,null," ")},x=()=>{let s=a.value.getPrintData(),S=a.value.getDesignerConfig();uo.preview({printData:s,designerConfig:S}).catch(u=>{console.warn(u),ge.alert(u,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},p=()=>{let s=a.value.getPrintData(),S=a.value.getDesignerConfig();uo.print({type:"web",printData:s,designerConfig:S}).catch(u=>{console.warn(u),ge.alert(u,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})},O=()=>{let s=a.value.getPrintData(),S=a.value.getDesignerConfig();uo.print({type:"soket",printData:s,designerConfig:S}).catch(u=>{console.warn(u),ge.alert(u,{type:"warning",title:"提示",customClass:"wui-print_el-message-box"})})};return t({open:({printConfig:s,formConfig:S,layoutConfig:u}={})=>{l.value=!0,ue(c,f,{printConfig:s,formConfig:S,layoutConfig:u});let T=uo.createPrintDataByLayoutConfig(c.layoutConfig);d.value=JSON.stringify(T,null," ")}}),(s,S)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(qr,{modelValue:e.unref(l),"onUpdate:modelValue":S[1]||(S[1]=T=>e.isRef(l)?l.value=T:null),title:"预览表单",width:"90%",height:"90%",padding:"0",draggable:!1,scrollable:!1,"not-footer":""},{footer:e.withCtx(()=>[e.createVNode(u,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印预览")]),_:1}),e.createVNode(u,{type:"primary",onClick:p},{default:e.withCtx(()=>[e.createTextVNode("浏览器打印")]),_:1}),e.createVNode(u,{type:"primary",onClick:O},{default:e.withCtx(()=>[e.createTextVNode("静默打印")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",qP,[e.createElementVNode("div",YP,[e.createVNode(pi,{ref_key:"codeMirrorEditorRef",ref:i,modelValue:e.unref(d),"onUpdate:modelValue":S[0]||(S[0]=T=>e.isRef(d)?d.value=T:null)},null,8,["modelValue"])]),e.createElementVNode("div",GP,[e.createVNode(L0,e.mergeProps({ref_key:"printFormRef",ref:a,class:"preview-form-dialog_print-form"},e.unref(m),{data:e.unref(h),onChange:b}),null,16,["data"])])])]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-dd31a580"]]),P0=r=>(e.pushScopeId("data-v-d73423af"),r=r(),e.popScopeId(),r),JP={class:"print-designer_designer-panel-container"},vP={class:"designer-panel-header"},eE=P0(()=>e.createElementVNode("div",{class:"designer-panel-header_title"},"设计器面板",-1)),tE={class:"designer-panel-header_slot-operate-buttons"},oE={class:"designer-panel-header_operate"},nE=P0(()=>e.createElementVNode("span",{class:"designer-panel-header_operate-item_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),rE={class:"designer-panel-main"},lE=G({__name:"index",setup(r,{expose:t}){const{designerMode:n,printConfigRef:o,formConfigRef:l,printConfigData:i,formConfigData:a,copyActiveSortableComponent:d,ableCtrlC:f,ableCtrlV:c,dict:m}=e.inject("printDesigner"),h=e.ref(),b=e.ref(),x=e.ref(),p=e.ref(),O=e.ref(),C=e.ref(),s=e.computed(()=>d.value?"danger":"info"),S=()=>{if(!d.value){ge.alert("未复制组件,无法清除",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}d.value=!1,gh.success("清除成功")},u=L=>{if(L=="importLayout"){T();return}if(L=="exportLayout"){V();return}if(L=="exportData"){g();return}},T=()=>{b.value.open()},A=L=>{o.value.setPrintConfig(L.printConfig),l.value.setFormConfig(L.formConfig),h.value.setLayoutConfig(L.layoutConfig)},V=()=>{let L=h.value.getLayoutConfig();x.value.open({printConfig:i.value,formConfig:a.value,layoutConfig:L})},g=()=>{let L=h.value.getLayoutConfig(),B=uo.createPrintDataByLayoutConfig(L);p.value.open(B)},I=()=>{let L=h.value.getLayoutConfig(),B=uo.createPrintDataByLayoutConfig(L);O.value.open({printData:B,printConfig:q(i.value),formConfig:q(a.value),layoutConfig:L})},w=()=>{let L=h.value.getLayoutConfig();C.value.open({printConfig:q(i.value),formConfig:q(a.value),layoutConfig:q(L)})},R=()=>{h.value.clear(),o.value.clear()},y=()=>{f.value=!1,c.value=!1},$=()=>{f.value=!0,c.value=!0};return t({getLayoutConfig:()=>{let L=h.value.getLayoutConfig();return q(L)},setLayoutConfig:L=>{h.value.setLayoutConfig(L)}}),(L,B)=>{const E=e.resolveComponent("el-button"),N=e.resolveComponent("el-option"),W=e.resolveComponent("el-select"),X=e.resolveComponent("el-dropdown-item"),K=e.resolveComponent("el-dropdown-menu"),ee=e.resolveComponent("el-dropdown"),se=e.resolveComponent("el-popconfirm");return e.openBlock(),e.createElementBlock("div",JP,[e.createElementVNode("div",vP,[eE,e.createElementVNode("div",tE,[e.renderSlot(L.$slots,"operateButtons",{},void 0,!0)]),e.createElementVNode("div",oE,[e.createVNode(E,{class:"designer-panel-header_operate-item",type:s.value,size:"small",onClick:S},{default:e.withCtx(()=>[e.createTextVNode(" 清空粘贴板 ")]),_:1},8,["type"]),e.createVNode(W,{class:"designer-panel-header_operate-item",modelValue:e.unref(n),"onUpdate:modelValue":B[0]||(B[0]=U=>e.isRef(n)?n.value=U:null),placeholder:"请选择",size:"small",style:{width:"95px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).designerMode,(U,D)=>(e.openBlock(),e.createBlock(N,{key:U.value,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(ee,{trigger:"click",class:"designer-panel-header_operate-item",onCommand:u},{dropdown:e.withCtx(()=>[e.createVNode(K,null,{default:e.withCtx(()=>[e.createVNode(X,{command:"importLayout"},{default:e.withCtx(()=>[e.createTextVNode("导入布局JSON")]),_:1}),e.createVNode(X,{command:"exportLayout"},{default:e.withCtx(()=>[e.createTextVNode(" 导出布局JSON ")]),_:1}),e.createVNode(X,{command:"exportData"},{default:e.withCtx(()=>[e.createTextVNode("导出参考数据")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(E,{class:"designer-panel-header_operate-item_dropdown-button",size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("导入导出"),nE]),_:1})]),_:1}),e.createVNode(E,{class:"designer-panel-header_operate-item",type:"primary",size:"small",onClick:I},{default:e.withCtx(()=>[e.createTextVNode(" 打印 / 预览 ")]),_:1}),e.createVNode(E,{class:"designer-panel-header_operate-item",type:"primary",size:"small",onClick:w},{default:e.withCtx(()=>[e.createTextVNode(" 预览表单 ")]),_:1}),e.createVNode(se,{title:"重置后将清除所有配置,是否继续?",onConfirm:R},{reference:e.withCtx(()=>[e.createVNode(E,{class:"designer-panel-header_operate-item",type:"warning",size:"small"},{default:e.withCtx(()=>[e.createTextVNode("重置")]),_:1})]),_:1})])]),e.createElementVNode("div",rE,[e.createVNode(PT,{ref_key:"panelRef",ref:h},null,512)]),e.createVNode(YL,{ref_key:"importLayoutDialogRef",ref:b,onDialogOpen:y,onDialogClose:$,onImportSuccess:A},null,512),e.createVNode(GL,{ref_key:"exportLayoutDialogRef",ref:x,onDialogOpen:y,onDialogClose:$},null,512),e.createVNode(KL,{ref_key:"exportDataDialogRef",ref:p,onDialogOpen:y,onDialogClose:$},null,512),e.createVNode(nP,{ref_key:"printDialogRef",ref:O,onDialogOpen:y,onDialogClose:$},null,512),e.createVNode(KP,{ref_key:"previewFormDialogRef",ref:C,onDialogOpen:y,onDialogClose:$},null,512)])}}},[["__scopeId","data-v-d73423af"]]),iE={class:"print-designer_config-tabs-container"},aE={class:"config-tabs-nav"},sE={class:"config-tabs-main"},dE=G({__name:"index",setup(r,{expose:t}){const{configTabsActiveName:n,activeSortableComponent:o}=e.inject("printDesigner"),l=e.computed(()=>a=>{let d=["config-tabs-nav_item"];return a==n.value&&d.push("config-tabs-nav_item--active"),d.join(" ")});e.watch(o,(a,d)=>{o.value&&(n.value="componentConfig")},{immediate:!0,deep:!0});const i=a=>{n.value=a};return t({}),(a,d)=>(e.openBlock(),e.createElementBlock("div",iE,[e.createElementVNode("div",aE,[e.createElementVNode("div",{class:e.normalizeClass(l.value("componentConfig")),onClick:d[0]||(d[0]=f=>i("componentConfig"))},"组件配置",2),e.createElementVNode("div",{class:e.normalizeClass(l.value("printConfig")),onClick:d[1]||(d[1]=f=>i("printConfig"))},"打印配置",2),e.createElementVNode("div",{class:e.normalizeClass(l.value("formConfig")),onClick:d[2]||(d[2]=f=>i("formConfig"))},"表单配置",2)]),e.createElementVNode("div",sE,[e.renderSlot(a.$slots,"default",{},void 0,!0)])]))}},[["__scopeId","data-v-62f8e19e"]]),yt=r=>({formatter:a=>{if(!a)return a;let d=/^\d+$|^\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},parser:a=>{if(!a)return a;let d=/^\d+$|^\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},formatterHasNegative:a=>{if(!a)return a;let d=/^-$|^-?\d+$|^-?\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},parserHasNegative:a=>{if(!a)return a;let d=/^-$|^-?\d+$|^-?\d+[a-zA-Z]+$|^\d+%$/,f="";for(let c=0;c<a.length;c++)if(f=a.slice(0,c+1),!d.test(f)){f=a.slice(0,c);break}return f},complementValue:a=>{let d=/^-?\d+$/,f=r[a];f&&d.test(f)&&(r[a]=r[a]+"px")}}),fE=(r,t)=>{const n=e.reactive({marginTopValue:"",marginBottomValue:"",marginLeftValue:"",marginRightValue:"",paddingTopValue:"",paddingBottomValue:"",paddingLeftValue:"",paddingRightValue:""}),{marginTopValue:o,marginBottomValue:l,marginLeftValue:i,marginRightValue:a,paddingTopValue:d,paddingBottomValue:f,paddingLeftValue:c,paddingRightValue:m}=e.toRefs(n),h=e.computed({get(){return r.marginTop},set(B){t("update:marginTop",o.value)}}),b=e.computed({get(){return r.marginBottom},set(B){t("update:marginBottom",l.value)}}),x=e.computed({get(){return r.marginLeft},set(B){t("update:marginLeft",i.value)}}),p=e.computed({get(){return r.marginRight},set(B){t("update:marginRight",a.value)}}),O=e.computed({get(){return r.paddingTop},set(B){t("update:paddingTop",d.value)}}),C=e.computed({get(){return r.paddingBottom},set(B){t("update:paddingBottom",f.value)}}),s=e.computed({get(){return r.paddingLeft},set(B){t("update:paddingLeft",c.value)}}),S=e.computed({get(){return r.paddingRight},set(B){t("update:paddingRight",m.value)}}),u=e.ref(!1),T=e.computed(()=>u.value?"active":""),A=e.computed(()=>g.value&&g.value=="margin"?"active":g.value&&g.value!="margin"?"not-active":""),V=e.computed(()=>g.value&&g.value=="padding"?"active":g.value&&g.value!="padding"?"not-active":""),g=e.ref(""),I=()=>{u.value=!u.value},w=B=>{if(!u.value)return!1;i.value=B,a.value=B,o.value=B,l.value=B},R=()=>{i.value="",a.value="",o.value="",l.value=""},y=e.ref(!1),$=e.computed(()=>y.value?"active":"");return{valueObj:n,marginTopValue:o,marginBottomValue:l,marginLeftValue:i,marginRightValue:a,paddingTopValue:d,paddingBottomValue:f,paddingLeftValue:c,paddingRightValue:m,marginTopModelValue:h,marginBottomModelValue:b,marginLeftModelValue:x,marginRightModelValue:p,paddingTopModelValue:O,paddingBottomModelValue:C,paddingLeftModelValue:s,paddingRightModelValue:S,marginAllSetting:u,marginAllIconClass:T,marginConfigClass:A,paddingConfigClass:V,activeType:g,toggleMarginAllSetting:I,setAllMarginValue:w,clearAllMarginValue:R,paddingAllSetting:y,paddingAllIconClass:$,togglePaddingllSetting:()=>{y.value=!y.value},setAllPaddingValue:B=>{if(!y.value)return!1;c.value=B,m.value=B,d.value=B,f.value=B},clearAllPaddingValue:()=>{c.value="",m.value="",d.value="",f.value=""}}},ar=r=>(e.pushScopeId("data-v-0bd01768"),r=r(),e.popScopeId(),r),cE=ar(()=>e.createElementVNode("div",{class:"_s-p-c_margin-title"},"外边距",-1)),pE={class:"_s-p-c_margin-operate"},mE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_quanbu"},null,-1))],hE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchu"},null,-1))],uE=ar(()=>e.createElementVNode("div",{class:"_s-p-c_padding-title"},"内边距",-1)),gE=ar(()=>e.createElementVNode("div",{class:"_s-p-c_box"},null,-1)),bE={class:"_s-p-c_padding-operate"},yE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_quanbu"},null,-1))],xE=[ar(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchu"},null,-1))],Oe=G({__name:"index",props:{marginTop:{type:String,default:""},marginBottom:{type:String,default:""},marginLeft:{type:String,default:""},marginRight:{type:String,default:""},paddingTop:{type:String,default:""},paddingBottom:{type:String,default:""},paddingLeft:{type:String,default:""},paddingRight:{type:String,default:""}},emits:["update:marginTop","update:marginBottom","update:marginLeft","update:marginRight","update:paddingTop","update:paddingBottom","update:paddingLeft","update:paddingRight"],setup(r,{expose:t,emit:n}){const o=n,l=r,{valueObj:i,marginTopValue:a,marginBottomValue:d,marginLeftValue:f,marginRightValue:c,paddingTopValue:m,paddingBottomValue:h,paddingLeftValue:b,paddingRightValue:x,marginTopModelValue:p,marginBottomModelValue:O,marginLeftModelValue:C,marginRightModelValue:s,paddingTopModelValue:S,paddingBottomModelValue:u,paddingLeftModelValue:T,paddingRightModelValue:A,marginAllIconClass:V,marginConfigClass:g,paddingConfigClass:I,activeType:w,toggleMarginAllSetting:R,setAllMarginValue:y,clearAllMarginValue:$,paddingAllIconClass:_,togglePaddingllSetting:k,setAllPaddingValue:L,clearAllPaddingValue:B}=fE(l,o),{formatterHasNegative:E,parserHasNegative:N,complementValue:W}=yt(i);e.watch(()=>l.marginTop,(se,U)=>{a.value=l.marginTop},{immediate:!0,deep:!0}),e.watch(()=>l.marginBottom,(se,U)=>{d.value=l.marginBottom},{immediate:!0,deep:!0}),e.watch(()=>l.marginLeft,(se,U)=>{f.value=l.marginLeft},{immediate:!0,deep:!0}),e.watch(()=>l.marginRight,(se,U)=>{c.value=l.marginRight},{immediate:!0,deep:!0}),e.watch(()=>l.paddingTop,(se,U)=>{m.value=l.paddingTop},{immediate:!0,deep:!0}),e.watch(()=>l.paddingBottom,(se,U)=>{h.value=l.paddingBottom},{immediate:!0,deep:!0}),e.watch(()=>l.paddingLeft,(se,U)=>{b.value=l.paddingLeft},{immediate:!0,deep:!0}),e.watch(()=>l.paddingRight,(se,U)=>{x.value=l.paddingRight},{immediate:!0,deep:!0}),e.watch(a,(se,U)=>{p.value=a.value,y(a.value)}),e.watch(d,(se,U)=>{O.value=d.value,y(d.value)}),e.watch(f,(se,U)=>{C.value=f.value,y(f.value)}),e.watch(c,(se,U)=>{s.value=c.value,y(c.value)}),e.watch(m,(se,U)=>{S.value=m.value,L(m.value)}),e.watch(h,(se,U)=>{u.value=h.value,L(h.value)}),e.watch(b,(se,U)=>{T.value=b.value,L(b.value)}),e.watch(x,(se,U)=>{A.value=x.value,L(x.value)});const X=()=>{w.value="margin"},K=()=>{w.value=""},ee=()=>{w.value="padding"};return t({}),(se,U)=>{const D=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`style-space-config-container ${e.unref(g)}`),onMouseover:e.withModifiers(X,["stop"]),onMouseout:e.withModifiers(K,["stop"])},[cE,e.createElementVNode("div",pE,[e.createElementVNode("div",{class:e.normalizeClass(`_s-p-c_margin-operate-item _s-p-c_margin-operate-item--all ${e.unref(V)}`),onClick:U[0]||(U[0]=(...P)=>e.unref(R)&&e.unref(R)(...P))},mE,2),e.createElementVNode("div",{class:"_s-p-c_margin-operate-item",onClick:U[1]||(U[1]=(...P)=>e.unref($)&&e.unref($)(...P))},hE)]),e.createVNode(D,{modelValue:e.unref(a),"onUpdate:modelValue":U[2]||(U[2]=P=>e.isRef(a)?a.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-top",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[3]||(U[3]=P=>e.unref(W)("marginTopValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(d),"onUpdate:modelValue":U[4]||(U[4]=P=>e.isRef(d)?d.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-bottom",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[5]||(U[5]=P=>e.unref(W)("marginBottomValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(f),"onUpdate:modelValue":U[6]||(U[6]=P=>e.isRef(f)?f.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-left",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[7]||(U[7]=P=>e.unref(W)("marginLeftValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(c),"onUpdate:modelValue":U[8]||(U[8]=P=>e.isRef(c)?c.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--margin _s-p-c_input--margin-right",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[9]||(U[9]=P=>e.unref(W)("marginRightValue"))},null,8,["modelValue","formatter","parser"]),e.createElementVNode("div",{class:e.normalizeClass(`_s-p-c_padding-config ${e.unref(I)}`),onMouseover:e.withModifiers(ee,["stop"])},[uE,gE,e.createElementVNode("div",bE,[e.createElementVNode("div",{class:e.normalizeClass(`_s-p-c_padding-operate-item _s-p-c_padding-operate-item--all ${e.unref(_)}`),onClick:U[10]||(U[10]=(...P)=>e.unref(k)&&e.unref(k)(...P))},yE,2),e.createElementVNode("div",{class:"_s-p-c_padding-operate-item",onClick:U[11]||(U[11]=(...P)=>e.unref(B)&&e.unref(B)(...P))},xE)]),e.createVNode(D,{modelValue:e.unref(m),"onUpdate:modelValue":U[12]||(U[12]=P=>e.isRef(m)?m.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-top",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[13]||(U[13]=P=>e.unref(W)("paddingTopValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(h),"onUpdate:modelValue":U[14]||(U[14]=P=>e.isRef(h)?h.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-bottom",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[15]||(U[15]=P=>e.unref(W)("paddingBottomValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(b),"onUpdate:modelValue":U[16]||(U[16]=P=>e.isRef(b)?b.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-left",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[17]||(U[17]=P=>e.unref(W)("paddingLeftValue"))},null,8,["modelValue","formatter","parser"]),e.createVNode(D,{modelValue:e.unref(x),"onUpdate:modelValue":U[18]||(U[18]=P=>e.isRef(x)?x.value=P:null),placeholder:"",class:"_s-p-c_input _s-p-c_input--padding _s-p-c_input--padding-right",size:"small",formatter:e.unref(E),parser:e.unref(N),onBlur:U[19]||(U[19]=P=>e.unref(W)("paddingRightValue"))},null,8,["modelValue","formatter","parser"])],34)],34)}}},[["__scopeId","data-v-0bd01768"]]),CE=(r,t)=>{const n=e.reactive({fontSizeValue:"",fontWeightValue:"",fontFamilyValue:"",textDecorationValue:"",textAlignValue:"",lineHeightValue:"",letterSpacingValue:""}),{fontSizeValue:o,fontWeightValue:l,fontFamilyValue:i,textDecorationValue:a,textAlignValue:d,lineHeightValue:f,letterSpacingValue:c}=e.toRefs(n),m=e.computed({get(){return r.fontSize},set(T){t("update:fontSize",o.value)}}),h=e.computed({get(){return r.fontWeight},set(T){t("update:fontWeight",l.value)}}),b=e.computed({get(){return r.fontFamily},set(T){t("update:fontFamily",i.value)}}),x=e.computed({get(){return r.textDecoration},set(T){t("update:textDecoration",a.value)}}),p=e.computed({get(){return r.textAlign},set(T){t("update:textAlign",d.value)}}),O=e.computed({get(){return r.lineHeight},set(T){t("update:lineHeight",f.value)}}),C=e.computed({get(){return r.letterSpacing},set(T){t("update:letterSpacing",c.value)}}),s=e.ref(!0),S=()=>{s.value=!s.value},u=e.computed(()=>{let T="";return o.value&&(T+=`font-size:${o.value};`),l.value&&(T+=`font-weight:${l.value};`),a.value&&(T+=`text-decoration:${a.value};`),d.value&&(T+=`text-align:${d.value};`),f.value&&(T+=`line-height:${f.value};`),c.value&&(T+=`letter-spacing:${c.value};`),i.value&&(T+=`font-family:${i.value}`),T});return{valueObj:n,fontSizeValue:o,fontWeightValue:l,fontFamilyValue:i,textDecorationValue:a,textAlignValue:d,lineHeightValue:f,letterSpacingValue:c,fontSizeModelValue:m,fontWeightModelValue:h,fontFamilyModelValue:b,textAlignModelValue:p,textDecorationModelValue:x,lineHeightModelValue:O,letterSpacingModelValue:C,contentShow:s,toggleContent:S,previewStyle:u}},An=r=>(e.pushScopeId("data-v-e87bcf95"),r=r(),e.popScopeId(),r),OE={class:"font-config-container"},wE={class:"font-config-header"},_E=An(()=>e.createElementVNode("div",{class:"font-config-header_title"},"字体",-1)),SE={class:"iconfont_print icon-wui-print_xiala"},kE={class:"iconfont_print icon-wui-print_shangla"},TE={class:"font-config-content"},IE={class:"font-config-content_item"},AE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"字体",-1)),VE={class:"font-config-content_item-content"},BE={class:"font-config-content_item"},RE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"大小",-1)),$E={class:"font-config-content_item-content"},LE={class:"font-config-content_item"},PE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"粗细",-1)),EE={class:"font-config-content_item-content"},NE={class:"font-config-content_item"},ME=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"修饰",-1)),DE={class:"font-config-content_item-content"},QE={class:"font-config-content_item"},WE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"对齐方式",-1)),UE={class:"font-config-content_item-content"},ZE={class:"font-config-content_item"},zE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"行高",-1)),HE={class:"font-config-content_item-content"},jE={class:"font-config-content_item"},FE=An(()=>e.createElementVNode("div",{class:"font-config-content_item-label"},"字间距",-1)),XE={class:"font-config-content_item-content"},Me=G({__name:"index",props:{contentShow:{type:Boolean,default:!0},fontSize:{type:String,default:""},fontWeight:{type:[String,Number],default:""},fontFamily:{type:[String,Number],default:""},textDecoration:{type:String,default:""},textAlign:{type:String,default:""},lineHeight:{type:String,default:""},letterSpacing:{type:String,default:""}},emits:["update:fontSize","update:fontWeight","update:fontFamily","update:textDecoration","update:textAlign","update:lineHeight","update:letterSpacing"],setup(r,{expose:t,emit:n}){const o=n,l=r,{valueObj:i,fontSizeValue:a,fontWeightValue:d,fontFamilyValue:f,textDecorationValue:c,textAlignValue:m,lineHeightValue:h,letterSpacingValue:b,fontSizeModelValue:x,fontFamilyModelValue:p,fontWeightModelValue:O,textAlignModelValue:C,textDecorationModelValue:s,lineHeightModelValue:S,letterSpacingModelValue:u,contentShow:T,toggleContent:A,previewStyle:V}=CE(l,o),{formatter:g,parser:I,complementValue:w}=yt(i),{dict:R}=e.inject("printDesigner");return e.watch(()=>l.contentShow,(y,$)=>{T.value=l.contentShow},{immediate:!0,deep:!0}),e.watch(()=>l.fontSize,(y,$)=>{a.value=l.fontSize},{immediate:!0,deep:!0}),e.watch(()=>l.fontWeight,(y,$)=>{d.value=l.fontWeight},{immediate:!0,deep:!0}),e.watch(()=>l.fontFamily,(y,$)=>{f.value=l.fontFamily},{immediate:!0,deep:!0}),e.watch(()=>l.textDecoration,(y,$)=>{c.value=l.textDecoration},{immediate:!0,deep:!0}),e.watch(()=>l.textAlign,(y,$)=>{m.value=l.textAlign},{immediate:!0,deep:!0}),e.watch(()=>l.lineHeight,(y,$)=>{h.value=l.lineHeight},{immediate:!0,deep:!0}),e.watch(()=>l.letterSpacing,(y,$)=>{b.value=l.letterSpacing},{immediate:!0,deep:!0}),e.watch(a,(y,$)=>{x.value=a.value}),e.watch(d,(y,$)=>{O.value=d.value}),e.watch(f,(y,$)=>{p.value=f.value}),e.watch(c,(y,$)=>{s.value=c.value}),e.watch(m,(y,$)=>{C.value=m.value}),e.watch(h,(y,$)=>{S.value=h.value}),e.watch(b,(y,$)=>{u.value=b.value}),t({}),(y,$)=>{const _=e.resolveComponent("el-option"),k=e.resolveComponent("el-select"),L=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",OE,[e.createElementVNode("div",wE,[_E,e.createElementVNode("div",{class:"font-config-header_icon",onClick:$[0]||($[0]=(...B)=>e.unref(A)&&e.unref(A)(...B))},[e.withDirectives(e.createElementVNode("span",SE,null,512),[[e.vShow,!e.unref(T)]]),e.withDirectives(e.createElementVNode("span",kE,null,512),[[e.vShow,e.unref(T)]])]),e.createElementVNode("div",{class:"font-config-header_preview",style:e.normalizeStyle(e.unref(V))},"样式预览",4)]),e.withDirectives(e.createElementVNode("div",TE,[e.createElementVNode("div",IE,[AE,e.createElementVNode("div",VE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(f),"onUpdate:modelValue":$[1]||($[1]=B=>e.isRef(f)?f.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).fontFamily,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",BE,[RE,e.createElementVNode("div",$E,[e.createVNode(L,{modelValue:e.unref(a),"onUpdate:modelValue":$[2]||($[2]=B=>e.isRef(a)?a.value=B:null),placeholder:"",clearable:"",formatter:e.unref(g),parser:e.unref(I),onBlur:$[3]||($[3]=B=>e.unref(w)("fontSizeValue"))},null,8,["modelValue","formatter","parser"])])]),e.createElementVNode("div",LE,[PE,e.createElementVNode("div",EE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(d),"onUpdate:modelValue":$[4]||($[4]=B=>e.isRef(d)?d.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).fontWeight,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",NE,[ME,e.createElementVNode("div",DE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(c),"onUpdate:modelValue":$[5]||($[5]=B=>e.isRef(c)?c.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).textDecoration,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",QE,[WE,e.createElementVNode("div",UE,[e.createVNode(k,{ref:"labelWidthUnitRef",modelValue:e.unref(m),"onUpdate:modelValue":$[6]||($[6]=B=>e.isRef(m)?m.value=B:null),filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(R).textAlign,(B,E)=>(e.openBlock(),e.createBlock(_,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e.createElementVNode("div",ZE,[zE,e.createElementVNode("div",HE,[e.createVNode(L,{modelValue:e.unref(h),"onUpdate:modelValue":$[7]||($[7]=B=>e.isRef(h)?h.value=B:null),placeholder:"",clearable:"",formatter:e.unref(g),parser:e.unref(I),onBlur:$[8]||($[8]=B=>e.unref(w)("lineHeightValue"))},null,8,["modelValue","formatter","parser"])])]),e.createElementVNode("div",jE,[FE,e.createElementVNode("div",XE,[e.createVNode(L,{modelValue:e.unref(b),"onUpdate:modelValue":$[9]||($[9]=B=>e.isRef(b)?b.value=B:null),placeholder:"",clearable:"",formatter:e.unref(g),parser:e.unref(I),onBlur:$[10]||($[10]=B=>e.unref(w)("letterSpacingValue"))},null,8,["modelValue","formatter","parser"])])])],512),[[e.vShow,e.unref(T)]])])}}},[["__scopeId","data-v-e87bcf95"]]),qE=(r,t)=>{const n=e.reactive({borderStyleValue:"",borderColorValue:"",borderWidthValue:"",borderTopStyleValue:"",borderTopColorValue:"",borderTopWidthValue:"",borderBottomStyleValue:"",borderBottomColorValue:"",borderBottomWidthValue:"",borderLeftStyleValue:"",borderLeftColorValue:"",borderLeftWidthValue:"",borderRightStyleValue:"",borderRightColorValue:"",borderRightWidthValue:""}),{borderStyleValue:o,borderColorValue:l,borderWidthValue:i,borderTopStyleValue:a,borderTopColorValue:d,borderTopWidthValue:f,borderBottomStyleValue:c,borderBottomColorValue:m,borderBottomWidthValue:h,borderLeftStyleValue:b,borderLeftColorValue:x,borderLeftWidthValue:p,borderRightStyleValue:O,borderRightColorValue:C,borderRightWidthValue:s}=e.toRefs(n),S=e.computed({get(){return r.borderStyle},set(D){t("update:borderStyle",o.value)}}),u=e.computed({get(){return r.borderColor},set(D){t("update:borderColor",l.value)}}),T=e.computed({get(){return r.borderWidth},set(D){t("update:borderWidth",i.value)}}),A=e.computed({get(){return r.borderTopStyle},set(D){t("update:borderTopStyle",a.value)}}),V=e.computed({get(){return r.borderTopColor},set(D){t("update:borderTopColor",d.value)}}),g=e.computed({get(){return r.borderTopWidth},set(D){t("update:borderTopWidth",f.value)}}),I=e.computed({get(){return r.borderBottomStyle},set(D){t("update:borderBottomStyle",c.value)}}),w=e.computed({get(){return r.borderBottomColor},set(D){t("update:borderBottomColor",m.value)}}),R=e.computed({get(){return r.borderBottomWidth},set(D){t("update:borderBottomWidth",h.value)}}),y=e.computed({get(){return r.borderLeftStyle},set(D){t("update:borderLeftStyle",b.value)}}),$=e.computed({get(){return r.borderLeftColor},set(D){t("update:borderLeftColor",x.value)}}),_=e.computed({get(){return r.borderLeftWidth},set(D){t("update:borderLeftWidth",p.value)}}),k=e.computed({get(){return r.borderRightStyle},set(D){t("update:borderRightStyle",O.value)}}),L=e.computed({get(){return r.borderRightColor},set(D){t("update:borderRightColor",C.value)}}),B=e.computed({get(){return r.borderRightWidth},set(D){t("update:borderRightWidth",s.value)}}),E=e.ref(!0),N=()=>{E.value=!E.value},W=e.ref("center"),X=e.computed(()=>D=>D==W.value?"border-config-content_border-icon--selected":""),K=D=>{W.value=D},ee=e.computed(()=>{let D="";return o.value&&(D+=`border-style:${o.value};`),l.value&&(D+=`border-color:${l.value};`),i.value&&(D+=`border-width:${i.value};`),a.value&&(D+=`border-top-style:${a.value};`),d.value&&(D+=`border-top-color:${d.value};`),f.value&&(D+=`border-top-width:${f.value};`),c.value&&(D+=`border-bottom-style:${c.value};`),m.value&&(D+=`border-bottom-color:${m.value};`),h.value&&(D+=`border-bottom-width:${h.value};`),b.value&&(D+=`border-left-style:${b.value};`),x.value&&(D+=`border-left-color:${x.value};`),p.value&&(D+=`border-left-width:${p.value};`),O.value&&(D+=`border-right-style:${O.value};`),C.value&&(D+=`border-right-color:${C.value};`),s.value&&(D+=`border-right-width:${s.value};`),D});return{valueObj:n,borderStyleValue:o,borderColorValue:l,borderWidthValue:i,borderTopStyleValue:a,borderTopColorValue:d,borderTopWidthValue:f,borderBottomStyleValue:c,borderBottomColorValue:m,borderBottomWidthValue:h,borderLeftStyleValue:b,borderLeftColorValue:x,borderLeftWidthValue:p,borderRightStyleValue:O,borderRightColorValue:C,borderRightWidthValue:s,borderStyleModelValue:S,borderColorModelValue:u,borderWidthModelValue:T,borderTopStyleModelValue:A,borderTopColorModelValue:V,borderTopWidthModelValue:g,borderBottomStyleModelValue:I,borderBottomColorModelValue:w,borderBottomWidthModelValue:R,borderLeftStyleModelValue:y,borderLeftColorModelValue:$,borderLeftWidthModelValue:_,borderRightStyleModelValue:k,borderRightColorModelValue:L,borderRightWidthModelValue:B,contentShow:E,toggleContent:N,activeBorderIcon:W,borderIconClass:X,setActiveBorderIcon:K,previewStyle:ee,clear:()=>{if(W.value=="center")return o.value="",l.value="",i.value="",!1;if(W.value=="top")return a.value="",d.value="",f.value="",!1;if(W.value=="bottom")return c.value="",m.value="",h.value="",!1;if(W.value=="left")return b.value="",x.value="",p.value="",!1;if(W.value=="right")return O.value="",C.value="",s.value="",!1},clearAll:()=>{o.value="",l.value="",i.value="",a.value="",d.value="",f.value="",c.value="",m.value="",h.value="",b.value="",x.value="",p.value="",O.value="",C.value="",s.value=""}}},Gr=r=>(e.pushScopeId("data-v-7599b4ca"),r=r(),e.popScopeId(),r),YE={class:"border-config-container"},GE={class:"border-config-header"},KE=Gr(()=>e.createElementVNode("div",{class:"border-config-header_title"},"边框",-1)),JE={class:"iconfont_print icon-wui-print_xiala"},vE={class:"iconfont_print icon-wui-print_shangla"},e8={class:"border-config-header_operate"},t8={class:"border-config-content"},o8={class:"border-config-content_left"},n8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_biankuang"},null,-1))],r8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_zuobiankuang"},null,-1))],l8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_youbiankuang"},null,-1))],i8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shangbiankuang"},null,-1))],a8=[Gr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_xiabiankuang"},null,-1))],s8={class:"border-config-content_form"},d8={class:"border-config-content_form-item"},f8={class:"border-config-content_form-item"},c8={class:"border-config-content_form-item"},p8={class:"border-config-content_form"},m8={class:"border-config-content_form-item"},h8={class:"border-config-content_form-item"},u8={class:"border-config-content_form-item"},g8={class:"border-config-content_form"},b8={class:"border-config-content_form-item"},y8={class:"border-config-content_form-item"},x8={class:"border-config-content_form-item"},C8={class:"border-config-content_form"},O8={class:"border-config-content_form-item"},w8={class:"border-config-content_form-item"},_8={class:"border-config-content_form-item"},S8={class:"border-config-content_form"},k8={class:"border-config-content_form-item"},T8={class:"border-config-content_form-item"},I8={class:"border-config-content_form-item"},Se=G({__name:"index",props:{contentShow:{type:Boolean,default:!0},borderStyle:{type:String,default:""},borderColor:{type:String,default:""},borderWidth:{type:String,default:""},borderTopStyle:{type:String,default:""},borderTopColor:{type:String,default:""},borderTopWidth:{type:String,default:""},borderBottomStyle:{type:String,default:""},borderBottomColor:{type:String,default:""},borderBottomWidth:{type:String,default:""},borderLeftStyle:{type:String,default:""},borderLeftColor:{type:String,default:""},borderLeftWidth:{type:String,default:""},borderRightStyle:{type:String,default:""},borderRightColor:{type:String,default:""},borderRightWidth:{type:String,default:""}},emits:["update:borderStyle","update:borderColor","update:borderWidth","update:borderTopStyle","update:borderTopColor","update:borderTopWidth","update:borderBottomStyle","update:borderBottomColor","update:borderBottomWidth","update:borderLeftStyle","update:borderLeftColor","update:borderLeftWidth","update:borderRightStyle","update:borderRightColor","update:borderRightWidth"],setup(r,{expose:t,emit:n}){const o=n,l=r,{valueObj:i,borderStyleValue:a,borderColorValue:d,borderWidthValue:f,borderTopStyleValue:c,borderTopColorValue:m,borderTopWidthValue:h,borderBottomStyleValue:b,borderBottomColorValue:x,borderBottomWidthValue:p,borderLeftStyleValue:O,borderLeftColorValue:C,borderLeftWidthValue:s,borderRightStyleValue:S,borderRightColorValue:u,borderRightWidthValue:T,borderStyleModelValue:A,borderColorModelValue:V,borderWidthModelValue:g,borderTopStyleModelValue:I,borderTopColorModelValue:w,borderTopWidthModelValue:R,borderBottomStyleModelValue:y,borderBottomColorModelValue:$,borderBottomWidthModelValue:_,borderLeftStyleModelValue:k,borderLeftColorModelValue:L,borderLeftWidthModelValue:B,borderRightStyleModelValue:E,borderRightColorModelValue:N,borderRightWidthModelValue:W,contentShow:X,toggleContent:K,activeBorderIcon:ee,borderIconClass:se,setActiveBorderIcon:U,previewStyle:D,clear:P,clearAll:H}=qE(l,o),{formatter:z,parser:ae,complementValue:Ve}=yt(i),{dict:Pe}=e.inject("printDesigner");return e.watch(()=>l.contentShow,(be,Z)=>{X.value=l.contentShow},{immediate:!0,deep:!0}),e.watch(()=>l.borderStyle,(be,Z)=>{a.value=l.borderStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderColor,(be,Z)=>{d.value=l.borderColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderWidth,(be,Z)=>{f.value=l.borderWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderTopStyle,(be,Z)=>{c.value=l.borderTopStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderTopColor,(be,Z)=>{m.value=l.borderTopColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderTopWidth,(be,Z)=>{h.value=l.borderTopWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderBottomStyle,(be,Z)=>{b.value=l.borderBottomStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderBottomColor,(be,Z)=>{x.value=l.borderBottomColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderBottomWidth,(be,Z)=>{p.value=l.borderBottomWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderLeftStyle,(be,Z)=>{O.value=l.borderLeftStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderLeftColor,(be,Z)=>{C.value=l.borderLeftColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderLeftWidth,(be,Z)=>{s.value=l.borderLeftWidth},{immediate:!0,deep:!0}),e.watch(()=>l.borderRightStyle,(be,Z)=>{S.value=l.borderRightStyle},{immediate:!0,deep:!0}),e.watch(()=>l.borderRightColor,(be,Z)=>{u.value=l.borderRightColor},{immediate:!0,deep:!0}),e.watch(()=>l.borderRightWidth,(be,Z)=>{T.value=l.borderRightWidth},{immediate:!0,deep:!0}),e.watch(a,(be,Z)=>{A.value=a.value}),e.watch(d,(be,Z)=>{V.value=d.value}),e.watch(f,(be,Z)=>{g.value=f.value}),e.watch(c,(be,Z)=>{I.value=c.value}),e.watch(m,(be,Z)=>{w.value=m.value}),e.watch(h,(be,Z)=>{R.value=h.value}),e.watch(b,(be,Z)=>{y.value=b.value}),e.watch(x,(be,Z)=>{$.value=x.value}),e.watch(p,(be,Z)=>{_.value=p.value}),e.watch(O,(be,Z)=>{k.value=O.value}),e.watch(C,(be,Z)=>{L.value=C.value}),e.watch(s,(be,Z)=>{B.value=s.value}),e.watch(S,(be,Z)=>{E.value=S.value}),e.watch(u,(be,Z)=>{N.value=u.value}),e.watch(T,(be,Z)=>{W.value=T.value}),t({}),(be,Z)=>{const he=e.resolveComponent("el-option"),j=e.resolveComponent("el-select"),ie=e.resolveComponent("el-input"),de=e.resolveComponent("el-color-picker");return e.openBlock(),e.createElementBlock("div",YE,[e.createElementVNode("div",GE,[KE,e.createElementVNode("div",{class:"border-config-header_icon",onClick:Z[0]||(Z[0]=(...J)=>e.unref(K)&&e.unref(K)(...J))},[e.withDirectives(e.createElementVNode("span",JE,null,512),[[e.vShow,!e.unref(X)]]),e.withDirectives(e.createElementVNode("span",vE,null,512),[[e.vShow,e.unref(X)]])]),e.createElementVNode("div",{class:"border-config-header_preview",style:e.normalizeStyle(e.unref(D))},"样式预览",4),e.createElementVNode("div",e8,[e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchu",onClick:Z[1]||(Z[1]=(...J)=>e.unref(P)&&e.unref(P)(...J))}),e.createElementVNode("span",{class:"iconfont_print icon-wui-print_shanchuquanbu",onClick:Z[2]||(Z[2]=(...J)=>e.unref(H)&&e.unref(H)(...J))})])]),e.withDirectives(e.createElementVNode("div",t8,[e.createElementVNode("div",o8,[e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--center ${e.unref(se)("center")}`),onClick:Z[3]||(Z[3]=J=>e.unref(U)("center"))},n8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--left ${e.unref(se)("left")}`),onClick:Z[4]||(Z[4]=J=>e.unref(U)("left"))},r8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--right ${e.unref(se)("right")}`),onClick:Z[5]||(Z[5]=J=>e.unref(U)("right"))},l8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--top ${e.unref(se)("top")}`),onClick:Z[6]||(Z[6]=J=>e.unref(U)("top"))},i8,2),e.createElementVNode("div",{class:e.normalizeClass(`border-config-content_border-icon border-config-content_border-icon--bottom ${e.unref(se)("bottom")}`),onClick:Z[7]||(Z[7]=J=>e.unref(U)("bottom"))},a8,2)]),e.withDirectives(e.createElementVNode("div",s8,[e.createElementVNode("div",d8,[e.createVNode(j,{modelValue:e.unref(a),"onUpdate:modelValue":Z[8]||(Z[8]=J=>e.isRef(a)?a.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",f8,[e.createVNode(ie,{modelValue:e.unref(f),"onUpdate:modelValue":Z[9]||(Z[9]=J=>e.isRef(f)?f.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[10]||(Z[10]=J=>e.unref(Ve)("borderWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",c8,[e.createVNode(ie,{modelValue:e.unref(d),"onUpdate:modelValue":Z[12]||(Z[12]=J=>e.isRef(d)?d.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(d),"onUpdate:modelValue":Z[11]||(Z[11]=J=>e.isRef(d)?d.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="center"]]),e.withDirectives(e.createElementVNode("div",p8,[e.createElementVNode("div",m8,[e.createVNode(j,{modelValue:e.unref(c),"onUpdate:modelValue":Z[13]||(Z[13]=J=>e.isRef(c)?c.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",h8,[e.createVNode(ie,{modelValue:e.unref(h),"onUpdate:modelValue":Z[14]||(Z[14]=J=>e.isRef(h)?h.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[15]||(Z[15]=J=>e.unref(Ve)("borderTopWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",u8,[e.createVNode(ie,{modelValue:e.unref(m),"onUpdate:modelValue":Z[17]||(Z[17]=J=>e.isRef(m)?m.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(m),"onUpdate:modelValue":Z[16]||(Z[16]=J=>e.isRef(m)?m.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="top"]]),e.withDirectives(e.createElementVNode("div",g8,[e.createElementVNode("div",b8,[e.createVNode(j,{modelValue:e.unref(b),"onUpdate:modelValue":Z[18]||(Z[18]=J=>e.isRef(b)?b.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",y8,[e.createVNode(ie,{modelValue:e.unref(p),"onUpdate:modelValue":Z[19]||(Z[19]=J=>e.isRef(p)?p.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[20]||(Z[20]=J=>e.unref(Ve)("borderBottomWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",x8,[e.createVNode(ie,{modelValue:e.unref(x),"onUpdate:modelValue":Z[22]||(Z[22]=J=>e.isRef(x)?x.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(x),"onUpdate:modelValue":Z[21]||(Z[21]=J=>e.isRef(x)?x.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="bottom"]]),e.withDirectives(e.createElementVNode("div",C8,[e.createElementVNode("div",O8,[e.createVNode(j,{modelValue:e.unref(O),"onUpdate:modelValue":Z[23]||(Z[23]=J=>e.isRef(O)?O.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",w8,[e.createVNode(ie,{modelValue:e.unref(s),"onUpdate:modelValue":Z[24]||(Z[24]=J=>e.isRef(s)?s.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[25]||(Z[25]=J=>e.unref(Ve)("borderLeftWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",_8,[e.createVNode(ie,{modelValue:e.unref(C),"onUpdate:modelValue":Z[27]||(Z[27]=J=>e.isRef(C)?C.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(C),"onUpdate:modelValue":Z[26]||(Z[26]=J=>e.isRef(C)?C.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="left"]]),e.withDirectives(e.createElementVNode("div",S8,[e.createElementVNode("div",k8,[e.createVNode(j,{modelValue:e.unref(S),"onUpdate:modelValue":Z[28]||(Z[28]=J=>e.isRef(S)?S.value=J:null),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Pe).borderStyle,(J,je)=>(e.openBlock(),e.createBlock(he,{key:J.value,label:J.label,value:J.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",T8,[e.createVNode(ie,{modelValue:e.unref(T),"onUpdate:modelValue":Z[29]||(Z[29]=J=>e.isRef(T)?T.value=J:null),placeholder:"请输入",clearable:"",formatter:e.unref(z),parser:e.unref(ae),onBlur:Z[30]||(Z[30]=J=>e.unref(Ve)("borderRightWidthValue"))},{append:e.withCtx(()=>[e.createTextVNode("单位:px")]),_:1},8,["modelValue","formatter","parser"])]),e.createElementVNode("div",I8,[e.createVNode(ie,{modelValue:e.unref(u),"onUpdate:modelValue":Z[32]||(Z[32]=J=>e.isRef(u)?u.value=J:null),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(de,{modelValue:e.unref(u),"onUpdate:modelValue":Z[31]||(Z[31]=J=>e.isRef(u)?u.value=J:null),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])])],512),[[e.vShow,e.unref(ee)=="right"]])],512),[[e.vShow,e.unref(X)]])])}}},[["__scopeId","data-v-7599b4ca"]]),A8=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"",fieldType:"base"},{label:"文本内容",key:"defaultContent",default:"文本内容",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"5px",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"5px",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"5px",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"5px",fieldType:"style"},{label:"字体颜色",key:"color",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"宽度",key:"width",default:"",fieldType:"style"},{label:"高度",key:"height",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"14px",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"center",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},sr=r=>(e.pushScopeId("data-v-77d38c10"),r=r(),e.popScopeId(),r),V8={class:"component-config-container text-component-config-container"},B8={class:"component-config-header"},R8=sr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"文本")],-1)),$8=sr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),L8=[sr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],P8=sr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),E8=sr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),N8=sr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),M8=sr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),D8=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=A8(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",V8,[e.createElementVNode("div",B8,[R8,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),$8]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},L8)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[P8,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),E8,e.createVNode(g,{label:"文本内容",prop:"defaultContent"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultContent,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).defaultContent=y),type:"textarea",placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).showOnLastPage=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),N8,M8,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[4]||(s[4]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[5]||(s[5]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[6]||(s[6]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[7]||(s[7]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[8]||(s[8]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[9]||(s[9]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[10]||(s[10]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[11]||(s[11]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(g,{label:"颜色","label-position":"left",prop:"color"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).color,"onUpdate:modelValue":s[13]||(s[13]=y=>e.unref(o).color=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).color,"onUpdate:modelValue":s[12]||(s[12]=y=>e.unref(o).color=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[15]||(s[15]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[14]||(s[14]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"宽度",prop:"width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[16]||(s[16]=y=>e.unref(o).width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[17]||(s[17]=y=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[18]||(s[18]=y=>e.unref(o).height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[19]||(s[19]=y=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":s[20]||(s[20]=y=>e.unref(o).fontSize=y),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":s[21]||(s[21]=y=>e.unref(o).fontWeight=y),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":s[22]||(s[22]=y=>e.unref(o).textDecoration=y),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":s[23]||(s[23]=y=>e.unref(o).textAlign=y),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":s[24]||(s[24]=y=>e.unref(o).lineHeight=y),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":s[25]||(s[25]=y=>e.unref(o).letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[26]||(s[26]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[27]||(s[27]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[28]||(s[28]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[29]||(s[29]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[30]||(s[30]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[31]||(s[31]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[32]||(s[32]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[33]||(s[33]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[34]||(s[34]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[35]||(s[35]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[36]||(s[36]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[37]||(s[37]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[38]||(s[38]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[39]||(s[39]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[40]||(s[40]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-77d38c10"]]),Q8=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"标签名称",key:"label",default:"标题:",fieldType:"prop"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"是否为时间格式",key:"isDateTime",default:!1,fieldType:"prop"},{label:"时间格式",key:"dateTimeFormat",default:"",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"宽度",key:"width",default:"",fieldType:"style"},{label:"高度",key:"height",default:"",fieldType:"style"},{label:"标签-外边距-上",key:"label_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"label_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"label_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"label_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"label_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"label_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"label_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"label_paddingRight",default:"",fieldType:"style"},{label:"标签-字体大小",key:"label_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"label_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"label_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"label_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"label_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"label_letterSpacing",default:"",fieldType:"style"},{label:"标签-边框样式",key:"label_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"label_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"label_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"label_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"label_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"label_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"label_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"label_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"label_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"label_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"label_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"label_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"label_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"label_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"label_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体颜色",key:"label_color",default:"",fieldType:"style"},{label:"标签-背景颜色",key:"label_backgroundColor",default:"",fieldType:"style"},{label:"文本-外边距-上",key:"text_marginTop",default:"",fieldType:"style"},{label:"文本-外边距-下",key:"text_marginBottom",default:"",fieldType:"style"},{label:"文本-外边距-左",key:"text_marginLeft",default:"",fieldType:"style"},{label:"文本-外边距-右",key:"text_marginRight",default:"",fieldType:"style"},{label:"文本-内边距-上",key:"text_paddingTop",default:"",fieldType:"style"},{label:"文本-内边距-下",key:"text_paddingBottom",default:"",fieldType:"style"},{label:"文本-内边距-左",key:"text_paddingLeft",default:"3px",fieldType:"style"},{label:"文本-内边距-右",key:"text_paddingRight",default:"",fieldType:"style"},{label:"文本-字体大小",key:"text_fontSize",default:"",fieldType:"style"},{label:"文本-字体粗细",key:"text_fontWeight",default:"",fieldType:"style"},{label:"文本-字体修饰",key:"text_textDecoration",default:"",fieldType:"style"},{label:"文本-对齐方式",key:"text_textAlign",default:"left",fieldType:"style"},{label:"文本-字体行高",key:"text_lineHeight",default:"",fieldType:"style"},{label:"文本-字间距",key:"text_letterSpacing",default:"",fieldType:"style"},{label:"文本-边框样式",key:"text_borderStyle",default:"",fieldType:"style"},{label:"文本-边框宽度",key:"text_borderWidth",default:"",fieldType:"style"},{label:"文本-边框颜色",key:"text_borderColor",default:"",fieldType:"style"},{label:"文本-边框样式-上",key:"text_borderTopStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-上",key:"text_borderTopWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-上",key:"text_borderTopColor",default:"",fieldType:"style"},{label:"文本-边框样式-下",key:"text_borderBottomStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-下",key:"text_borderBottomWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-下",key:"text_borderBottomColor",default:"",fieldType:"style"},{label:"文本-边框样式-左",key:"text_borderLeftStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-左",key:"text_borderLeftWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-左",key:"text_borderLeftColor",default:"",fieldType:"style"},{label:"文本-边框样式-右",key:"text_borderRightStyle",default:"",fieldType:"style"},{label:"文本-边框宽度-右",key:"text_borderRightWidth",default:"",fieldType:"style"},{label:"文本-边框颜色-右",key:"text_borderRightColor",default:"",fieldType:"style"},{label:"文本-字体颜色",key:"text_color",default:"",fieldType:"style"},{label:"文本-背景颜色",key:"text_backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},vo=r=>(e.pushScopeId("data-v-d983882f"),r=r(),e.popScopeId(),r),W8={class:"component-config-container dynamic-text-component-config-container"},U8={class:"component-config-header"},Z8=vo(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"动态文本")],-1)),z8=vo(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),H8=[vo(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],j8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),F8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),X8=vo(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),q8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),Y8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"标签样式配置")],-1)),G8=vo(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"文本样式配置")],-1)),K8=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=Q8(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-option"),R=e.resolveComponent("el-select"),y=e.resolveComponent("el-color-picker"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",W8,[e.createElementVNode("div",U8,[Z8,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),z8]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},H8)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[j8,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=_=>e.unref(o).id=_),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=_=>e.unref(o).title=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),F8,e.createVNode(g,{label:"标签名称",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[2]||(s[2]=_=>e.unref(o).label=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[3]||(s[3]=_=>e.unref(o).field=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"是否为日期时间",prop:"isDateTime","label-width":"100","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).isDateTime,"onUpdate:modelValue":s[4]||(s[4]=_=>e.unref(o).isDateTime=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"日期时间格式",prop:"dateTimeFormat"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).dateTimeFormat,"onUpdate:modelValue":s[5]||(s[5]=_=>e.unref(o).dateTimeFormat=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).textDateTimeFormat,(_,k)=>(e.openBlock(),e.createBlock(w,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[6]||(s[6]=_=>e.unref(o).showOnLastPage=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),X8,q8,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[7]||(s[7]=_=>e.unref(o).marginTop=_),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[8]||(s[8]=_=>e.unref(o).marginBottom=_),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[9]||(s[9]=_=>e.unref(o).marginLeft=_),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[10]||(s[10]=_=>e.unref(o).marginRight=_),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[11]||(s[11]=_=>e.unref(o).paddingTop=_),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[12]||(s[12]=_=>e.unref(o).paddingBottom=_),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[13]||(s[13]=_=>e.unref(o).paddingLeft=_),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[14]||(s[14]=_=>e.unref(o).paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[15]||(s[15]=_=>e.unref(o).borderStyle=_),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[16]||(s[16]=_=>e.unref(o).borderWidth=_),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[17]||(s[17]=_=>e.unref(o).borderColor=_),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[18]||(s[18]=_=>e.unref(o).borderTopStyle=_),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[19]||(s[19]=_=>e.unref(o).borderTopWidth=_),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[20]||(s[20]=_=>e.unref(o).borderTopColor=_),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[21]||(s[21]=_=>e.unref(o).borderBottomStyle=_),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[22]||(s[22]=_=>e.unref(o).borderBottomWidth=_),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[23]||(s[23]=_=>e.unref(o).borderBottomColor=_),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[24]||(s[24]=_=>e.unref(o).borderLeftStyle=_),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[25]||(s[25]=_=>e.unref(o).borderLeftWidth=_),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[26]||(s[26]=_=>e.unref(o).borderLeftColor=_),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[27]||(s[27]=_=>e.unref(o).borderRightStyle=_),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[28]||(s[28]=_=>e.unref(o).borderRightWidth=_),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[29]||(s[29]=_=>e.unref(o).borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[31]||(s[31]=_=>e.unref(o).backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[30]||(s[30]=_=>e.unref(o).backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"宽度",prop:"width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[32]||(s[32]=_=>e.unref(o).width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[33]||(s[33]=_=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[34]||(s[34]=_=>e.unref(o).height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[35]||(s[35]=_=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),Y8,e.createVNode(Oe,{marginTop:e.unref(o).label_marginTop,"onUpdate:marginTop":s[36]||(s[36]=_=>e.unref(o).label_marginTop=_),marginBottom:e.unref(o).label_marginBottom,"onUpdate:marginBottom":s[37]||(s[37]=_=>e.unref(o).label_marginBottom=_),marginLeft:e.unref(o).label_marginLeft,"onUpdate:marginLeft":s[38]||(s[38]=_=>e.unref(o).label_marginLeft=_),marginRight:e.unref(o).label_marginRight,"onUpdate:marginRight":s[39]||(s[39]=_=>e.unref(o).label_marginRight=_),paddingTop:e.unref(o).label_paddingTop,"onUpdate:paddingTop":s[40]||(s[40]=_=>e.unref(o).label_paddingTop=_),paddingBottom:e.unref(o).label_paddingBottom,"onUpdate:paddingBottom":s[41]||(s[41]=_=>e.unref(o).label_paddingBottom=_),paddingLeft:e.unref(o).label_paddingLeft,"onUpdate:paddingLeft":s[42]||(s[42]=_=>e.unref(o).label_paddingLeft=_),paddingRight:e.unref(o).label_paddingRight,"onUpdate:paddingRight":s[43]||(s[43]=_=>e.unref(o).label_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Me,{fontSize:e.unref(o).label_fontSize,"onUpdate:fontSize":s[44]||(s[44]=_=>e.unref(o).label_fontSize=_),fontWeight:e.unref(o).label_fontWeight,"onUpdate:fontWeight":s[45]||(s[45]=_=>e.unref(o).label_fontWeight=_),textDecoration:e.unref(o).label_textDecoration,"onUpdate:textDecoration":s[46]||(s[46]=_=>e.unref(o).label_textDecoration=_),textAlign:e.unref(o).label_textAlign,"onUpdate:textAlign":s[47]||(s[47]=_=>e.unref(o).label_textAlign=_),lineHeight:e.unref(o).label_lineHeight,"onUpdate:lineHeight":s[48]||(s[48]=_=>e.unref(o).label_lineHeight=_),letterSpacing:e.unref(o).label_letterSpacing,"onUpdate:letterSpacing":s[49]||(s[49]=_=>e.unref(o).label_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(Se,{borderStyle:e.unref(o).label_borderStyle,"onUpdate:borderStyle":s[50]||(s[50]=_=>e.unref(o).label_borderStyle=_),borderWidth:e.unref(o).label_borderWidth,"onUpdate:borderWidth":s[51]||(s[51]=_=>e.unref(o).label_borderWidth=_),borderColor:e.unref(o).label_borderColor,"onUpdate:borderColor":s[52]||(s[52]=_=>e.unref(o).label_borderColor=_),borderTopStyle:e.unref(o).label_borderTopStyle,"onUpdate:borderTopStyle":s[53]||(s[53]=_=>e.unref(o).label_borderTopStyle=_),borderTopWidth:e.unref(o).label_borderTopWidth,"onUpdate:borderTopWidth":s[54]||(s[54]=_=>e.unref(o).label_borderTopWidth=_),borderTopColor:e.unref(o).label_borderTopColor,"onUpdate:borderTopColor":s[55]||(s[55]=_=>e.unref(o).label_borderTopColor=_),borderBottomStyle:e.unref(o).label_borderBottomStyle,"onUpdate:borderBottomStyle":s[56]||(s[56]=_=>e.unref(o).label_borderBottomStyle=_),borderBottomWidth:e.unref(o).label_borderBottomWidth,"onUpdate:borderBottomWidth":s[57]||(s[57]=_=>e.unref(o).label_borderBottomWidth=_),borderBottomColor:e.unref(o).label_borderBottomColor,"onUpdate:borderBottomColor":s[58]||(s[58]=_=>e.unref(o).label_borderBottomColor=_),borderLeftStyle:e.unref(o).label_borderLeftStyle,"onUpdate:borderLeftStyle":s[59]||(s[59]=_=>e.unref(o).label_borderLeftStyle=_),borderLeftWidth:e.unref(o).label_borderLeftWidth,"onUpdate:borderLeftWidth":s[60]||(s[60]=_=>e.unref(o).label_borderLeftWidth=_),borderLeftColor:e.unref(o).label_borderLeftColor,"onUpdate:borderLeftColor":s[61]||(s[61]=_=>e.unref(o).label_borderLeftColor=_),borderRightStyle:e.unref(o).label_borderRightStyle,"onUpdate:borderRightStyle":s[62]||(s[62]=_=>e.unref(o).label_borderRightStyle=_),borderRightWidth:e.unref(o).label_borderRightWidth,"onUpdate:borderRightWidth":s[63]||(s[63]=_=>e.unref(o).label_borderRightWidth=_),borderRightColor:e.unref(o).label_borderRightColor,"onUpdate:borderRightColor":s[64]||(s[64]=_=>e.unref(o).label_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"颜色","label-position":"left",prop:"label_color"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label_color,"onUpdate:modelValue":s[66]||(s[66]=_=>e.unref(o).label_color=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).label_color,"onUpdate:modelValue":s[65]||(s[65]=_=>e.unref(o).label_color=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"label_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label_backgroundColor,"onUpdate:modelValue":s[68]||(s[68]=_=>e.unref(o).label_backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).label_backgroundColor,"onUpdate:modelValue":s[67]||(s[67]=_=>e.unref(o).label_backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),G8,e.createVNode(Oe,{marginTop:e.unref(o).text_marginTop,"onUpdate:marginTop":s[69]||(s[69]=_=>e.unref(o).text_marginTop=_),marginBottom:e.unref(o).text_marginBottom,"onUpdate:marginBottom":s[70]||(s[70]=_=>e.unref(o).text_marginBottom=_),marginLeft:e.unref(o).text_marginLeft,"onUpdate:marginLeft":s[71]||(s[71]=_=>e.unref(o).text_marginLeft=_),marginRight:e.unref(o).text_marginRight,"onUpdate:marginRight":s[72]||(s[72]=_=>e.unref(o).text_marginRight=_),paddingTop:e.unref(o).text_paddingTop,"onUpdate:paddingTop":s[73]||(s[73]=_=>e.unref(o).text_paddingTop=_),paddingBottom:e.unref(o).text_paddingBottom,"onUpdate:paddingBottom":s[74]||(s[74]=_=>e.unref(o).text_paddingBottom=_),paddingLeft:e.unref(o).text_paddingLeft,"onUpdate:paddingLeft":s[75]||(s[75]=_=>e.unref(o).text_paddingLeft=_),paddingRight:e.unref(o).text_paddingRight,"onUpdate:paddingRight":s[76]||(s[76]=_=>e.unref(o).text_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Me,{fontSize:e.unref(o).text_fontSize,"onUpdate:fontSize":s[77]||(s[77]=_=>e.unref(o).text_fontSize=_),fontWeight:e.unref(o).text_fontWeight,"onUpdate:fontWeight":s[78]||(s[78]=_=>e.unref(o).text_fontWeight=_),textDecoration:e.unref(o).text_textDecoration,"onUpdate:textDecoration":s[79]||(s[79]=_=>e.unref(o).text_textDecoration=_),textAlign:e.unref(o).text_textAlign,"onUpdate:textAlign":s[80]||(s[80]=_=>e.unref(o).text_textAlign=_),lineHeight:e.unref(o).text_lineHeight,"onUpdate:lineHeight":s[81]||(s[81]=_=>e.unref(o).text_lineHeight=_),letterSpacing:e.unref(o).text_letterSpacing,"onUpdate:letterSpacing":s[82]||(s[82]=_=>e.unref(o).text_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(Se,{borderStyle:e.unref(o).text_borderStyle,"onUpdate:borderStyle":s[83]||(s[83]=_=>e.unref(o).text_borderStyle=_),borderWidth:e.unref(o).text_borderWidth,"onUpdate:borderWidth":s[84]||(s[84]=_=>e.unref(o).text_borderWidth=_),borderColor:e.unref(o).text_borderColor,"onUpdate:borderColor":s[85]||(s[85]=_=>e.unref(o).text_borderColor=_),borderTopStyle:e.unref(o).text_borderTopStyle,"onUpdate:borderTopStyle":s[86]||(s[86]=_=>e.unref(o).text_borderTopStyle=_),borderTopWidth:e.unref(o).text_borderTopWidth,"onUpdate:borderTopWidth":s[87]||(s[87]=_=>e.unref(o).text_borderTopWidth=_),borderTopColor:e.unref(o).text_borderTopColor,"onUpdate:borderTopColor":s[88]||(s[88]=_=>e.unref(o).text_borderTopColor=_),borderBottomStyle:e.unref(o).text_borderBottomStyle,"onUpdate:borderBottomStyle":s[89]||(s[89]=_=>e.unref(o).text_borderBottomStyle=_),borderBottomWidth:e.unref(o).text_borderBottomWidth,"onUpdate:borderBottomWidth":s[90]||(s[90]=_=>e.unref(o).text_borderBottomWidth=_),borderBottomColor:e.unref(o).text_borderBottomColor,"onUpdate:borderBottomColor":s[91]||(s[91]=_=>e.unref(o).text_borderBottomColor=_),borderLeftStyle:e.unref(o).text_borderLeftStyle,"onUpdate:borderLeftStyle":s[92]||(s[92]=_=>e.unref(o).text_borderLeftStyle=_),borderLeftWidth:e.unref(o).text_borderLeftWidth,"onUpdate:borderLeftWidth":s[93]||(s[93]=_=>e.unref(o).text_borderLeftWidth=_),borderLeftColor:e.unref(o).text_borderLeftColor,"onUpdate:borderLeftColor":s[94]||(s[94]=_=>e.unref(o).text_borderLeftColor=_),borderRightStyle:e.unref(o).text_borderRightStyle,"onUpdate:borderRightStyle":s[95]||(s[95]=_=>e.unref(o).text_borderRightStyle=_),borderRightWidth:e.unref(o).text_borderRightWidth,"onUpdate:borderRightWidth":s[96]||(s[96]=_=>e.unref(o).text_borderRightWidth=_),borderRightColor:e.unref(o).text_borderRightColor,"onUpdate:borderRightColor":s[97]||(s[97]=_=>e.unref(o).text_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"颜色","label-position":"left",prop:"text_color"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).text_color,"onUpdate:modelValue":s[99]||(s[99]=_=>e.unref(o).text_color=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).text_color,"onUpdate:modelValue":s[98]||(s[98]=_=>e.unref(o).text_color=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"text_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).text_backgroundColor,"onUpdate:modelValue":s[101]||(s[101]=_=>e.unref(o).text_backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).text_backgroundColor,"onUpdate:modelValue":s[100]||(s[100]=_=>e.unref(o).text_backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-d983882f"]]),J8=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"栅格布局",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"solid",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"1px",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"#ADADAD",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"solid",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"1px",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"#ADADAD",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"14px",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"left",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"表头-外边距-上",key:"header_marginTop",default:"",fieldType:"style"},{label:"表头-外边距-下",key:"header_marginBottom",default:"",fieldType:"style"},{label:"表头-外边距-左",key:"header_marginLeft",default:"",fieldType:"style"},{label:"表头-外边距-右",key:"header_marginRight",default:"",fieldType:"style"},{label:"表头-内边距-上",key:"header_paddingTop",default:"5px",fieldType:"style"},{label:"表头-内边距-下",key:"header_paddingBottom",default:"5px",fieldType:"style"},{label:"表头-内边距-左",key:"header_paddingLeft",default:"5px",fieldType:"style"},{label:"表头-内边距-右",key:"header_paddingRight",default:"5px",fieldType:"style"},{label:"表头-边框样式",key:"header_borderStyle",default:"",fieldType:"style"},{label:"表头-边框宽度",key:"header_borderWidth",default:"",fieldType:"style"},{label:"表头-边框颜色",key:"header_borderColor",default:"",fieldType:"style"},{label:"表头-边框样式-上",key:"header_borderTopStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-上",key:"header_borderTopWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-上",key:"header_borderTopColor",default:"",fieldType:"style"},{label:"表头-边框样式-下",key:"header_borderBottomStyle",default:"solid",fieldType:"style"},{label:"表头-边框宽度-下",key:"header_borderBottomWidth",default:"1px",fieldType:"style"},{label:"表头-边框颜色-下",key:"header_borderBottomColor",default:"#ADADAD",fieldType:"style"},{label:"表头-边框样式-左",key:"header_borderLeftStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-左",key:"header_borderLeftWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-左",key:"header_borderLeftColor",default:"",fieldType:"style"},{label:"表头-边框样式-右",key:"header_borderRightStyle",default:"solid",fieldType:"style"},{label:"表头-边框宽度-右",key:"header_borderRightWidth",default:"1px",fieldType:"style"},{label:"表头-边框颜色-右",key:"header_borderRightColor",default:"#ADADAD",fieldType:"style"},{label:"表头-字体大小",key:"header_fontSize",default:"",fieldType:"style"},{label:"表头-字体粗细",key:"header_fontWeight",default:700,fieldType:"style"},{label:"表头-字体修饰",key:"header_textDecoration",default:"",fieldType:"style"},{label:"表头-对齐方式",key:"header_textAlign",default:"left",fieldType:"style"},{label:"表头-字体行高",key:"header_lineHeight",default:"",fieldType:"style"},{label:"表头-字间距",key:"header_letterSpacing",default:"",fieldType:"style"},{label:"表头-背景颜色",key:"header_backgroundColor",default:"",fieldType:"style"},{label:"单元格-外边距-上",key:"cell_marginTop",default:"",fieldType:"style"},{label:"单元格-外边距-下",key:"cell_marginBottom",default:"",fieldType:"style"},{label:"单元格-外边距-左",key:"cell_marginLeft",default:"",fieldType:"style"},{label:"单元格-外边距-右",key:"cell_marginRight",default:"",fieldType:"style"},{label:"单元格-内边距-上",key:"cell_paddingTop",default:"5px",fieldType:"style"},{label:"单元格-内边距-下",key:"cell_paddingBottom",default:"5px",fieldType:"style"},{label:"单元格-内边距-左",key:"cell_paddingLeft",default:"5px",fieldType:"style"},{label:"单元格-内边距-右",key:"cell_paddingRight",default:"5px",fieldType:"style"},{label:"单元格-边框样式",key:"cell_borderStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度",key:"cell_borderWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色",key:"cell_borderColor",default:"",fieldType:"style"},{label:"单元格-边框样式-上",key:"cell_borderTopStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-上",key:"cell_borderTopWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-上",key:"cell_borderTopColor",default:"",fieldType:"style"},{label:"单元格-边框样式-下",key:"cell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-下",key:"cell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-下",key:"cell_borderBottomColor",default:"#ADADAD",fieldType:"style"},{label:"单元格-边框样式-左",key:"cell_borderLeftStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-左",key:"cell_borderLeftWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-左",key:"cell_borderLeftColor",default:"",fieldType:"style"},{label:"单元格-边框样式-右",key:"cell_borderRightStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-右",key:"cell_borderRightWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-右",key:"cell_borderRightColor",default:"#ADADAD",fieldType:"style"},{label:"单元格-字体大小",key:"cell_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"cell_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"cell_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"cell_textAlign",default:"left",fieldType:"style"},{label:"单元格-字体行高",key:"cell_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"cell_letterSpacing",default:"",fieldType:"style"},{label:"单元格-背景颜色",key:"cell_backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Vn=r=>(e.pushScopeId("data-v-c2bab41c"),r=r(),e.popScopeId(),r),v8={class:"component-config-container table-component-config-container"},eN={class:"component-config-header"},tN=Vn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格")],-1)),oN=Vn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),nN=[Vn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],rN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),lN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),iN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表格样式配置")],-1)),aN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表头样式")],-1)),sN=Vn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"单元格样式配置")],-1)),dN=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=J8(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",v8,[e.createElementVNode("div",eN,[tN,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),oN]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},nN)]),e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[rN,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(o).id=g),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(o).title=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),lN,e.createVNode(T,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).field,"onUpdate:modelValue":p[2]||(p[2]=g=>e.unref(o).field=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),iN,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[3]||(p[3]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[4]||(p[4]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[5]||(p[5]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[6]||(p[6]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[7]||(p[7]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[8]||(p[8]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[9]||(p[9]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[10]||(p[10]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[11]||(p[11]=g=>e.unref(o).borderStyle=g),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[12]||(p[12]=g=>e.unref(o).borderWidth=g),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[13]||(p[13]=g=>e.unref(o).borderColor=g),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[14]||(p[14]=g=>e.unref(o).borderTopStyle=g),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[15]||(p[15]=g=>e.unref(o).borderTopWidth=g),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[16]||(p[16]=g=>e.unref(o).borderTopColor=g),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[17]||(p[17]=g=>e.unref(o).borderBottomStyle=g),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[18]||(p[18]=g=>e.unref(o).borderBottomWidth=g),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[19]||(p[19]=g=>e.unref(o).borderBottomColor=g),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[20]||(p[20]=g=>e.unref(o).borderLeftStyle=g),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[21]||(p[21]=g=>e.unref(o).borderLeftWidth=g),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[22]||(p[22]=g=>e.unref(o).borderLeftColor=g),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[23]||(p[23]=g=>e.unref(o).borderRightStyle=g),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[24]||(p[24]=g=>e.unref(o).borderRightWidth=g),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[25]||(p[25]=g=>e.unref(o).borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":p[26]||(p[26]=g=>e.unref(o).fontSize=g),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":p[27]||(p[27]=g=>e.unref(o).fontWeight=g),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":p[28]||(p[28]=g=>e.unref(o).textDecoration=g),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":p[29]||(p[29]=g=>e.unref(o).textAlign=g),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":p[30]||(p[30]=g=>e.unref(o).lineHeight=g),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":p[31]||(p[31]=g=>e.unref(o).letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[33]||(p[33]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[32]||(p[32]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),aN,e.createVNode(Oe,{marginTop:e.unref(o).header_marginTop,"onUpdate:marginTop":p[34]||(p[34]=g=>e.unref(o).header_marginTop=g),marginBottom:e.unref(o).header_marginBottom,"onUpdate:marginBottom":p[35]||(p[35]=g=>e.unref(o).header_marginBottom=g),marginLeft:e.unref(o).header_marginLeft,"onUpdate:marginLeft":p[36]||(p[36]=g=>e.unref(o).header_marginLeft=g),marginRight:e.unref(o).header_marginRight,"onUpdate:marginRight":p[37]||(p[37]=g=>e.unref(o).header_marginRight=g),paddingTop:e.unref(o).header_paddingTop,"onUpdate:paddingTop":p[38]||(p[38]=g=>e.unref(o).header_paddingTop=g),paddingBottom:e.unref(o).header_paddingBottom,"onUpdate:paddingBottom":p[39]||(p[39]=g=>e.unref(o).header_paddingBottom=g),paddingLeft:e.unref(o).header_paddingLeft,"onUpdate:paddingLeft":p[40]||(p[40]=g=>e.unref(o).header_paddingLeft=g),paddingRight:e.unref(o).header_paddingRight,"onUpdate:paddingRight":p[41]||(p[41]=g=>e.unref(o).header_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).header_borderStyle,"onUpdate:borderStyle":p[42]||(p[42]=g=>e.unref(o).header_borderStyle=g),borderWidth:e.unref(o).header_borderWidth,"onUpdate:borderWidth":p[43]||(p[43]=g=>e.unref(o).header_borderWidth=g),borderColor:e.unref(o).header_borderColor,"onUpdate:borderColor":p[44]||(p[44]=g=>e.unref(o).header_borderColor=g),borderTopStyle:e.unref(o).header_borderTopStyle,"onUpdate:borderTopStyle":p[45]||(p[45]=g=>e.unref(o).header_borderTopStyle=g),borderTopWidth:e.unref(o).header_borderTopWidth,"onUpdate:borderTopWidth":p[46]||(p[46]=g=>e.unref(o).header_borderTopWidth=g),borderTopColor:e.unref(o).header_borderTopColor,"onUpdate:borderTopColor":p[47]||(p[47]=g=>e.unref(o).header_borderTopColor=g),borderBottomStyle:e.unref(o).header_borderBottomStyle,"onUpdate:borderBottomStyle":p[48]||(p[48]=g=>e.unref(o).header_borderBottomStyle=g),borderBottomWidth:e.unref(o).header_borderBottomWidth,"onUpdate:borderBottomWidth":p[49]||(p[49]=g=>e.unref(o).header_borderBottomWidth=g),borderBottomColor:e.unref(o).header_borderBottomColor,"onUpdate:borderBottomColor":p[50]||(p[50]=g=>e.unref(o).header_borderBottomColor=g),borderLeftStyle:e.unref(o).header_borderLeftStyle,"onUpdate:borderLeftStyle":p[51]||(p[51]=g=>e.unref(o).header_borderLeftStyle=g),borderLeftWidth:e.unref(o).header_borderLeftWidth,"onUpdate:borderLeftWidth":p[52]||(p[52]=g=>e.unref(o).header_borderLeftWidth=g),borderLeftColor:e.unref(o).header_borderLeftColor,"onUpdate:borderLeftColor":p[53]||(p[53]=g=>e.unref(o).header_borderLeftColor=g),borderRightStyle:e.unref(o).header_borderRightStyle,"onUpdate:borderRightStyle":p[54]||(p[54]=g=>e.unref(o).header_borderRightStyle=g),borderRightWidth:e.unref(o).header_borderRightWidth,"onUpdate:borderRightWidth":p[55]||(p[55]=g=>e.unref(o).header_borderRightWidth=g),borderRightColor:e.unref(o).header_borderRightColor,"onUpdate:borderRightColor":p[56]||(p[56]=g=>e.unref(o).header_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).header_fontSize,"onUpdate:fontSize":p[57]||(p[57]=g=>e.unref(o).header_fontSize=g),fontWeight:e.unref(o).header_fontWeight,"onUpdate:fontWeight":p[58]||(p[58]=g=>e.unref(o).header_fontWeight=g),textDecoration:e.unref(o).header_textDecoration,"onUpdate:textDecoration":p[59]||(p[59]=g=>e.unref(o).header_textDecoration=g),textAlign:e.unref(o).header_textAlign,"onUpdate:textAlign":p[60]||(p[60]=g=>e.unref(o).header_textAlign=g),lineHeight:e.unref(o).header_lineHeight,"onUpdate:lineHeight":p[61]||(p[61]=g=>e.unref(o).header_lineHeight=g),letterSpacing:e.unref(o).header_letterSpacing,"onUpdate:letterSpacing":p[62]||(p[62]=g=>e.unref(o).header_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"header_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[64]||(p[64]=g=>e.unref(o).header_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[63]||(p[63]=g=>e.unref(o).header_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),sN,e.createVNode(Oe,{marginTop:e.unref(o).cell_marginTop,"onUpdate:marginTop":p[65]||(p[65]=g=>e.unref(o).cell_marginTop=g),marginBottom:e.unref(o).cell_marginBottom,"onUpdate:marginBottom":p[66]||(p[66]=g=>e.unref(o).cell_marginBottom=g),marginLeft:e.unref(o).cell_marginLeft,"onUpdate:marginLeft":p[67]||(p[67]=g=>e.unref(o).cell_marginLeft=g),marginRight:e.unref(o).cell_marginRight,"onUpdate:marginRight":p[68]||(p[68]=g=>e.unref(o).cell_marginRight=g),paddingTop:e.unref(o).cell_paddingTop,"onUpdate:paddingTop":p[69]||(p[69]=g=>e.unref(o).cell_paddingTop=g),paddingBottom:e.unref(o).cell_paddingBottom,"onUpdate:paddingBottom":p[70]||(p[70]=g=>e.unref(o).cell_paddingBottom=g),paddingLeft:e.unref(o).cell_paddingLeft,"onUpdate:paddingLeft":p[71]||(p[71]=g=>e.unref(o).cell_paddingLeft=g),paddingRight:e.unref(o).cell_paddingRight,"onUpdate:paddingRight":p[72]||(p[72]=g=>e.unref(o).cell_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).cell_borderStyle,"onUpdate:borderStyle":p[73]||(p[73]=g=>e.unref(o).cell_borderStyle=g),borderWidth:e.unref(o).cell_borderWidth,"onUpdate:borderWidth":p[74]||(p[74]=g=>e.unref(o).cell_borderWidth=g),borderColor:e.unref(o).cell_borderColor,"onUpdate:borderColor":p[75]||(p[75]=g=>e.unref(o).cell_borderColor=g),borderTopStyle:e.unref(o).cell_borderTopStyle,"onUpdate:borderTopStyle":p[76]||(p[76]=g=>e.unref(o).cell_borderTopStyle=g),borderTopWidth:e.unref(o).cell_borderTopWidth,"onUpdate:borderTopWidth":p[77]||(p[77]=g=>e.unref(o).cell_borderTopWidth=g),borderTopColor:e.unref(o).cell_borderTopColor,"onUpdate:borderTopColor":p[78]||(p[78]=g=>e.unref(o).cell_borderTopColor=g),borderBottomStyle:e.unref(o).cell_borderBottomStyle,"onUpdate:borderBottomStyle":p[79]||(p[79]=g=>e.unref(o).cell_borderBottomStyle=g),borderBottomWidth:e.unref(o).cell_borderBottomWidth,"onUpdate:borderBottomWidth":p[80]||(p[80]=g=>e.unref(o).cell_borderBottomWidth=g),borderBottomColor:e.unref(o).cell_borderBottomColor,"onUpdate:borderBottomColor":p[81]||(p[81]=g=>e.unref(o).cell_borderBottomColor=g),borderLeftStyle:e.unref(o).cell_borderLeftStyle,"onUpdate:borderLeftStyle":p[82]||(p[82]=g=>e.unref(o).cell_borderLeftStyle=g),borderLeftWidth:e.unref(o).cell_borderLeftWidth,"onUpdate:borderLeftWidth":p[83]||(p[83]=g=>e.unref(o).cell_borderLeftWidth=g),borderLeftColor:e.unref(o).cell_borderLeftColor,"onUpdate:borderLeftColor":p[84]||(p[84]=g=>e.unref(o).cell_borderLeftColor=g),borderRightStyle:e.unref(o).cell_borderRightStyle,"onUpdate:borderRightStyle":p[85]||(p[85]=g=>e.unref(o).cell_borderRightStyle=g),borderRightWidth:e.unref(o).cell_borderRightWidth,"onUpdate:borderRightWidth":p[86]||(p[86]=g=>e.unref(o).cell_borderRightWidth=g),borderRightColor:e.unref(o).cell_borderRightColor,"onUpdate:borderRightColor":p[87]||(p[87]=g=>e.unref(o).cell_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":p[88]||(p[88]=g=>e.unref(o).cell_fontSize=g),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":p[89]||(p[89]=g=>e.unref(o).cell_fontWeight=g),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":p[90]||(p[90]=g=>e.unref(o).cell_textDecoration=g),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":p[91]||(p[91]=g=>e.unref(o).cell_textAlign=g),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":p[92]||(p[92]=g=>e.unref(o).cell_lineHeight=g),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":p[93]||(p[93]=g=>e.unref(o).cell_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"cell_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[95]||(p[95]=g=>e.unref(o).cell_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[94]||(p[94]=g=>e.unref(o).cell_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-c2bab41c"]]),fN=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"列",fieldType:"base"},{label:"表头名称",key:"headerTitle",default:"表格列",fieldType:"prop"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"宽度",key:"width",default:"",fieldType:"style"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"表头-外边距-上",key:"header_marginTop",default:"",fieldType:"style"},{label:"表头-外边距-下",key:"header_marginBottom",default:"",fieldType:"style"},{label:"表头-外边距-左",key:"header_marginLeft",default:"",fieldType:"style"},{label:"表头-外边距-右",key:"header_marginRight",default:"",fieldType:"style"},{label:"表头-内边距-上",key:"header_paddingTop",default:"",fieldType:"style"},{label:"表头-内边距-下",key:"header_paddingBottom",default:"",fieldType:"style"},{label:"表头-内边距-左",key:"header_paddingLeft",default:"",fieldType:"style"},{label:"表头-内边距-右",key:"header_paddingRight",default:"",fieldType:"style"},{label:"表头-边框样式",key:"header_borderStyle",default:"",fieldType:"style"},{label:"表头-边框宽度",key:"header_borderWidth",default:"",fieldType:"style"},{label:"表头-边框颜色",key:"header_borderColor",default:"",fieldType:"style"},{label:"表头-边框样式-上",key:"header_borderTopStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-上",key:"header_borderTopWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-上",key:"header_borderTopColor",default:"",fieldType:"style"},{label:"表头-边框样式-下",key:"header_borderBottomStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-下",key:"header_borderBottomWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-下",key:"header_borderBottomColor",default:"",fieldType:"style"},{label:"表头-边框样式-左",key:"header_borderLeftStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-左",key:"header_borderLeftWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-左",key:"header_borderLeftColor",default:"",fieldType:"style"},{label:"表头-边框样式-右",key:"header_borderRightStyle",default:"",fieldType:"style"},{label:"表头-边框宽度-右",key:"header_borderRightWidth",default:"",fieldType:"style"},{label:"表头-边框颜色-右",key:"header_borderRightColor",default:"",fieldType:"style"},{label:"表头-字体大小",key:"header_fontSize",default:"",fieldType:"style"},{label:"表头-字体粗细",key:"header_fontWeight",default:"",fieldType:"style"},{label:"表头-字体修饰",key:"header_textDecoration",default:"",fieldType:"style"},{label:"表头-对齐方式",key:"header_textAlign",default:"",fieldType:"style"},{label:"表头-字体行高",key:"header_lineHeight",default:"",fieldType:"style"},{label:"表头-字间距",key:"header_letterSpacing",default:"",fieldType:"style"},{label:"表头-背景颜色",key:"header_backgroundColor",default:"",fieldType:"style"},{label:"单元格-外边距-上",key:"cell_marginTop",default:"",fieldType:"style"},{label:"单元格-外边距-下",key:"cell_marginBottom",default:"",fieldType:"style"},{label:"单元格-外边距-左",key:"cell_marginLeft",default:"",fieldType:"style"},{label:"单元格-外边距-右",key:"cell_marginRight",default:"",fieldType:"style"},{label:"单元格-内边距-上",key:"cell_paddingTop",default:"",fieldType:"style"},{label:"单元格-内边距-下",key:"cell_paddingBottom",default:"",fieldType:"style"},{label:"单元格-内边距-左",key:"cell_paddingLeft",default:"",fieldType:"style"},{label:"单元格-内边距-右",key:"cell_paddingRight",default:"",fieldType:"style"},{label:"单元格-边框样式",key:"cell_borderStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度",key:"cell_borderWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色",key:"cell_borderColor",default:"",fieldType:"style"},{label:"单元格-边框样式-上",key:"cell_borderTopStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-上",key:"cell_borderTopWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-上",key:"cell_borderTopColor",default:"",fieldType:"style"},{label:"单元格-边框样式-下",key:"cell_borderBottomStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-下",key:"cell_borderBottomWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-下",key:"cell_borderBottomColor",default:"",fieldType:"style"},{label:"单元格-边框样式-左",key:"cell_borderLeftStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-左",key:"cell_borderLeftWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-左",key:"cell_borderLeftColor",default:"",fieldType:"style"},{label:"单元格-边框样式-右",key:"cell_borderRightStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-右",key:"cell_borderRightWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-右",key:"cell_borderRightColor",default:"",fieldType:"style"},{label:"单元格-字体大小",key:"cell_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"cell_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"cell_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"cell_textAlign",default:"",fieldType:"style"},{label:"单元格-字体行高",key:"cell_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"cell_letterSpacing",default:"",fieldType:"style"},{label:"单元格-背景颜色",key:"cell_backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Bn=r=>(e.pushScopeId("data-v-bada5acf"),r=r(),e.popScopeId(),r),cN={class:"component-config-container table-column-config-container"},pN={class:"component-config-header"},mN=Bn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格列")],-1)),hN=Bn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),uN=[Bn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],gN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),bN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),yN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表格列样式")],-1)),xN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表头样式")],-1)),CN=Bn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"单元格样式配置")],-1)),ON=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=fN(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",cN,[e.createElementVNode("div",pN,[mN,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),hN]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},uN)]),e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[gN,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(o).id=g),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(o).title=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),bN,e.createVNode(T,{label:"表头名称",prop:"headerTitle"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).headerTitle,"onUpdate:modelValue":p[2]||(p[2]=g=>e.unref(o).headerTitle=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).field,"onUpdate:modelValue":p[3]||(p[3]=g=>e.unref(o).field=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),yN,e.createVNode(T,{label:"宽度",prop:"width"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).width,"onUpdate:modelValue":p[4]||(p[4]=g=>e.unref(o).width=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[5]||(p[5]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[6]||(p[6]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[7]||(p[7]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[8]||(p[8]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[9]||(p[9]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[10]||(p[10]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[11]||(p[11]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[12]||(p[12]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[13]||(p[13]=g=>e.unref(o).borderStyle=g),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[14]||(p[14]=g=>e.unref(o).borderWidth=g),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[15]||(p[15]=g=>e.unref(o).borderColor=g),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[16]||(p[16]=g=>e.unref(o).borderTopStyle=g),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[17]||(p[17]=g=>e.unref(o).borderTopWidth=g),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[18]||(p[18]=g=>e.unref(o).borderTopColor=g),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[19]||(p[19]=g=>e.unref(o).borderBottomStyle=g),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[20]||(p[20]=g=>e.unref(o).borderBottomWidth=g),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[21]||(p[21]=g=>e.unref(o).borderBottomColor=g),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[22]||(p[22]=g=>e.unref(o).borderLeftStyle=g),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[23]||(p[23]=g=>e.unref(o).borderLeftWidth=g),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[24]||(p[24]=g=>e.unref(o).borderLeftColor=g),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[25]||(p[25]=g=>e.unref(o).borderRightStyle=g),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[26]||(p[26]=g=>e.unref(o).borderRightWidth=g),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[27]||(p[27]=g=>e.unref(o).borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":p[28]||(p[28]=g=>e.unref(o).fontSize=g),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":p[29]||(p[29]=g=>e.unref(o).fontWeight=g),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":p[30]||(p[30]=g=>e.unref(o).textDecoration=g),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":p[31]||(p[31]=g=>e.unref(o).textAlign=g),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":p[32]||(p[32]=g=>e.unref(o).lineHeight=g),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":p[33]||(p[33]=g=>e.unref(o).letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[35]||(p[35]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[34]||(p[34]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),xN,e.createVNode(Oe,{marginTop:e.unref(o).header_marginTop,"onUpdate:marginTop":p[36]||(p[36]=g=>e.unref(o).header_marginTop=g),marginBottom:e.unref(o).header_marginBottom,"onUpdate:marginBottom":p[37]||(p[37]=g=>e.unref(o).header_marginBottom=g),marginLeft:e.unref(o).header_marginLeft,"onUpdate:marginLeft":p[38]||(p[38]=g=>e.unref(o).header_marginLeft=g),marginRight:e.unref(o).header_marginRight,"onUpdate:marginRight":p[39]||(p[39]=g=>e.unref(o).header_marginRight=g),paddingTop:e.unref(o).header_paddingTop,"onUpdate:paddingTop":p[40]||(p[40]=g=>e.unref(o).header_paddingTop=g),paddingBottom:e.unref(o).header_paddingBottom,"onUpdate:paddingBottom":p[41]||(p[41]=g=>e.unref(o).header_paddingBottom=g),paddingLeft:e.unref(o).header_paddingLeft,"onUpdate:paddingLeft":p[42]||(p[42]=g=>e.unref(o).header_paddingLeft=g),paddingRight:e.unref(o).header_paddingRight,"onUpdate:paddingRight":p[43]||(p[43]=g=>e.unref(o).header_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).header_borderStyle,"onUpdate:borderStyle":p[44]||(p[44]=g=>e.unref(o).header_borderStyle=g),borderWidth:e.unref(o).header_borderWidth,"onUpdate:borderWidth":p[45]||(p[45]=g=>e.unref(o).header_borderWidth=g),borderColor:e.unref(o).header_borderColor,"onUpdate:borderColor":p[46]||(p[46]=g=>e.unref(o).header_borderColor=g),borderTopStyle:e.unref(o).header_borderTopStyle,"onUpdate:borderTopStyle":p[47]||(p[47]=g=>e.unref(o).header_borderTopStyle=g),borderTopWidth:e.unref(o).header_borderTopWidth,"onUpdate:borderTopWidth":p[48]||(p[48]=g=>e.unref(o).header_borderTopWidth=g),borderTopColor:e.unref(o).header_borderTopColor,"onUpdate:borderTopColor":p[49]||(p[49]=g=>e.unref(o).header_borderTopColor=g),borderBottomStyle:e.unref(o).header_borderBottomStyle,"onUpdate:borderBottomStyle":p[50]||(p[50]=g=>e.unref(o).header_borderBottomStyle=g),borderBottomWidth:e.unref(o).header_borderBottomWidth,"onUpdate:borderBottomWidth":p[51]||(p[51]=g=>e.unref(o).header_borderBottomWidth=g),borderBottomColor:e.unref(o).header_borderBottomColor,"onUpdate:borderBottomColor":p[52]||(p[52]=g=>e.unref(o).header_borderBottomColor=g),borderLeftStyle:e.unref(o).header_borderLeftStyle,"onUpdate:borderLeftStyle":p[53]||(p[53]=g=>e.unref(o).header_borderLeftStyle=g),borderLeftWidth:e.unref(o).header_borderLeftWidth,"onUpdate:borderLeftWidth":p[54]||(p[54]=g=>e.unref(o).header_borderLeftWidth=g),borderLeftColor:e.unref(o).header_borderLeftColor,"onUpdate:borderLeftColor":p[55]||(p[55]=g=>e.unref(o).header_borderLeftColor=g),borderRightStyle:e.unref(o).header_borderRightStyle,"onUpdate:borderRightStyle":p[56]||(p[56]=g=>e.unref(o).header_borderRightStyle=g),borderRightWidth:e.unref(o).header_borderRightWidth,"onUpdate:borderRightWidth":p[57]||(p[57]=g=>e.unref(o).header_borderRightWidth=g),borderRightColor:e.unref(o).header_borderRightColor,"onUpdate:borderRightColor":p[58]||(p[58]=g=>e.unref(o).header_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).header_fontSize,"onUpdate:fontSize":p[59]||(p[59]=g=>e.unref(o).header_fontSize=g),fontWeight:e.unref(o).header_fontWeight,"onUpdate:fontWeight":p[60]||(p[60]=g=>e.unref(o).header_fontWeight=g),textDecoration:e.unref(o).header_textDecoration,"onUpdate:textDecoration":p[61]||(p[61]=g=>e.unref(o).header_textDecoration=g),textAlign:e.unref(o).header_textAlign,"onUpdate:textAlign":p[62]||(p[62]=g=>e.unref(o).header_textAlign=g),lineHeight:e.unref(o).header_lineHeight,"onUpdate:lineHeight":p[63]||(p[63]=g=>e.unref(o).header_lineHeight=g),letterSpacing:e.unref(o).header_letterSpacing,"onUpdate:letterSpacing":p[64]||(p[64]=g=>e.unref(o).header_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"header_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[66]||(p[66]=g=>e.unref(o).header_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).header_backgroundColor,"onUpdate:modelValue":p[65]||(p[65]=g=>e.unref(o).header_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),CN,e.createVNode(Oe,{marginTop:e.unref(o).cell_marginTop,"onUpdate:marginTop":p[67]||(p[67]=g=>e.unref(o).cell_marginTop=g),marginBottom:e.unref(o).cell_marginBottom,"onUpdate:marginBottom":p[68]||(p[68]=g=>e.unref(o).cell_marginBottom=g),marginLeft:e.unref(o).cell_marginLeft,"onUpdate:marginLeft":p[69]||(p[69]=g=>e.unref(o).cell_marginLeft=g),marginRight:e.unref(o).cell_marginRight,"onUpdate:marginRight":p[70]||(p[70]=g=>e.unref(o).cell_marginRight=g),paddingTop:e.unref(o).cell_paddingTop,"onUpdate:paddingTop":p[71]||(p[71]=g=>e.unref(o).cell_paddingTop=g),paddingBottom:e.unref(o).cell_paddingBottom,"onUpdate:paddingBottom":p[72]||(p[72]=g=>e.unref(o).cell_paddingBottom=g),paddingLeft:e.unref(o).cell_paddingLeft,"onUpdate:paddingLeft":p[73]||(p[73]=g=>e.unref(o).cell_paddingLeft=g),paddingRight:e.unref(o).cell_paddingRight,"onUpdate:paddingRight":p[74]||(p[74]=g=>e.unref(o).cell_paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).cell_borderStyle,"onUpdate:borderStyle":p[75]||(p[75]=g=>e.unref(o).cell_borderStyle=g),borderWidth:e.unref(o).cell_borderWidth,"onUpdate:borderWidth":p[76]||(p[76]=g=>e.unref(o).cell_borderWidth=g),borderColor:e.unref(o).cell_borderColor,"onUpdate:borderColor":p[77]||(p[77]=g=>e.unref(o).cell_borderColor=g),borderTopStyle:e.unref(o).cell_borderTopStyle,"onUpdate:borderTopStyle":p[78]||(p[78]=g=>e.unref(o).cell_borderTopStyle=g),borderTopWidth:e.unref(o).cell_borderTopWidth,"onUpdate:borderTopWidth":p[79]||(p[79]=g=>e.unref(o).cell_borderTopWidth=g),borderTopColor:e.unref(o).cell_borderTopColor,"onUpdate:borderTopColor":p[80]||(p[80]=g=>e.unref(o).cell_borderTopColor=g),borderBottomStyle:e.unref(o).cell_borderBottomStyle,"onUpdate:borderBottomStyle":p[81]||(p[81]=g=>e.unref(o).cell_borderBottomStyle=g),borderBottomWidth:e.unref(o).cell_borderBottomWidth,"onUpdate:borderBottomWidth":p[82]||(p[82]=g=>e.unref(o).cell_borderBottomWidth=g),borderBottomColor:e.unref(o).cell_borderBottomColor,"onUpdate:borderBottomColor":p[83]||(p[83]=g=>e.unref(o).cell_borderBottomColor=g),borderLeftStyle:e.unref(o).cell_borderLeftStyle,"onUpdate:borderLeftStyle":p[84]||(p[84]=g=>e.unref(o).cell_borderLeftStyle=g),borderLeftWidth:e.unref(o).cell_borderLeftWidth,"onUpdate:borderLeftWidth":p[85]||(p[85]=g=>e.unref(o).cell_borderLeftWidth=g),borderLeftColor:e.unref(o).cell_borderLeftColor,"onUpdate:borderLeftColor":p[86]||(p[86]=g=>e.unref(o).cell_borderLeftColor=g),borderRightStyle:e.unref(o).cell_borderRightStyle,"onUpdate:borderRightStyle":p[87]||(p[87]=g=>e.unref(o).cell_borderRightStyle=g),borderRightWidth:e.unref(o).cell_borderRightWidth,"onUpdate:borderRightWidth":p[88]||(p[88]=g=>e.unref(o).cell_borderRightWidth=g),borderRightColor:e.unref(o).cell_borderRightColor,"onUpdate:borderRightColor":p[89]||(p[89]=g=>e.unref(o).cell_borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":p[90]||(p[90]=g=>e.unref(o).cell_fontSize=g),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":p[91]||(p[91]=g=>e.unref(o).cell_fontWeight=g),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":p[92]||(p[92]=g=>e.unref(o).cell_textDecoration=g),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":p[93]||(p[93]=g=>e.unref(o).cell_textAlign=g),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":p[94]||(p[94]=g=>e.unref(o).cell_lineHeight=g),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":p[95]||(p[95]=g=>e.unref(o).cell_letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"cell_backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[97]||(p[97]=g=>e.unref(o).cell_backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).cell_backgroundColor,"onUpdate:modelValue":p[96]||(p[96]=g=>e.unref(o).cell_backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-bada5acf"]]),wN=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(f){t("update:modelValue",f)}}),o=e.reactive([]),l=f=>{const c={field:""};let m={};return ue(m,c,f),m};return{modelValue:n,configList:o,createItem:l,addNewItem:()=>{let f=l();o.push(f)},insertItem:f=>{let c=l(),m=f+1;o.splice(m,0,c)},removeItem:f=>{let c=o[f],m="是否删除";c.field&&(m+=`【${c.field}】`),ge.confirm(`${m}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(f,1)})}}},_N={class:"columns-field-config-container"},SN={class:"columns-field-operate"},kN={class:"columns-field-content"},TN={class:"columns-field-item_label"},IN={class:"columns-field-item_content"},AN={class:"columns-field-item_operate"},VN=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,configList:a,addNewItem:d,insertItem:f,removeItem:c}=wN(l,o);return e.watch(()=>l.modelValue,(m,h)=>{let b=l.modelValue?l.modelValue:[];a.splice(0,a.length,...b)},{immediate:!0,deep:!0}),e.watch(a,(m,h)=>{i.value=a},{deep:!0}),t({}),(m,h)=>{const b=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",_N,[e.createElementVNode("div",SN,[e.createVNode(b,{type:"primary",size:"small",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode("新增字段")]),_:1},8,["onClick"])]),e.createElementVNode("div",kN,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(p,O)=>(e.openBlock(),e.createElementBlock("div",{class:"columns-field-item",key:O},[e.createElementVNode("div",TN,"第"+e.toDisplayString(O+1)+"列",1),e.createElementVNode("div",IN,[e.createVNode(x,{modelValue:p.field,"onUpdate:modelValue":C=>p.field=C,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",AN,[e.createVNode(b,{type:"primary",size:"small",plain:"",onClick:C=>e.unref(f)(O)},{default:e.withCtx(()=>[e.createTextVNode("插入")]),_:2},1032,["onClick"]),e.createVNode(b,{type:"warning",size:"small",plain:"",onClick:C=>e.unref(c)(O)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])]))),128))])])}}},[["__scopeId","data-v-bba377bc"]]),BN=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"复制表格",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"表头行数",key:"headerRow",default:2,fieldType:"prop"},{label:"列数",key:"col",default:4,fieldType:"prop"},{label:"表格列对应数据字段配置",key:"columnsField",default:[],fieldType:"prop"},{label:"是否启用分页",key:"isPaginationMode",default:!0,fieldType:"prop"},{label:"是否显示分页码",key:"isPaginationEnabled",default:!0,fieldType:"prop"},{label:"每页最大行数",key:"perPageMaxRow",default:6,fieldType:"prop"},{label:"表格内容行高度",key:"contentRowHeight",default:20,fieldType:"prop"},{label:"页尾向上合并行数",key:"mergedFooterRowCount",default:1,fieldType:"prop"},{label:"是否续打",key:"canContinue",default:!1,fieldType:"prop"},{label:"续打模式",key:"continuePrintMode",default:"autoHeight",fieldType:"prop"},{label:"自适应高度是否合并单元格",key:"autoHeightSpanCell",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"solid",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"1px",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"#090909",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"solid",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"1px",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"#090909",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"共享-字体大小",key:"common_fontSize",default:"12px",fieldType:"style"},{label:"共享-字体粗细",key:"common_fontWeight",default:"",fieldType:"style"},{label:"共享-字体修饰",key:"common_textDecoration",default:"",fieldType:"style"},{label:"共享-对齐方式",key:"common_textAlign",default:"",fieldType:"style"},{label:"共享-字体行高",key:"common_lineHeight",default:"",fieldType:"style"},{label:"共享-字间距",key:"common_letterSpacing",default:"",fieldType:"style"},{label:"表头单元格-最小高度",key:"headerCell_container_minHeight",default:"20px",fieldType:"style"},{label:"表头单元格-外边距-上",key:"headerCell_marginTop",default:"",fieldType:"style"},{label:"表头单元格-外边距-下",key:"headerCell_marginBottom",default:"",fieldType:"style"},{label:"表头单元格-外边距-左",key:"headerCell_marginLeft",default:"",fieldType:"style"},{label:"表头单元格-外边距-右",key:"headerCell_marginRight",default:"",fieldType:"style"},{label:"表头单元格-内边距-上",key:"headerCell_paddingTop",default:"2px",fieldType:"style"},{label:"表头单元格-内边距-下",key:"headerCell_paddingBottom",default:"2px",fieldType:"style"},{label:"表头单元格-内边距-左",key:"headerCell_paddingLeft",default:"2px",fieldType:"style"},{label:"表头单元格-内边距-右",key:"headerCell_paddingRight",default:"2px",fieldType:"style"},{label:"表头单元格-边框样式",key:"headerCell_borderStyle",default:"",fieldType:"style"},{label:"表头单元格-边框宽度",key:"headerCell_borderWidth",default:"",fieldType:"style"},{label:"表头单元格-边框颜色",key:"headerCell_borderColor",default:"",fieldType:"style"},{label:"表头单元格-边框样式-上",key:"headerCell_borderTopStyle",default:"",fieldType:"style"},{label:"表头单元格-边框宽度-上",key:"headerCell_borderTopWidth",default:"",fieldType:"style"},{label:"表头单元格-边框颜色-上",key:"headerCell_borderTopColor",default:"",fieldType:"style"},{label:"表头单元格-边框样式-下",key:"headerCell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"表头单元格-边框宽度-下",key:"headerCell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"表头单元格-边框颜色-下",key:"headerCell_borderBottomColor",default:"#090909",fieldType:"style"},{label:"表头单元格-边框样式-左",key:"headerCell_borderLeftStyle",default:"",fieldType:"style"},{label:"表头单元格-边框宽度-左",key:"headerCell_borderLeftWidth",default:"",fieldType:"style"},{label:"表头单元格-边框颜色-左",key:"headerCell_borderLeftColor",default:"",fieldType:"style"},{label:"表头单元格-边框样式-右",key:"headerCell_borderRightStyle",default:"solid",fieldType:"style"},{label:"表头单元格-边框宽度-右",key:"headerCell_borderRightWidth",default:"1px",fieldType:"style"},{label:"表头单元格-边框颜色-右",key:"headerCell_borderRightColor",default:"#090909",fieldType:"style"},{label:"表头单元格-字体大小",key:"headerCell_container_fontSize",default:"",fieldType:"style"},{label:"表头单元格-字体粗细",key:"headerCell_container_fontWeight",default:"",fieldType:"style"},{label:"表头单元格-字体修饰",key:"headerCell_container_textDecoration",default:"",fieldType:"style"},{label:"表头单元格-对齐方式",key:"headerCell_container_textAlign",default:"left",fieldType:"style"},{label:"表头单元格-字体行高",key:"headerCell_container_lineHeight",default:"",fieldType:"style"},{label:"表头单元格-字间距",key:"headerCell_container_letterSpacing",default:"",fieldType:"style"},{label:"内容单元格-最小高度",key:"contentCell_container_minHeight",default:"20px",fieldType:"style"},{label:"内容单元格-外边距-上",key:"contentCell_marginTop",default:"",fieldType:"style"},{label:"内容单元格-外边距-下",key:"contentCell_marginBottom",default:"",fieldType:"style"},{label:"内容单元格-外边距-左",key:"contentCell_marginLeft",default:"",fieldType:"style"},{label:"内容单元格-外边距-右",key:"contentCell_marginRight",default:"",fieldType:"style"},{label:"内容单元格-内边距-上",key:"contentCell_paddingTop",default:"2px",fieldType:"style"},{label:"内容单元格-内边距-下",key:"contentCell_paddingBottom",default:"2px",fieldType:"style"},{label:"内容单元格-内边距-左",key:"contentCell_paddingLeft",default:"2px",fieldType:"style"},{label:"内容单元格-内边距-右",key:"contentCell_paddingRight",default:"2px",fieldType:"style"},{label:"内容单元格-边框样式",key:"contentCell_borderStyle",default:"",fieldType:"style"},{label:"内容单元格-边框宽度",key:"contentCell_borderWidth",default:"",fieldType:"style"},{label:"内容单元格-边框颜色",key:"contentCell_borderColor",default:"",fieldType:"style"},{label:"内容单元格-边框样式-上",key:"contentCell_borderTopStyle",default:"",fieldType:"style"},{label:"内容单元格-边框宽度-上",key:"contentCell_borderTopWidth",default:"",fieldType:"style"},{label:"内容单元格-边框颜色-上",key:"contentCell_borderTopColor",default:"",fieldType:"style"},{label:"内容单元格-边框样式-下",key:"contentCell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"内容单元格-边框宽度-下",key:"contentCell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"内容单元格-边框颜色-下",key:"contentCell_borderBottomColor",default:"#090909",fieldType:"style"},{label:"内容单元格-边框样式-左",key:"contentCell_borderLeftStyle",default:"",fieldType:"style"},{label:"内容单元格-边框宽度-左",key:"contentCell_borderLeftWidth",default:"",fieldType:"style"},{label:"内容单元格-边框颜色-左",key:"contentCell_borderLeftColor",default:"",fieldType:"style"},{label:"内容单元格-边框样式-右",key:"contentCell_borderRightStyle",default:"solid",fieldType:"style"},{label:"内容单元格-边框宽度-右",key:"contentCell_borderRightWidth",default:"1px",fieldType:"style"},{label:"内容单元格-边框颜色-右",key:"contentCell_borderRightColor",default:"#090909",fieldType:"style"},{label:"内容单元格-字体大小",key:"contentCell_container_fontSize",default:"",fieldType:"style"},{label:"内容单元格-字体粗细",key:"contentCell_container_fontWeight",default:"",fieldType:"style"},{label:"内容单元格-字体修饰",key:"contentCell_container_textDecoration",default:"",fieldType:"style"},{label:"内容单元格-对齐方式",key:"contentCell_container_textAlign",default:"left",fieldType:"style"},{label:"内容单元格-字体行高",key:"contentCell_container_lineHeight",default:"",fieldType:"style"},{label:"内容单元格-字间距",key:"contentCell_container_letterSpacing",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],headerRow:[{required:!0,message:"请输入表头行数",trigger:"blur"}],col:[{required:!0,message:"请输入列数",trigger:"blur"}],columnsField:[{required:!0,message:"请输入列数",trigger:"change"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},ve=r=>(e.pushScopeId("data-v-ef6c1768"),r=r(),e.popScopeId(),r),RN={class:"component-config-container complex-table-component-config-container"},$N={class:"component-config-header"},LN=ve(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"复杂表格")],-1)),PN=ve(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),EN=[ve(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],NN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"复杂表格不能在布局组件中使用!",-1)),MN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),DN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),QN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"分页配置")],-1)),WN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"续打配置")],-1)),UN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【重点】启用续打后自动启用分页",-1)),ZN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 固定高度:表格每行内容高度固定,超出单元格的内容会被裁剪 ",-1)),zN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 自适应高度:表格每行内容高度自适应,超出单元格的内容会显示在下方空白行 ",-1)),HN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),jN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【边框】配置无效",-1)),FN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表头单元格样式")],-1)),XN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【最小高度】配置无效",-1)),qN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【边框】配置无效",-1)),YN=ve(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"内容单元格样式")],-1)),GN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时:【最小高度】配置无效",-1)),KN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 【续打模式】为【自适应高度】时:外边距无效,上下内边距无效 ",-1)),JN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时,【边框】配置无效",-1)),vN=ve(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"开启续打时:【行高】配置无效",-1)),e5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=BN(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-switch"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",RN,[e.createElementVNode("div",$N,[LN,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),PN]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},EN)]),e.createVNode(_,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-position":"top",size:"small"},{default:e.withCtx(()=>[NN,MN,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=k=>e.unref(o).id=k),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=k=>e.unref(o).title=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),DN,e.createVNode(g,{label:"对应数据字段",prop:"field","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(o).field=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表头行数",prop:"headerRow","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).headerRow,"onUpdate:modelValue":s[3]||(s[3]=k=>e.unref(o).headerRow=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"列数",prop:"col","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).col,"onUpdate:modelValue":s[4]||(s[4]=k=>e.unref(o).col=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表格列对应数据字段配置,一列显示多个字段用&#拼接,例:name&#age",prop:"columnsField"},{default:e.withCtx(()=>[e.createVNode(VN,{modelValue:e.unref(o).columnsField,"onUpdate:modelValue":s[5]||(s[5]=k=>e.unref(o).columnsField=k)},null,8,["modelValue"])]),_:1}),QN,e.createVNode(g,{label:"是否启用分页",prop:"isPaginationMode","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).isPaginationMode,"onUpdate:modelValue":s[6]||(s[6]=k=>e.unref(o).isPaginationMode=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"是否显示分页码",prop:"isPaginationEnabled","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).isPaginationEnabled,"onUpdate:modelValue":s[7]||(s[7]=k=>e.unref(o).isPaginationEnabled=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"每页最大行数",prop:"perPageMaxRow","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).perPageMaxRow,"onUpdate:modelValue":s[8]||(s[8]=k=>e.unref(o).perPageMaxRow=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表格内容行高度",prop:"contentRowHeight","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).contentRowHeight,"onUpdate:modelValue":s[9]||(s[9]=k=>e.unref(o).contentRowHeight=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"页尾向上合并行数",prop:"mergedFooterRowCount","label-width":"120px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).mergedFooterRowCount,"onUpdate:modelValue":s[10]||(s[10]=k=>e.unref(o).mergedFooterRowCount=k),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),WN,e.createVNode(g,{label:"是否续打",prop:"canContinue","label-width":"70px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).canContinue,"onUpdate:modelValue":s[11]||(s[11]=k=>e.unref(o).canContinue=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"续打模式",prop:"continuePrintMode","label-width":"70px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).continuePrintMode,"onUpdate:modelValue":s[12]||(s[12]=k=>e.unref(o).continuePrintMode=k)},{default:e.withCtx(()=>[e.createVNode(R,{value:"fixedHeight"},{default:e.withCtx(()=>[e.createTextVNode("固定高度")]),_:1}),e.createVNode(R,{value:"autoHeight"},{default:e.withCtx(()=>[e.createTextVNode("自适应高度")]),_:1})]),_:1},8,["modelValue"])]),_:1}),UN,ZN,zN,e.createVNode(g,{label:"自适应高度是否合并单元格",prop:"autoHeightSpanCell","label-width":"180px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).autoHeightSpanCell,"onUpdate:modelValue":s[13]||(s[13]=k=>e.unref(o).autoHeightSpanCell=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),HN,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[14]||(s[14]=k=>e.unref(o).marginTop=k),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[15]||(s[15]=k=>e.unref(o).marginBottom=k),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[16]||(s[16]=k=>e.unref(o).marginLeft=k),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[17]||(s[17]=k=>e.unref(o).marginRight=k),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[18]||(s[18]=k=>e.unref(o).paddingTop=k),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[19]||(s[19]=k=>e.unref(o).paddingBottom=k),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[20]||(s[20]=k=>e.unref(o).paddingLeft=k),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[21]||(s[21]=k=>e.unref(o).paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),jN,e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[22]||(s[22]=k=>e.unref(o).borderStyle=k),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[23]||(s[23]=k=>e.unref(o).borderWidth=k),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[24]||(s[24]=k=>e.unref(o).borderColor=k),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[25]||(s[25]=k=>e.unref(o).borderTopStyle=k),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[26]||(s[26]=k=>e.unref(o).borderTopWidth=k),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[27]||(s[27]=k=>e.unref(o).borderTopColor=k),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[28]||(s[28]=k=>e.unref(o).borderBottomStyle=k),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[29]||(s[29]=k=>e.unref(o).borderBottomWidth=k),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[30]||(s[30]=k=>e.unref(o).borderBottomColor=k),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[31]||(s[31]=k=>e.unref(o).borderLeftStyle=k),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[32]||(s[32]=k=>e.unref(o).borderLeftWidth=k),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[33]||(s[33]=k=>e.unref(o).borderLeftColor=k),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[34]||(s[34]=k=>e.unref(o).borderRightStyle=k),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[35]||(s[35]=k=>e.unref(o).borderRightWidth=k),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[36]||(s[36]=k=>e.unref(o).borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[38]||(s[38]=k=>e.unref(o).backgroundColor=k),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[37]||(s[37]=k=>e.unref(o).backgroundColor=k),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).common_fontSize,"onUpdate:fontSize":s[39]||(s[39]=k=>e.unref(o).common_fontSize=k),fontWeight:e.unref(o).common_fontWeight,"onUpdate:fontWeight":s[40]||(s[40]=k=>e.unref(o).common_fontWeight=k),textDecoration:e.unref(o).common_textDecoration,"onUpdate:textDecoration":s[41]||(s[41]=k=>e.unref(o).common_textDecoration=k),textAlign:e.unref(o).common_textAlign,"onUpdate:textAlign":s[42]||(s[42]=k=>e.unref(o).common_textAlign=k),lineHeight:e.unref(o).common_lineHeight,"onUpdate:lineHeight":s[43]||(s[43]=k=>e.unref(o).common_lineHeight=k),letterSpacing:e.unref(o).common_letterSpacing,"onUpdate:letterSpacing":s[44]||(s[44]=k=>e.unref(o).common_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),FN,XN,e.createVNode(g,{prop:"headerCell_container_minHeight",label:"最小高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).headerCell_container_minHeight,"onUpdate:modelValue":s[45]||(s[45]=k=>e.unref(o).headerCell_container_minHeight=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[46]||(s[46]=k=>e.unref(c)("headerCell_container_minHeight"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).headerCell_marginTop,"onUpdate:marginTop":s[47]||(s[47]=k=>e.unref(o).headerCell_marginTop=k),marginBottom:e.unref(o).headerCell_marginBottom,"onUpdate:marginBottom":s[48]||(s[48]=k=>e.unref(o).headerCell_marginBottom=k),marginLeft:e.unref(o).headerCell_marginLeft,"onUpdate:marginLeft":s[49]||(s[49]=k=>e.unref(o).headerCell_marginLeft=k),marginRight:e.unref(o).headerCell_marginRight,"onUpdate:marginRight":s[50]||(s[50]=k=>e.unref(o).headerCell_marginRight=k),paddingTop:e.unref(o).headerCell_paddingTop,"onUpdate:paddingTop":s[51]||(s[51]=k=>e.unref(o).headerCell_paddingTop=k),paddingBottom:e.unref(o).headerCell_paddingBottom,"onUpdate:paddingBottom":s[52]||(s[52]=k=>e.unref(o).headerCell_paddingBottom=k),paddingLeft:e.unref(o).headerCell_paddingLeft,"onUpdate:paddingLeft":s[53]||(s[53]=k=>e.unref(o).headerCell_paddingLeft=k),paddingRight:e.unref(o).headerCell_paddingRight,"onUpdate:paddingRight":s[54]||(s[54]=k=>e.unref(o).headerCell_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),qN,e.createVNode(Se,{borderStyle:e.unref(o).headerCell_borderStyle,"onUpdate:borderStyle":s[55]||(s[55]=k=>e.unref(o).headerCell_borderStyle=k),borderWidth:e.unref(o).headerCell_borderWidth,"onUpdate:borderWidth":s[56]||(s[56]=k=>e.unref(o).headerCell_borderWidth=k),borderColor:e.unref(o).headerCell_borderColor,"onUpdate:borderColor":s[57]||(s[57]=k=>e.unref(o).headerCell_borderColor=k),borderTopStyle:e.unref(o).headerCell_borderTopStyle,"onUpdate:borderTopStyle":s[58]||(s[58]=k=>e.unref(o).headerCell_borderTopStyle=k),borderTopWidth:e.unref(o).headerCell_borderTopWidth,"onUpdate:borderTopWidth":s[59]||(s[59]=k=>e.unref(o).headerCell_borderTopWidth=k),borderTopColor:e.unref(o).headerCell_borderTopColor,"onUpdate:borderTopColor":s[60]||(s[60]=k=>e.unref(o).headerCell_borderTopColor=k),borderBottomStyle:e.unref(o).headerCell_borderBottomStyle,"onUpdate:borderBottomStyle":s[61]||(s[61]=k=>e.unref(o).headerCell_borderBottomStyle=k),borderBottomWidth:e.unref(o).headerCell_borderBottomWidth,"onUpdate:borderBottomWidth":s[62]||(s[62]=k=>e.unref(o).headerCell_borderBottomWidth=k),borderBottomColor:e.unref(o).headerCell_borderBottomColor,"onUpdate:borderBottomColor":s[63]||(s[63]=k=>e.unref(o).headerCell_borderBottomColor=k),borderLeftStyle:e.unref(o).headerCell_borderLeftStyle,"onUpdate:borderLeftStyle":s[64]||(s[64]=k=>e.unref(o).headerCell_borderLeftStyle=k),borderLeftWidth:e.unref(o).headerCell_borderLeftWidth,"onUpdate:borderLeftWidth":s[65]||(s[65]=k=>e.unref(o).headerCell_borderLeftWidth=k),borderLeftColor:e.unref(o).headerCell_borderLeftColor,"onUpdate:borderLeftColor":s[66]||(s[66]=k=>e.unref(o).headerCell_borderLeftColor=k),borderRightStyle:e.unref(o).headerCell_borderRightStyle,"onUpdate:borderRightStyle":s[67]||(s[67]=k=>e.unref(o).headerCell_borderRightStyle=k),borderRightWidth:e.unref(o).headerCell_borderRightWidth,"onUpdate:borderRightWidth":s[68]||(s[68]=k=>e.unref(o).headerCell_borderRightWidth=k),borderRightColor:e.unref(o).headerCell_borderRightColor,"onUpdate:borderRightColor":s[69]||(s[69]=k=>e.unref(o).headerCell_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).headerCell_container_fontSize,"onUpdate:fontSize":s[70]||(s[70]=k=>e.unref(o).headerCell_container_fontSize=k),fontWeight:e.unref(o).headerCell_container_fontWeight,"onUpdate:fontWeight":s[71]||(s[71]=k=>e.unref(o).headerCell_container_fontWeight=k),textDecoration:e.unref(o).headerCell_container_textDecoration,"onUpdate:textDecoration":s[72]||(s[72]=k=>e.unref(o).headerCell_container_textDecoration=k),textAlign:e.unref(o).headerCell_container_textAlign,"onUpdate:textAlign":s[73]||(s[73]=k=>e.unref(o).headerCell_container_textAlign=k),lineHeight:e.unref(o).headerCell_container_lineHeight,"onUpdate:lineHeight":s[74]||(s[74]=k=>e.unref(o).headerCell_container_lineHeight=k),letterSpacing:e.unref(o).headerCell_container_letterSpacing,"onUpdate:letterSpacing":s[75]||(s[75]=k=>e.unref(o).headerCell_container_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),YN,GN,e.createVNode(g,{prop:"contentCell_minHeight",label:"最小高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).contentCell_container_minHeight,"onUpdate:modelValue":s[76]||(s[76]=k=>e.unref(o).contentCell_container_minHeight=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[77]||(s[77]=k=>e.unref(c)("contentCell_minHeight"))},null,8,["modelValue","formatter","parser"])]),_:1}),KN,e.createVNode(Oe,{marginTop:e.unref(o).contentCell_marginTop,"onUpdate:marginTop":s[78]||(s[78]=k=>e.unref(o).contentCell_marginTop=k),marginBottom:e.unref(o).contentCell_marginBottom,"onUpdate:marginBottom":s[79]||(s[79]=k=>e.unref(o).contentCell_marginBottom=k),marginLeft:e.unref(o).contentCell_marginLeft,"onUpdate:marginLeft":s[80]||(s[80]=k=>e.unref(o).contentCell_marginLeft=k),marginRight:e.unref(o).contentCell_marginRight,"onUpdate:marginRight":s[81]||(s[81]=k=>e.unref(o).contentCell_marginRight=k),paddingTop:e.unref(o).contentCell_paddingTop,"onUpdate:paddingTop":s[82]||(s[82]=k=>e.unref(o).contentCell_paddingTop=k),paddingBottom:e.unref(o).contentCell_paddingBottom,"onUpdate:paddingBottom":s[83]||(s[83]=k=>e.unref(o).contentCell_paddingBottom=k),paddingLeft:e.unref(o).contentCell_paddingLeft,"onUpdate:paddingLeft":s[84]||(s[84]=k=>e.unref(o).contentCell_paddingLeft=k),paddingRight:e.unref(o).contentCell_paddingRight,"onUpdate:paddingRight":s[85]||(s[85]=k=>e.unref(o).contentCell_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),JN,e.createVNode(Se,{borderStyle:e.unref(o).contentCell_borderStyle,"onUpdate:borderStyle":s[86]||(s[86]=k=>e.unref(o).contentCell_borderStyle=k),borderWidth:e.unref(o).contentCell_borderWidth,"onUpdate:borderWidth":s[87]||(s[87]=k=>e.unref(o).contentCell_borderWidth=k),borderColor:e.unref(o).contentCell_borderColor,"onUpdate:borderColor":s[88]||(s[88]=k=>e.unref(o).contentCell_borderColor=k),borderTopStyle:e.unref(o).contentCell_borderTopStyle,"onUpdate:borderTopStyle":s[89]||(s[89]=k=>e.unref(o).contentCell_borderTopStyle=k),borderTopWidth:e.unref(o).contentCell_borderTopWidth,"onUpdate:borderTopWidth":s[90]||(s[90]=k=>e.unref(o).contentCell_borderTopWidth=k),borderTopColor:e.unref(o).contentCell_borderTopColor,"onUpdate:borderTopColor":s[91]||(s[91]=k=>e.unref(o).contentCell_borderTopColor=k),borderBottomStyle:e.unref(o).contentCell_borderBottomStyle,"onUpdate:borderBottomStyle":s[92]||(s[92]=k=>e.unref(o).contentCell_borderBottomStyle=k),borderBottomWidth:e.unref(o).contentCell_borderBottomWidth,"onUpdate:borderBottomWidth":s[93]||(s[93]=k=>e.unref(o).contentCell_borderBottomWidth=k),borderBottomColor:e.unref(o).contentCell_borderBottomColor,"onUpdate:borderBottomColor":s[94]||(s[94]=k=>e.unref(o).contentCell_borderBottomColor=k),borderLeftStyle:e.unref(o).contentCell_borderLeftStyle,"onUpdate:borderLeftStyle":s[95]||(s[95]=k=>e.unref(o).contentCell_borderLeftStyle=k),borderLeftWidth:e.unref(o).contentCell_borderLeftWidth,"onUpdate:borderLeftWidth":s[96]||(s[96]=k=>e.unref(o).contentCell_borderLeftWidth=k),borderLeftColor:e.unref(o).contentCell_borderLeftColor,"onUpdate:borderLeftColor":s[97]||(s[97]=k=>e.unref(o).contentCell_borderLeftColor=k),borderRightStyle:e.unref(o).contentCell_borderRightStyle,"onUpdate:borderRightStyle":s[98]||(s[98]=k=>e.unref(o).contentCell_borderRightStyle=k),borderRightWidth:e.unref(o).contentCell_borderRightWidth,"onUpdate:borderRightWidth":s[99]||(s[99]=k=>e.unref(o).contentCell_borderRightWidth=k),borderRightColor:e.unref(o).contentCell_borderRightColor,"onUpdate:borderRightColor":s[100]||(s[100]=k=>e.unref(o).contentCell_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),vN,e.createVNode(Me,{fontSize:e.unref(o).contentCell_container_fontSize,"onUpdate:fontSize":s[101]||(s[101]=k=>e.unref(o).contentCell_container_fontSize=k),fontWeight:e.unref(o).contentCell_container_fontWeight,"onUpdate:fontWeight":s[102]||(s[102]=k=>e.unref(o).contentCell_container_fontWeight=k),textDecoration:e.unref(o).contentCell_container_textDecoration,"onUpdate:textDecoration":s[103]||(s[103]=k=>e.unref(o).contentCell_container_textDecoration=k),textAlign:e.unref(o).contentCell_container_textAlign,"onUpdate:textAlign":s[104]||(s[104]=k=>e.unref(o).contentCell_container_textAlign=k),lineHeight:e.unref(o).contentCell_container_lineHeight,"onUpdate:lineHeight":s[105]||(s[105]=k=>e.unref(o).contentCell_container_lineHeight=k),letterSpacing:e.unref(o).contentCell_container_letterSpacing,"onUpdate:letterSpacing":s[106]||(s[106]=k=>e.unref(o).contentCell_container_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-ef6c1768"]]),t5=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(l){t("update:modelValue",l)}}),o=e.computed(()=>l=>l==n.value?"slash-direction-item--active":"");return{modelValue:n,itemClass:o}},E0=r=>(e.pushScopeId("data-v-214be2f2"),r=r(),e.popScopeId(),r),o5={class:"slash-direction-config-container"},n5=[E0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],r5=[E0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],l5=G({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,itemClass:a}=t5(l,o),d=f=>{i.value=f};return t({}),(f,c)=>(e.openBlock(),e.createElementBlock("div",o5,[e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--top-left ${e.unref(a)("top-left")}`),onClick:c[0]||(c[0]=m=>d("top-left"))},n5,2),e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--bottom-left ${e.unref(a)("bottom-left")}`),onClick:c[1]||(c[1]=m=>d("bottom-left"))},r5,2)]))}},[["__scopeId","data-v-214be2f2"]]),i5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"标题",key:"title",default:"",fieldType:"prop"},{label:"斜线",key:"slash",default:!1,fieldType:"prop"},{label:"斜线方向",key:"slashDirection",default:"top-left",fieldType:"prop"},{label:"斜线文本(左)",key:"slashTextLeft",default:"",fieldType:"prop"},{label:"斜线文本(右)",key:"slashTextRight",default:"",fieldType:"prop"},{label:"水平居中",key:"centerHorizontally",default:!0,fieldType:"prop"},{label:"垂直居中",key:"centerVertical",default:!0,fieldType:"prop"},{label:"格子宽度",key:"width",default:"",fieldType:"style"},{label:"格子高度",key:"height",default:"",fieldType:"style"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"单元格-字体大小",key:"container_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"container_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"container_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"container_textAlign",default:"left",fieldType:"style"},{label:"单元格-字体行高",key:"container_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"container_letterSpacing",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({title:[{required:!0,message:"请填写标题",trigger:"blur"}],width:[{required:!0,message:"请填写格子宽度",trigger:"blur"}]}),a=Ye(t,O=>{}),d=O=>{ue(l,t,O)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let O=[];return n.forEach((C,s)=>{C.fieldType=="prop"&&O.push(C.key)}),O},m=()=>{let O=[];return n.forEach((C,s)=>{C.fieldType=="style"&&O.push(C.key)}),O},h=O=>{O||(O={});let C={},s=c(),S=m(),u=[],T=[];return O.props&&(u=Object.keys(O.props)),O.style&&(T=Object.keys(O.style)),s.forEach((A,V)=>{u.indexOf(A)>=0?C[A]=O.props[A]:C[A]=t[A]}),S.forEach((A,V)=>{T.indexOf(A)>=0?C[A]=O.style[A]:C[A]=t[A]}),C},b=()=>{let O={props:{},style:{}},C=c(),s=m();return C.forEach((S,u)=>{O.props[S]=l[S]}),s.forEach((S,u)=>{O.style[S]=l[S]}),O};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getPropKeys:c,getStyleKeys:m,headerRuleToFormData:h,formDataToHeaderRule:b,setFormDataByActiveSortableComponent:()=>{if(!r.value||r.value&&r.value.type!="complexTable-headerItem")return;let O=r.value.complexTableDetails;if(!O.headerRules)return;let C=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex}),s=O.headerRules[C],S=h(s);d(S)},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let O=r.value.complexTableDetails,C=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex});O.headerRules||(O.headerRules={});let s=b();O.headerRules[C]=q(s)}}},Rn=r=>(e.pushScopeId("data-v-a925b83e"),r=r(),e.popScopeId(),r),a5={class:"component-config-container table-layout-component-config-container"},s5={class:"component-config-header"},d5=Rn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"复杂表格表头格子")],-1)),f5=Rn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),c5=[Rn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],p5=Rn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),m5=Rn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 1、斜线开启后标题、水平居中、垂直居中将失效,格子中的组件不会渲染 ",-1)),h5=Rn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"2、斜线开启后必须设置【格子宽度】与【格子高度】",-1)),u5=Rn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),g5=Rn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"未合并布局格子和未合并的列必须须填写格子宽度",-1)),b5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=i5(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.complexTableId&&!s.complexTableId||C.complexTableId&&s.complexTableId&&C.complexTableId===s.complexTableId&&(C.rowIndex!=s.rowIndex||C.colIndex!=s.colIndex))&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",a5,[e.createElementVNode("div",s5,[d5,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),f5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},c5)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[p5,e.createVNode(g,{prop:"title",label:"标题","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),m5,h5,e.createVNode(g,{prop:"slash",label:"斜线","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).slash,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).slash=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"slashDirection",label:"斜线方向","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(l5,{modelValue:e.unref(o).slashDirection,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).slashDirection=y)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"slashTextLeft",label:"斜线文本(左)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).slashTextLeft,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).slashTextLeft=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"slashTextRight",label:"斜线文本(右)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).slashTextRight,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).slashTextRight=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"centerHorizontally",label:"水平居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).centerHorizontally,"onUpdate:modelValue":s[5]||(s[5]=y=>e.unref(o).centerHorizontally=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"centerVertical",label:"垂直居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).centerVertical,"onUpdate:modelValue":s[6]||(s[6]=y=>e.unref(o).centerVertical=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),u5,g5,e.createVNode(g,{prop:"width",label:"格子宽度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[7]||(s[7]=y=>e.unref(o).width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[8]||(s[8]=y=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{prop:"height",label:"格子高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[9]||(s[9]=y=>e.unref(o).height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[10]||(s[10]=y=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[11]||(s[11]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[12]||(s[12]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[13]||(s[13]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[14]||(s[14]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[15]||(s[15]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[16]||(s[16]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[17]||(s[17]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[18]||(s[18]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[19]||(s[19]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[20]||(s[20]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[21]||(s[21]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[22]||(s[22]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[23]||(s[23]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[24]||(s[24]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[25]||(s[25]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[26]||(s[26]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[27]||(s[27]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[28]||(s[28]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[29]||(s[29]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[30]||(s[30]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[31]||(s[31]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[32]||(s[32]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[33]||(s[33]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{prop:"backgroundColor",label:"背景颜色","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[35]||(s[35]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[34]||(s[34]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).container_fontSize,"onUpdate:fontSize":s[36]||(s[36]=y=>e.unref(o).container_fontSize=y),fontWeight:e.unref(o).container_fontWeight,"onUpdate:fontWeight":s[37]||(s[37]=y=>e.unref(o).container_fontWeight=y),textDecoration:e.unref(o).container_textDecoration,"onUpdate:textDecoration":s[38]||(s[38]=y=>e.unref(o).container_textDecoration=y),textAlign:e.unref(o).container_textAlign,"onUpdate:textAlign":s[39]||(s[39]=y=>e.unref(o).container_textAlign=y),lineHeight:e.unref(o).container_lineHeight,"onUpdate:lineHeight":s[40]||(s[40]=y=>e.unref(o).container_lineHeight=y),letterSpacing:e.unref(o).container_letterSpacing,"onUpdate:letterSpacing":s[41]||(s[41]=y=>e.unref(o).container_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-a925b83e"]]),y5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"条形码类型",key:"format",default:"CODE128",fieldType:"prop"},{label:"条形码线条颜色",key:"lineColor",default:"#000000",fieldType:"prop"},{label:"条形码背景色",key:"background",default:"#ffffff",fieldType:"prop"},{label:"条形码模块宽度",key:"width",default:1,fieldType:"prop"},{label:"条形码高度",key:"height",default:30,fieldType:"prop"},{label:"是否显示条形码的文本值",key:"displayValue",default:!0,fieldType:"prop"},{label:"显示文本的字体大小",key:"fontSize",default:12,fieldType:"prop"},{label:"条形码外边距",key:"margin",default:0,fieldType:"prop"},{label:"条形码文本对齐方式",key:"textAlign",default:"",fieldType:"prop"},{label:"条形码文本位置",key:"textPosition",default:"",fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"宽度",key:"barcode_width",default:"",fieldType:"style"},{label:"高度",key:"barcode_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],barcode_width:[{required:!0,message:"请填写条形码宽度",trigger:"blur"}],barcode_height:[{required:!0,message:"请填写条形码高度",trigger:"blur"}]}),a=Ye(t,s=>{}),d=s=>{ue(l,t,s)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="base"&&s.push(S.key)}),s},m=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="prop"&&s.push(S.key)}),s},h=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="style"&&s.push(S.key)}),s};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h(),T=[],A=[];s.forEach((V,g)=>{l[V]=r.value[V]}),r.value.props&&(T=Object.keys(r.value.props)),S.forEach((V,g)=>{T.indexOf(V)>=0?l[V]=r.value.props[V]:l[V]=t[V]}),r.value.style&&(A=Object.keys(r.value.style)),u.forEach((V,g)=>{A.indexOf(V)>=0?l[V]=r.value.style[V]:l[V]=t[V]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h();s.forEach((V,g)=>{r.value[V]=l[V]});let T={};S.forEach((V,g)=>{T[V]=l[V]}),r.value.props=T;let A={};u.forEach((V,g)=>{A[V]=l[V]}),r.value.style=A},inputFormatter:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},inputParser:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},complementInputValue:s=>{let S=/^\d+$/,u=l[s];u&&S.test(u)&&(l[s]=l[s]+"px")}}},$n=r=>(e.pushScopeId("data-v-0efcc35f"),r=r(),e.popScopeId(),r),x5={class:"component-config-container barcode-component-config-container"},C5={class:"component-config-header"},O5=$n(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"条形码")],-1)),w5=$n(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),_5=[$n(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],S5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),k5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),T5=$n(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),I5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),A5=$n(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"条形码样式配置")],-1)),V5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a,inputFormatter:d,inputParser:f,complementInputValue:c}=y5(),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-option"),R=e.resolveComponent("el-select"),y=e.resolveComponent("el-color-picker"),$=e.resolveComponent("el-input-number"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",x5,[e.createElementVNode("div",C5,[O5,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),w5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},_5)]),e.createVNode(_,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[S5,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=k=>e.unref(o).id=k),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=k=>e.unref(o).title=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),k5,e.createVNode(g,{label:"对应数据字段",prop:"field","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(o).field=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[3]||(s[3]=k=>e.unref(o).showOnLastPage=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),T5,e.createVNode(g,{label:"条形码类型",prop:"format","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).format,"onUpdate:modelValue":s[4]||(s[4]=k=>e.unref(o).format=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).barcodeFormat,(k,L)=>(e.openBlock(),e.createBlock(w,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码背景色",prop:"background","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).background,"onUpdate:modelValue":s[6]||(s[6]=k=>e.unref(o).background=k),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).background,"onUpdate:modelValue":s[5]||(s[5]=k=>e.unref(o).background=k),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码模块宽度",prop:"width","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[7]||(s[7]=k=>e.unref(o).width=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码高度",prop:"height","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[8]||(s[8]=k=>e.unref(o).height=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"是否显示条形码的文本值",prop:"displayValue","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).displayValue,"onUpdate:modelValue":s[9]||(s[9]=k=>e.unref(o).displayValue=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"显示文本的字体大小",prop:"fontSize","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).fontSize,"onUpdate:modelValue":s[10]||(s[10]=k=>e.unref(o).fontSize=k),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码外边距",prop:"margin","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).margin,"onUpdate:modelValue":s[11]||(s[11]=k=>e.unref(o).margin=k),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码文本对齐方式",prop:"textAlign","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).textAlign,"onUpdate:modelValue":s[12]||(s[12]=k=>e.unref(o).textAlign=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).barcodeTextAlign,(k,L)=>(e.openBlock(),e.createBlock(w,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"条形码文本位置",prop:"textPosition","label-width":"150","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).textPosition,"onUpdate:modelValue":s[13]||(s[13]=k=>e.unref(o).textPosition=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).barcodeTextPosition,(k,L)=>(e.openBlock(),e.createBlock(w,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),I5,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[14]||(s[14]=k=>e.unref(o).marginTop=k),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[15]||(s[15]=k=>e.unref(o).marginBottom=k),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[16]||(s[16]=k=>e.unref(o).marginLeft=k),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[17]||(s[17]=k=>e.unref(o).marginRight=k),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[18]||(s[18]=k=>e.unref(o).paddingTop=k),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[19]||(s[19]=k=>e.unref(o).paddingBottom=k),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[20]||(s[20]=k=>e.unref(o).paddingLeft=k),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[21]||(s[21]=k=>e.unref(o).paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),A5,e.createVNode(g,{label:"宽度",prop:"barcode_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).barcode_width,"onUpdate:modelValue":s[22]||(s[22]=k=>e.unref(o).barcode_width=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[23]||(s[23]=k=>e.unref(c)("barcode_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"barcode_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).barcode_height,"onUpdate:modelValue":s[24]||(s[24]=k=>e.unref(o).barcode_height=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[25]||(s[25]=k=>e.unref(c)("barcode_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-0efcc35f"]]),B5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"二维码宽度",key:"width",default:100,fieldType:"prop"},{label:"二维码高度",key:"height",default:100,fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],barcode_width:[{required:!0,message:"请填写条形码宽度",trigger:"blur"}],barcode_height:[{required:!0,message:"请填写条形码高度",trigger:"blur"}]}),a=Ye(t,s=>{}),d=s=>{ue(l,t,s)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="base"&&s.push(S.key)}),s},m=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="prop"&&s.push(S.key)}),s},h=()=>{let s=[];return n.forEach((S,u)=>{S.fieldType=="style"&&s.push(S.key)}),s};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h(),T=[],A=[];s.forEach((V,g)=>{l[V]=r.value[V]}),r.value.props&&(T=Object.keys(r.value.props)),S.forEach((V,g)=>{T.indexOf(V)>=0?l[V]=r.value.props[V]:l[V]=t[V]}),r.value.style&&(A=Object.keys(r.value.style)),u.forEach((V,g)=>{A.indexOf(V)>=0?l[V]=r.value.style[V]:l[V]=t[V]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let s=c(),S=m(),u=h();s.forEach((V,g)=>{r.value[V]=l[V]});let T={};S.forEach((V,g)=>{T[V]=l[V]}),r.value.props=T;let A={};u.forEach((V,g)=>{A[V]=l[V]}),r.value.style=A},inputFormatter:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},inputParser:s=>{if(!s)return s;let S=/^\d+$|^\d+[a-zA-Z]+$/,u="";for(let T=0;T<s.length;T++)if(u=s.slice(0,T+1),!S.test(u)){u=s.slice(0,T);break}return u},complementInputValue:s=>{let S=/^\d+$/,u=l[s];u&&S.test(u)&&(l[s]=l[s]+"px")}}},dr=r=>(e.pushScopeId("data-v-d274db71"),r=r(),e.popScopeId(),r),R5={class:"component-config-container qrcode-component-config-container"},$5={class:"component-config-header"},L5=dr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"二维码")],-1)),P5=dr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),E5=[dr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],N5=dr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),M5=dr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),D5=dr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),Q5=dr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),W5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=B5(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-switch"),g=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",R5,[e.createElementVNode("div",$5,[L5,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),P5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},E5)]),e.createVNode(g,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[N5,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=I=>e.unref(o).id=I),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=I=>e.unref(o).title=I),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),M5,e.createVNode(T,{label:"对应数据字段",prop:"field","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).field,"onUpdate:modelValue":p[2]||(p[2]=I=>e.unref(o).field=I),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"二维码宽度",prop:"width","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).width,"onUpdate:modelValue":p[3]||(p[3]=I=>e.unref(o).width=I),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"二维码高度",prop:"height","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).height,"onUpdate:modelValue":p[4]||(p[4]=I=>e.unref(o).height=I),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":p[5]||(p[5]=I=>e.unref(o).showOnLastPage=I),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),D5,Q5,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[6]||(p[6]=I=>e.unref(o).marginTop=I),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[7]||(p[7]=I=>e.unref(o).marginBottom=I),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[8]||(p[8]=I=>e.unref(o).marginLeft=I),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[9]||(p[9]=I=>e.unref(o).marginRight=I),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[10]||(p[10]=I=>e.unref(o).paddingTop=I),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[11]||(p[11]=I=>e.unref(o).paddingBottom=I),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[12]||(p[12]=I=>e.unref(o).paddingLeft=I),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[13]||(p[13]=I=>e.unref(o).paddingRight=I)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-d274db71"]]),U5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"文本",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"图片链接",key:"src",default:"",fieldType:"prop"},{label:"最后一页显示",key:"showOnLastPage",default:!1,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"宽度",key:"width",default:"200px",fieldType:"style"},{label:"高度",key:"height",default:"50px",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],width:[{required:!0,message:"请填写宽度",trigger:"blur"}],height:[{required:!0,message:"请填写高度",trigger:"blur"}]}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Ln=r=>(e.pushScopeId("data-v-e48dcaf0"),r=r(),e.popScopeId(),r),Z5={class:"component-config-container image-component-config-container"},z5={class:"component-config-header"},H5=Ln(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"图片")],-1)),j5=Ln(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),F5=[Ln(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],X5=Ln(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),q5=Ln(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),Y5=Ln(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"填写了【对应数据字段】后,【图片链接】将失效",-1)),G5=Ln(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"【最后一页显示】仅在复杂表格的分页模式中生效",-1)),K5=Ln(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),J5=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=U5(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",Z5,[e.createElementVNode("div",z5,[H5,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),j5]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},F5)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[X5,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),q5,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).field=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),Y5,e.createVNode(g,{label:"图片链接",prop:"src"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).src,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).src=y),type:"textarea",placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"最后一页显示",prop:"showOnLastPage","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).showOnLastPage,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).showOnLastPage=y),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),G5,K5,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[5]||(s[5]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[6]||(s[6]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[7]||(s[7]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[8]||(s[8]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[9]||(s[9]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[10]||(s[10]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[11]||(s[11]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[12]||(s[12]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[13]||(s[13]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[14]||(s[14]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[15]||(s[15]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[16]||(s[16]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[17]||(s[17]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[18]||(s[18]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[19]||(s[19]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[20]||(s[20]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[21]||(s[21]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[22]||(s[22]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[23]||(s[23]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[24]||(s[24]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[25]||(s[25]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[26]||(s[26]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[27]||(s[27]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[29]||(s[29]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[28]||(s[28]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"宽度",prop:"width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[30]||(s[30]=y=>e.unref(o).width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[31]||(s[31]=y=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[32]||(s[32]=y=>e.unref(o).height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[33]||(s[33]=y=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-e48dcaf0"]]),v5=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"数据字段",key:"fields",default:"",fieldType:"prop"},{label:"是否使用方法",key:"compute",default:!1,fieldType:"prop"},{label:"求值方式",key:"computeMethods",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"标签",key:"label",default:"输入框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{A.indexOf(w)>=0?l[w]=r.value.props[w]:l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},en=r=>(e.pushScopeId("data-v-8cf9cec6"),r=r(),e.popScopeId(),r),eM={class:"component-config-container input-component-config-container"},tM={class:"component-config-header"},oM=en(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"输入框")],-1)),nM=en(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),rM=[en(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],lM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),iM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),aM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"方法配置")],-1)),sM={style:{"font-weight":"bold"}},dM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),fM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),cM=en(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),pM=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=v5(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x,fieldArr:p}=e.inject("printDesigner");e.watch(o,(S,u)=>{a()},{deep:!0}),e.watch(h,(S,u)=>{(S&&!u||S.id!=u.id)&&i()},{immediate:!0,deep:!0});const O=S=>{if(S=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(S=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},C=()=>{p.value.set(o.id,o.field)},s=()=>{h.value=!1};return t({}),(S,u)=>{const T=e.resolveComponent("el-button"),A=e.resolveComponent("el-dropdown-item"),V=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),I=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-switch"),_=e.resolveComponent("el-option"),k=e.resolveComponent("el-select"),L=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",eM,[e.createElementVNode("div",tM,[oM,e.createVNode(g,{trigger:"click",class:"component-config-header_operate",onCommand:O},{dropdown:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(A,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(A,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(T,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),nM]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:s},rM)]),e.createVNode(L,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[lM,e.createVNode(w,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).id,"onUpdate:modelValue":u[0]||(u[0]=B=>e.unref(o).id=B),disabled:""},null,8,["modelValue"])]),_:1}),iM,e.createVNode(w,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).field,"onUpdate:modelValue":u[1]||(u[1]=B=>e.unref(o).field=B),placeholder:"",clearable:"",onChange:C},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":u[2]||(u[2]=B=>e.unref(o).placeholder=B),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":u[3]||(u[3]=B=>e.unref(o).defaultValue=B),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).size,"onUpdate:modelValue":u[4]||(u[4]=B=>e.unref(o).size=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(B,E)=>(e.openBlock(),e.createBlock(R,{value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),aM,e.createVNode(w,{label:"是否使用",prop:"compute","label-width":"90","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).compute,"onUpdate:modelValue":u[5]||(u[5]=B=>e.unref(o).compute=B),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.unref(o).compute?(e.openBlock(),e.createBlock(w,{key:0,label:"数据字段",prop:"fields"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:e.unref(o).fields,"onUpdate:modelValue":u[6]||(u[6]=B=>e.unref(o).fields=B),clearable:"",multiple:""},{label:e.withCtx(({label:B,value:E})=>[e.createElementVNode("span",sM,e.toDisplayString(E),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Array.from(e.unref(p).values()),B=>(e.openBlock(),e.createBlock(_,{key:B,label:B,value:B},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.unref(o).compute?(e.openBlock(),e.createBlock(w,{key:1,label:"求值方式",prop:"computeMethods"},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:e.unref(o).computeMethods,"onUpdate:modelValue":u[7]||(u[7]=B=>e.unref(o).computeMethods=B),clearable:""},{default:e.withCtx(()=>[e.createVNode(_,{key:"Sum",label:"和",value:"sum"}),e.createVNode(_,{key:"Average",label:"平均值",value:"average"})]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),dM,e.createVNode(w,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).label,"onUpdate:modelValue":u[8]||(u[8]=B=>e.unref(o).label=B),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":u[9]||(u[9]=B=>e.unref(o).labelWidth=B),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[10]||(u[10]=B=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":u[11]||(u[11]=B=>e.unref(o).labelPosition=B)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(B,E)=>(e.openBlock(),e.createBlock(R,{value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":u[12]||(u[12]=B=>e.unref(o).formItemLabel_marginTop=B),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":u[13]||(u[13]=B=>e.unref(o).formItemLabel_marginBottom=B),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":u[14]||(u[14]=B=>e.unref(o).formItemLabel_marginLeft=B),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":u[15]||(u[15]=B=>e.unref(o).formItemLabel_marginRight=B),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":u[16]||(u[16]=B=>e.unref(o).formItemLabel_paddingTop=B),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":u[17]||(u[17]=B=>e.unref(o).formItemLabel_paddingBottom=B),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":u[18]||(u[18]=B=>e.unref(o).formItemLabel_paddingLeft=B),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":u[19]||(u[19]=B=>e.unref(o).formItemLabel_paddingRight=B)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":u[20]||(u[20]=B=>e.unref(o).formItemLabel_borderStyle=B),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":u[21]||(u[21]=B=>e.unref(o).formItemLabel_borderWidth=B),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":u[22]||(u[22]=B=>e.unref(o).formItemLabel_borderColor=B),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":u[23]||(u[23]=B=>e.unref(o).formItemLabel_borderTopStyle=B),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":u[24]||(u[24]=B=>e.unref(o).formItemLabel_borderTopWidth=B),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":u[25]||(u[25]=B=>e.unref(o).formItemLabel_borderTopColor=B),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":u[26]||(u[26]=B=>e.unref(o).formItemLabel_borderBottomStyle=B),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":u[27]||(u[27]=B=>e.unref(o).formItemLabel_borderBottomWidth=B),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":u[28]||(u[28]=B=>e.unref(o).formItemLabel_borderBottomColor=B),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":u[29]||(u[29]=B=>e.unref(o).formItemLabel_borderLeftStyle=B),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":u[30]||(u[30]=B=>e.unref(o).formItemLabel_borderLeftWidth=B),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":u[31]||(u[31]=B=>e.unref(o).formItemLabel_borderLeftColor=B),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":u[32]||(u[32]=B=>e.unref(o).formItemLabel_borderRightStyle=B),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":u[33]||(u[33]=B=>e.unref(o).formItemLabel_borderRightWidth=B),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":u[34]||(u[34]=B=>e.unref(o).formItemLabel_borderRightColor=B),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":u[35]||(u[35]=B=>e.unref(o).formItemLabel_fontSize=B),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":u[36]||(u[36]=B=>e.unref(o).formItemLabel_fontWeight=B),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":u[37]||(u[37]=B=>e.unref(o).formItemLabel_textDecoration=B),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":u[38]||(u[38]=B=>e.unref(o).formItemLabel_textAlign=B),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":u[39]||(u[39]=B=>e.unref(o).formItemLabel_lineHeight=B),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":u[40]||(u[40]=B=>e.unref(o).formItemLabel_letterSpacing=B),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),fM,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":u[41]||(u[41]=B=>e.unref(o).formItemMain_marginTop=B),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":u[42]||(u[42]=B=>e.unref(o).formItemMain_marginBottom=B),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":u[43]||(u[43]=B=>e.unref(o).formItemMain_marginLeft=B),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":u[44]||(u[44]=B=>e.unref(o).formItemMain_marginRight=B),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":u[45]||(u[45]=B=>e.unref(o).formItemMain_paddingTop=B),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":u[46]||(u[46]=B=>e.unref(o).formItemMain_paddingBottom=B),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":u[47]||(u[47]=B=>e.unref(o).formItemMain_paddingLeft=B),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":u[48]||(u[48]=B=>e.unref(o).formItemMain_paddingRight=B)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":u[49]||(u[49]=B=>e.unref(o).formItemMain_borderStyle=B),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":u[50]||(u[50]=B=>e.unref(o).formItemMain_borderWidth=B),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":u[51]||(u[51]=B=>e.unref(o).formItemMain_borderColor=B),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":u[52]||(u[52]=B=>e.unref(o).formItemMain_borderTopStyle=B),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":u[53]||(u[53]=B=>e.unref(o).formItemMain_borderTopWidth=B),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":u[54]||(u[54]=B=>e.unref(o).formItemMain_borderTopColor=B),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":u[55]||(u[55]=B=>e.unref(o).formItemMain_borderBottomStyle=B),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":u[56]||(u[56]=B=>e.unref(o).formItemMain_borderBottomWidth=B),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":u[57]||(u[57]=B=>e.unref(o).formItemMain_borderBottomColor=B),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":u[58]||(u[58]=B=>e.unref(o).formItemMain_borderLeftStyle=B),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":u[59]||(u[59]=B=>e.unref(o).formItemMain_borderLeftWidth=B),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":u[60]||(u[60]=B=>e.unref(o).formItemMain_borderLeftColor=B),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":u[61]||(u[61]=B=>e.unref(o).formItemMain_borderRightStyle=B),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":u[62]||(u[62]=B=>e.unref(o).formItemMain_borderRightWidth=B),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":u[63]||(u[63]=B=>e.unref(o).formItemMain_borderRightColor=B),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":u[64]||(u[64]=B=>e.unref(o).formItemMain_fontSize=B),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":u[65]||(u[65]=B=>e.unref(o).formItemMain_fontWeight=B),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":u[66]||(u[66]=B=>e.unref(o).formItemMain_textDecoration=B),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":u[67]||(u[67]=B=>e.unref(o).formItemMain_textAlign=B),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":u[68]||(u[68]=B=>e.unref(o).formItemMain_lineHeight=B),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":u[69]||(u[69]=B=>e.unref(o).formItemMain_letterSpacing=B),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),cM,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":u[70]||(u[70]=B=>e.unref(o).formItem_marginTop=B),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":u[71]||(u[71]=B=>e.unref(o).formItem_marginBottom=B),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":u[72]||(u[72]=B=>e.unref(o).formItem_marginLeft=B),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":u[73]||(u[73]=B=>e.unref(o).formItem_marginRight=B),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":u[74]||(u[74]=B=>e.unref(o).formItem_paddingTop=B),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":u[75]||(u[75]=B=>e.unref(o).formItem_paddingBottom=B),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":u[76]||(u[76]=B=>e.unref(o).formItem_paddingLeft=B),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":u[77]||(u[77]=B=>e.unref(o).formItem_paddingRight=B)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":u[78]||(u[78]=B=>e.unref(o).formItem_borderStyle=B),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":u[79]||(u[79]=B=>e.unref(o).formItem_borderWidth=B),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":u[80]||(u[80]=B=>e.unref(o).formItem_borderColor=B),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":u[81]||(u[81]=B=>e.unref(o).formItem_borderTopStyle=B),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":u[82]||(u[82]=B=>e.unref(o).formItem_borderTopWidth=B),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":u[83]||(u[83]=B=>e.unref(o).formItem_borderTopColor=B),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":u[84]||(u[84]=B=>e.unref(o).formItem_borderBottomStyle=B),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":u[85]||(u[85]=B=>e.unref(o).formItem_borderBottomWidth=B),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":u[86]||(u[86]=B=>e.unref(o).formItem_borderBottomColor=B),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":u[87]||(u[87]=B=>e.unref(o).formItem_borderLeftStyle=B),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":u[88]||(u[88]=B=>e.unref(o).formItem_borderLeftWidth=B),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":u[89]||(u[89]=B=>e.unref(o).formItem_borderLeftColor=B),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":u[90]||(u[90]=B=>e.unref(o).formItem_borderRightStyle=B),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":u[91]||(u[91]=B=>e.unref(o).formItem_borderRightWidth=B),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":u[92]||(u[92]=B=>e.unref(o).formItem_borderRightColor=B),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(w,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":u[93]||(u[93]=B=>e.unref(o).formItem_width=B),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[94]||(u[94]=B=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":u[95]||(u[95]=B=>e.unref(o).formItem_height=B),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[96]||(u[96]=B=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-8cf9cec6"]]),mM=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"高度是否自适应",key:"autosize",default:!0,fieldType:"formComponentProp"},{label:"输入行数",key:"rows",default:2,fieldType:"formComponentProp"},{label:"标签",key:"label",default:"多行输入框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{A.indexOf(w)>=0?l[w]=r.value.props[w]:l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},tn=r=>(e.pushScopeId("data-v-b21e1c1d"),r=r(),e.popScopeId(),r),hM={class:"component-config-container textarea-component-config-container"},uM={class:"component-config-header"},gM=tn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"多行输入框")],-1)),bM=tn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),yM=[tn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],xM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),CM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),OM=tn(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small"},[e.createElementVNode("span",null,"输入行数"),e.createElementVNode("span",{class:"wui-print-color--warning"},"高度自适应开启时该项配置无效")],-1)),wM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),_M=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),SM=tn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),kM=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=mM(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-switch"),w=e.resolveComponent("el-input-number"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",hM,[e.createElementVNode("div",uM,[gM,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),bM]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},yM)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[xM,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=_=>e.unref(o).id=_),disabled:""},null,8,["modelValue"])]),_:1}),CM,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=_=>e.unref(o).field=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":s[2]||(s[2]=_=>e.unref(o).placeholder=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[3]||(s[3]=_=>e.unref(o).defaultValue=_),type:"textarea",autosize:{minRows:2,maxRows:10},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"高度是否自适应",prop:"rows","label-width":"100px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).autosize,"onUpdate:modelValue":s[4]||(s[4]=_=>e.unref(o).autosize=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"rows"},{label:e.withCtx(()=>[OM]),default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).rows,"onUpdate:modelValue":s[5]||(s[5]=_=>e.unref(o).rows=_),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[6]||(s[6]=_=>e.unref(o).size=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),wM,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[7]||(s[7]=_=>e.unref(o).label=_),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[8]||(s[8]=_=>e.unref(o).labelWidth=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[9]||(s[9]=_=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[10]||(s[10]=_=>e.unref(o).labelPosition=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[11]||(s[11]=_=>e.unref(o).formItemLabel_marginTop=_),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[12]||(s[12]=_=>e.unref(o).formItemLabel_marginBottom=_),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[13]||(s[13]=_=>e.unref(o).formItemLabel_marginLeft=_),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[14]||(s[14]=_=>e.unref(o).formItemLabel_marginRight=_),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[15]||(s[15]=_=>e.unref(o).formItemLabel_paddingTop=_),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[16]||(s[16]=_=>e.unref(o).formItemLabel_paddingBottom=_),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[17]||(s[17]=_=>e.unref(o).formItemLabel_paddingLeft=_),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[18]||(s[18]=_=>e.unref(o).formItemLabel_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[19]||(s[19]=_=>e.unref(o).formItemLabel_borderStyle=_),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[20]||(s[20]=_=>e.unref(o).formItemLabel_borderWidth=_),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[21]||(s[21]=_=>e.unref(o).formItemLabel_borderColor=_),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[22]||(s[22]=_=>e.unref(o).formItemLabel_borderTopStyle=_),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[23]||(s[23]=_=>e.unref(o).formItemLabel_borderTopWidth=_),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[24]||(s[24]=_=>e.unref(o).formItemLabel_borderTopColor=_),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[25]||(s[25]=_=>e.unref(o).formItemLabel_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[26]||(s[26]=_=>e.unref(o).formItemLabel_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[27]||(s[27]=_=>e.unref(o).formItemLabel_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[28]||(s[28]=_=>e.unref(o).formItemLabel_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[29]||(s[29]=_=>e.unref(o).formItemLabel_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[30]||(s[30]=_=>e.unref(o).formItemLabel_borderLeftColor=_),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[31]||(s[31]=_=>e.unref(o).formItemLabel_borderRightStyle=_),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[32]||(s[32]=_=>e.unref(o).formItemLabel_borderRightWidth=_),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[33]||(s[33]=_=>e.unref(o).formItemLabel_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[34]||(s[34]=_=>e.unref(o).formItemLabel_fontSize=_),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[35]||(s[35]=_=>e.unref(o).formItemLabel_fontWeight=_),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[36]||(s[36]=_=>e.unref(o).formItemLabel_textDecoration=_),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[37]||(s[37]=_=>e.unref(o).formItemLabel_textAlign=_),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[38]||(s[38]=_=>e.unref(o).formItemLabel_lineHeight=_),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[39]||(s[39]=_=>e.unref(o).formItemLabel_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),_M,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[40]||(s[40]=_=>e.unref(o).formItemMain_marginTop=_),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[41]||(s[41]=_=>e.unref(o).formItemMain_marginBottom=_),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[42]||(s[42]=_=>e.unref(o).formItemMain_marginLeft=_),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[43]||(s[43]=_=>e.unref(o).formItemMain_marginRight=_),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[44]||(s[44]=_=>e.unref(o).formItemMain_paddingTop=_),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[45]||(s[45]=_=>e.unref(o).formItemMain_paddingBottom=_),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[46]||(s[46]=_=>e.unref(o).formItemMain_paddingLeft=_),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[47]||(s[47]=_=>e.unref(o).formItemMain_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[48]||(s[48]=_=>e.unref(o).formItemMain_borderStyle=_),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[49]||(s[49]=_=>e.unref(o).formItemMain_borderWidth=_),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[50]||(s[50]=_=>e.unref(o).formItemMain_borderColor=_),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[51]||(s[51]=_=>e.unref(o).formItemMain_borderTopStyle=_),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[52]||(s[52]=_=>e.unref(o).formItemMain_borderTopWidth=_),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[53]||(s[53]=_=>e.unref(o).formItemMain_borderTopColor=_),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[54]||(s[54]=_=>e.unref(o).formItemMain_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[55]||(s[55]=_=>e.unref(o).formItemMain_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[56]||(s[56]=_=>e.unref(o).formItemMain_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[57]||(s[57]=_=>e.unref(o).formItemMain_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[58]||(s[58]=_=>e.unref(o).formItemMain_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[59]||(s[59]=_=>e.unref(o).formItemMain_borderLeftColor=_),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[60]||(s[60]=_=>e.unref(o).formItemMain_borderRightStyle=_),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[61]||(s[61]=_=>e.unref(o).formItemMain_borderRightWidth=_),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[62]||(s[62]=_=>e.unref(o).formItemMain_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[63]||(s[63]=_=>e.unref(o).formItemMain_fontSize=_),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[64]||(s[64]=_=>e.unref(o).formItemMain_fontWeight=_),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[65]||(s[65]=_=>e.unref(o).formItemMain_textDecoration=_),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[66]||(s[66]=_=>e.unref(o).formItemMain_textAlign=_),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[67]||(s[67]=_=>e.unref(o).formItemMain_lineHeight=_),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[68]||(s[68]=_=>e.unref(o).formItemMain_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),SM,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[69]||(s[69]=_=>e.unref(o).formItem_marginTop=_),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[70]||(s[70]=_=>e.unref(o).formItem_marginBottom=_),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[71]||(s[71]=_=>e.unref(o).formItem_marginLeft=_),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[72]||(s[72]=_=>e.unref(o).formItem_marginRight=_),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[73]||(s[73]=_=>e.unref(o).formItem_paddingTop=_),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[74]||(s[74]=_=>e.unref(o).formItem_paddingBottom=_),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[75]||(s[75]=_=>e.unref(o).formItem_paddingLeft=_),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[76]||(s[76]=_=>e.unref(o).formItem_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[77]||(s[77]=_=>e.unref(o).formItem_borderStyle=_),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[78]||(s[78]=_=>e.unref(o).formItem_borderWidth=_),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[79]||(s[79]=_=>e.unref(o).formItem_borderColor=_),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[80]||(s[80]=_=>e.unref(o).formItem_borderTopStyle=_),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[81]||(s[81]=_=>e.unref(o).formItem_borderTopWidth=_),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[82]||(s[82]=_=>e.unref(o).formItem_borderTopColor=_),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[83]||(s[83]=_=>e.unref(o).formItem_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[84]||(s[84]=_=>e.unref(o).formItem_borderBottomWidth=_),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[85]||(s[85]=_=>e.unref(o).formItem_borderBottomColor=_),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[86]||(s[86]=_=>e.unref(o).formItem_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[87]||(s[87]=_=>e.unref(o).formItem_borderLeftWidth=_),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[88]||(s[88]=_=>e.unref(o).formItem_borderLeftColor=_),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[89]||(s[89]=_=>e.unref(o).formItem_borderRightStyle=_),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[90]||(s[90]=_=>e.unref(o).formItem_borderRightWidth=_),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[91]||(s[91]=_=>e.unref(o).formItem_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[92]||(s[92]=_=>e.unref(o).formItem_width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=_=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[94]||(s[94]=_=>e.unref(o).formItem_height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[95]||(s[95]=_=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-b21e1c1d"]]),TM=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(b){t("update:modelValue",b)}}),o=e.reactive([]),l=e.computed(()=>b=>b>0),i=e.computed(()=>b=>b<o.length-1),a=b=>{const x={label:"",value:""};let p={};return ue(p,x,b),p},d=()=>{let b=a();o.push(b)},f=({oldItemIndex:b,newItemIndex:x}={})=>{let p=o[b];o.splice(b,1),o.splice(x,0,p)};return{modelValue:n,dataSource:o,moveUpButtonShow:l,moveDownButtonShow:i,createItem:a,addNewItem:d,moveItem:f,moveItemUp:b=>{if(b<=0){ge.alert("选项的位置需要在第一个之后",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b-1;f({oldItemIndex:b,newItemIndex:x})},moveItemDown:b=>{if(b>=o.length-1){ge.alert("选项的位置需要在最后一个选项之前",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b+1;f({oldItemIndex:b,newItemIndex:x})},removeItem:b=>{if(o.length<=1){ge.alert("最少1项,无法删除",{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"});return}let x=o[b],p="是否删除";x.label&&(p+=`【${x.label}】`),ge.confirm(`${p}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(b,1)})}}},N0=r=>(e.pushScopeId("data-v-df68cfbd"),r=r(),e.popScopeId(),r),IM={class:"data-source-config-container"},AM={class:"data-source-operate"},VM={class:"data-source-content"},BM={class:"data-source-item_main"},RM={class:"data-source-item_row"},$M=N0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"选项:",-1)),LM={class:"data-source-item_row-content"},PM={class:"data-source-item_row"},EM=N0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"值:",-1)),NM={class:"data-source-item_row-content"},MM={class:"data-source-item_operate"},DM=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,dataSource:a,moveUpButtonShow:d,moveDownButtonShow:f,addNewItem:c,moveItemUp:m,moveItemDown:h,removeItem:b}=TM(l,o);return e.watch(()=>l.modelValue,(x,p)=>{let O=l.modelValue?l.modelValue:[];a.splice(0,a.length,...O)},{immediate:!0,deep:!0}),e.watch(a,(x,p)=>{i.value=a},{deep:!0}),t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",IM,[e.createElementVNode("div",AM,[e.createVNode(O,{type:"primary",size:"small",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("新增选项")]),_:1},8,["onClick"])]),e.createElementVNode("div",VM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(s,S)=>(e.openBlock(),e.createElementBlock("div",{class:"data-source-item",key:S},[e.createElementVNode("div",BM,[e.createElementVNode("div",RM,[$M,e.createElementVNode("div",LM,[e.createVNode(C,{modelValue:s.label,"onUpdate:modelValue":u=>s.label=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",PM,[EM,e.createElementVNode("div",NM,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])])]),e.createElementVNode("div",MM,[e.createVNode(O,{type:"warning",size:"small",plain:"",onClick:u=>e.unref(b)(S)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(m)(S)},{default:e.withCtx(()=>[e.createTextVNode("上移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(d)(S)]]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(h)(S)},{default:e.withCtx(()=>[e.createTextVNode("下移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(f)(S)]])])]))),128))])])}}},[["__scopeId","data-v-df68cfbd"]]),QM=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据源",key:"dataSource",default:[],fieldType:"prop"},{label:"标签",key:"label",default:"单选框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],dataSource:[{required:!0,message:"请添加数据源",trigger:"change"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{let y=A.indexOf(w)>=0;if(y&&w=="dataSource"){l[w]=q(r.value.props[w]);return}if(y){l[w]=r.value.props[w];return}l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{w=="dataSource"?A[w]=q(l[w]):A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},Pn=r=>(e.pushScopeId("data-v-69ff94bb"),r=r(),e.popScopeId(),r),WM={class:"component-config-container radio-component-config-container"},UM={class:"component-config-header"},ZM=Pn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"单选框")],-1)),zM=Pn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),HM=[Pn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],jM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),FM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),XM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),qM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),YM=Pn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),GM=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=QM(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",WM,[e.createElementVNode("div",UM,[ZM,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),zM]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},HM)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[jM,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),FM,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).field=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).defaultValue=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).size=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"数据源配置",prop:"dataSource","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(DM,{modelValue:e.unref(o).dataSource,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).dataSource=y)},null,8,["modelValue"])]),_:1}),XM,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[5]||(s[5]=y=>e.unref(o).label=y),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[6]||(s[6]=y=>e.unref(o).labelWidth=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[7]||(s[7]=y=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[8]||(s[8]=y=>e.unref(o).labelPosition=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[9]||(s[9]=y=>e.unref(o).formItemLabel_marginTop=y),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[10]||(s[10]=y=>e.unref(o).formItemLabel_marginBottom=y),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[11]||(s[11]=y=>e.unref(o).formItemLabel_marginLeft=y),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[12]||(s[12]=y=>e.unref(o).formItemLabel_marginRight=y),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[13]||(s[13]=y=>e.unref(o).formItemLabel_paddingTop=y),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[14]||(s[14]=y=>e.unref(o).formItemLabel_paddingBottom=y),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[15]||(s[15]=y=>e.unref(o).formItemLabel_paddingLeft=y),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[16]||(s[16]=y=>e.unref(o).formItemLabel_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[17]||(s[17]=y=>e.unref(o).formItemLabel_borderStyle=y),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[18]||(s[18]=y=>e.unref(o).formItemLabel_borderWidth=y),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[19]||(s[19]=y=>e.unref(o).formItemLabel_borderColor=y),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[20]||(s[20]=y=>e.unref(o).formItemLabel_borderTopStyle=y),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[21]||(s[21]=y=>e.unref(o).formItemLabel_borderTopWidth=y),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[22]||(s[22]=y=>e.unref(o).formItemLabel_borderTopColor=y),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[23]||(s[23]=y=>e.unref(o).formItemLabel_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[24]||(s[24]=y=>e.unref(o).formItemLabel_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[25]||(s[25]=y=>e.unref(o).formItemLabel_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[26]||(s[26]=y=>e.unref(o).formItemLabel_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[27]||(s[27]=y=>e.unref(o).formItemLabel_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[28]||(s[28]=y=>e.unref(o).formItemLabel_borderLeftColor=y),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[29]||(s[29]=y=>e.unref(o).formItemLabel_borderRightStyle=y),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[30]||(s[30]=y=>e.unref(o).formItemLabel_borderRightWidth=y),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[31]||(s[31]=y=>e.unref(o).formItemLabel_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[32]||(s[32]=y=>e.unref(o).formItemLabel_fontSize=y),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[33]||(s[33]=y=>e.unref(o).formItemLabel_fontWeight=y),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[34]||(s[34]=y=>e.unref(o).formItemLabel_textDecoration=y),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[35]||(s[35]=y=>e.unref(o).formItemLabel_textAlign=y),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[36]||(s[36]=y=>e.unref(o).formItemLabel_lineHeight=y),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[37]||(s[37]=y=>e.unref(o).formItemLabel_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),qM,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[38]||(s[38]=y=>e.unref(o).formItemMain_marginTop=y),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[39]||(s[39]=y=>e.unref(o).formItemMain_marginBottom=y),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[40]||(s[40]=y=>e.unref(o).formItemMain_marginLeft=y),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[41]||(s[41]=y=>e.unref(o).formItemMain_marginRight=y),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[42]||(s[42]=y=>e.unref(o).formItemMain_paddingTop=y),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[43]||(s[43]=y=>e.unref(o).formItemMain_paddingBottom=y),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[44]||(s[44]=y=>e.unref(o).formItemMain_paddingLeft=y),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[45]||(s[45]=y=>e.unref(o).formItemMain_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[46]||(s[46]=y=>e.unref(o).formItemMain_borderStyle=y),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[47]||(s[47]=y=>e.unref(o).formItemMain_borderWidth=y),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[48]||(s[48]=y=>e.unref(o).formItemMain_borderColor=y),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[49]||(s[49]=y=>e.unref(o).formItemMain_borderTopStyle=y),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[50]||(s[50]=y=>e.unref(o).formItemMain_borderTopWidth=y),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[51]||(s[51]=y=>e.unref(o).formItemMain_borderTopColor=y),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[52]||(s[52]=y=>e.unref(o).formItemMain_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[53]||(s[53]=y=>e.unref(o).formItemMain_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[54]||(s[54]=y=>e.unref(o).formItemMain_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[55]||(s[55]=y=>e.unref(o).formItemMain_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[56]||(s[56]=y=>e.unref(o).formItemMain_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[57]||(s[57]=y=>e.unref(o).formItemMain_borderLeftColor=y),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[58]||(s[58]=y=>e.unref(o).formItemMain_borderRightStyle=y),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[59]||(s[59]=y=>e.unref(o).formItemMain_borderRightWidth=y),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[60]||(s[60]=y=>e.unref(o).formItemMain_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[61]||(s[61]=y=>e.unref(o).formItemMain_fontSize=y),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[62]||(s[62]=y=>e.unref(o).formItemMain_fontWeight=y),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[63]||(s[63]=y=>e.unref(o).formItemMain_textDecoration=y),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[64]||(s[64]=y=>e.unref(o).formItemMain_textAlign=y),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[65]||(s[65]=y=>e.unref(o).formItemMain_lineHeight=y),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[66]||(s[66]=y=>e.unref(o).formItemMain_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),YM,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[67]||(s[67]=y=>e.unref(o).formItem_marginTop=y),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[68]||(s[68]=y=>e.unref(o).formItem_marginBottom=y),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[69]||(s[69]=y=>e.unref(o).formItem_marginLeft=y),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[70]||(s[70]=y=>e.unref(o).formItem_marginRight=y),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[71]||(s[71]=y=>e.unref(o).formItem_paddingTop=y),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[72]||(s[72]=y=>e.unref(o).formItem_paddingBottom=y),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[73]||(s[73]=y=>e.unref(o).formItem_paddingLeft=y),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[74]||(s[74]=y=>e.unref(o).formItem_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[75]||(s[75]=y=>e.unref(o).formItem_borderStyle=y),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[76]||(s[76]=y=>e.unref(o).formItem_borderWidth=y),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[77]||(s[77]=y=>e.unref(o).formItem_borderColor=y),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[78]||(s[78]=y=>e.unref(o).formItem_borderTopStyle=y),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[79]||(s[79]=y=>e.unref(o).formItem_borderTopWidth=y),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[80]||(s[80]=y=>e.unref(o).formItem_borderTopColor=y),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[81]||(s[81]=y=>e.unref(o).formItem_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[82]||(s[82]=y=>e.unref(o).formItem_borderBottomWidth=y),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[83]||(s[83]=y=>e.unref(o).formItem_borderBottomColor=y),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[84]||(s[84]=y=>e.unref(o).formItem_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[85]||(s[85]=y=>e.unref(o).formItem_borderLeftWidth=y),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[86]||(s[86]=y=>e.unref(o).formItem_borderLeftColor=y),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[87]||(s[87]=y=>e.unref(o).formItem_borderRightStyle=y),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[88]||(s[88]=y=>e.unref(o).formItem_borderRightWidth=y),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[89]||(s[89]=y=>e.unref(o).formItem_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[90]||(s[90]=y=>e.unref(o).formItem_width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[91]||(s[91]=y=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[92]||(s[92]=y=>e.unref(o).formItem_height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=y=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-69ff94bb"]]),KM=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(d){t("update:modelValue",q(d))}}),o=e.reactive([]);return{modelValue:n,defaultValues:o,addNewItem:()=>{o.push("")},removeItem:d=>{ge.confirm(`是否删除【${o[d]}】?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(d,1)})},setDefaultValuesByModelValue:()=>{if(!n.value)return;let d=n.value.split(",");o.splice(0,o.length,...d)}}},JM={class:"default-value-container"},vM={class:"default-value-operate"},eD={class:"default-value-content"},tD={class:"default-value-item_main"},oD={class:"default-value-item_operate"},nD=G({__name:"index",props:{modelValue:{type:String,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,defaultValues:a,addNewItem:d,removeItem:f,setDefaultValuesByModelValue:c}=KM(l,o);return e.watch(()=>l.modelValue,(m,h)=>{c()},{immediate:!0,deep:!0}),e.watch(a,(m,h)=>{i.value=a.join(",")},{deep:!0}),t({}),(m,h)=>{const b=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",JM,[e.createElementVNode("div",vM,[e.createVNode(b,{type:"primary",size:"small",onClick:e.unref(d)},{default:e.withCtx(()=>[e.createTextVNode("新增默认值")]),_:1},8,["onClick"])]),e.createElementVNode("div",eD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(p,O)=>(e.openBlock(),e.createElementBlock("div",{class:"default-value-item",key:O},[e.createElementVNode("div",tD,[e.createVNode(x,{modelValue:e.unref(a)[O],"onUpdate:modelValue":C=>e.unref(a)[O]=C,modelModifiers:{trim:!0},placeholder:"",size:"small",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",oD,[e.createVNode(b,{type:"warning",size:"small",plain:"",onClick:C=>e.unref(f)(O)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])]))),128))])])}}},[["__scopeId","data-v-52c045d8"]]),rD=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(b){t("update:modelValue",b)}}),o=e.reactive([]),l=e.computed(()=>b=>b>0),i=e.computed(()=>b=>b<o.length-1),a=b=>{const x={label:"",value:""};let p={};return ue(p,x,b),p},d=()=>{let b=a();o.push(b)},f=({oldItemIndex:b,newItemIndex:x}={})=>{let p=o[b];o.splice(b,1),o.splice(x,0,p)};return{modelValue:n,dataSource:o,moveUpButtonShow:l,moveDownButtonShow:i,createItem:a,addNewItem:d,moveItem:f,moveItemUp:b=>{if(b<=0){ge.alert("选项的位置需要在第一个之后",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b-1;f({oldItemIndex:b,newItemIndex:x})},moveItemDown:b=>{if(b>=o.length-1){ge.alert("选项的位置需要在最后一个选项之前",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b+1;f({oldItemIndex:b,newItemIndex:x})},removeItem:b=>{if(o.length<=1){ge.alert("最少1项,无法删除",{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"});return}let x=o[b],p="是否删除";x.label&&(p+=`【${x.label}】`),ge.confirm(`${p}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(b,1)})}}},M0=r=>(e.pushScopeId("data-v-eafac6c5"),r=r(),e.popScopeId(),r),lD={class:"data-source-config-container"},iD={class:"data-source-operate"},aD={class:"data-source-content"},sD={class:"data-source-item_main"},dD={class:"data-source-item_row"},fD=M0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"选项:",-1)),cD={class:"data-source-item_row-content"},pD={class:"data-source-item_row"},mD=M0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"值:",-1)),hD={class:"data-source-item_row-content"},uD={class:"data-source-item_operate"},gD=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,dataSource:a,moveUpButtonShow:d,moveDownButtonShow:f,addNewItem:c,moveItemUp:m,moveItemDown:h,removeItem:b}=rD(l,o);return e.watch(()=>l.modelValue,(x,p)=>{let O=l.modelValue?l.modelValue:[];a.splice(0,a.length,...O)},{immediate:!0,deep:!0}),e.watch(a,(x,p)=>{i.value=a},{deep:!0}),t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",lD,[e.createElementVNode("div",iD,[e.createVNode(O,{type:"primary",size:"small",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("新增选项")]),_:1},8,["onClick"])]),e.createElementVNode("div",aD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(s,S)=>(e.openBlock(),e.createElementBlock("div",{class:"data-source-item",key:S},[e.createElementVNode("div",sD,[e.createElementVNode("div",dD,[fD,e.createElementVNode("div",cD,[e.createVNode(C,{modelValue:s.label,"onUpdate:modelValue":u=>s.label=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",pD,[mD,e.createElementVNode("div",hD,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])])]),e.createElementVNode("div",uD,[e.createVNode(O,{type:"warning",size:"small",plain:"",onClick:u=>e.unref(b)(S)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(m)(S)},{default:e.withCtx(()=>[e.createTextVNode("上移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(d)(S)]]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(h)(S)},{default:e.withCtx(()=>[e.createTextVNode("下移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(f)(S)]])])]))),128))])])}}},[["__scopeId","data-v-eafac6c5"]]),bD=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据源",key:"dataSource",default:[],fieldType:"prop"},{label:"标签",key:"label",default:"多选框:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],dataSource:[{required:!0,message:"请添加数据源",trigger:"change"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{let y=A.indexOf(w)>=0;if(y&&w=="dataSource"){l[w]=q(r.value.props[w]);return}if(y){l[w]=r.value.props[w];return}l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{w=="dataSource"?A[w]=q(l[w]):A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},En=r=>(e.pushScopeId("data-v-d27523aa"),r=r(),e.popScopeId(),r),yD={class:"component-config-container checkbox-component-config-container"},xD={class:"component-config-header"},CD=En(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"多选框")],-1)),OD=En(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),wD=[En(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],_D=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),SD=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),kD=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),TD=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),ID=En(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),AD=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=bD(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",yD,[e.createElementVNode("div",xD,[CD,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),OD]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},wD)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[_D,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),SD,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).field=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(nD,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).defaultValue=y)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).size=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"数据源配置",prop:"dataSource","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(gD,{modelValue:e.unref(o).dataSource,"onUpdate:modelValue":s[4]||(s[4]=y=>e.unref(o).dataSource=y)},null,8,["modelValue"])]),_:1}),kD,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[5]||(s[5]=y=>e.unref(o).label=y),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[6]||(s[6]=y=>e.unref(o).labelWidth=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[7]||(s[7]=y=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[8]||(s[8]=y=>e.unref(o).labelPosition=y)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(y,$)=>(e.openBlock(),e.createBlock(I,{value:y.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[9]||(s[9]=y=>e.unref(o).formItemLabel_marginTop=y),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[10]||(s[10]=y=>e.unref(o).formItemLabel_marginBottom=y),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[11]||(s[11]=y=>e.unref(o).formItemLabel_marginLeft=y),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[12]||(s[12]=y=>e.unref(o).formItemLabel_marginRight=y),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[13]||(s[13]=y=>e.unref(o).formItemLabel_paddingTop=y),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[14]||(s[14]=y=>e.unref(o).formItemLabel_paddingBottom=y),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[15]||(s[15]=y=>e.unref(o).formItemLabel_paddingLeft=y),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[16]||(s[16]=y=>e.unref(o).formItemLabel_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[17]||(s[17]=y=>e.unref(o).formItemLabel_borderStyle=y),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[18]||(s[18]=y=>e.unref(o).formItemLabel_borderWidth=y),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[19]||(s[19]=y=>e.unref(o).formItemLabel_borderColor=y),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[20]||(s[20]=y=>e.unref(o).formItemLabel_borderTopStyle=y),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[21]||(s[21]=y=>e.unref(o).formItemLabel_borderTopWidth=y),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[22]||(s[22]=y=>e.unref(o).formItemLabel_borderTopColor=y),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[23]||(s[23]=y=>e.unref(o).formItemLabel_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[24]||(s[24]=y=>e.unref(o).formItemLabel_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[25]||(s[25]=y=>e.unref(o).formItemLabel_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[26]||(s[26]=y=>e.unref(o).formItemLabel_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[27]||(s[27]=y=>e.unref(o).formItemLabel_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[28]||(s[28]=y=>e.unref(o).formItemLabel_borderLeftColor=y),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[29]||(s[29]=y=>e.unref(o).formItemLabel_borderRightStyle=y),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[30]||(s[30]=y=>e.unref(o).formItemLabel_borderRightWidth=y),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[31]||(s[31]=y=>e.unref(o).formItemLabel_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[32]||(s[32]=y=>e.unref(o).formItemLabel_fontSize=y),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[33]||(s[33]=y=>e.unref(o).formItemLabel_fontWeight=y),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[34]||(s[34]=y=>e.unref(o).formItemLabel_textDecoration=y),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[35]||(s[35]=y=>e.unref(o).formItemLabel_textAlign=y),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[36]||(s[36]=y=>e.unref(o).formItemLabel_lineHeight=y),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[37]||(s[37]=y=>e.unref(o).formItemLabel_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),TD,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[38]||(s[38]=y=>e.unref(o).formItemMain_marginTop=y),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[39]||(s[39]=y=>e.unref(o).formItemMain_marginBottom=y),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[40]||(s[40]=y=>e.unref(o).formItemMain_marginLeft=y),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[41]||(s[41]=y=>e.unref(o).formItemMain_marginRight=y),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[42]||(s[42]=y=>e.unref(o).formItemMain_paddingTop=y),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[43]||(s[43]=y=>e.unref(o).formItemMain_paddingBottom=y),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[44]||(s[44]=y=>e.unref(o).formItemMain_paddingLeft=y),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[45]||(s[45]=y=>e.unref(o).formItemMain_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[46]||(s[46]=y=>e.unref(o).formItemMain_borderStyle=y),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[47]||(s[47]=y=>e.unref(o).formItemMain_borderWidth=y),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[48]||(s[48]=y=>e.unref(o).formItemMain_borderColor=y),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[49]||(s[49]=y=>e.unref(o).formItemMain_borderTopStyle=y),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[50]||(s[50]=y=>e.unref(o).formItemMain_borderTopWidth=y),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[51]||(s[51]=y=>e.unref(o).formItemMain_borderTopColor=y),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[52]||(s[52]=y=>e.unref(o).formItemMain_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[53]||(s[53]=y=>e.unref(o).formItemMain_borderBottomWidth=y),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[54]||(s[54]=y=>e.unref(o).formItemMain_borderBottomColor=y),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[55]||(s[55]=y=>e.unref(o).formItemMain_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[56]||(s[56]=y=>e.unref(o).formItemMain_borderLeftWidth=y),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[57]||(s[57]=y=>e.unref(o).formItemMain_borderLeftColor=y),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[58]||(s[58]=y=>e.unref(o).formItemMain_borderRightStyle=y),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[59]||(s[59]=y=>e.unref(o).formItemMain_borderRightWidth=y),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[60]||(s[60]=y=>e.unref(o).formItemMain_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[61]||(s[61]=y=>e.unref(o).formItemMain_fontSize=y),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[62]||(s[62]=y=>e.unref(o).formItemMain_fontWeight=y),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[63]||(s[63]=y=>e.unref(o).formItemMain_textDecoration=y),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[64]||(s[64]=y=>e.unref(o).formItemMain_textAlign=y),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[65]||(s[65]=y=>e.unref(o).formItemMain_lineHeight=y),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[66]||(s[66]=y=>e.unref(o).formItemMain_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),ID,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[67]||(s[67]=y=>e.unref(o).formItem_marginTop=y),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[68]||(s[68]=y=>e.unref(o).formItem_marginBottom=y),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[69]||(s[69]=y=>e.unref(o).formItem_marginLeft=y),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[70]||(s[70]=y=>e.unref(o).formItem_marginRight=y),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[71]||(s[71]=y=>e.unref(o).formItem_paddingTop=y),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[72]||(s[72]=y=>e.unref(o).formItem_paddingBottom=y),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[73]||(s[73]=y=>e.unref(o).formItem_paddingLeft=y),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[74]||(s[74]=y=>e.unref(o).formItem_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[75]||(s[75]=y=>e.unref(o).formItem_borderStyle=y),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[76]||(s[76]=y=>e.unref(o).formItem_borderWidth=y),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[77]||(s[77]=y=>e.unref(o).formItem_borderColor=y),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[78]||(s[78]=y=>e.unref(o).formItem_borderTopStyle=y),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[79]||(s[79]=y=>e.unref(o).formItem_borderTopWidth=y),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[80]||(s[80]=y=>e.unref(o).formItem_borderTopColor=y),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[81]||(s[81]=y=>e.unref(o).formItem_borderBottomStyle=y),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[82]||(s[82]=y=>e.unref(o).formItem_borderBottomWidth=y),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[83]||(s[83]=y=>e.unref(o).formItem_borderBottomColor=y),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[84]||(s[84]=y=>e.unref(o).formItem_borderLeftStyle=y),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[85]||(s[85]=y=>e.unref(o).formItem_borderLeftWidth=y),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[86]||(s[86]=y=>e.unref(o).formItem_borderLeftColor=y),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[87]||(s[87]=y=>e.unref(o).formItem_borderRightStyle=y),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[88]||(s[88]=y=>e.unref(o).formItem_borderRightWidth=y),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[89]||(s[89]=y=>e.unref(o).formItem_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[90]||(s[90]=y=>e.unref(o).formItem_width=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[91]||(s[91]=y=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[92]||(s[92]=y=>e.unref(o).formItem_height=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=y=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-d27523aa"]]),VD=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(b){t("update:modelValue",b)}}),o=e.reactive([]),l=e.computed(()=>b=>b>0),i=e.computed(()=>b=>b<o.length-1),a=b=>{const x={label:"",value:""};let p={};return ue(p,x,b),p},d=()=>{let b=a();o.push(b)},f=({oldItemIndex:b,newItemIndex:x}={})=>{let p=o[b];o.splice(b,1),o.splice(x,0,p)};return{modelValue:n,dataSource:o,moveUpButtonShow:l,moveDownButtonShow:i,createItem:a,addNewItem:d,moveItem:f,moveItemUp:b=>{if(b<=0){ge.alert("选项的位置需要在第一个之后",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b-1;f({oldItemIndex:b,newItemIndex:x})},moveItemDown:b=>{if(b>=o.length-1){ge.alert("选项的位置需要在最后一个选项之前",{type:"warning",title:"提示",customClass:"wui-print_el-message-box"});return}let x=b+1;f({oldItemIndex:b,newItemIndex:x})},removeItem:b=>{if(o.length<=1){ge.alert("最少1项,无法删除",{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"});return}let x=o[b],p="是否删除";x.label&&(p+=`【${x.label}】`),ge.confirm(`${p}?`,{type:"warning",title:"提示",customClass:"wui-white-board_el-message-box"}).then(()=>{o.splice(b,1)})}}},D0=r=>(e.pushScopeId("data-v-85f8a22e"),r=r(),e.popScopeId(),r),BD={class:"data-source-config-container"},RD={class:"data-source-operate"},$D={class:"data-source-content"},LD={class:"data-source-item_main"},PD={class:"data-source-item_row"},ED=D0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"选项:",-1)),ND={class:"data-source-item_row-content"},MD={class:"data-source-item_row"},DD=D0(()=>e.createElementVNode("div",{class:"data-source-item_row-label"},"值:",-1)),QD={class:"data-source-item_row-content"},WD={class:"data-source-item_operate"},UD=G({__name:"index",props:{modelValue:{type:Array,default:[]}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,dataSource:a,moveUpButtonShow:d,moveDownButtonShow:f,addNewItem:c,moveItemUp:m,moveItemDown:h,removeItem:b}=VD(l,o);return e.watch(()=>l.modelValue,(x,p)=>{let O=l.modelValue?l.modelValue:[];a.splice(0,a.length,...O)},{immediate:!0,deep:!0}),e.watch(a,(x,p)=>{i.value=a},{deep:!0}),t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",BD,[e.createElementVNode("div",RD,[e.createVNode(O,{type:"primary",size:"small",onClick:e.unref(c)},{default:e.withCtx(()=>[e.createTextVNode("新增选项")]),_:1},8,["onClick"])]),e.createElementVNode("div",$D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(s,S)=>(e.openBlock(),e.createElementBlock("div",{class:"data-source-item",key:S},[e.createElementVNode("div",LD,[e.createElementVNode("div",PD,[ED,e.createElementVNode("div",ND,[e.createVNode(C,{modelValue:s.label,"onUpdate:modelValue":u=>s.label=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])]),e.createElementVNode("div",MD,[DD,e.createElementVNode("div",QD,[e.createVNode(C,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,modelModifiers:{trim:!0},placeholder:"",size:"small",type:"textarea",autosize:{minRows:1,maxRows:4},clearable:""},null,8,["modelValue","onUpdate:modelValue"])])])]),e.createElementVNode("div",WD,[e.createVNode(O,{type:"warning",size:"small",plain:"",onClick:u=>e.unref(b)(S)},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(m)(S)},{default:e.withCtx(()=>[e.createTextVNode("上移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(d)(S)]]),e.withDirectives(e.createVNode(O,{type:"info",size:"small",plain:"",onClick:u=>e.unref(h)(S)},{default:e.withCtx(()=>[e.createTextVNode("下移")]),_:2},1032,["onClick"]),[[e.vShow,e.unref(f)(S)]])])]))),128))])])}}},[["__scopeId","data-v-85f8a22e"]]),ZD=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"请选择",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据源",key:"dataSource",default:[],fieldType:"prop"},{label:"标签",key:"label",default:"选择器:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}],dataSource:[{required:!0,message:"请添加数据源",trigger:"change"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{let y=A.indexOf(w)>=0;if(y&&w=="dataSource"){l[w]=q(r.value.props[w]);return}if(y){l[w]=r.value.props[w];return}l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{w=="dataSource"?A[w]=q(l[w]):A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},Nn=r=>(e.pushScopeId("data-v-8034818f"),r=r(),e.popScopeId(),r),zD={class:"component-config-container select-component-config-container"},HD={class:"component-config-header"},jD=Nn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"选择器")],-1)),FD=Nn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),XD=[Nn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],qD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),YD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),GD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),KD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),JD=Nn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),vD=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=ZD(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(S,u)=>{a()},{deep:!0}),e.watch(h,(S,u)=>{(S&&!u||S.id!=u.id)&&i()},{immediate:!0,deep:!0});const p=S=>{if(S=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(S=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1},{fieldArr:C}=e.inject("printDesigner"),s=()=>{C.value.set(o.id,o.field)};return t({}),(S,u)=>{const T=e.resolveComponent("el-button"),A=e.resolveComponent("el-dropdown-item"),V=e.resolveComponent("el-dropdown-menu"),g=e.resolveComponent("el-dropdown"),I=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),R=e.resolveComponent("el-radio"),y=e.resolveComponent("el-radio-group"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",zD,[e.createElementVNode("div",HD,[jD,e.createVNode(g,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(A,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(A,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(T,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),FD]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},XD)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[qD,e.createVNode(w,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).id,"onUpdate:modelValue":u[0]||(u[0]=_=>e.unref(o).id=_),disabled:""},null,8,["modelValue"])]),_:1}),YD,e.createVNode(w,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).field,"onUpdate:modelValue":u[1]||(u[1]=_=>e.unref(o).field=_),placeholder:"",clearable:"",onChange:s},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":u[2]||(u[2]=_=>e.unref(o).defaultValue=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":u[3]||(u[3]=_=>e.unref(o).placeholder=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).size,"onUpdate:modelValue":u[4]||(u[4]=_=>e.unref(o).size=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(w,{label:"数据源配置",prop:"dataSource","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(UD,{modelValue:e.unref(o).dataSource,"onUpdate:modelValue":u[5]||(u[5]=_=>e.unref(o).dataSource=_)},null,8,["modelValue"])]),_:1}),GD,e.createVNode(w,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).label,"onUpdate:modelValue":u[6]||(u[6]=_=>e.unref(o).label=_),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(w,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":u[7]||(u[7]=_=>e.unref(o).labelWidth=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[8]||(u[8]=_=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":u[9]||(u[9]=_=>e.unref(o).labelPosition=_)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(_,k)=>(e.openBlock(),e.createBlock(R,{value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(R,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":u[10]||(u[10]=_=>e.unref(o).formItemLabel_marginTop=_),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":u[11]||(u[11]=_=>e.unref(o).formItemLabel_marginBottom=_),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":u[12]||(u[12]=_=>e.unref(o).formItemLabel_marginLeft=_),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":u[13]||(u[13]=_=>e.unref(o).formItemLabel_marginRight=_),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":u[14]||(u[14]=_=>e.unref(o).formItemLabel_paddingTop=_),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":u[15]||(u[15]=_=>e.unref(o).formItemLabel_paddingBottom=_),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":u[16]||(u[16]=_=>e.unref(o).formItemLabel_paddingLeft=_),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":u[17]||(u[17]=_=>e.unref(o).formItemLabel_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":u[18]||(u[18]=_=>e.unref(o).formItemLabel_borderStyle=_),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":u[19]||(u[19]=_=>e.unref(o).formItemLabel_borderWidth=_),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":u[20]||(u[20]=_=>e.unref(o).formItemLabel_borderColor=_),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":u[21]||(u[21]=_=>e.unref(o).formItemLabel_borderTopStyle=_),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":u[22]||(u[22]=_=>e.unref(o).formItemLabel_borderTopWidth=_),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":u[23]||(u[23]=_=>e.unref(o).formItemLabel_borderTopColor=_),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":u[24]||(u[24]=_=>e.unref(o).formItemLabel_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":u[25]||(u[25]=_=>e.unref(o).formItemLabel_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":u[26]||(u[26]=_=>e.unref(o).formItemLabel_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":u[27]||(u[27]=_=>e.unref(o).formItemLabel_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":u[28]||(u[28]=_=>e.unref(o).formItemLabel_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":u[29]||(u[29]=_=>e.unref(o).formItemLabel_borderLeftColor=_),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":u[30]||(u[30]=_=>e.unref(o).formItemLabel_borderRightStyle=_),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":u[31]||(u[31]=_=>e.unref(o).formItemLabel_borderRightWidth=_),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":u[32]||(u[32]=_=>e.unref(o).formItemLabel_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":u[33]||(u[33]=_=>e.unref(o).formItemLabel_fontSize=_),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":u[34]||(u[34]=_=>e.unref(o).formItemLabel_fontWeight=_),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":u[35]||(u[35]=_=>e.unref(o).formItemLabel_textDecoration=_),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":u[36]||(u[36]=_=>e.unref(o).formItemLabel_textAlign=_),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":u[37]||(u[37]=_=>e.unref(o).formItemLabel_lineHeight=_),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":u[38]||(u[38]=_=>e.unref(o).formItemLabel_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),KD,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":u[39]||(u[39]=_=>e.unref(o).formItemMain_marginTop=_),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":u[40]||(u[40]=_=>e.unref(o).formItemMain_marginBottom=_),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":u[41]||(u[41]=_=>e.unref(o).formItemMain_marginLeft=_),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":u[42]||(u[42]=_=>e.unref(o).formItemMain_marginRight=_),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":u[43]||(u[43]=_=>e.unref(o).formItemMain_paddingTop=_),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":u[44]||(u[44]=_=>e.unref(o).formItemMain_paddingBottom=_),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":u[45]||(u[45]=_=>e.unref(o).formItemMain_paddingLeft=_),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":u[46]||(u[46]=_=>e.unref(o).formItemMain_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":u[47]||(u[47]=_=>e.unref(o).formItemMain_borderStyle=_),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":u[48]||(u[48]=_=>e.unref(o).formItemMain_borderWidth=_),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":u[49]||(u[49]=_=>e.unref(o).formItemMain_borderColor=_),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":u[50]||(u[50]=_=>e.unref(o).formItemMain_borderTopStyle=_),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":u[51]||(u[51]=_=>e.unref(o).formItemMain_borderTopWidth=_),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":u[52]||(u[52]=_=>e.unref(o).formItemMain_borderTopColor=_),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":u[53]||(u[53]=_=>e.unref(o).formItemMain_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":u[54]||(u[54]=_=>e.unref(o).formItemMain_borderBottomWidth=_),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":u[55]||(u[55]=_=>e.unref(o).formItemMain_borderBottomColor=_),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":u[56]||(u[56]=_=>e.unref(o).formItemMain_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":u[57]||(u[57]=_=>e.unref(o).formItemMain_borderLeftWidth=_),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":u[58]||(u[58]=_=>e.unref(o).formItemMain_borderLeftColor=_),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":u[59]||(u[59]=_=>e.unref(o).formItemMain_borderRightStyle=_),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":u[60]||(u[60]=_=>e.unref(o).formItemMain_borderRightWidth=_),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":u[61]||(u[61]=_=>e.unref(o).formItemMain_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":u[62]||(u[62]=_=>e.unref(o).formItemMain_fontSize=_),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":u[63]||(u[63]=_=>e.unref(o).formItemMain_fontWeight=_),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":u[64]||(u[64]=_=>e.unref(o).formItemMain_textDecoration=_),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":u[65]||(u[65]=_=>e.unref(o).formItemMain_textAlign=_),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":u[66]||(u[66]=_=>e.unref(o).formItemMain_lineHeight=_),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":u[67]||(u[67]=_=>e.unref(o).formItemMain_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),JD,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":u[68]||(u[68]=_=>e.unref(o).formItem_marginTop=_),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":u[69]||(u[69]=_=>e.unref(o).formItem_marginBottom=_),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":u[70]||(u[70]=_=>e.unref(o).formItem_marginLeft=_),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":u[71]||(u[71]=_=>e.unref(o).formItem_marginRight=_),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":u[72]||(u[72]=_=>e.unref(o).formItem_paddingTop=_),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":u[73]||(u[73]=_=>e.unref(o).formItem_paddingBottom=_),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":u[74]||(u[74]=_=>e.unref(o).formItem_paddingLeft=_),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":u[75]||(u[75]=_=>e.unref(o).formItem_paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":u[76]||(u[76]=_=>e.unref(o).formItem_borderStyle=_),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":u[77]||(u[77]=_=>e.unref(o).formItem_borderWidth=_),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":u[78]||(u[78]=_=>e.unref(o).formItem_borderColor=_),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":u[79]||(u[79]=_=>e.unref(o).formItem_borderTopStyle=_),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":u[80]||(u[80]=_=>e.unref(o).formItem_borderTopWidth=_),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":u[81]||(u[81]=_=>e.unref(o).formItem_borderTopColor=_),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":u[82]||(u[82]=_=>e.unref(o).formItem_borderBottomStyle=_),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":u[83]||(u[83]=_=>e.unref(o).formItem_borderBottomWidth=_),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":u[84]||(u[84]=_=>e.unref(o).formItem_borderBottomColor=_),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":u[85]||(u[85]=_=>e.unref(o).formItem_borderLeftStyle=_),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":u[86]||(u[86]=_=>e.unref(o).formItem_borderLeftWidth=_),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":u[87]||(u[87]=_=>e.unref(o).formItem_borderLeftColor=_),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":u[88]||(u[88]=_=>e.unref(o).formItem_borderRightStyle=_),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":u[89]||(u[89]=_=>e.unref(o).formItem_borderRightWidth=_),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":u[90]||(u[90]=_=>e.unref(o).formItem_borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(w,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":u[91]||(u[91]=_=>e.unref(o).formItem_width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[92]||(u[92]=_=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(w,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":u[93]||(u[93]=_=>e.unref(o).formItem_height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:u[94]||(u[94]=_=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-8034818f"]]),e3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"对应数据字段",key:"field",default:"",fieldType:"prop"},{label:"默认值",key:"defaultValue",default:"",fieldType:"prop"},{label:"提示信息",key:"placeholder",default:"",fieldType:"formComponentProp"},{label:"尺寸",key:"size",default:"",fieldType:"formComponentProp"},{label:"数据格式",key:"valueFormat",default:"YYYY-MM-DD HH:mm:ss",fieldType:"formComponentProp"},{label:"是否隐藏时间图标",key:"hideTimeIcon",default:!1,fieldType:"prop"},{label:"标签",key:"label",default:"日期时间:",fieldType:"formItemProp"},{label:"标签宽度",key:"labelWidth",default:"",fieldType:"formItemProp"},{label:"标签位置",key:"labelPosition",default:"",fieldType:"formItemProp"},{label:"标签-外边距-上",key:"formItemLabel_marginTop",default:"",fieldType:"style"},{label:"标签-外边距-下",key:"formItemLabel_marginBottom",default:"",fieldType:"style"},{label:"标签-外边距-左",key:"formItemLabel_marginLeft",default:"",fieldType:"style"},{label:"标签-外边距-右",key:"formItemLabel_marginRight",default:"",fieldType:"style"},{label:"标签-内边距-上",key:"formItemLabel_paddingTop",default:"",fieldType:"style"},{label:"标签-内边距-下",key:"formItemLabel_paddingBottom",default:"",fieldType:"style"},{label:"标签-内边距-左",key:"formItemLabel_paddingLeft",default:"",fieldType:"style"},{label:"标签-内边距-右",key:"formItemLabel_paddingRight",default:"",fieldType:"style"},{label:"标签-边框样式",key:"formItemLabel_borderStyle",default:"",fieldType:"style"},{label:"标签-边框宽度",key:"formItemLabel_borderWidth",default:"",fieldType:"style"},{label:"标签-边框颜色",key:"formItemLabel_borderColor",default:"",fieldType:"style"},{label:"标签-边框样式-上",key:"formItemLabel_borderTopStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-上",key:"formItemLabel_borderTopWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-上",key:"formItemLabel_borderTopColor",default:"",fieldType:"style"},{label:"标签-边框样式-下",key:"formItemLabel_borderBottomStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-下",key:"formItemLabel_borderBottomWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-下",key:"formItemLabel_borderBottomColor",default:"",fieldType:"style"},{label:"标签-边框样式-左",key:"formItemLabel_borderLeftStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-左",key:"formItemLabel_borderLeftWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-左",key:"formItemLabel_borderLeftColor",default:"",fieldType:"style"},{label:"标签-边框样式-右",key:"formItemLabel_borderRightStyle",default:"",fieldType:"style"},{label:"标签-边框宽度-右",key:"formItemLabel_borderRightWidth",default:"",fieldType:"style"},{label:"标签-边框颜色-右",key:"formItemLabel_borderRightColor",default:"",fieldType:"style"},{label:"标签-字体大小",key:"formItemLabel_fontSize",default:"",fieldType:"style"},{label:"标签-字体粗细",key:"formItemLabel_fontWeight",default:"",fieldType:"style"},{label:"标签-字体修饰",key:"formItemLabel_textDecoration",default:"",fieldType:"style"},{label:"标签-对齐方式",key:"formItemLabel_textAlign",default:"",fieldType:"style"},{label:"标签-字体行高",key:"formItemLabel_lineHeight",default:"",fieldType:"style"},{label:"标签-字间距",key:"formItemLabel_letterSpacing",default:"",fieldType:"style"},{label:"主体-外边距-上",key:"formItemMain_marginTop",default:"",fieldType:"style"},{label:"主体-外边距-下",key:"formItemMain_marginBottom",default:"",fieldType:"style"},{label:"主体-外边距-左",key:"formItemMain_marginLeft",default:"",fieldType:"style"},{label:"主体-外边距-右",key:"formItemMain_marginRight",default:"",fieldType:"style"},{label:"主体-内边距-上",key:"formItemMain_paddingTop",default:"",fieldType:"style"},{label:"主体-内边距-下",key:"formItemMain_paddingBottom",default:"",fieldType:"style"},{label:"主体-内边距-左",key:"formItemMain_paddingLeft",default:"",fieldType:"style"},{label:"主体-内边距-右",key:"formItemMain_paddingRight",default:"",fieldType:"style"},{label:"主体-边框样式",key:"formItemMain_borderStyle",default:"",fieldType:"style"},{label:"主体-边框宽度",key:"formItemMain_borderWidth",default:"",fieldType:"style"},{label:"主体-边框颜色",key:"formItemMain_borderColor",default:"",fieldType:"style"},{label:"主体-边框样式-上",key:"formItemMain_borderTopStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-上",key:"formItemMain_borderTopWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-上",key:"formItemMain_borderTopColor",default:"",fieldType:"style"},{label:"主体-边框样式-下",key:"formItemMain_borderBottomStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-下",key:"formItemMain_borderBottomWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-下",key:"formItemMain_borderBottomColor",default:"",fieldType:"style"},{label:"主体-边框样式-左",key:"formItemMain_borderLeftStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-左",key:"formItemMain_borderLeftWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-左",key:"formItemMain_borderLeftColor",default:"",fieldType:"style"},{label:"主体-边框样式-右",key:"formItemMain_borderRightStyle",default:"",fieldType:"style"},{label:"主体-边框宽度-右",key:"formItemMain_borderRightWidth",default:"",fieldType:"style"},{label:"主体-边框颜色-右",key:"formItemMain_borderRightColor",default:"",fieldType:"style"},{label:"主体-字体大小",key:"formItemMain_fontSize",default:"",fieldType:"style"},{label:"主体-字体粗细",key:"formItemMain_fontWeight",default:"",fieldType:"style"},{label:"主体-字体修饰",key:"formItemMain_textDecoration",default:"",fieldType:"style"},{label:"主体-对齐方式",key:"formItemMain_textAlign",default:"",fieldType:"style"},{label:"主体-字体行高",key:"formItemMain_lineHeight",default:"",fieldType:"style"},{label:"主体-字间距",key:"formItemMain_letterSpacing",default:"",fieldType:"style"},{label:"表单项-外边距-上",key:"formItem_marginTop",default:"",fieldType:"style"},{label:"表单项-外边距-下",key:"formItem_marginBottom",default:"",fieldType:"style"},{label:"表单项-外边距-左",key:"formItem_marginLeft",default:"",fieldType:"style"},{label:"表单项-外边距-右",key:"formItem_marginRight",default:"",fieldType:"style"},{label:"表单项-内边距-上",key:"formItem_paddingTop",default:"",fieldType:"style"},{label:"表单项-内边距-下",key:"formItem_paddingBottom",default:"",fieldType:"style"},{label:"表单项-内边距-左",key:"formItem_paddingLeft",default:"",fieldType:"style"},{label:"表单项-内边距-右",key:"formItem_paddingRight",default:"",fieldType:"style"},{label:"表单项-边框样式",key:"formItem_borderStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度",key:"formItem_borderWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色",key:"formItem_borderColor",default:"",fieldType:"style"},{label:"表单项-边框样式-上",key:"formItem_borderTopStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-上",key:"formItem_borderTopWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-上",key:"formItem_borderTopColor",default:"",fieldType:"style"},{label:"表单项-边框样式-下",key:"formItem_borderBottomStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-下",key:"formItem_borderBottomWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-下",key:"formItem_borderBottomColor",default:"",fieldType:"style"},{label:"表单项-边框样式-左",key:"formItem_borderLeftStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-左",key:"formItem_borderLeftWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-左",key:"formItem_borderLeftColor",default:"",fieldType:"style"},{label:"表单项-边框样式-右",key:"formItem_borderRightStyle",default:"",fieldType:"style"},{label:"表单项-边框宽度-右",key:"formItem_borderRightWidth",default:"",fieldType:"style"},{label:"表单项-边框颜色-右",key:"formItem_borderRightColor",default:"",fieldType:"style"},{label:"表单项-宽度",key:"formItem_width",default:"",fieldType:"style"},{label:"表单项-高度",key:"formItem_height",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({field:[{required:!0,message:"请填写对应数据字段",trigger:"blur"}]}),a=Ye(t,C=>{}),d=C=>{ue(l,t,C)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="base"&&C.push(s.key)}),C},m=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="prop"&&C.push(s.key)}),C},h=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="style"&&C.push(s.key)}),C},b=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formComponentProp"&&C.push(s.key)}),C},x=()=>{let C=[];return n.forEach((s,S)=>{s.fieldType=="formItemProp"&&C.push(s.key)}),C};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,getFormComponentPropKeys:b,getFormItemPropKeys:x,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x(),A=[],V=[],g=[],I=[];C.forEach((w,R)=>{l[w]=r.value[w]}),r.value.props&&(A=Object.keys(r.value.props)),s.forEach((w,R)=>{A.indexOf(w)>=0?l[w]=r.value.props[w]:l[w]=t[w]}),r.value.style&&(V=Object.keys(r.value.style)),S.forEach((w,R)=>{V.indexOf(w)>=0?l[w]=r.value.style[w]:l[w]=t[w]}),r.value.formComponentProps&&(g=Object.keys(r.value.formComponentProps)),u.forEach((w,R)=>{g.indexOf(w)>=0?l[w]=r.value.formComponentProps[w]:l[w]=t[w]}),r.value.formItemProps&&(I=Object.keys(r.value.formItemProps)),T.forEach((w,R)=>{I.indexOf(w)>=0?l[w]=r.value.formItemProps[w]:l[w]=t[w]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let C=c(),s=m(),S=h(),u=b(),T=x();C.forEach((w,R)=>{r.value[w]=l[w]});let A={};s.forEach((w,R)=>{A[w]=l[w]}),r.value.props=A;let V={};S.forEach((w,R)=>{V[w]=l[w]}),r.value.style=V;let g={};u.forEach((w,R)=>{g[w]=l[w]}),r.value.formComponentProps=g;let I={};T.forEach((w,R)=>{I[w]=l[w]}),r.value.formItemProps=I}}},Mn=r=>(e.pushScopeId("data-v-85bb68d8"),r=r(),e.popScopeId(),r),t3={class:"component-config-container datetime-component-config-container"},o3={class:"component-config-header"},n3=Mn(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"输入框")],-1)),r3=Mn(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),l3=[Mn(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],i3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),a3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),s3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项标签配置")],-1)),d3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项主体配置")],-1)),f3=Mn(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"表单项配置")],-1)),c3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=e3(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-radio"),w=e.resolveComponent("el-radio-group"),R=e.resolveComponent("el-option"),y=e.resolveComponent("el-select"),$=e.resolveComponent("el-switch"),_=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",t3,[e.createElementVNode("div",o3,[n3,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),r3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},l3)]),e.createVNode(_,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[i3,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=k=>e.unref(o).id=k),disabled:""},null,8,["modelValue"])]),_:1}),a3,e.createVNode(g,{label:"对应数据字段",prop:"field"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).field,"onUpdate:modelValue":s[1]||(s[1]=k=>e.unref(o).field=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"提示信息",prop:"placeholder"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).placeholder,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(o).placeholder=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"默认值",prop:"defaultValue"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).defaultValue,"onUpdate:modelValue":s[3]||(s[3]=k=>e.unref(o).defaultValue=k),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).size,"onUpdate:modelValue":s[4]||(s[4]=k=>e.unref(o).size=k)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formSize,(k,L)=>(e.openBlock(),e.createBlock(I,{value:k.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"数据格式",prop:"format"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).valueFormat,"onUpdate:modelValue":s[5]||(s[5]=k=>e.unref(o).valueFormat=k),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).datetimeFormat,(k,L)=>(e.openBlock(),e.createBlock(R,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{label:"表单是否隐藏时间图标",prop:"hideTimeIcon ","label-width":"140px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(o).hideTimeIcon,"onUpdate:modelValue":s[6]||(s[6]=k=>e.unref(o).hideTimeIcon=k),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),s3,e.createVNode(g,{label:"标签",prop:"label"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).label,"onUpdate:modelValue":s[7]||(s[7]=k=>e.unref(o).label=k),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":s[8]||(s[8]=k=>e.unref(o).labelWidth=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[9]||(s[9]=k=>e.unref(c)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":s[10]||(s[10]=k=>e.unref(o).labelPosition=k)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).formLabelPosition,(k,L)=>(e.openBlock(),e.createBlock(I,{value:k.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.label),1)]),_:2},1032,["value"]))),256)),e.createVNode(I,{value:""},{default:e.withCtx(()=>[e.createTextVNode("继承表单")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).formItemLabel_marginTop,"onUpdate:marginTop":s[11]||(s[11]=k=>e.unref(o).formItemLabel_marginTop=k),marginBottom:e.unref(o).formItemLabel_marginBottom,"onUpdate:marginBottom":s[12]||(s[12]=k=>e.unref(o).formItemLabel_marginBottom=k),marginLeft:e.unref(o).formItemLabel_marginLeft,"onUpdate:marginLeft":s[13]||(s[13]=k=>e.unref(o).formItemLabel_marginLeft=k),marginRight:e.unref(o).formItemLabel_marginRight,"onUpdate:marginRight":s[14]||(s[14]=k=>e.unref(o).formItemLabel_marginRight=k),paddingTop:e.unref(o).formItemLabel_paddingTop,"onUpdate:paddingTop":s[15]||(s[15]=k=>e.unref(o).formItemLabel_paddingTop=k),paddingBottom:e.unref(o).formItemLabel_paddingBottom,"onUpdate:paddingBottom":s[16]||(s[16]=k=>e.unref(o).formItemLabel_paddingBottom=k),paddingLeft:e.unref(o).formItemLabel_paddingLeft,"onUpdate:paddingLeft":s[17]||(s[17]=k=>e.unref(o).formItemLabel_paddingLeft=k),paddingRight:e.unref(o).formItemLabel_paddingRight,"onUpdate:paddingRight":s[18]||(s[18]=k=>e.unref(o).formItemLabel_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemLabel_borderStyle,"onUpdate:borderStyle":s[19]||(s[19]=k=>e.unref(o).formItemLabel_borderStyle=k),borderWidth:e.unref(o).formItemLabel_borderWidth,"onUpdate:borderWidth":s[20]||(s[20]=k=>e.unref(o).formItemLabel_borderWidth=k),borderColor:e.unref(o).formItemLabel_borderColor,"onUpdate:borderColor":s[21]||(s[21]=k=>e.unref(o).formItemLabel_borderColor=k),borderTopStyle:e.unref(o).formItemLabel_borderTopStyle,"onUpdate:borderTopStyle":s[22]||(s[22]=k=>e.unref(o).formItemLabel_borderTopStyle=k),borderTopWidth:e.unref(o).formItemLabel_borderTopWidth,"onUpdate:borderTopWidth":s[23]||(s[23]=k=>e.unref(o).formItemLabel_borderTopWidth=k),borderTopColor:e.unref(o).formItemLabel_borderTopColor,"onUpdate:borderTopColor":s[24]||(s[24]=k=>e.unref(o).formItemLabel_borderTopColor=k),borderBottomStyle:e.unref(o).formItemLabel_borderBottomStyle,"onUpdate:borderBottomStyle":s[25]||(s[25]=k=>e.unref(o).formItemLabel_borderBottomStyle=k),borderBottomWidth:e.unref(o).formItemLabel_borderBottomWidth,"onUpdate:borderBottomWidth":s[26]||(s[26]=k=>e.unref(o).formItemLabel_borderBottomWidth=k),borderBottomColor:e.unref(o).formItemLabel_borderBottomColor,"onUpdate:borderBottomColor":s[27]||(s[27]=k=>e.unref(o).formItemLabel_borderBottomColor=k),borderLeftStyle:e.unref(o).formItemLabel_borderLeftStyle,"onUpdate:borderLeftStyle":s[28]||(s[28]=k=>e.unref(o).formItemLabel_borderLeftStyle=k),borderLeftWidth:e.unref(o).formItemLabel_borderLeftWidth,"onUpdate:borderLeftWidth":s[29]||(s[29]=k=>e.unref(o).formItemLabel_borderLeftWidth=k),borderLeftColor:e.unref(o).formItemLabel_borderLeftColor,"onUpdate:borderLeftColor":s[30]||(s[30]=k=>e.unref(o).formItemLabel_borderLeftColor=k),borderRightStyle:e.unref(o).formItemLabel_borderRightStyle,"onUpdate:borderRightStyle":s[31]||(s[31]=k=>e.unref(o).formItemLabel_borderRightStyle=k),borderRightWidth:e.unref(o).formItemLabel_borderRightWidth,"onUpdate:borderRightWidth":s[32]||(s[32]=k=>e.unref(o).formItemLabel_borderRightWidth=k),borderRightColor:e.unref(o).formItemLabel_borderRightColor,"onUpdate:borderRightColor":s[33]||(s[33]=k=>e.unref(o).formItemLabel_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemLabel_fontSize,"onUpdate:fontSize":s[34]||(s[34]=k=>e.unref(o).formItemLabel_fontSize=k),fontWeight:e.unref(o).formItemLabel_fontWeight,"onUpdate:fontWeight":s[35]||(s[35]=k=>e.unref(o).formItemLabel_fontWeight=k),textDecoration:e.unref(o).formItemLabel_textDecoration,"onUpdate:textDecoration":s[36]||(s[36]=k=>e.unref(o).formItemLabel_textDecoration=k),textAlign:e.unref(o).formItemLabel_textAlign,"onUpdate:textAlign":s[37]||(s[37]=k=>e.unref(o).formItemLabel_textAlign=k),lineHeight:e.unref(o).formItemLabel_lineHeight,"onUpdate:lineHeight":s[38]||(s[38]=k=>e.unref(o).formItemLabel_lineHeight=k),letterSpacing:e.unref(o).formItemLabel_letterSpacing,"onUpdate:letterSpacing":s[39]||(s[39]=k=>e.unref(o).formItemLabel_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),d3,e.createVNode(Oe,{marginTop:e.unref(o).formItemMain_marginTop,"onUpdate:marginTop":s[40]||(s[40]=k=>e.unref(o).formItemMain_marginTop=k),marginBottom:e.unref(o).formItemMain_marginBottom,"onUpdate:marginBottom":s[41]||(s[41]=k=>e.unref(o).formItemMain_marginBottom=k),marginLeft:e.unref(o).formItemMain_marginLeft,"onUpdate:marginLeft":s[42]||(s[42]=k=>e.unref(o).formItemMain_marginLeft=k),marginRight:e.unref(o).formItemMain_marginRight,"onUpdate:marginRight":s[43]||(s[43]=k=>e.unref(o).formItemMain_marginRight=k),paddingTop:e.unref(o).formItemMain_paddingTop,"onUpdate:paddingTop":s[44]||(s[44]=k=>e.unref(o).formItemMain_paddingTop=k),paddingBottom:e.unref(o).formItemMain_paddingBottom,"onUpdate:paddingBottom":s[45]||(s[45]=k=>e.unref(o).formItemMain_paddingBottom=k),paddingLeft:e.unref(o).formItemMain_paddingLeft,"onUpdate:paddingLeft":s[46]||(s[46]=k=>e.unref(o).formItemMain_paddingLeft=k),paddingRight:e.unref(o).formItemMain_paddingRight,"onUpdate:paddingRight":s[47]||(s[47]=k=>e.unref(o).formItemMain_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItemMain_borderStyle,"onUpdate:borderStyle":s[48]||(s[48]=k=>e.unref(o).formItemMain_borderStyle=k),borderWidth:e.unref(o).formItemMain_borderWidth,"onUpdate:borderWidth":s[49]||(s[49]=k=>e.unref(o).formItemMain_borderWidth=k),borderColor:e.unref(o).formItemMain_borderColor,"onUpdate:borderColor":s[50]||(s[50]=k=>e.unref(o).formItemMain_borderColor=k),borderTopStyle:e.unref(o).formItemMain_borderTopStyle,"onUpdate:borderTopStyle":s[51]||(s[51]=k=>e.unref(o).formItemMain_borderTopStyle=k),borderTopWidth:e.unref(o).formItemMain_borderTopWidth,"onUpdate:borderTopWidth":s[52]||(s[52]=k=>e.unref(o).formItemMain_borderTopWidth=k),borderTopColor:e.unref(o).formItemMain_borderTopColor,"onUpdate:borderTopColor":s[53]||(s[53]=k=>e.unref(o).formItemMain_borderTopColor=k),borderBottomStyle:e.unref(o).formItemMain_borderBottomStyle,"onUpdate:borderBottomStyle":s[54]||(s[54]=k=>e.unref(o).formItemMain_borderBottomStyle=k),borderBottomWidth:e.unref(o).formItemMain_borderBottomWidth,"onUpdate:borderBottomWidth":s[55]||(s[55]=k=>e.unref(o).formItemMain_borderBottomWidth=k),borderBottomColor:e.unref(o).formItemMain_borderBottomColor,"onUpdate:borderBottomColor":s[56]||(s[56]=k=>e.unref(o).formItemMain_borderBottomColor=k),borderLeftStyle:e.unref(o).formItemMain_borderLeftStyle,"onUpdate:borderLeftStyle":s[57]||(s[57]=k=>e.unref(o).formItemMain_borderLeftStyle=k),borderLeftWidth:e.unref(o).formItemMain_borderLeftWidth,"onUpdate:borderLeftWidth":s[58]||(s[58]=k=>e.unref(o).formItemMain_borderLeftWidth=k),borderLeftColor:e.unref(o).formItemMain_borderLeftColor,"onUpdate:borderLeftColor":s[59]||(s[59]=k=>e.unref(o).formItemMain_borderLeftColor=k),borderRightStyle:e.unref(o).formItemMain_borderRightStyle,"onUpdate:borderRightStyle":s[60]||(s[60]=k=>e.unref(o).formItemMain_borderRightStyle=k),borderRightWidth:e.unref(o).formItemMain_borderRightWidth,"onUpdate:borderRightWidth":s[61]||(s[61]=k=>e.unref(o).formItemMain_borderRightWidth=k),borderRightColor:e.unref(o).formItemMain_borderRightColor,"onUpdate:borderRightColor":s[62]||(s[62]=k=>e.unref(o).formItemMain_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).formItemMain_fontSize,"onUpdate:fontSize":s[63]||(s[63]=k=>e.unref(o).formItemMain_fontSize=k),fontWeight:e.unref(o).formItemMain_fontWeight,"onUpdate:fontWeight":s[64]||(s[64]=k=>e.unref(o).formItemMain_fontWeight=k),textDecoration:e.unref(o).formItemMain_textDecoration,"onUpdate:textDecoration":s[65]||(s[65]=k=>e.unref(o).formItemMain_textDecoration=k),textAlign:e.unref(o).formItemMain_textAlign,"onUpdate:textAlign":s[66]||(s[66]=k=>e.unref(o).formItemMain_textAlign=k),lineHeight:e.unref(o).formItemMain_lineHeight,"onUpdate:lineHeight":s[67]||(s[67]=k=>e.unref(o).formItemMain_lineHeight=k),letterSpacing:e.unref(o).formItemMain_letterSpacing,"onUpdate:letterSpacing":s[68]||(s[68]=k=>e.unref(o).formItemMain_letterSpacing=k),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),f3,e.createVNode(Oe,{marginTop:e.unref(o).formItem_marginTop,"onUpdate:marginTop":s[69]||(s[69]=k=>e.unref(o).formItem_marginTop=k),marginBottom:e.unref(o).formItem_marginBottom,"onUpdate:marginBottom":s[70]||(s[70]=k=>e.unref(o).formItem_marginBottom=k),marginLeft:e.unref(o).formItem_marginLeft,"onUpdate:marginLeft":s[71]||(s[71]=k=>e.unref(o).formItem_marginLeft=k),marginRight:e.unref(o).formItem_marginRight,"onUpdate:marginRight":s[72]||(s[72]=k=>e.unref(o).formItem_marginRight=k),paddingTop:e.unref(o).formItem_paddingTop,"onUpdate:paddingTop":s[73]||(s[73]=k=>e.unref(o).formItem_paddingTop=k),paddingBottom:e.unref(o).formItem_paddingBottom,"onUpdate:paddingBottom":s[74]||(s[74]=k=>e.unref(o).formItem_paddingBottom=k),paddingLeft:e.unref(o).formItem_paddingLeft,"onUpdate:paddingLeft":s[75]||(s[75]=k=>e.unref(o).formItem_paddingLeft=k),paddingRight:e.unref(o).formItem_paddingRight,"onUpdate:paddingRight":s[76]||(s[76]=k=>e.unref(o).formItem_paddingRight=k)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).formItem_borderStyle,"onUpdate:borderStyle":s[77]||(s[77]=k=>e.unref(o).formItem_borderStyle=k),borderWidth:e.unref(o).formItem_borderWidth,"onUpdate:borderWidth":s[78]||(s[78]=k=>e.unref(o).formItem_borderWidth=k),borderColor:e.unref(o).formItem_borderColor,"onUpdate:borderColor":s[79]||(s[79]=k=>e.unref(o).formItem_borderColor=k),borderTopStyle:e.unref(o).formItem_borderTopStyle,"onUpdate:borderTopStyle":s[80]||(s[80]=k=>e.unref(o).formItem_borderTopStyle=k),borderTopWidth:e.unref(o).formItem_borderTopWidth,"onUpdate:borderTopWidth":s[81]||(s[81]=k=>e.unref(o).formItem_borderTopWidth=k),borderTopColor:e.unref(o).formItem_borderTopColor,"onUpdate:borderTopColor":s[82]||(s[82]=k=>e.unref(o).formItem_borderTopColor=k),borderBottomStyle:e.unref(o).formItem_borderBottomStyle,"onUpdate:borderBottomStyle":s[83]||(s[83]=k=>e.unref(o).formItem_borderBottomStyle=k),borderBottomWidth:e.unref(o).formItem_borderBottomWidth,"onUpdate:borderBottomWidth":s[84]||(s[84]=k=>e.unref(o).formItem_borderBottomWidth=k),borderBottomColor:e.unref(o).formItem_borderBottomColor,"onUpdate:borderBottomColor":s[85]||(s[85]=k=>e.unref(o).formItem_borderBottomColor=k),borderLeftStyle:e.unref(o).formItem_borderLeftStyle,"onUpdate:borderLeftStyle":s[86]||(s[86]=k=>e.unref(o).formItem_borderLeftStyle=k),borderLeftWidth:e.unref(o).formItem_borderLeftWidth,"onUpdate:borderLeftWidth":s[87]||(s[87]=k=>e.unref(o).formItem_borderLeftWidth=k),borderLeftColor:e.unref(o).formItem_borderLeftColor,"onUpdate:borderLeftColor":s[88]||(s[88]=k=>e.unref(o).formItem_borderLeftColor=k),borderRightStyle:e.unref(o).formItem_borderRightStyle,"onUpdate:borderRightStyle":s[89]||(s[89]=k=>e.unref(o).formItem_borderRightStyle=k),borderRightWidth:e.unref(o).formItem_borderRightWidth,"onUpdate:borderRightWidth":s[90]||(s[90]=k=>e.unref(o).formItem_borderRightWidth=k),borderRightColor:e.unref(o).formItem_borderRightColor,"onUpdate:borderRightColor":s[91]||(s[91]=k=>e.unref(o).formItem_borderRightColor=k),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"宽度",prop:"formItem_width","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_width,"onUpdate:modelValue":s[92]||(s[92]=k=>e.unref(o).formItem_width=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[93]||(s[93]=k=>e.unref(c)("formItem_width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{label:"高度",prop:"formItem_height","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).formItem_height,"onUpdate:modelValue":s[94]||(s[94]=k=>e.unref(o).formItem_height=k),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[95]||(s[95]=k=>e.unref(c)("formItem_height"))},null,8,["modelValue","formatter","parser"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-85bb68d8"]]),p3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"栅格布局",fieldType:"base"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},hi=r=>(e.pushScopeId("data-v-05c220d3"),r=r(),e.popScopeId(),r),m3={class:"component-config-container grid-component-config-container"},h3={class:"component-config-header"},u3=hi(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"栅格布局")],-1)),g3=hi(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),b3=[hi(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],y3=hi(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),x3=hi(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),C3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=p3(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",m3,[e.createElementVNode("div",h3,[u3,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),g3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},b3)]),e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[y3,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=g=>e.unref(o).id=g),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=g=>e.unref(o).title=g),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),x3,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[2]||(p[2]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[3]||(p[3]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[4]||(p[4]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[5]||(p[5]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[6]||(p[6]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[7]||(p[7]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[8]||(p[8]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[9]||(p[9]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[10]||(p[10]=g=>e.unref(o).borderStyle=g),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[11]||(p[11]=g=>e.unref(o).borderWidth=g),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[12]||(p[12]=g=>e.unref(o).borderColor=g),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[13]||(p[13]=g=>e.unref(o).borderTopStyle=g),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[14]||(p[14]=g=>e.unref(o).borderTopWidth=g),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[15]||(p[15]=g=>e.unref(o).borderTopColor=g),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[16]||(p[16]=g=>e.unref(o).borderBottomStyle=g),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[17]||(p[17]=g=>e.unref(o).borderBottomWidth=g),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[18]||(p[18]=g=>e.unref(o).borderBottomColor=g),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[19]||(p[19]=g=>e.unref(o).borderLeftStyle=g),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[20]||(p[20]=g=>e.unref(o).borderLeftWidth=g),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[21]||(p[21]=g=>e.unref(o).borderLeftColor=g),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[22]||(p[22]=g=>e.unref(o).borderRightStyle=g),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[23]||(p[23]=g=>e.unref(o).borderRightWidth=g),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[24]||(p[24]=g=>e.unref(o).borderRightColor=g),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[26]||(p[26]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[25]||(p[25]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-05c220d3"]]),O3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"栅格布局格子",fieldType:"base"},{label:"栅格占据的列数",key:"span",default:12,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Kr=r=>(e.pushScopeId("data-v-6354b92c"),r=r(),e.popScopeId(),r),w3={class:"component-config-container grid-item-config-container"},_3={class:"component-config-header"},S3=Kr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"栅格布局格子")],-1)),k3=Kr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),T3=[Kr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],I3=Kr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),A3=Kr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),V3=Kr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),B3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=O3(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-input-number"),V=e.resolveComponent("el-slider"),g=e.resolveComponent("el-color-picker"),I=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",w3,[e.createElementVNode("div",_3,[S3,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),k3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},T3)]),e.createVNode(I,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[I3,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=w=>e.unref(o).id=w),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(T,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).title,"onUpdate:modelValue":p[1]||(p[1]=w=>e.unref(o).title=w),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),A3,e.createVNode(T,{label:"栅格占据的列数",prop:"span"},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).span,"onUpdate:modelValue":p[2]||(p[2]=w=>e.unref(o).span=w),min:1,max:24,"controls-position":"right"},null,8,["modelValue"]),e.createVNode(V,{modelValue:e.unref(o).span,"onUpdate:modelValue":p[3]||(p[3]=w=>e.unref(o).span=w),step:1,max:24,"show-stops":""},null,8,["modelValue"])]),_:1}),V3,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":p[4]||(p[4]=w=>e.unref(o).marginTop=w),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":p[5]||(p[5]=w=>e.unref(o).marginBottom=w),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":p[6]||(p[6]=w=>e.unref(o).marginLeft=w),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":p[7]||(p[7]=w=>e.unref(o).marginRight=w),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":p[8]||(p[8]=w=>e.unref(o).paddingTop=w),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":p[9]||(p[9]=w=>e.unref(o).paddingBottom=w),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":p[10]||(p[10]=w=>e.unref(o).paddingLeft=w),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":p[11]||(p[11]=w=>e.unref(o).paddingRight=w)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":p[12]||(p[12]=w=>e.unref(o).borderStyle=w),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":p[13]||(p[13]=w=>e.unref(o).borderWidth=w),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":p[14]||(p[14]=w=>e.unref(o).borderColor=w),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":p[15]||(p[15]=w=>e.unref(o).borderTopStyle=w),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":p[16]||(p[16]=w=>e.unref(o).borderTopWidth=w),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":p[17]||(p[17]=w=>e.unref(o).borderTopColor=w),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":p[18]||(p[18]=w=>e.unref(o).borderBottomStyle=w),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":p[19]||(p[19]=w=>e.unref(o).borderBottomWidth=w),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":p[20]||(p[20]=w=>e.unref(o).borderBottomColor=w),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":p[21]||(p[21]=w=>e.unref(o).borderLeftStyle=w),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":p[22]||(p[22]=w=>e.unref(o).borderLeftWidth=w),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":p[23]||(p[23]=w=>e.unref(o).borderLeftColor=w),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":p[24]||(p[24]=w=>e.unref(o).borderRightStyle=w),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":p[25]||(p[25]=w=>e.unref(o).borderRightWidth=w),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":p[26]||(p[26]=w=>e.unref(o).borderRightColor=w),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(T,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[28]||(p[28]=w=>e.unref(o).backgroundColor=w),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":p[27]||(p[27]=w=>e.unref(o).backgroundColor=w),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-6354b92c"]]),R3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"},{label:"名称",key:"title",default:"表格布局",fieldType:"base"},{label:"行数",key:"row",default:6,fieldType:"prop"},{label:"列数",key:"col",default:4,fieldType:"prop"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"",fieldType:"style"},{label:"边框样式",key:"borderStyle",default:"",fieldType:"style"},{label:"边框宽度",key:"borderWidth",default:"",fieldType:"style"},{label:"边框颜色",key:"borderColor",default:"",fieldType:"style"},{label:"边框样式-上",key:"borderTopStyle",default:"solid",fieldType:"style"},{label:"边框宽度-上",key:"borderTopWidth",default:"1px",fieldType:"style"},{label:"边框颜色-上",key:"borderTopColor",default:"#090909",fieldType:"style"},{label:"边框样式-下",key:"borderBottomStyle",default:"",fieldType:"style"},{label:"边框宽度-下",key:"borderBottomWidth",default:"",fieldType:"style"},{label:"边框颜色-下",key:"borderBottomColor",default:"",fieldType:"style"},{label:"边框样式-左",key:"borderLeftStyle",default:"solid",fieldType:"style"},{label:"边框宽度-左",key:"borderLeftWidth",default:"1px",fieldType:"style"},{label:"边框颜色-左",key:"borderLeftColor",default:"#090909",fieldType:"style"},{label:"边框样式-右",key:"borderRightStyle",default:"",fieldType:"style"},{label:"边框宽度-右",key:"borderRightWidth",default:"",fieldType:"style"},{label:"边框颜色-右",key:"borderRightColor",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"单元格-最小高度",key:"cell_container_minHeight",default:"20px",fieldType:"style"},{label:"单元格-外边距-上",key:"cell_marginTop",default:"",fieldType:"style"},{label:"单元格-外边距-下",key:"cell_marginBottom",default:"",fieldType:"style"},{label:"单元格-外边距-左",key:"cell_marginLeft",default:"",fieldType:"style"},{label:"单元格-外边距-右",key:"cell_marginRight",default:"",fieldType:"style"},{label:"单元格-内边距-上",key:"cell_paddingTop",default:"2px",fieldType:"style"},{label:"单元格-内边距-下",key:"cell_paddingBottom",default:"2px",fieldType:"style"},{label:"单元格-内边距-左",key:"cell_paddingLeft",default:"2px",fieldType:"style"},{label:"单元格-内边距-右",key:"cell_paddingRight",default:"2px",fieldType:"style"},{label:"单元格-边框样式",key:"cell_borderStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度",key:"cell_borderWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色",key:"cell_borderColor",default:"",fieldType:"style"},{label:"单元格-边框样式-上",key:"cell_borderTopStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-上",key:"cell_borderTopWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-上",key:"cell_borderTopColor",default:"",fieldType:"style"},{label:"单元格-边框样式-下",key:"cell_borderBottomStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-下",key:"cell_borderBottomWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-下",key:"cell_borderBottomColor",default:"#090909",fieldType:"style"},{label:"单元格-边框样式-左",key:"cell_borderLeftStyle",default:"",fieldType:"style"},{label:"单元格-边框宽度-左",key:"cell_borderLeftWidth",default:"",fieldType:"style"},{label:"单元格-边框颜色-左",key:"cell_borderLeftColor",default:"",fieldType:"style"},{label:"单元格-边框样式-右",key:"cell_borderRightStyle",default:"solid",fieldType:"style"},{label:"单元格-边框宽度-右",key:"cell_borderRightWidth",default:"1px",fieldType:"style"},{label:"单元格-边框颜色-右",key:"cell_borderRightColor",default:"#090909",fieldType:"style"},{label:"单元格-字体",key:"cell_fontFamily",default:"",fieldType:"style"},{label:"单元格-字体大小",key:"cell_fontSize",default:"",fieldType:"style"},{label:"单元格-字体粗细",key:"cell_fontWeight",default:"",fieldType:"style"},{label:"单元格-字体修饰",key:"cell_textDecoration",default:"",fieldType:"style"},{label:"单元格-对齐方式",key:"cell_textAlign",default:"left",fieldType:"style"},{label:"单元格-字体行高",key:"cell_lineHeight",default:"",fieldType:"style"},{label:"单元格-字间距",key:"cell_letterSpacing",default:"",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},fr=r=>(e.pushScopeId("data-v-c79eb0bc"),r=r(),e.popScopeId(),r),$3={class:"component-config-container table-layout-component-config-container"},L3={class:"component-config-header"},P3=fr(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格布局")],-1)),E3=fr(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),N3=[fr(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],M3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),D3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"属性配置")],-1)),Q3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),W3=fr(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"单元格样式配置")],-1)),U3=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=R3(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.id!=s.id)&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-input"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-input-number"),w=e.resolveComponent("el-color-picker"),R=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",$3,[e.createElementVNode("div",L3,[P3,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),E3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},N3)]),e.createVNode(R,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[M3,e.createVNode(g,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).id,"onUpdate:modelValue":s[0]||(s[0]=y=>e.unref(o).id=y),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"名称",prop:"title","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).title,"onUpdate:modelValue":s[1]||(s[1]=y=>e.unref(o).title=y),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),D3,e.createVNode(g,{label:"行数",prop:"row","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).row,"onUpdate:modelValue":s[2]||(s[2]=y=>e.unref(o).row=y),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"列数",prop:"col","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(o).col,"onUpdate:modelValue":s[3]||(s[3]=y=>e.unref(o).col=y),min:1,"controls-position":"right"},null,8,["modelValue"])]),_:1}),Q3,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[4]||(s[4]=y=>e.unref(o).marginTop=y),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[5]||(s[5]=y=>e.unref(o).marginBottom=y),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[6]||(s[6]=y=>e.unref(o).marginLeft=y),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[7]||(s[7]=y=>e.unref(o).marginRight=y),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[8]||(s[8]=y=>e.unref(o).paddingTop=y),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[9]||(s[9]=y=>e.unref(o).paddingBottom=y),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[10]||(s[10]=y=>e.unref(o).paddingLeft=y),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[11]||(s[11]=y=>e.unref(o).paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[12]||(s[12]=y=>e.unref(o).borderStyle=y),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[13]||(s[13]=y=>e.unref(o).borderWidth=y),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[14]||(s[14]=y=>e.unref(o).borderColor=y),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[15]||(s[15]=y=>e.unref(o).borderTopStyle=y),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[16]||(s[16]=y=>e.unref(o).borderTopWidth=y),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[17]||(s[17]=y=>e.unref(o).borderTopColor=y),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[18]||(s[18]=y=>e.unref(o).borderBottomStyle=y),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[19]||(s[19]=y=>e.unref(o).borderBottomWidth=y),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[20]||(s[20]=y=>e.unref(o).borderBottomColor=y),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[21]||(s[21]=y=>e.unref(o).borderLeftStyle=y),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[22]||(s[22]=y=>e.unref(o).borderLeftWidth=y),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[23]||(s[23]=y=>e.unref(o).borderLeftColor=y),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[24]||(s[24]=y=>e.unref(o).borderRightStyle=y),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[25]||(s[25]=y=>e.unref(o).borderRightWidth=y),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[26]||(s[26]=y=>e.unref(o).borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[28]||(s[28]=y=>e.unref(o).backgroundColor=y),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[27]||(s[27]=y=>e.unref(o).backgroundColor=y),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),W3,e.createVNode(g,{prop:"cell_container_minHeight",label:"最小高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).cell_container_minHeight,"onUpdate:modelValue":s[29]||(s[29]=y=>e.unref(o).cell_container_minHeight=y),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[30]||(s[30]=y=>e.unref(c)("cell_container_minHeight"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).cell_marginTop,"onUpdate:marginTop":s[31]||(s[31]=y=>e.unref(o).cell_marginTop=y),marginBottom:e.unref(o).cell_marginBottom,"onUpdate:marginBottom":s[32]||(s[32]=y=>e.unref(o).cell_marginBottom=y),marginLeft:e.unref(o).cell_marginLeft,"onUpdate:marginLeft":s[33]||(s[33]=y=>e.unref(o).cell_marginLeft=y),marginRight:e.unref(o).cell_marginRight,"onUpdate:marginRight":s[34]||(s[34]=y=>e.unref(o).cell_marginRight=y),paddingTop:e.unref(o).cell_paddingTop,"onUpdate:paddingTop":s[35]||(s[35]=y=>e.unref(o).cell_paddingTop=y),paddingBottom:e.unref(o).cell_paddingBottom,"onUpdate:paddingBottom":s[36]||(s[36]=y=>e.unref(o).cell_paddingBottom=y),paddingLeft:e.unref(o).cell_paddingLeft,"onUpdate:paddingLeft":s[37]||(s[37]=y=>e.unref(o).cell_paddingLeft=y),paddingRight:e.unref(o).cell_paddingRight,"onUpdate:paddingRight":s[38]||(s[38]=y=>e.unref(o).cell_paddingRight=y)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).cell_borderStyle,"onUpdate:borderStyle":s[39]||(s[39]=y=>e.unref(o).cell_borderStyle=y),borderWidth:e.unref(o).cell_borderWidth,"onUpdate:borderWidth":s[40]||(s[40]=y=>e.unref(o).cell_borderWidth=y),borderColor:e.unref(o).cell_borderColor,"onUpdate:borderColor":s[41]||(s[41]=y=>e.unref(o).cell_borderColor=y),borderTopStyle:e.unref(o).cell_borderTopStyle,"onUpdate:borderTopStyle":s[42]||(s[42]=y=>e.unref(o).cell_borderTopStyle=y),borderTopWidth:e.unref(o).cell_borderTopWidth,"onUpdate:borderTopWidth":s[43]||(s[43]=y=>e.unref(o).cell_borderTopWidth=y),borderTopColor:e.unref(o).cell_borderTopColor,"onUpdate:borderTopColor":s[44]||(s[44]=y=>e.unref(o).cell_borderTopColor=y),borderBottomStyle:e.unref(o).cell_borderBottomStyle,"onUpdate:borderBottomStyle":s[45]||(s[45]=y=>e.unref(o).cell_borderBottomStyle=y),borderBottomWidth:e.unref(o).cell_borderBottomWidth,"onUpdate:borderBottomWidth":s[46]||(s[46]=y=>e.unref(o).cell_borderBottomWidth=y),borderBottomColor:e.unref(o).cell_borderBottomColor,"onUpdate:borderBottomColor":s[47]||(s[47]=y=>e.unref(o).cell_borderBottomColor=y),borderLeftStyle:e.unref(o).cell_borderLeftStyle,"onUpdate:borderLeftStyle":s[48]||(s[48]=y=>e.unref(o).cell_borderLeftStyle=y),borderLeftWidth:e.unref(o).cell_borderLeftWidth,"onUpdate:borderLeftWidth":s[49]||(s[49]=y=>e.unref(o).cell_borderLeftWidth=y),borderLeftColor:e.unref(o).cell_borderLeftColor,"onUpdate:borderLeftColor":s[50]||(s[50]=y=>e.unref(o).cell_borderLeftColor=y),borderRightStyle:e.unref(o).cell_borderRightStyle,"onUpdate:borderRightStyle":s[51]||(s[51]=y=>e.unref(o).cell_borderRightStyle=y),borderRightWidth:e.unref(o).cell_borderRightWidth,"onUpdate:borderRightWidth":s[52]||(s[52]=y=>e.unref(o).cell_borderRightWidth=y),borderRightColor:e.unref(o).cell_borderRightColor,"onUpdate:borderRightColor":s[53]||(s[53]=y=>e.unref(o).cell_borderRightColor=y),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":s[54]||(s[54]=y=>e.unref(o).cell_fontSize=y),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":s[55]||(s[55]=y=>e.unref(o).cell_fontWeight=y),fontFamily:e.unref(o).cell_fontFamily,"onUpdate:fontFamily":s[56]||(s[56]=y=>e.unref(o).cell_fontFamily=y),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":s[57]||(s[57]=y=>e.unref(o).cell_textDecoration=y),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":s[58]||(s[58]=y=>e.unref(o).cell_textAlign=y),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":s[59]||(s[59]=y=>e.unref(o).cell_lineHeight=y),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":s[60]||(s[60]=y=>e.unref(o).cell_letterSpacing=y),"content-show":!1},null,8,["fontSize","fontWeight","fontFamily","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-c79eb0bc"]]),Z3=(r,t)=>{const n=e.computed({get(){return r.modelValue},set(l){t("update:modelValue",l)}}),o=e.computed(()=>l=>l==n.value?"slash-direction-item--active":"");return{modelValue:n,itemClass:o}},Q0=r=>(e.pushScopeId("data-v-94ec41ef"),r=r(),e.popScopeId(),r),z3={class:"slash-direction-config-container"},H3=[Q0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],j3=[Q0(()=>e.createElementVNode("div",{class:"slash-direction-item_slash"},null,-1))],F3=G({__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(r,{expose:t,emit:n}){const o=n,l=r,{modelValue:i,itemClass:a}=Z3(l,o),d=f=>{i.value=f};return t({}),(f,c)=>(e.openBlock(),e.createElementBlock("div",z3,[e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--top-left ${e.unref(a)("top-left")}`),onClick:c[0]||(c[0]=m=>d("top-left"))},H3,2),e.createElementVNode("div",{class:e.normalizeClass(`slash-direction-item slash-direction-item--bottom-left ${e.unref(a)("bottom-left")}`),onClick:c[1]||(c[1]=m=>d("bottom-left"))},j3,2)]))}},[["__scopeId","data-v-94ec41ef"]]),X3=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"flex布局",key:"container_custom_isFLex",default:!1},{label:"flex布局方向",key:"container_flexFlow",default:""},{label:"flex布局横向对齐方式",key:"container_justifyContent",default:""},{label:"flex布局竖向对齐方式",key:"container_alignItems",default:""},{label:"flex布局是否换行",key:"container_flexWrap",default:""},{label:"水平居中",key:"container_custom_centerHorizontally",default:!1},{label:"垂直居中",key:"container_custom_centerVertical",default:!1},{label:"斜线",key:"container_custom_slash",default:!1},{label:"斜线方向",key:"container_custom_slashDirection",default:"top-left"},{label:"斜线文本(左)",key:"container_custom_slashTextLeft",default:""},{label:"斜线文本(右)",key:"container_custom_slashTextRight",default:""},{label:"格子宽度",key:"width",default:""},{label:"格子高度",key:"height",default:""},{label:"外边距-上",key:"marginTop",default:""},{label:"外边距-下",key:"marginBottom",default:""},{label:"外边距-左",key:"marginLeft",default:""},{label:"外边距-右",key:"marginRight",default:""},{label:"内边距-上",key:"paddingTop",default:""},{label:"内边距-下",key:"paddingBottom",default:""},{label:"内边距-左",key:"paddingLeft",default:""},{label:"内边距-右",key:"paddingRight",default:""},{label:"边框样式",key:"borderStyle",default:""},{label:"边框宽度",key:"borderWidth",default:""},{label:"边框颜色",key:"borderColor",default:""},{label:"边框样式-上",key:"borderTopStyle",default:""},{label:"边框宽度-上",key:"borderTopWidth",default:""},{label:"边框颜色-上",key:"borderTopColor",default:""},{label:"边框样式-下",key:"borderBottomStyle",default:""},{label:"边框宽度-下",key:"borderBottomWidth",default:""},{label:"边框颜色-下",key:"borderBottomColor",default:""},{label:"边框样式-左",key:"borderLeftStyle",default:""},{label:"边框宽度-左",key:"borderLeftWidth",default:""},{label:"边框颜色-左",key:"borderLeftColor",default:""},{label:"边框样式-右",key:"borderRightStyle",default:""},{label:"边框宽度-右",key:"borderRightWidth",default:""},{label:"边框颜色-右",key:"borderRightColor",default:""},{label:"背景颜色",key:"backgroundColor",default:""}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({width:[{required:!0,message:"请填写格子宽度",trigger:"blur"}]}),a=Ye(t,h=>{}),d=h=>{ue(l,t,h)};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},setFormDataByActiveSortableComponent:()=>{if(!r.value||r.value&&r.value.type!="tableLayout-item")return;let h=r.value.tableLayoutDetails;if(!h.styleRules)return;let b=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex}),x=h.styleRules[b];d(x)},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let h=r.value.tableLayoutDetails,b=M.getTableLayoutStyleRulesId({rowIndex:r.value.rowIndex,colIndex:r.value.colIndex});h.styleRules||(h.styleRules={}),h.styleRules[b]=q(l)}}},on=r=>(e.pushScopeId("data-v-ed3f9785"),r=r(),e.popScopeId(),r),q3={class:"component-config-container table-layout-component-config-container"},Y3={class:"component-config-header"},G3=on(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"表格布局格子")],-1)),K3=on(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),J3=[on(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],v3=on(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"容器属性配置")],-1)),eQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"flex布局开启后水平居中、垂直居中将失效",-1)),tQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 1、斜线开启后flex布局、水平居中、垂直居中将失效,格子中的组件不会渲染 ",-1)),oQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"2、斜线开启后必须设置【格子宽度】与【格子高度】",-1)),nQ=on(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"组件样式配置")],-1)),rQ=on(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"}," 为保持样式的一致性,未合并布局格子须填写格子宽度 ",-1)),lQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=X3(),{formatter:d,parser:f,complementValue:c}=yt(o),{dict:m,activeSortableComponent:h,componentConfigCommand:b,createComponentConfigCommand:x}=e.inject("printDesigner");e.watch(o,(C,s)=>{a()},{deep:!0}),e.watch(h,(C,s)=>{(C&&!s||C.tableLayoutId&&!s.tableLayoutId||C.tableLayoutId&&s.tableLayoutId&&C.tableLayoutId===s.tableLayoutId&&(C.rowIndex!=s.rowIndex||C.colIndex!=s.colIndex))&&i()},{immediate:!0,deep:!0});const p=C=>{if(C=="copy"){b.value=x({id:h.value.id,componentType:h.value.type,command:"copy"});return}if(C=="delete"){b.value=x({id:h.value.id,componentType:h.value.type,command:"delete"});return}},O=()=>{h.value=!1};return t({}),(C,s)=>{const S=e.resolveComponent("el-button"),u=e.resolveComponent("el-dropdown-item"),T=e.resolveComponent("el-dropdown-menu"),A=e.resolveComponent("el-dropdown"),V=e.resolveComponent("el-switch"),g=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-option"),w=e.resolveComponent("el-select"),R=e.resolveComponent("el-input"),y=e.resolveComponent("el-color-picker"),$=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",q3,[e.createElementVNode("div",Y3,[G3,e.createVNode(A,{trigger:"click",class:"component-config-header_operate",onCommand:p},{dropdown:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(u,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(S,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),K3]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:O},J3)]),e.createVNode($,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[v3,eQ,e.createVNode(g,{prop:"container_custom_isFLex",label:"flex布局","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_isFLex,"onUpdate:modelValue":s[0]||(s[0]=_=>e.unref(o).container_custom_isFLex=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_flexFlow",label:"flex布局方向","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_flexFlow,"onUpdate:modelValue":s[1]||(s[1]=_=>e.unref(o).container_flexFlow=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssFlexFlow,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_justifyContent",label:"flex布局横向对齐方式","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_justifyContent,"onUpdate:modelValue":s[2]||(s[2]=_=>e.unref(o).container_justifyContent=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssJustifyContent,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_alignItems",label:"flex布局竖向对齐方式","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_alignItems,"onUpdate:modelValue":s[3]||(s[3]=_=>e.unref(o).container_alignItems=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssAlignItems,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_flexWrap",label:"flex布局是否换行","label-width":"130","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(o).container_flexWrap,"onUpdate:modelValue":s[4]||(s[4]=_=>e.unref(o).container_flexWrap=_),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m).cssFlexWrap,(_,k)=>(e.openBlock(),e.createBlock(I,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_centerHorizontally",label:"水平居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_centerHorizontally,"onUpdate:modelValue":s[5]||(s[5]=_=>e.unref(o).container_custom_centerHorizontally=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_centerVertical",label:"垂直居中","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_centerVertical,"onUpdate:modelValue":s[6]||(s[6]=_=>e.unref(o).container_custom_centerVertical=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),tQ,oQ,e.createVNode(g,{prop:"container_custom_slash",label:"斜线","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(o).container_custom_slash,"onUpdate:modelValue":s[7]||(s[7]=_=>e.unref(o).container_custom_slash=_),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_slashDirection",label:"斜线方向","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(F3,{modelValue:e.unref(o).container_custom_slashDirection,"onUpdate:modelValue":s[8]||(s[8]=_=>e.unref(o).container_custom_slashDirection=_)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_slashTextLeft",label:"斜线文本(左)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).container_custom_slashTextLeft,"onUpdate:modelValue":s[9]||(s[9]=_=>e.unref(o).container_custom_slashTextLeft=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(g,{prop:"container_custom_slashTextRight",label:"斜线文本(右)","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).container_custom_slashTextRight,"onUpdate:modelValue":s[10]||(s[10]=_=>e.unref(o).container_custom_slashTextRight=_),placeholder:"",clearable:""},null,8,["modelValue"])]),_:1}),nQ,rQ,e.createVNode(g,{prop:"width",label:"格子宽度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).width,"onUpdate:modelValue":s[11]||(s[11]=_=>e.unref(o).width=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[12]||(s[12]=_=>e.unref(c)("width"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(g,{prop:"height",label:"格子高度","label-position":"left","label-width":"60"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).height,"onUpdate:modelValue":s[13]||(s[13]=_=>e.unref(o).height=_),placeholder:"",clearable:"",formatter:e.unref(d),parser:e.unref(f),onBlur:s[14]||(s[14]=_=>e.unref(c)("height"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":s[15]||(s[15]=_=>e.unref(o).marginTop=_),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":s[16]||(s[16]=_=>e.unref(o).marginBottom=_),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":s[17]||(s[17]=_=>e.unref(o).marginLeft=_),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":s[18]||(s[18]=_=>e.unref(o).marginRight=_),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":s[19]||(s[19]=_=>e.unref(o).paddingTop=_),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":s[20]||(s[20]=_=>e.unref(o).paddingBottom=_),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":s[21]||(s[21]=_=>e.unref(o).paddingLeft=_),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":s[22]||(s[22]=_=>e.unref(o).paddingRight=_)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Se,{borderStyle:e.unref(o).borderStyle,"onUpdate:borderStyle":s[23]||(s[23]=_=>e.unref(o).borderStyle=_),borderWidth:e.unref(o).borderWidth,"onUpdate:borderWidth":s[24]||(s[24]=_=>e.unref(o).borderWidth=_),borderColor:e.unref(o).borderColor,"onUpdate:borderColor":s[25]||(s[25]=_=>e.unref(o).borderColor=_),borderTopStyle:e.unref(o).borderTopStyle,"onUpdate:borderTopStyle":s[26]||(s[26]=_=>e.unref(o).borderTopStyle=_),borderTopWidth:e.unref(o).borderTopWidth,"onUpdate:borderTopWidth":s[27]||(s[27]=_=>e.unref(o).borderTopWidth=_),borderTopColor:e.unref(o).borderTopColor,"onUpdate:borderTopColor":s[28]||(s[28]=_=>e.unref(o).borderTopColor=_),borderBottomStyle:e.unref(o).borderBottomStyle,"onUpdate:borderBottomStyle":s[29]||(s[29]=_=>e.unref(o).borderBottomStyle=_),borderBottomWidth:e.unref(o).borderBottomWidth,"onUpdate:borderBottomWidth":s[30]||(s[30]=_=>e.unref(o).borderBottomWidth=_),borderBottomColor:e.unref(o).borderBottomColor,"onUpdate:borderBottomColor":s[31]||(s[31]=_=>e.unref(o).borderBottomColor=_),borderLeftStyle:e.unref(o).borderLeftStyle,"onUpdate:borderLeftStyle":s[32]||(s[32]=_=>e.unref(o).borderLeftStyle=_),borderLeftWidth:e.unref(o).borderLeftWidth,"onUpdate:borderLeftWidth":s[33]||(s[33]=_=>e.unref(o).borderLeftWidth=_),borderLeftColor:e.unref(o).borderLeftColor,"onUpdate:borderLeftColor":s[34]||(s[34]=_=>e.unref(o).borderLeftColor=_),borderRightStyle:e.unref(o).borderRightStyle,"onUpdate:borderRightStyle":s[35]||(s[35]=_=>e.unref(o).borderRightStyle=_),borderRightWidth:e.unref(o).borderRightWidth,"onUpdate:borderRightWidth":s[36]||(s[36]=_=>e.unref(o).borderRightWidth=_),borderRightColor:e.unref(o).borderRightColor,"onUpdate:borderRightColor":s[37]||(s[37]=_=>e.unref(o).borderRightColor=_),"content-show":!1},null,8,["borderStyle","borderWidth","borderColor","borderTopStyle","borderTopWidth","borderTopColor","borderBottomStyle","borderBottomWidth","borderBottomColor","borderLeftStyle","borderLeftWidth","borderLeftColor","borderRightStyle","borderRightWidth","borderRightColor"]),e.createVNode(g,{prop:"backgroundColor",label:"背景颜色","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(R,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[39]||(s[39]=_=>e.unref(o).backgroundColor=_),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":s[38]||(s[38]=_=>e.unref(o).backgroundColor=_),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),e.createVNode(Me,{fontSize:e.unref(o).cell_fontSize,"onUpdate:fontSize":s[40]||(s[40]=_=>e.unref(o).cell_fontSize=_),fontWeight:e.unref(o).cell_fontWeight,"onUpdate:fontWeight":s[41]||(s[41]=_=>e.unref(o).cell_fontWeight=_),textDecoration:e.unref(o).cell_textDecoration,"onUpdate:textDecoration":s[42]||(s[42]=_=>e.unref(o).cell_textDecoration=_),textAlign:e.unref(o).cell_textAlign,"onUpdate:textAlign":s[43]||(s[43]=_=>e.unref(o).cell_textAlign=_),lineHeight:e.unref(o).cell_lineHeight,"onUpdate:lineHeight":s[44]||(s[44]=_=>e.unref(o).cell_lineHeight=_),letterSpacing:e.unref(o).cell_letterSpacing,"onUpdate:letterSpacing":s[45]||(s[45]=_=>e.unref(o).cell_letterSpacing=_),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"])]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-ed3f9785"]]),iQ=()=>{const{activeSortableComponent:r}=e.inject("printDesigner");let t;const n=[{label:"字段ID",key:"id",default:"",fieldType:"base"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getPropKeys:m,getStyleKeys:h,setFormDataByActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h(),s=[],S=[];p.forEach((u,T)=>{l[u]=r.value[u]}),r.value.props&&(s=Object.keys(r.value.props)),O.forEach((u,T)=>{s.indexOf(u)>=0?l[u]=r.value.props[u]:l[u]=t[u]}),r.value.style&&(S=Object.keys(r.value.style)),C.forEach((u,T)=>{S.indexOf(u)>=0?l[u]=r.value.style[u]:l[u]=t[u]})},syncFormDataToActiveSortableComponent:()=>{if(!r.value)return!1;let p=c(),O=m(),C=h();p.forEach((u,T)=>{r.value[u]=l[u]});let s={};O.forEach((u,T)=>{s[u]=l[u]}),r.value.props=s;let S={};C.forEach((u,T)=>{S[u]=l[u]}),r.value.style=S}}},Ss=r=>(e.pushScopeId("data-v-816a21bb"),r=r(),e.popScopeId(),r),aQ={class:"component-config-container print-pagination-component-config-container"},sQ={class:"component-config-header"},dQ=Ss(()=>e.createElementVNode("div",{class:"component-config-header_title"},[e.createTextVNode(" 组件类型: "),e.createElementVNode("p",null,"打印分页")],-1)),fQ=Ss(()=>e.createElementVNode("span",{class:"component-config-header_operate_dropdown-button_icon iconfont_print icon-wui-print_xiala"},null,-1)),cQ=[Ss(()=>e.createElementVNode("span",{class:"iconfont_print icon-wui-print_chacha"},null,-1))],pQ=Ss(()=>e.createElementVNode("div",{class:"component-config-divider"},[e.createElementVNode("div",{class:"component-config-divider_text"},"基础配置")],-1)),mQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,setFormDataByActiveSortableComponent:i,syncFormDataToActiveSortableComponent:a}=iQ(),{dict:d,activeSortableComponent:f,componentConfigCommand:c,createComponentConfigCommand:m}=e.inject("printDesigner");e.watch(o,(x,p)=>{a()},{deep:!0}),e.watch(f,(x,p)=>{(x&&!p||x.id!=p.id)&&i()},{immediate:!0,deep:!0});const h=x=>{if(x=="copy"){c.value=m({id:f.value.id,componentType:f.value.type,command:"copy"});return}if(x=="delete"){c.value=m({id:f.value.id,componentType:f.value.type,command:"delete"});return}},b=()=>{f.value=!1};return t({}),(x,p)=>{const O=e.resolveComponent("el-button"),C=e.resolveComponent("el-dropdown-item"),s=e.resolveComponent("el-dropdown-menu"),S=e.resolveComponent("el-dropdown"),u=e.resolveComponent("el-input"),T=e.resolveComponent("el-form-item"),A=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",aQ,[e.createElementVNode("div",sQ,[dQ,e.createVNode(S,{trigger:"click",class:"component-config-header_operate",onCommand:h},{dropdown:e.withCtx(()=>[e.createVNode(s,null,{default:e.withCtx(()=>[e.createVNode(C,{command:"copy"},{default:e.withCtx(()=>[e.createTextVNode(" 复制")]),_:1}),e.createVNode(C,{command:"delete"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{size:"small",plain:""},{default:e.withCtx(()=>[e.createTextVNode("操作"),fQ]),_:1})]),_:1}),e.createElementVNode("div",{class:"component-config-header_icon",onClick:b},cQ)]),e.createVNode(A,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"70px","label-position":"top",size:"small"},{default:e.withCtx(()=>[pQ,e.createVNode(T,{label:"ID",prop:"id","label-width":"50px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).id,"onUpdate:modelValue":p[0]||(p[0]=V=>e.unref(o).id=V),disabled:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-816a21bb"]]),hQ={class:"print-designer_component-config-container"},uQ={key:0,class:"print-designer_component-config-hint"},gQ=G({__name:"index",setup(r,{expose:t}){const{activeSortableComponent:n}=e.inject("printDesigner");return t({}),(o,l)=>{var i,a,d,f,c,m,h,b,x,p,O,C,s,S,u,T,A,V,g,I;return e.openBlock(),e.createElementBlock("div",hQ,[e.unref(n)?((i=e.unref(n))==null?void 0:i.type)=="text"?(e.openBlock(),e.createBlock(D8,{key:1})):((a=e.unref(n))==null?void 0:a.type)=="dynamicText"?(e.openBlock(),e.createBlock(K8,{key:2})):((d=e.unref(n))==null?void 0:d.type)=="table"?(e.openBlock(),e.createBlock(dN,{key:3})):((f=e.unref(n))==null?void 0:f.type)=="table-column"?(e.openBlock(),e.createBlock(ON,{key:4})):((c=e.unref(n))==null?void 0:c.type)=="complexTable"?(e.openBlock(),e.createBlock(e5,{key:5})):((m=e.unref(n))==null?void 0:m.type)=="complexTable-headerItem"?(e.openBlock(),e.createBlock(b5,{key:6})):((h=e.unref(n))==null?void 0:h.type)=="barcode"?(e.openBlock(),e.createBlock(V5,{key:7})):((b=e.unref(n))==null?void 0:b.type)=="qrcode"?(e.openBlock(),e.createBlock(W5,{key:8})):((x=e.unref(n))==null?void 0:x.type)=="image"?(e.openBlock(),e.createBlock(J5,{key:9})):((p=e.unref(n))==null?void 0:p.type)=="input"?(e.openBlock(),e.createBlock(pM,{key:10})):((O=e.unref(n))==null?void 0:O.type)=="textarea"?(e.openBlock(),e.createBlock(kM,{key:11})):((C=e.unref(n))==null?void 0:C.type)=="radio"?(e.openBlock(),e.createBlock(GM,{key:12})):((s=e.unref(n))==null?void 0:s.type)=="checkbox"?(e.openBlock(),e.createBlock(AD,{key:13})):((S=e.unref(n))==null?void 0:S.type)=="select"?(e.openBlock(),e.createBlock(vD,{key:14})):((u=e.unref(n))==null?void 0:u.type)=="datetime"?(e.openBlock(),e.createBlock(c3,{key:15})):((T=e.unref(n))==null?void 0:T.type)=="grid"?(e.openBlock(),e.createBlock(C3,{key:16})):((A=e.unref(n))==null?void 0:A.type)=="grid-item"?(e.openBlock(),e.createBlock(B3,{key:17})):((V=e.unref(n))==null?void 0:V.type)=="tableLayout"?(e.openBlock(),e.createBlock(U3,{key:18})):((g=e.unref(n))==null?void 0:g.type)=="tableLayout-item"?(e.openBlock(),e.createBlock(lQ,{key:19})):((I=e.unref(n))==null?void 0:I.type)=="printPagination"?(e.openBlock(),e.createBlock(mQ,{key:20})):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",uQ,"未选择组件"))])}}},[["__scopeId","data-v-450ac038"]]),bQ=()=>{const{printConfigData:r}=e.inject("printDesigner");let t;const n=[{label:"模板名称",key:"templateTitle",default:"",fieldType:"base"},{label:"模板编码",key:"templateCode",default:"",fieldType:"base"},{label:"纸张尺寸",key:"pageSize",default:"A4",fieldType:"base"},{label:"自定义尺寸-长",key:"customHeight",default:0,fieldType:"base"},{label:"自定义尺寸-宽",key:"customWidth",default:0,fieldType:"base"},{label:"是否横向打印",key:"landscape",default:!1,fieldType:"base"},{label:"预览缩放比例",key:"previewScale",default:1,fieldType:"base"},{label:"打印类型",key:"servePrintType",default:"pdf",fieldType:"base"},{label:"打印机名称",key:"printer",default:"",fieldType:"base"},{label:"是否静默打印",key:"silent",default:!0,fieldType:"base"},{label:"外边距-上",key:"marginTop",default:"",fieldType:"style"},{label:"外边距-下",key:"marginBottom",default:"",fieldType:"style"},{label:"外边距-左",key:"marginLeft",default:"",fieldType:"style"},{label:"外边距-右",key:"marginRight",default:"",fieldType:"style"},{label:"内边距-上",key:"paddingTop",default:"30px",fieldType:"style"},{label:"内边距-下",key:"paddingBottom",default:"30px",fieldType:"style"},{label:"内边距-左",key:"paddingLeft",default:"30px",fieldType:"style"},{label:"内边距-右",key:"paddingRight",default:"30px",fieldType:"style"},{label:"字体颜色",key:"color",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"",fieldType:"style"},{label:"字体大小",key:"fontSize",default:"14px",fieldType:"style"},{label:"字体粗细",key:"fontWeight",default:"",fieldType:"style"},{label:"字体修饰",key:"textDecoration",default:"",fieldType:"style"},{label:"对齐方式",key:"textAlign",default:"",fieldType:"style"},{label:"字体行高",key:"lineHeight",default:"",fieldType:"style"},{label:"字间距",key:"letterSpacing",default:"",fieldType:"style"},{label:"背景颜色",key:"backgroundColor",default:"#fff",fieldType:"style"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,x=>{}),d=x=>{ue(l,t,x)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let x=[];return n.forEach((p,O)=>{p.fieldType=="base"&&x.push(p.key)}),x},m=()=>{let x=[];return n.forEach((p,O)=>{p.fieldType=="style"&&x.push(p.key)}),x};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getStyleKeys:m,setFormDataByPrintConfig:x=>{if(!x)return!1;let p=c(),O=m(),C=[];p.forEach((s,S)=>{if(s=="customHeight"&&!x[s]){l[s]=0;return}if(s=="customWidth"&&!x[s]){l[s]=0;return}l[s]=x[s]}),x.style&&(C=Object.keys(x.style)),C.forEach((s,S)=>{O.indexOf(s)>=0&&(l[s]=x.style[s])})},syncFormDataToPrintConfigData:()=>{r.value||(r.value={});let x=c(),p=m();x.forEach((C,s)=>{r.value[C]=l[C]});let O={};p.forEach((C,s)=>{(l[C]||l[C]===0)&&(O[C]=l[C])}),r.value.style=O}}},Jr=r=>(e.pushScopeId("data-v-e99696c4"),r=r(),e.popScopeId(),r),yQ={class:"print-designer_print-config-container"},xQ=Jr(()=>e.createElementVNode("div",{class:"print-config-divider"},[e.createElementVNode("div",{class:"print-config-divider_text"},"基础配置")],-1)),CQ=Jr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--primary"},"自定义尺寸单位:mm(毫米)",-1)),OQ=Jr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"纸张尺寸为【自定义】时,横向打印配置失效",-1)),wQ=Jr(()=>e.createElementVNode("div",{class:"print-config-divider"},[e.createElementVNode("div",{class:"print-config-divider_text"},"打印服务配置")],-1)),_Q=Jr(()=>e.createElementVNode("div",{class:"print-config-divider"},[e.createElementVNode("div",{class:"print-config-divider_text"},"样式配置")],-1)),SQ=Jr(()=>e.createElementVNode("p",{class:"wui-print-hint wui-print-hint--small wui-print-color--warning"},"如果需要续打,则不需要配置外边距",-1)),kQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,clearFormData:i,setFormDataByPrintConfig:a,syncFormDataToPrintConfigData:d}=bQ(),{dict:f}=e.inject("printDesigner");return e.watch(o,(h,b)=>{d()},{immediate:!0,deep:!0}),t({setPrintConfig:h=>{a(h)},clear:()=>{i()}}),(h,b)=>{const x=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),O=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),s=e.resolveComponent("el-input-number"),S=e.resolveComponent("el-switch"),u=e.resolveComponent("el-option"),T=e.resolveComponent("el-select"),A=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",yQ,[e.createVNode(V,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"auto","label-position":"top",size:"small"},{default:e.withCtx(()=>[xQ,e.createVNode(p,{label:"模板名称",prop:"templateTitle"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).templateTitle,"onUpdate:modelValue":b[0]||(b[0]=g=>e.unref(o).templateTitle=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"模板编码",prop:"templateCode"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).templateCode,"onUpdate:modelValue":b[1]||(b[1]=g=>e.unref(o).templateCode=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"纸张尺寸",prop:"pageSize"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(o).pageSize,"onUpdate:modelValue":b[2]||(b[2]=g=>e.unref(o).pageSize=g)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).pageSize,(g,I)=>(e.openBlock(),e.createBlock(O,{value:g.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),CQ,e.createVNode(p,{label:"自定义尺寸-长",prop:"customHeight","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(o).customHeight,"onUpdate:modelValue":b[3]||(b[3]=g=>e.unref(o).customHeight=g),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"自定义尺寸-宽",prop:"customWidth","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(o).customWidth,"onUpdate:modelValue":b[4]||(b[4]=g=>e.unref(o).customWidth=g),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),OQ,e.createVNode(p,{label:"是否横向打印",prop:"landscape","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:e.unref(o).landscape,"onUpdate:modelValue":b[5]||(b[5]=g=>e.unref(o).landscape=g),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"预览缩放比例",prop:"previewScale","label-width":"90px","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:e.unref(o).previewScale,"onUpdate:modelValue":b[6]||(b[6]=g=>e.unref(o).previewScale=g),min:0,"controls-position":"right"},null,8,["modelValue"])]),_:1}),wQ,e.createVNode(p,{label:"打印类型",prop:"servePrintType"},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(o).servePrintType,"onUpdate:modelValue":b[7]||(b[7]=g=>e.unref(o).servePrintType=g),placeholder:"请选择",filterable:"",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).servePrintType,(g,I)=>(e.openBlock(),e.createBlock(u,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(p,{label:"打印机名称",prop:"printer"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).printer,"onUpdate:modelValue":b[8]||(b[8]=g=>e.unref(o).printer=g)},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"是否静默打印",prop:"silent","label-width":"80","label-position":"left"},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:e.unref(o).silent,"onUpdate:modelValue":b[9]||(b[9]=g=>e.unref(o).silent=g),"active-value":!0,"inactive-value":!1,"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),_Q,SQ,e.createVNode(Oe,{marginTop:e.unref(o).marginTop,"onUpdate:marginTop":b[10]||(b[10]=g=>e.unref(o).marginTop=g),marginBottom:e.unref(o).marginBottom,"onUpdate:marginBottom":b[11]||(b[11]=g=>e.unref(o).marginBottom=g),marginLeft:e.unref(o).marginLeft,"onUpdate:marginLeft":b[12]||(b[12]=g=>e.unref(o).marginLeft=g),marginRight:e.unref(o).marginRight,"onUpdate:marginRight":b[13]||(b[13]=g=>e.unref(o).marginRight=g),paddingTop:e.unref(o).paddingTop,"onUpdate:paddingTop":b[14]||(b[14]=g=>e.unref(o).paddingTop=g),paddingBottom:e.unref(o).paddingBottom,"onUpdate:paddingBottom":b[15]||(b[15]=g=>e.unref(o).paddingBottom=g),paddingLeft:e.unref(o).paddingLeft,"onUpdate:paddingLeft":b[16]||(b[16]=g=>e.unref(o).paddingLeft=g),paddingRight:e.unref(o).paddingRight,"onUpdate:paddingRight":b[17]||(b[17]=g=>e.unref(o).paddingRight=g)},null,8,["marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight"]),e.createVNode(Me,{fontSize:e.unref(o).fontSize,"onUpdate:fontSize":b[18]||(b[18]=g=>e.unref(o).fontSize=g),fontWeight:e.unref(o).fontWeight,"onUpdate:fontWeight":b[19]||(b[19]=g=>e.unref(o).fontWeight=g),textDecoration:e.unref(o).textDecoration,"onUpdate:textDecoration":b[20]||(b[20]=g=>e.unref(o).textDecoration=g),textAlign:e.unref(o).textAlign,"onUpdate:textAlign":b[21]||(b[21]=g=>e.unref(o).textAlign=g),lineHeight:e.unref(o).lineHeight,"onUpdate:lineHeight":b[22]||(b[22]=g=>e.unref(o).lineHeight=g),letterSpacing:e.unref(o).letterSpacing,"onUpdate:letterSpacing":b[23]||(b[23]=g=>e.unref(o).letterSpacing=g),"content-show":!1},null,8,["fontSize","fontWeight","textDecoration","textAlign","lineHeight","letterSpacing"]),e.createVNode(p,{label:"背景颜色","label-position":"left",prop:"backgroundColor"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":b[25]||(b[25]=g=>e.unref(o).backgroundColor=g),placeholder:"",clearable:""},{append:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(o).backgroundColor,"onUpdate:modelValue":b[24]||(b[24]=g=>e.unref(o).backgroundColor=g),class:"color-picker--not-border"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-e99696c4"]]),TQ=()=>{const{formConfigData:r}=e.inject("printDesigner");let t;const n=[{label:"标签宽度",key:"labelWidth",default:"80px",fieldType:"prop"},{label:"标签位置",key:"labelPosition",default:"left",fieldType:"prop"},{label:"尺寸",key:"size",default:"default",fieldType:"prop"}];t=Ge(n);const o=e.ref(),l=e.reactive({...t}),i=e.reactive({}),a=Ye(t,p=>{}),d=p=>{ue(l,t,p)},f=()=>{o.value&&o.value.clearValidate(Object.keys(l)),d()},c=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="base"&&p.push(O.key)}),p},m=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="prop"&&p.push(O.key)}),p},h=()=>{let p=[];return n.forEach((O,C)=>{O.fieldType=="style"&&p.push(O.key)}),p};return{formDataConfig:n,formRef:o,formData:l,formRules:i,formItemRefs:a,setDefaultFormData:d,clearFormData:f,getBaseKeys:c,getStyleKeys:h,setFormDataByFormConfig:p=>{if(!p)return!1;let O=c(),C=m(),s=h(),S=[],u=[];O.forEach((T,A)=>{l[T]=p[T]}),p.props&&(S=Object.keys(p.props)),S.forEach((T,A)=>{C.indexOf(T)>=0&&(l[T]=p.props[T])}),p.style&&(u=Object.keys(p.style)),u.forEach((T,A)=>{s.indexOf(T)>=0&&(l[T]=p.style[T])})},syncFormDataToFormConfigData:()=>{r.value||(r.value={});let p=c(),O=m(),C=h();if(p.forEach((s,S)=>{r.value[s]=l[s]}),O.length>0){let s={};O.forEach((S,u)=>{s[S]=l[S]}),r.value.props=s}if(C.length>0){let s={};C.forEach((S,u)=>{(l[S]||l[S]===0)&&(s[S]=l[S])}),r.value.style=s}}}},IQ=r=>(e.pushScopeId("data-v-9b247795"),r=r(),e.popScopeId(),r),AQ={class:"print-designer_form-config-container"},VQ=IQ(()=>e.createElementVNode("div",{class:"form-config-divider"},[e.createElementVNode("div",{class:"form-config-divider_text"},"基础配置")],-1)),BQ=G({__name:"index",setup(r,{expose:t}){const{formRef:n,formData:o,formRules:l,clearFormData:i,setFormDataByFormConfig:a,syncFormDataToFormConfigData:d}=TQ(),{formatter:f,parser:c,complementValue:m}=yt(o),{dict:h}=e.inject("printDesigner");return e.watch(o,(p,O)=>{d()},{immediate:!0,deep:!0}),t({setFormConfig:p=>{a(p)},clear:()=>{i()}}),(p,O)=>{const C=e.resolveComponent("el-input"),s=e.resolveComponent("el-form-item"),S=e.resolveComponent("el-radio"),u=e.resolveComponent("el-radio-group"),T=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",AQ,[e.createVNode(T,{class:"wui-print_common-form",ref_key:"formRef",ref:n,model:e.unref(o),rules:e.unref(l),"scroll-to-error":!0,"label-width":"auto","label-position":"top",size:"small"},{default:e.withCtx(()=>[VQ,e.createVNode(s,{label:"标签宽度",prop:"labelWidth"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(o).labelWidth,"onUpdate:modelValue":O[0]||(O[0]=A=>e.unref(o).labelWidth=A),placeholder:"",clearable:"",formatter:e.unref(f),parser:e.unref(c),onBlur:O[1]||(O[1]=A=>e.unref(m)("labelWidth"))},null,8,["modelValue","formatter","parser"])]),_:1}),e.createVNode(s,{label:"标签位置",prop:"labelPosition"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).labelPosition,"onUpdate:modelValue":O[2]||(O[2]=A=>e.unref(o).labelPosition=A)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h).formLabelPosition,(A,V)=>(e.openBlock(),e.createBlock(S,{value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(s,{label:"尺寸",prop:"size"},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).size,"onUpdate:modelValue":O[3]||(O[3]=A=>e.unref(o).size=A)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h).formSize,(A,V)=>(e.openBlock(),e.createBlock(S,{value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}},[["__scopeId","data-v-9b247795"]]);let ks;const RQ=new Uint8Array(16);function $Q(){if(!ks&&(ks=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ks))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ks(RQ)}const xt=[];for(let r=0;r<256;++r)xt.push((r+256).toString(16).slice(1));function LQ(r,t=0){return xt[r[t+0]]+xt[r[t+1]]+xt[r[t+2]]+xt[r[t+3]]+"-"+xt[r[t+4]]+xt[r[t+5]]+"-"+xt[r[t+6]]+xt[r[t+7]]+"-"+xt[r[t+8]]+xt[r[t+9]]+"-"+xt[r[t+10]]+xt[r[t+11]]+xt[r[t+12]]+xt[r[t+13]]+xt[r[t+14]]+xt[r[t+15]]}const W0={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function PQ(r,t,n){if(W0.randomUUID&&!r)return W0.randomUUID();r=r||{};const o=r.random||(r.rng||$Q)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,LQ(o)}const EQ=()=>{const r=e.ref("line"),t=e.ref(),n=e.ref(),o=e.ref(),l=e.ref(),i=e.ref(),a=e.ref(),d=e.ref("printConfig"),f=e.reactive({designerMode:[{label:"参考线模式",value:"line"},{label:"打印模式",value:"print"}],labelPosition:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}],labelWidthUnit:[{label:"auto",value:"auto"},{label:"px",value:"px"},{label:"%",value:"%"}],pageSize:[{label:"A5",value:"A5"},{label:"A4",value:"A4"},{label:"A3",value:"A3"},{label:"自定义",value:"custom"}],servePrintType:[{label:"pdf",value:"pdf"},{label:"html",value:"html"}],fontWeight:[{label:"细体",value:300},{label:"常规体",value:400},{label:"中黑体",value:500},{label:"中粗体",value:700}],fontFamily:[{label:"宋体",value:"宋体"},{label:"隶书",value:"隶书"},{label:"楷书",value:"楷书"},{label:"微软雅黑",value:"微软雅黑"}],textDecoration:[{label:"下划线",value:"underline"},{label:"中划线",value:"line-through"},{label:"上划线",value:"overline"}],textAlign:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}],borderStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状虚线",value:"dotted"},{label:"双实线",value:"double"},{label:"无边框",value:"none"}],barcodeFormat:[{label:"EAN13",value:"EAN13"},{label:"CODE128",value:"CODE128"},{label:"EAN8",value:"EAN8"},{label:"UPC ",value:"UPC"}],barcodeTextAlign:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],barcodeTextPosition:[{label:"上",value:"top"},{label:"下",value:"bottom"}],formSize:[{label:"大",value:"large"},{label:"默认",value:"default"},{label:"小",value:"small"}],formLabelPosition:[{label:"左",value:"left"},{label:"右",value:"right"},{label:"上",value:"top"}],cssFlexFlow:[{label:"横向",value:"row"},{label:"竖向",value:"column"}],cssJustifyContent:[{label:"左对齐",value:"flex-start"},{label:"居中",value:"center"},{label:"右对齐",value:"flex-end"}],cssAlignItems:[{label:"上对齐",value:"flex-start"},{label:"居中",value:"center"},{label:"下对齐",value:"flex-end"}],cssFlexWrap:[{label:"换行",value:"wrap"},{label:"不换行",value:"nowrap"}],datetimeFormat:[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY年MM月DD日 HH时mm分ss秒",value:"YYYY年MM月DD日 HH时mm分ss秒"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY年MM月DD日 HH时mm分",value:"YYYY年MM月DD日 HH时mm分"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY年MM月DD日",value:"YYYY年MM月DD日"},{label:"HH:mm",value:"HH:mm"},{label:"HH时mm分",value:"HH时mm分"}],textDateTimeFormat:[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY年MM月DD日 HH时mm分ss秒",value:"YYYY年MM月DD日 HH时mm分ss秒"},{label:"YYYY-MM-DD HH:mm",value:"YYYY-MM-DD HH:mm"},{label:"YYYY年MM月DD日 HH时mm分",value:"YYYY年MM月DD日 HH时mm分"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY年MM月DD日",value:"YYYY年MM月DD日"},{label:"HH:mm",value:"HH:mm"},{label:"HH时mm分",value:"HH时mm分"}]}),c=e.ref({}),m=e.ref({}),h=e.ref(!1),b=e.ref(!1),x=e.ref(!1),p=e.ref(!1),O=e.ref(!1),C=e.ref(!1),s=e.ref(!1),S=k=>{let L={id:"",componentType:"",command:""},B={};return ue(B,L,k),B},u=()=>PQ(),T=()=>{document.addEventListener("keydown",A)},A=function(k){k.ctrlKey&&k.key==="c"?$i(L)():k.ctrlKey&&k.key==="v"&&$i(B)();function L(){let E=new Date;I.value=E.getTime()}function B(){let E=new Date;w.value=E.getTime()}},V=e.ref(!1),g=e.ref(!1),I=e.ref(0),w=e.ref(0),R=e.ref(!1),y=()=>{if(!V.value||!h.value)return;let k=["grid","grid-item","tableLayout","tableLayout-item"],L=h.value.type;k.indexOf(L)>=0||(R.value=q(h.value),gh.success("复制成功"))},$=e.ref(new Map),_=e.ref(new Map);return{designerMode:r,designerComponentsRef:t,designerPanelRef:n,configTabsRef:o,componentConfigRef:l,printConfigRef:i,formConfigRef:a,configTabsActiveName:d,dict:f,printConfigData:c,formConfigData:m,activeSortableComponent:h,dragSortableComponent:b,activeDesignerComponent:x,dragDesignerComponent:p,dragGridSortableComponent:O,dragTableLayoutSortableComponent:C,componentConfigCommand:s,createComponentConfigCommand:S,createId:u,initKeydown:T,handleKeydown:A,ableCtrlC:V,ableCtrlV:g,ctrlCTimestamp:I,ctrlVTimestamp:w,copyActiveSortableComponent:R,setCopyActiveSortableComponent:y,computeObj:$,fieldArr:_}},NQ={class:"print-designer-container wui-print-el"},MQ=G({__name:"index",setup(r,{expose:t}){const{designerMode:n,designerComponentsRef:o,designerPanelRef:l,configTabsRef:i,componentConfigRef:a,printConfigRef:d,formConfigRef:f,configTabsActiveName:c,dict:m,printConfigData:h,formConfigData:b,activeSortableComponent:x,dragSortableComponent:p,activeDesignerComponent:O,dragDesignerComponent:C,dragGridSortableComponent:s,dragTableLayoutSortableComponent:S,componentConfigCommand:u,createComponentConfigCommand:T,createId:A,initKeydown:V,ableCtrlC:g,ableCtrlV:I,ctrlCTimestamp:w,ctrlVTimestamp:R,copyActiveSortableComponent:y,setCopyActiveSortableComponent:$,computeObj:_,fieldArr:k}=EQ();return e.provide("printDesigner",{designerMode:n,designerComponentsRef:o,designerPanelRef:l,configTabsRef:i,componentConfigRef:a,printConfigRef:d,formConfigRef:f,configTabsActiveName:c,dict:m,printConfigData:h,formConfigData:b,activeSortableComponent:x,dragSortableComponent:p,activeDesignerComponent:O,dragDesignerComponent:C,dragGridSortableComponent:s,dragTableLayoutSortableComponent:S,componentConfigCommand:u,createComponentConfigCommand:T,createId:A,ableCtrlC:g,ableCtrlV:I,ctrlCTimestamp:w,ctrlVTimestamp:R,copyActiveSortableComponent:y,computeObj:_,fieldArr:k}),e.watch(x,(E,N)=>{x.value&&c.value!="componentConfig"?c.value="componentConfig":!x.value&&c.value!="printConfig"&&(c.value="printConfig")},{immediate:!0,deep:!0}),e.watch(w,(E,N)=>{g.value&&$()}),e.onMounted(()=>{V()}),t({getDesignerConfig:()=>{let E=l.value.getLayoutConfig();return{printConfig:q(h.value),layoutConfig:E,formConfig:q(b.value)}},setDesignerConfig:({printConfig:E,layoutConfig:N,formConfig:W}={})=>{E||(E={}),N||(N={}),N||(W={}),d.value.setPrintConfig(E),f.value.setFormConfig(W),l.value.setLayoutConfig(N)}}),(E,N)=>(e.openBlock(),e.createElementBlock("div",NQ,[e.createVNode(kx,{ref_key:"designerComponentsRef",ref:o},null,512),e.createVNode(lE,{ref_key:"designerPanelRef",ref:l},{operateButtons:e.withCtx(()=>[e.renderSlot(E.$slots,"operateButtons",{},void 0,!0)]),_:3},512),e.createVNode(dE,{ref_key:"configTabsRef",ref:i},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(gQ,{ref_key:"componentConfigRef",ref:a},null,512),[[e.vShow,e.unref(c)=="componentConfig"]]),e.withDirectives(e.createVNode(kQ,{ref_key:"printConfigRef",ref:d},null,512),[[e.vShow,e.unref(c)=="printConfig"]]),e.withDirectives(e.createVNode(BQ,{ref_key:"formConfigRef",ref:f},null,512),[[e.vShow,e.unref(c)=="formConfig"]])]),_:1},512)]))}},[["__scopeId","data-v-89cd7b90"]]);return{install(r){r.component("WuiPrintDesigner",MQ),r.component("WuiPrintForm",L0),r.component("WuiBaseDialog",qr)}}});