resolver-egretimp-plus 0.0.45 → 0.0.47

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.
Files changed (30) hide show
  1. package/dist/h5/index.js +1 -1
  2. package/dist/theme/element/index.css +1 -1
  3. package/dist/theme/element/src/components/collapse.scss +98 -10
  4. package/dist/theme/element/src/components/common.scss +12 -0
  5. package/dist/theme/element/src/components/dialog.scss +42 -0
  6. package/dist/theme/element/src/components/index.scss +1 -0
  7. package/dist/theme/element/src/components/tabs.scss +10 -0
  8. package/dist/theme/element/src/index.scss +0 -63
  9. package/dist/web/index.js +1 -1
  10. package/package.json +1 -1
  11. package/scripts/webpack.config.js +3 -1
  12. package/src/components/childDialog/src/index.vue +25 -18
  13. package/src/components/helper/eventOrchestration.js +7 -1
  14. package/src/components/packages-H5/CmiButton.vue +2 -15
  15. package/src/components/packages-H5/CustomComponentCardH5.vue +28 -7
  16. package/src/components/packages-H5/CustomComponentCollapseH5.vue +38 -3
  17. package/src/components/packages-web/CustomComponentCol.vue +0 -1
  18. package/src/components/packages-web/CustomComponentCollapse.vue +2 -70
  19. package/src/components/packages-web/CustomComponentRow.vue +1 -3
  20. package/src/components/packages-web/CustomComponentTable.jsx +2 -2
  21. package/src/components/styles/CustomComponenTable.scss +1 -1
  22. package/src/theme/element/components/collapse.scss +98 -10
  23. package/src/theme/element/components/common.scss +12 -0
  24. package/src/theme/element/components/dialog.scss +42 -0
  25. package/src/theme/element/components/index.scss +1 -0
  26. package/src/theme/element/components/tabs.scss +10 -0
  27. package/src/theme/element/index.scss +0 -63
  28. package/src/utils/const.js +5 -1
  29. package/src/utils/render.jsx +2 -5
  30. package/src/utils/respone.js +10 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -80,7 +80,9 @@ module.exports = {
80
80
  '@element-plus/icons-vue': '@element-plus/icons-vue',
81
81
  'element-plus/es/components/icon/index.mjs': 'element-plus/es/components/icon/index.mjs',
82
82
  'element-plus/es/constants/index.mjs': 'element-plus/es/constants/index.mjs',
83
- 'element-plus/es/utils/index.mjs': 'element-plus/es/utils/index.mjs'
83
+ 'element-plus/es/utils/index.mjs': 'element-plus/es/utils/index.mjs',
84
+ 'element-plus/es/locale/lang/zh-cn': 'element-plus/es/locale/lang/zh-cn',
85
+ 'element-plus/es/locale/lang/en': 'element-plus/es/locale/lang/en'
84
86
  },
85
87
  externalsType: 'module',
