resolver-egretimp-plus 0.0.52 → 0.0.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -4,8 +4,13 @@
4
4
  <ElCollapseItem v-bind="collapseItemProps" >
5
5
  <template #title>
6
6
  <div class="collapge-slot-title">
7
- <span>{{ lang.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn }}</span>
8
7
  <ElRow>
8
+ <span>{{ lang.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn }}</span>
9
+ <Renderer @click="stopPropagation" :config="rightSlotPmPageMetaList" v-model="props.refValue.value"></Renderer>
10
+ </ElRow>
11
+ <ElRow>
12
+ <el-button type="primary">afsdfds</el-button>
13
+ <el-button type="primary">afsdfds</el-button>
9
14
  <Renderer @click="stopPropagation" :config="slotPmPageMetaList" v-model="props.refValue.value"></Renderer>
10
15
  </ElRow>
11
16
  </div>
@@ -64,13 +69,17 @@ const collapseItemProps = computed(() => {
64
69
  })
65
70
 
66
71
  const pmPageMetaList = computed(() => {
67
- return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot) || []
72
+ return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot && !item.collapseRightSlot) || []
68
73
  })
69
74
 
70
75
  const slotPmPageMetaList = computed(() => {
71
76
  return props.config?.pmPageMetaList?.filter(item => item.collapseSlot) || []
72
77
  })
73
78
 
79
+ const rightSlotPmPageMetaList = computed(() => {
80
+ return props.config?.pmPageMetaList?.filter(item => item.collapseRightSlot) || []
81
+ })
82
+
74
83
  const stopPropagation = (e) => {
75
84
  e.stopPropagation()
76
85
  }
@@ -99,16 +108,18 @@ const activeNames = computed({
99
108
  justify-content: space-between;
100
109
  align-items: center;
101
110
  width: 100%;
102
- > span {
103
- &::before {
104
- content: "";
105
- display: inline-block;
106
- width: 3px;
107
- height: 12px;
108
- margin-right: 8px;
109
- border-radius: 3px;
110
- vertical-align: middle;
111
- background-color: #3271fe;
111
+ > .el-row {
112
+ > span {
113
+ &::before {
114
+ content: "";
115
+ display: inline-block;
116
+ width: 3px;
117
+ height: 12px;
118
+ margin-right: 8px;
119
+ border-radius: 3px;
120
+ vertical-align: baseline;
121
+ background-color: #3271fe;
122
+ }
112
123
  }
113
124
  }
114
125
  }
@@ -23,7 +23,12 @@ const inputNumberProps = computed(() => {
23
23
  ret[key] = props[key]
24
24
  return ret
25
25
  }, {})
26
-
26
+ if (props.config?.maxValue && !isNaN(props.config.maxValue)) {
27
+ ret.max = props.config.maxValue
28
+ }
29
+ if (props.config?.minValue && !isNaN(props.config.minValue)) {
30
+ ret.min = props.config.minValue
31
+ }
27
32
  return ret
28
33
  })
29
34
  const attrs = useAttrs()