UNPKG

@javaguns/flow-ui

Version:

``` <template> <a-spin :spinning="loading"> <FlowDesigner ref="flowDesigner" top="50px"> </FlowDesigner> </a-spin> </template> <script lang="ts" setup> import { ref, provide, onMounted } from 'vue'; import { FlowDesigner, LoadingKey } from '@j

435 lines (434 loc) 11.1 kB
.flow-drawer-approver-group .flow-drawer-approver-card:not(:first-child) { margin-top: 10px; } .flow-drawer-approver-group .el-card__header, .flow-drawer-approver-group .ant-card-head { padding: 10px 20px; } .flow-drawer-approver-group .el-card__body, .flow-drawer-approver-group .ant-card-body { padding: 0 20px; } .flow-drawer-approver-group .flow-approver-group-title { display: flex; justify-content: space-between; align-items: center; } .flow-drawer-approver-group .flow-approver-group-del { cursor: pointer; } .flow-drawer-content { box-sizing: border-box; font-size: 14px; color: #575757; } .flow-drawer-content .flow-drawer-item { margin-bottom: 20px; font-size: 14px; color: #575757; } .flow-drawer-content .flow-drawer-item .flow-drawer-item-title { margin-bottom: 10px; font-weight: 700; } .flow-drawer-content .flow-drawer-item .flow-drawer-item-title .flow-drawer-item-text { color: #8f959e; font-weight: 400; } .flow-drawer-content .flow-drawer-item .flow-drawer-item-title .flow-drawer-item-desc { color: rgba(23, 26, 29, 0.4); font-size: 12px; padding-top: 6px; } .flow-drawer-content .flow-drawer-item .flow-drawer-item-footer { font-size: 12px; color: rgba(23, 26, 29, 0.4); padding-top: 8px; } .flow-drawer-content .flow-drawer-item .tpl-flex-box { display: flex; color: #575757; font-size: 14px; justify-content: space-between; } .flow-drawer-content .flow-drawer-item .hint-info { line-height: 22px; color: #646a73; } .flow-drawer-content .flow-drawer-item .hint-info p { position: relative; padding-left: 10px; } .flow-drawer-content .flow-drawer-item .hint-info p::before { content: ''; width: 4px; height: 4px; position: absolute; top: 9px; left: 0; border-radius: 2px; } .flow-drawer-sub-title { border-left: 3px solid var(--primary-color); padding-left: 6px; font-weight: 700; } .cursor-pointer { cursor: pointer; } .w-fill { width: 100%; } .w-fill-imp { width: 100% !important; } .margin-top10-bottom10 { margin: 10px 0; } .padding-top10-bottom10 { padding: 10px 0; } .flow-drawer .n-drawer-content-wrapper, .flow-drawer .ivu-drawer-body, .flow-drawer .arco-drawer-body, .flow-drawer .ant-drawer-body, .flow-drawer .el-drawer__body { padding: 0px !important; overflow: hidden !important; } .flow-drawer .flow-drawer-header-title { padding: 0 !important; border-radius: 0 !important; background-color: transparent !important; border: none !important; outline: none !important; font-size: 15px !important; color: #fff !important; font-weight: 700 !important; } .flow-drawer .flow-drawer-header-title .n-input-wrapper, .flow-drawer .flow-drawer-header-title .el-input__wrapper { background-color: transparent !important; box-shadow: none !important; padding: 0px 0px; } .flow-drawer .flow-drawer-header-title .n-input__border { border: none !important; } .flow-drawer .flow-drawer-header-title input { border-radius: 0 !important; background-color: transparent !important; border: none !important; outline: none !important; font-size: 15px !important; color: #fff !important; font-weight: 700 !important; } .flow-drawer .flow-drawer-body { height: calc(100vh - 112px); padding: 20px 20px; overflow-y: auto; } .flow-drawer .flow-drawer-body .guns-space .arco-card, .flow-drawer .flow-drawer-body .guns-space .el-card { width: 99.7%; } .flow-drawer .flow-drawer-footer { position: absolute; bottom: 0; width: 100%; border-top: 1px solid #e8e8e8; padding: 10px 16px; left: 0; background: #ffffff; border-radius: 0 0 4px 4px; } .flow-drawer-option .flow-drawer-option-item { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #dee0e3; justify-content: space-between; } .flow-drawer-option .flow-drawer-option-item .flow-drawer-option-item-left { display: flex; align-items: center; } .flow-drawer-option .flow-drawer-option-item .flow-drawer-option-item-left .flow-drawer-option-desc { margin-left: 9px; } .flow-drawer-option .flow-drawer-option-item .flow-drawer-option-item-left .flow-drawer-option-desc p { margin: 0; padding: 0; font-family: Microsoft YaHei; } .flow-drawer-option .flow-drawer-option-item .flow-drawer-option-item-left .flow-drawer-option-desc .drawer-option-title { color: #575757; font-size: 14px; } .flow-drawer-option .flow-drawer-option-item .flow-drawer-option-item-left .flow-drawer-option-desc .drawer-option-title .alias-set { margin-left: 10px; color: #4096ff; cursor: pointer; font-size: 13px; } .flow-drawer-option .flow-drawer-option-item .flow-drawer-option-item-left .flow-drawer-option-desc .drawer-option-desc { color: #979797; font-size: 12px; } .flow-drawer-privilege { font-size: 14px; color: #8e8e8e; font-weight: 400; position: relative; padding-bottom: 30px; } .flow-drawer-privilege div { margin: 0; padding: 0; font-family: Microsoft YaHei; } .flow-drawer-privilege .flow-drawer-privilege-header { padding-left: 9px; box-sizing: border-box; display: flex; align-items: center; width: 100%; height: 40px; background-color: #f2f3f5; border-bottom: 1px solid #dee0e3; } .flow-drawer-privilege .flow-drawer-privilege-body { color: #575757; background-color: #fff; display: block; height: auto; width: 100%; padding-left: 9px; box-sizing: border-box; align-items: center; } .flow-drawer-privilege .flow-drawer-privilege-body .flow-drawer-privilege-name-column-row { height: 40px; width: 100%; display: flex; align-items: center; border-bottom: 1px solid #dee0e3; position: relative; } .flow-drawer-privilege .flow-drawer-privilege-name-column-12 { width: 12.5%; } .flow-drawer-privilege .flow-drawer-privilege-name-column-20 { width: 20%; } .flow-drawer-privilege .flow-drawer-privilege-name-column-25 { width: 25%; } .flow-drawer-privilege .flow-drawer-privilege-name-column-30 { width: 40%; } .flow-drawer-privilege .flow-drawer-privilege-name-column-12 span, .flow-drawer-privilege .flow-drawer-privilege-name-column-20 span, .flow-drawer-privilege .flow-drawer-privilege-name-column-25 span, .flow-drawer-privilege flow-setting-auth-table-name-column-30 span { display: block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .flow-drawer-privilege .flow-drawer-privilege-option-column { flex-grow: 1; display: flex; position: relative; } .flow-drawer-privilege .flow-drawer-privilege-option-column .flow-drawer-privilege-option-column-item-25 { width: 25%; } .flow-drawer-privilege .flow-drawer-privilege-option-column .flow-drawer-privilege-option-column-item-25 span { font-size: 12px; } .flow-drawer-privilege .flow-drawer-privilege-option-column .flow-drawer-privilege-option-column-item-50 { width: 50%; } .guns-flow-setting .guns-flow-setting-item { position: absolute; color: #171a1d; z-index: 8; display: flex; background: #fff; align-items: center; cursor: pointer; font-family: PingFangSC, PingFangSC-Medium; font-weight: 500; padding: 10px 10px 10px 12px; border-radius: 0 100px 100px 0; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1); } .guns-flow-setting .guns-flow-setting-item:first-child { left: 0; top: 55px; margin-top: 20px; } .guns-flow-setting .guns-flow-setting-item:nth-child(2) { left: 0; top: 127px; } .guns-flow-setting .guns-flow-setting-item:nth-child(3) { left: 0; top: 177px; } .guns-flow-setting .guns-flow-setting-item:nth-child(4) { left: 0; top: 227px; } .guns-flow-setting .guns-flow-setting-item:nth-child(5) { left: 0; top: 277px; } .guns-flow-setting .guns-flow-setting-item-title { font-family: PingFangSC, PingFangSC-Medium; font-weight: 500; height: 20px; margin: 0 10px 0 6px; } .guns-flow-variable-setting-header { text-align: center; min-height: 30px; line-height: 30px; background-color: #fafafa; } .guns-flow-variable-setting-body { min-height: 40px; line-height: 40px; text-align: center; } .guns-flow-variable-setting-body .guns-icon { cursor: pointer; color: red; } .guns-flow-variable-setting-body .ant-select { width: 100%; } .guns-flow-variable-setting-butoon { margin-top: 10px; width: 100%; } .action-type-container { /* padding-left: 24px; padding-right: 24px; */ margin-top: 20px; } .action-type-container .action-type { position: relative; background: #f6fbff; margin-bottom: 8px; padding: 16px; display: flex; border-radius: 4px; } .action-type-container .action-type .action-type-icon { position: absolute; top: 18px; right: 16px; } .action-type-container .action-type .action-type-icon img { width: 82px; height: 22px; } .action-type-container .action-type .action-type-content { flex: 1; color: rgba(25, 31, 37, 0.56); font-size: 12px; line-height: 2; } .action-type-container .action-type .action-type-content .action-type-content-title { color: #191f25; font-size: 14px; width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: break-all; } .action-type-container .action-type .action-type-content .action-type-content-hightlight { color: #1890ff; font-weight: 500; } .action-type-container .action-type .action-type-operate { width: 60px; display: flex; justify-content: space-between; align-items: flex-end; } .action-type-container .action-type .action-type-operate-flex { display: flex; width: 100%; justify-content: space-between; } .action-type-container .action-type .action-type-edit, .action-type-container .action-type .action-type-edit-disabled { cursor: pointer; height: 20px; width: 20px; background-size: 20px 20px; background-position: center; background-repeat: no-repeat; background-image: url(https://img.alicdn.com/tfs/TB1tJgdorH1gK0jSZFwXXc7aXXa-32-30.png); } .action-type-container .action-type .action-type-delete, .action-type-container .action-type .action-type-delete-disabled { cursor: pointer; height: 20px; width: 20px; background-size: 20px 20px; background-position: center; background-repeat: no-repeat; background-image: url(https://img.alicdn.com/tfs/TB1NecaoCf2gK0jSZFPXXXsopXa-34-36.png); } .action-type-modeal-item { position: relative; padding: 15px 26px; background: #ffffff; border: 1px solid rgba(17, 31, 44, 0.08); border-radius: 6px; cursor: pointer; line-height: 26px; white-space: nowrap; } .action-type-modeal-item img { width: 26px; height: 26px; margin-right: 6px; } .action-type-modeal-item span { font-size: 14px; font-weight: 500; color: #111f2c; } .action-type-modeal-item-check { background: #eaf4fe; border-color: #3296fa; } .action-type-modeal-item-check .action-type-modeal-item-wrap-active-img { position: absolute; right: 0; top: 0; width: 20px; height: 20px; margin-right: 0; } .action-type-modeal-item-disabled { cursor: not-allowed; } .action-type-modeal-item-disabled span { color: rgba(17, 31, 44, 0.24); } .time-rule-content { background: rgba(0, 137, 255, 0.04); padding: 10px 12px; } .time-rule-content .ant-form-item { margin-bottom: 0px; }