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/dist/h5/index.js +1 -1
- package/dist/web/index.js +2 -2
- package/index.js +0 -1
- package/package.json +1 -1
- package/src/components/packages-web/CustomComponentSelectEmployees.vue +7 -0
- package/src/components/packages-web/CustomComponentTable.jsx +1 -1
- package/src/components/packages-web/ElSelect.jsx +1 -1
- package/src/utils/render.jsx +11 -5
- package//344/275/277/347/224/250/346/211/213/345/206/214.md +1216 -0
- package//347/273/204/344/273/266/351/205/215/347/275/256/345/261/236/346/200/247/345/256/214/346/225/264/345/217/202/350/200/203.md +1094 -0
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
|
@@ -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 = (
|
|
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/
|
|
4
|
+
import OptionsDefault from '../options/OptionsDefault.vue'
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
inheritAttrs: false,
|
package/src/utils/render.jsx
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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[
|
|
1102
|
-
if (isFormItem
|
|
1103
|
-
|
|
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 (
|