86
88
  experiments: {
@@ -1,6 +1,8 @@
1
1
  <script setup>
2
2
  import { computed, defineAsyncComponent, ref } from 'vue';
3
3
  import { ElDialog } from 'element-plus';
4
+ import zhCn from 'element-plus/es/locale/lang/zh-cn'
5
+ import en from 'element-plus/es/locale/lang/en'
4
6
  const Resolver = defineAsyncComponent(() => import('../../../resolver-web.vue'))
5
7
 
6
8
  const props = defineProps({
@@ -38,6 +40,9 @@ const rootOptionComp = ref({})
38
40
  const dialogHeight = computed(() => {
39
41
  return rootOptionComp.value?.widgetHeight
40
42
  })
43
+ const locale = computed(() => {
44
+ return props.lang?.indexOf('zh') > -1 ? zhCn : en
45
+ })
41
46
  const dialogWidth = computed(() => {
42
47
  return rootOptionComp.value?.widgetWidth
43
48
  })
@@ -58,24 +63,26 @@ defineExpose({
58
63
  })
59
64
  </script>
60
65
  <template>
61
- <ElDialog class="open-child-frame" v-model="dialogVisible"
62
- :style="dialogStyle"
63
- :close-on-click-modal="false" :width="dialogWidth"
64
- >
65
- <div>
66
- </div>
67
- <Resolver v-if="dialogVisible" ref="resolverRef"
68
- @loadedConfigCompeted="loadedConfigCompeted"
69
- @rootStoreChange="rootStoreChange"
70
- v-model="formData"
71
- :busiIdentityId="busiIdentityId"
72
- :lang="props.lang"
73
- :loadEvnetsReq="props.loadEvnetsReq"
74
- :polyfillConfigs="props.polyfillConfigs"
75
- :axiosInstance="props.axiosInstance"
76
- :axiosConfig="props.axiosConfig"
77
- ></Resolver>
78
- </ElDialog>
66
+ <ElConfigProvider :locale="locale">
67
+ <ElDialog class="open-child-frame" v-model="dialogVisible"
68
+ :style="dialogStyle"
69
+ :close-on-click-modal="false" :width="dialogWidth"
70
+ >
71
+ <div>
72
+ </div>
73
+ <Resolver v-if="dialogVisible" ref="resolverRef"
74
+ @loadedConfigCompeted="loadedConfigCompeted"
75
+ @rootStoreChange="rootStoreChange"
76
+ v-model="formData"
77
+ :busiIdentityId="busiIdentityId"
78
+ :lang="props.lang"
79
+ :loadEvnetsReq="props.loadEvnetsReq"
80
+ :polyfillConfigs="props.polyfillConfigs"
81
+ :axiosInstance="props.axiosInstance"
82
+ :axiosConfig="props.axiosConfig"
83
+ ></Resolver>
84
+ </ElDialog>
85
+ </ElConfigProvider>
79
86
  </template>
80
87
 
81
88
  <style lang="scss">
@@ -128,9 +128,10 @@ export function openDailg({
128
128
  const reqData = getReqData(pagePopupMap.inParamMappingList || [], {dynamicMapComp, dynamicMapCompKeys, dynamicHireRelat})
129
129
 
130
130
  const outParamMappingList = pagePopupMap?.outParamMappingList?.map(item => {
131
+ const orignParamArr = item.orignParam ? item.orignParam.split('->') : []
131
132
  return {
132
133
  ...item,
133
- orignParam: item.orignParam ? item.orignParam.split('->')[0] : ''
134
+ orignParam: item.orignParam ? orignParamArr[orignParamArr.length - 1] : ''
134
135
  }
135
136
  }) || []
136
137
 
@@ -231,6 +232,11 @@ export async function executeDataValid(validConfig, { dynamicMapComp, mixinServi
231
232
  })
232
233
  }
233
234
 
235
+ function closePage() {
236
+ // window?.close()
237
+ // window?.history?.back()
238
+ }
239
+
234
240
  export async function executeEventOrchestration({props, axiosInstance, rootValue, confirmInstance, dynamicMapComp, messageInstance, openChildDialog, messageCb, lang, appContext } = {}) {
235
241
  const lcpPageRuleVOLis = props.config?.lcpPageRuleVOList || []
236
242
  const PageServiceMapVOList = props.config.lcpPageServiceMapVOList || []
@@ -2,7 +2,6 @@
2
2
  import { defineProps, inject, getCurrentInstance, computed, useAttrs } from 'vue'
3
3
  import { commonPropsType } from '../../utils/index.js'
4
4
  import { useRoute } from 'vue-router'
5
- import { dispatchClickEvents } from '../helper/eventOrchestration.js';
6
5
 
7
6
  const appContext = getCurrentInstance()?.appContext
8
7
 
@@ -41,7 +40,6 @@ const label = computed(() => {
41
40
  const route = useRoute()
42
41
  const buttonActions = inject('buttonActions', {})
43
42
 
44
- const messageInstance = inject('_messageInstance')
45
43
  const dynamicMapComp = inject('dynamicMapComp')
46
44
  const hireRelatMapRules = inject('hireRelatMapRules')
47
45
  const components = inject('components')
@@ -49,12 +47,11 @@ const selects = inject('selects')
49
47
  const rootValue = inject('rootValue')
50
48
  const dataLoad = inject('dataLoad')
51
49
  const rootForm = inject('rootForm')
52
- const _axiosInstance = inject('_axiosInstance')
53
50
  const routeQuery= route?.query
54
51
 
55
52
 
56
- const buttonAction = () => {
57
- attrs?.onClick?.(e) // 如果配置中有点击事件
53
+ const buttonAction = (...arg) => {
54
+ attrs?.onClick?.(...arg) // 如果配置中有点击事件
58
55
  const actionKey = props.config?.clickActionKey || props.config?.buttonActionKey || props.config?.hireRelat
59
56
  const actionFn = buttonActions[actionKey]
60
57
  actionFn && actionFn(props, {
@@ -67,16 +64,6 @@ const buttonAction = () => {
67
64
  rootForm,
68
65
  routeQuery
69
66
  }, appContext)
70
-
71
- const PageServiceMapVOList = props.config.lcpPageServiceMapVOList
72
- if (PageServiceMapVOList?.length) {
73
- dispatchClickEvents({
74
- serviceList: PageServiceMapVOList,
75
- axiosInstance: _axiosInstance,
76
- reqData: rootValue?.value,
77
- messageInstance
78
- })
79
- }
80
67
  }
81
68
  </script>
82
69
 
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
- import { computed, inject, resolveComponent, useAttrs } from "vue";
2
+ import { computed, inject, ref, resolveComponent, useAttrs } from "vue";
3
3
  import Renderer from '../../renderer.jsx'
4
- import { commonPropsType, hasOwn } from '../../utils/index.js'
4
+ import { commonPropsType, DISPLAY_HIDDEN, hasOwn } from '../../utils/index.js'
5
5
 
6
6
  const modelValue = defineModel()
7
7
  const props = defineProps({
@@ -12,6 +12,9 @@ const props = defineProps({
12
12
  noborder: [Boolean, String],
13
13
  cardbgcolor: String,
14
14
  })
15
+
16
+ const collapseLimt = 5
17
+ const isCollapse = ref(true)
15
18
  const attrs = useAttrs()
16
19
  const lang = inject('lang')
17
20
  const cmiProps = computed(() => {
@@ -27,17 +30,35 @@ const cmiProps = computed(() => {
27
30
  const pmPageMetaList = computed(() => {
28
31
  return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot) || []
29
32
  })
30
-
33
+ const showCollapseBtn = computed(() => {
34
+ return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN)?.length > collapseLimt
35
+ })
36
+ const showPageMeteList = computed(() => {
37
+ return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN).slice(0, isCollapse.value ? collapseLimt : Number.MAX_VALUE)
38
+ })
39
+ const collapseLabel = computed(() => {
40
+ const isCh = lang?.value?.indexOf('zh') > -1
41
+ return isCollapse.value ? (isCh ? '更多' : 'More') : (isCh ? '收起' : 'Close')
42
+ })
43
+ function toCollapse() {
44
+ isCollapse.value = !isCollapse.value
45
+ }
31
46
  </script>
32
47
  <template>
33
- <div style="">
34
-
35
- </div>
36
48
  <cmi-card v-bind="{...cmiProps, ...attrs}">
37
49
  <div slot="content">
38
- <Renderer :config="pmPageMetaList" v-model="modelValue"></Renderer>
50
+ <Renderer :config="showPageMeteList" v-model="modelValue"></Renderer>
51
+ <div v-if="showCollapseBtn" class="collapse-wrap">
52
+ <cmi-button type="text" size="small" @click="toCollapse">
53
+ {{ collapseLabel }}
54
+ </cmi-button>
55
+ </div>
39
56
  </div>
40
57
  </cmi-card>
41
58
  </template>
42
59
  <style lang="scss">
60
+ .collapse-wrap {
61
+ display: flex;
62
+ justify-content: end;
63
+ }
43
64
  </style>
@@ -1,12 +1,14 @@
1
1
  <script setup>
2
2
  import Renderer from '../../renderer.jsx'
3
- import { computed, inject, useAttrs, defineEmits, defineProps } from 'vue'
4
- import { commonPropsType } from '../../utils/index.js'
3
+ import { computed, inject, useAttrs, defineEmits, defineProps, ref } from 'vue'
4
+ import { commonPropsType, DISPLAY_HIDDEN } from '../../utils/index.js'
5
5
 
6
6
  defineOptions({
7
7
  inheritAttrs: false
8
8
  })
9
9
 
10
+ const collapseLimt = 5
11
+ const isCollapse = ref(true)
10
12
  const modelValue = defineModel()
11
13
  const attrs = useAttrs()
12
14
  const lang = inject('lang')
@@ -25,13 +27,46 @@ const collapseProps = computed(() => {
25
27
  const pmPageMetaList = computed(() => {
26
28
  return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot) || []
27
29
  })
30
+ const showCollapseBtn = computed(() => {
31
+ return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN)?.length > collapseLimt
32
+ })
33
+ const showPageMeteList = computed(() => {
34
+ return pmPageMetaList.value.filter(item => item.displayType != DISPLAY_HIDDEN).slice(0, isCollapse.value ? collapseLimt : Number.MAX_VALUE)
35
+ })
36
+ const collapseLabel = computed(() => {
37
+ const isCh = lang?.value?.indexOf('zh') > -1
38
+ return isCollapse.value ? (isCh ? '更多' : 'More') : (isCh ? '收起' : 'Close')
39
+ })
40
+ function toCollapse() {
41
+ isCollapse.value = !isCollapse.value
42
+ }
28
43
  </script>
29
44
 
30
45
  <template>
31
46
  <cmi-collapse v-bind="{...attrs, ...collapseProps}">
32
- <Renderer :config="pmPageMetaList" v-model="modelValue"></Renderer>
47
+ <div class="render-wrap">
48
+ <Renderer :config="showPageMeteList" v-model="modelValue"></Renderer>
49
+ </div>
50
+ <div v-if="showCollapseBtn" class="collapse-wrap">
51
+ <cmi-button type="text" size="small" @click="toCollapse">
52
+ {{ collapseLabel }}
53
+ </cmi-button>
54
+ </div>
33
55
  </cmi-collapse>
34
56
  </template>
35
57
 
36
58
  <style lang="scss">
59
+ .render-wrap {
60
+ div:last-child {
61
+ cmi-cell {
62
+ &::after {
63
+ display: none;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ .collapse-wrap {
69
+ display: flex;
70
+ justify-content: end;
71
+ }
37
72
  </style>
@@ -46,7 +46,6 @@ const reserveBottomMargin = computed(() => {
46
46
  </script>
47
47
  <style lang="scss">
48
48
  .custom-component-row {
49
- width: 100%;
50
49
  .el-col {
51
50
  & > .el-form-item {
52
51
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <component :is="component" :class="[component === ElCard ? 'is-card' : '']" class="standard-wrap custom-component-collapse" v-bind="{...componentProps, ...attrs}">
2
+ <component :is="component" class="standard-wrap" v-bind="{...componentProps, ...attrs}">
3
3
  <ElCollapse v-bind="{...collapseProps}" :class="collapseClass" v-model="activeNames">
4
4
  <ElCollapseItem v-bind="collapseItemProps" >
5
5
  <template #title>
@@ -93,7 +93,7 @@ const activeNames = computed({
93
93
  })
94
94
 
95
95
  </script>
96
- <style lang="scss">
96
+ <style lang="scss" scoped>
97
97
  .collapge-slot-title {
98
98
  display: flex;
99
99
  justify-content: space-between;
@@ -112,72 +112,4 @@ const activeNames = computed({
112
112
  }
113
113
  }
114
114
  }
115
- .not-wrap-border {
116
- &.el-collapse {
117
- border-top: none;
118
- border-bottom: none;
119
- }
120
- }
121
- </style>
122
- <style lang="scss">
123
- // 配置被包裹的一层样式
124
- .standard-wrap {
125
- box-sizing: border-box;
126
- }
127
- .custom-component-collapse {
128
- .el-collapse-item__wrap, .el-collapse-item__header {
129
- border-bottom: none;
130
- &::before {
131
- display: none;
132
- }
133
- }
134
- .el-collapse-item__wrap {
135
- overflow: none;
136
- }
137
- .el-collapse-item {
138
- position: relative;
139
- &::after {
140
- content: "";
141
- display: block;
142
- position: absolute;
143
- width: 100%;
144
- bottom: 0;
145
- left: 0;
146
- height: 1px;
147
- background-color: #d0d3d6;
148
- // margin-bottom: var(--prmary-marign);
149
- }
150
- .el-collapse-item__content {
151
- & > .el-row {
152
- > .el-col {
153
- &:last-child {
154
- & > .el-form-item {
155
- margin-bottom: 24px;
156
- }
157
- }
158
- }
159
- }
160
- }
161
- }
162
- .el-collapse-item__arrow {
163
- font-size: 16px;
164
- color: #646A73;
165
- svg path {
166
- d: path("M 338.752 104.704 a 64 64 0 0 0 0 90.496 l 316.8 316.8 l -316.8 316.8 a 64 64 0 0 0 90.496 90.496 l 362.048 -362.048 a 64 64 0 0 0 0 -90.496 L 429.248 104.704 a 64 64 0 0 0 -90.496 0 Z");
167
- }
168
- }
169
- .el-collapse-item__content {
170
- .el-tabs {
171
- margin-right: 16px;
172
- margin-bottom: 16px;
173
- }
174
- }
175
- }
176
- .underline-hidden {
177
- .el-collapse-item {
178
- &::after {
179
- display: none;
180
- }
181
- }
182
- }
183
115
  </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <ElRow class="custom-component-row" :class="classRef" v-bind="{...elRowProps, ...attrs}">
2
+ <ElRow class="custom-component-row" :class="classRef" v-bind="{...attrs, ...elRowProps}">
3
3
  <Renderer :config="pmPageMetaList" v-model="props.refValue.value"></Renderer>
4
4
  </ElRow>
5
5
  </template>
@@ -22,7 +22,6 @@ const elRowProps = computed(() => {
22
22
  }, {})
23
23
  })
24
24
  const attrs = useAttrs()
25
-
26
25
  const classRef = computed(() => {
27
26
  return {
28
27
  'clear-right-margin': !reserveRightMargin.value,
@@ -44,7 +43,6 @@ const reserveBottomMargin = computed(() => {
44
43
  </script>
45
44
  <style lang="scss">
46
45
  .custom-component-row {
47
- width: 100%;
48
46
  .el-col {
49
47
  & > .el-form-item {
50
48
  }
@@ -360,14 +360,14 @@ export default {
360
360
  <ElTable {...tableProps.value} {...tableEvents}
361
361
  ref={(e) => {tableRef.value = e}}
362
362
  highlight-current-row={selectable.value || tableProps.value?.highlightCurrentRow ? true : false}
363
- onCurrentChange={selectable.value ? currentChange : () => {}}
363
+ onCurrentChange={selectable.value || tableProps.value?.highlightCurrentRow ? currentChange : () => {}}
364
364
  data={[...(props.refValue.value || []), ...totalRow.value]}
365
365
  onSelectionChange={handleSelectionChange}
366
366
  >
367
367
  {
368
368
  tableColumnConfigs.value.map((columnConfg, configIdx) => {
369
369
  return columnConfg.displayType == DISPLAY_HIDDEN ? null : (
370
- <ElTableColumn key={columnConfg.requiredFlag} {...getTableColumnProps(columnConfg, configIdx)}>
370
+ <ElTableColumn key={columnConfg.requiredFlag + columnConfg.metaCode} {...getTableColumnProps(columnConfg, configIdx)}>
371
371
  {{
372
372
  header: () => (
373
373
  <span className='head-span' title={lang.value.indexOf('zh') > -1 ? columnConfg.metaNameZh : columnConfg.metaNameEn}>
@@ -6,7 +6,7 @@
6
6
  .custom-component-table {
7
7
  --boder-radius: 4px;
8
8
  border-radius: var(--boder-radius);
9
- width: 100%;
9
+ // width: 100%;
10
10
  .el-table, &.el-table {
11
11
  --el-table-header-bg-color: #f5f6f7;
12
12
  --el-table-header-text-color: #646a73;
@@ -1,16 +1,104 @@
1
+ @import "./common.scss";not-wrap-border
1
2
 
2
- .el-collapse {
3
- --el-collapse-header-height: 22px;
4
- --el-collapse-header-font-size: 14px;
5
- // margin-bottom: var(--prmary-marign);
6
- .el-collapse-item__header {
7
- padding-bottom: 12px;
8
- box-sizing: content-box;
3
+ // 配置被包裹的一层样式
4
+ .standard-wrap {
5
+ box-sizing: border-box;
6
+ }
7
+ .CustomComponentCollapse {
8
+ .el-collapse {
9
+ --el-collapse-header-height: 22px;
10
+ --el-collapse-header-font-size: 14px;
11
+ // margin-bottom: var(--prmary-marign);
12
+ .el-collapse-item__header {
13
+ padding-bottom: 12px;
14
+ box-sizing: content-box;
15
+ }
16
+ .el-collapse-item__content {
17
+ padding-bottom: 0;
18
+ }
19
+ .el-collapse-item__wrap {
20
+ margin-right: calc(var(--prmary-marign) - var(--prmary-marign) * 2);
21
+ }
9
22
  }
10
- .el-collapse-item__content {
11
- padding-bottom: 0;
23
+
24
+ .el-collapse-item__wrap, .el-collapse-item__header {
25
+ border-bottom: none;
26
+ &::before {
27
+ display: none;
28
+ }
12
29
  }
13
30
  .el-collapse-item__wrap {
14
- margin-right: calc(var(--prmary-marign) - var(--prmary-marign) * 2);
31
+ overflow: none;
32
+ }
33
+ .el-collapse-item {
34
+ position: relative;
35
+ &::after {
36
+ content: "";
37
+ display: block;
38
+ position: absolute;
39
+ width: 100%;
40
+ bottom: 0;
41
+ left: 0;
42
+ height: 1px;
43
+ background-color: #d0d3d6;
44
+ // margin-bottom: var(--prmary-marign);
45
+ }
46
+ .el-collapse-item__content {
47
+ & > .el-row {
48
+ > .el-col {
49
+ &:last-child {
50
+ & > .el-form-item {
51
+ margin-bottom: 24px;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ .el-collapse-item__arrow {
59
+ font-size: 16px;
60
+ color: #646A73;
61
+ svg path {
62
+ d: path("M 338.752 104.704 a 64 64 0 0 0 0 90.496 l 316.8 316.8 l -316.8 316.8 a 64 64 0 0 0 90.496 90.496 l 362.048 -362.048 a 64 64 0 0 0 0 -90.496 L 429.248 104.704 a 64 64 0 0 0 -90.496 0 Z");
63
+ }
64
+ }
65
+ .el-collapse-item__content {
66
+ @include nestMargin
67
+ }
68
+
69
+ .el-collapse-item__arrow {
70
+ margin-right: 0;
71
+ }
72
+ }
73
+
74
+ .CustomComponentCollapse:first-child {
75
+ margin-bottom: 12px;
76
+ }
77
+ .CustomComponentCollapse + .CustomComponentCollapse {
78
+ margin-bottom: 12px;
79
+ }
80
+
81
+ .CustomComponentCollapse.is-card:first-child {
82
+ margin-bottom: 16px;
83
+ }
84
+ .CustomComponentCollapse.is-card + .CustomComponentCollapse.is-card {
85
+ margin-bottom: 16px;
86
+ }
87
+
88
+ // 加权
89
+ .CustomComponentCollapse.CustomComponentCollapse.CustomComponentCollapse:last-child {
90
+ margin-bottom: 0;
91
+ }
92
+ .underline-hidden {
93
+ .el-collapse-item {
94
+ &::after {
95
+ display: none;
96
+ }
97
+ }
98
+ }
99
+ .not-wrap-border {
100
+ &.el-collapse {
101
+ border-top: none;
102
+ border-bottom: none;
15
103
  }
16
104
  }
@@ -0,0 +1,12 @@
1
+ @mixin nestMargin {
2
+ & > div {
3
+ & > .CustomComponentTable,
4
+ & > .CustomComponentCollapse,
5
+ & > .CustomComponentRow {
6
+ & > div {
7
+ margin-right: 16px;
8
+ margin-bottom: 16px;
9
+ }
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,42 @@
1
+
2
+ // 组件弹框样式定义调整
3
+ .custom-component-dialog {
4
+ padding-top: 0px;
5
+ padding-bottom: 0;
6
+
7
+ .el-dialog__header {
8
+ display: none;
9
+ }
10
+ .el-dialog__body {
11
+ height: 100%;
12
+ .header {
13
+ line-height: 46px;
14
+ font-size: 14px;
15
+ font-weight: 500;
16
+ color: #1F2329;
17
+ }
18
+ .content {
19
+ height: 100%;
20
+ box-sizing: border-box;
21
+ // .el-scrollbar__wrap {
22
+ // overflow-x: hidden;
23
+ // }
24
+ // .is-horizontal {
25
+ // display: none;
26
+ // }
27
+ }
28
+ .footer {
29
+ height: 68px;
30
+ text-align: right;
31
+ overflow: hidden;
32
+ .dialog-footer {
33
+ margin-top: 16px;
34
+ }
35
+ }
36
+ }
37
+ &.el-dialog footer {
38
+ position: initial;
39
+ transform: none;
40
+ padding: 0;
41
+ }
42
+ }
@@ -40,3 +40,4 @@
40
40
  @import './tabs.scss';
41
41
  @import './tree.scss';
42
42
  @import './steps.scss';
43
+ @import './dialog.scss'
@@ -1,4 +1,6 @@
1
1
 
2
+ @import "./common.scss";
3
+
2
4
  .resolver-tabs {
3
5
  // 这个是渲染器里面tabs
4
6
  display: block;
@@ -69,4 +71,12 @@
69
71
  border: none;
70
72
  }
71
73
  }
74
+ }
75
+ .CustomComponentTabs {
76
+ .el-tabs__content {
77
+ margin-right: -16px;
78
+ .el-tab-pane {
79
+ @include nestMargin
80
+ }
81
+ }
72
82
  }