resolver-egretimp-plus 0.1.139 → 0.1.141

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/index.js CHANGED
@@ -2,7 +2,6 @@ export { default as Renderer} from './src/renderer.jsx'
2
2
  import { normalPageConfigs } from './src/components/helper/resolver.js'
3
3
  import { commonPropsType } from './src/utils/index.js'
4
4
 
5
-
6
5
  const componentPropsType = Object.keys(commonPropsType).reduce((ret, key) => {
7
6
  ret[key] = {
8
7
  ...commonPropsType[key]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.1.139",
3
+ "version": "0.1.141",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -169,6 +169,13 @@ onMounted(() => {
169
169
  </script>
170
170
 
171
171
  <style lang="scss">
172
+ .el-form-item.is-error {
173
+ .select-employees {
174
+ xm-select {
175
+ box-shadow: 0 0 0 1px var(--el-color-danger) inset;
176
+ }
177
+ }
178
+ }
172
179
  .select-employees {
173
180
  position: relative;
174
181
  width: 100%;
@@ -496,7 +496,7 @@ export default {
496
496
  return []
497
497
  }
498
498
  // 进行统计的计算
499
- const row = (tableData.value || []).reduce((total, row) => {
499
+ const row = (modelValue.value || []).reduce((total, row) => {
500
500
  normalTotalCodes.value.forEach(codeInfo => {
501
501
  const { code, totalFn } = codeInfo
502
502
  total[code] = totalFn(total[code], row[code], row)
@@ -1,7 +1,7 @@
1
1
  import { ElSelect, ElOption, ElSelectV2 } from 'element-plus'
2
2
  import { computed, inject, onMounted, watch} from 'vue'
3
3
  import { commonPropsType, hasOwn, isArray, isNumber, isPlainObject, isString, VALUE_TYPES } from '../../utils/index.js'
4
- import OptionsDefault from '../options/optionsDefault.vue'
4
+ import OptionsDefault from '../options/OptionsDefault.vue'
5
5
 
6
6
  export default {
7
7
  inheritAttrs: false,
@@ -1029,7 +1029,8 @@ function generateFormItemPc (config, lang, compProps, params,) {
1029
1029
  let isFormItem = false
1030
1030
  let props = {}
1031
1031
  let propsKeys
1032
- let slotName = 'default'
1032
+ let formContentSlot = 'default'
1033
+ let formLabelSlot = 'label'
1033
1034
  let formItemComp = resolveComponent('el-form-item')
1034
1035
  if (formItemComp) {
1035
1036
  isFormItem = true
@@ -1044,7 +1045,10 @@ function generateFormItemPc (config, lang, compProps, params,) {
1044
1045
  }
1045
1046
  if (isFormItem) {
1046
1047
  if (config.formItemSlot === 'label') {
1047
- slotName = 'label'
1048
+ formContentSlot = 'label'
1049
+ }
1050
+ if (config.formItemLabelSlot === 'content' || config.formItemLabelSlot === 'default') {
1051
+ formLabelSlot = 'default'
1048
1052
  }
1049
1053
  props = {
1050
1054
  ...props,
@@ -1098,9 +1102,11 @@ function generateFormItemPc (config, lang, compProps, params,) {
1098
1102
  const slots = {
1099
1103
  error: (info) => createFormLabelErrorTip(info, config, lang)
1100
1104
  }
1101
- slots[slotName] = () => node
1102
- if (isFormItem && slotName !== 'label') {
1103
- slots.label = () => createFormLable(config, lang)
1105
+ slots[formContentSlot] = () => node
1106
+ if (isFormItem) {
1107
+ if (formContentSlot !== 'label' || formLabelSlot !== 'label') {
1108
+ slots[formLabelSlot] = () => createFormLable(config, lang)
1109
+ }
1104
1110
  }
1105
1111
 
1106
1112
  return (