resolver-egretimp-plus 0.0.136 → 0.0.137
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/const/index.js +1 -1
- package/dist/h5/index.js +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/components/packages-web/ElButton.vue +2 -1
- package/src/components/packages-web/ElInput.jsx +1 -1
- package/src/components/packages-web/ElInputNumber.vue +14 -1
- package/src/components/packages-web/ElSelect.vue +3 -1
- package/src/index.jsx +9 -2
- package/src/utils/const.js +2 -2
- package/src/utils/render.jsx +7 -9
package/package.json
CHANGED
|
@@ -17,7 +17,8 @@ const appContext = getCurrentInstance()?.appContext
|
|
|
17
17
|
const props = defineProps({
|
|
18
18
|
...commonPropsType,
|
|
19
19
|
...ElButton.props,
|
|
20
|
-
plain: [String, Boolean]
|
|
20
|
+
plain: [String, Boolean],
|
|
21
|
+
circle: [String, Boolean]
|
|
21
22
|
})
|
|
22
23
|
const calcPorps = computed(() => {
|
|
23
24
|
const ret = Object.keys(ElButton.props).reduce((total, key) => {
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
<span ref={(e) => calcSpanRef.value = e} class="calc-span">{ modelValue.value }</span>
|
|
174
174
|
{
|
|
175
175
|
polyfillInputWrap(
|
|
176
|
-
<div
|
|
176
|
+
<div class="input-wrap" ref={(e) => inputWrapRef.value = e}>
|
|
177
177
|
<ElInput {...vmodelProps.value} {...{...normalAttrs.value, ...normalInputProps.value}}>
|
|
178
178
|
{
|
|
179
179
|
getInputSolts()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ElInputNumber v-bind="{...inputNumberProps, ...attrs}" @blur="normalValue" :class="[textAlignClass]" :key="updateKey" v-model="
|
|
2
|
+
<ElInputNumber v-bind="{...inputNumberProps, ...attrs}" @blur="normalValue" :class="[textAlignClass]" :key="updateKey" v-model="inputNumberValue"></ElInputNumber>
|
|
3
3
|
</template>
|
|
4
4
|
<script setup>
|
|
5
5
|
import { ElInputNumber } from 'element-plus'
|
|
@@ -13,6 +13,8 @@ const props = defineProps({
|
|
|
13
13
|
},
|
|
14
14
|
...ElInputNumber.props,
|
|
15
15
|
...commonPropsType,
|
|
16
|
+
step: [String, Number],
|
|
17
|
+
modeValue: [String, Number]
|
|
16
18
|
})
|
|
17
19
|
const textAlignClass = computed(() => {
|
|
18
20
|
return props.textAlign === 'right' ? 'text-right' :
|
|
@@ -32,10 +34,21 @@ const inputNumberProps = computed(() => {
|
|
|
32
34
|
if (props.config?.precise && !isNaN(props.config.minValue)) {
|
|
33
35
|
ret.precision = props.config.precise
|
|
34
36
|
}
|
|
37
|
+
if (ret.step) {
|
|
38
|
+
ret.step = parseFloat(ret.step)
|
|
39
|
+
}
|
|
35
40
|
return ret
|
|
36
41
|
})
|
|
37
42
|
const attrs = useAttrs()
|
|
38
43
|
const modeValue = defineModel()
|
|
44
|
+
const inputNumberValue = computed({
|
|
45
|
+
get() {
|
|
46
|
+
return parseFloat(modeValue.value)
|
|
47
|
+
},
|
|
48
|
+
set(val) {
|
|
49
|
+
modeValue.value = val
|
|
50
|
+
}
|
|
51
|
+
})
|
|
39
52
|
// 目前有问题,可以输入--跟e字符串
|
|
40
53
|
const updateKey = ref(false)
|
|
41
54
|
const normalValue = () => {
|
|
@@ -17,7 +17,9 @@ const modelValue = defineModel()
|
|
|
17
17
|
const props = defineProps({
|
|
18
18
|
...ElSelect.props,
|
|
19
19
|
...commonPropsType,
|
|
20
|
-
multiple: [String, Boolean]
|
|
20
|
+
multiple: [String, Boolean],
|
|
21
|
+
filterable: [String, Boolean],
|
|
22
|
+
multipleLimit: [String, Number],
|
|
21
23
|
})
|
|
22
24
|
const attrs = useAttrs()
|
|
23
25
|
|
package/src/index.jsx
CHANGED
|
@@ -128,7 +128,7 @@ export default {
|
|
|
128
128
|
type: String,
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
emits: ['update:modelValue'],
|
|
131
|
+
emits: ['update:modelValue', 'rootStoreChange'],
|
|
132
132
|
setup(props, { emit, attrs, expose }) {
|
|
133
133
|
const ruleExecuter = null
|
|
134
134
|
// const ruleExecuter = new RuleExecuter()
|
|
@@ -235,7 +235,14 @@ export default {
|
|
|
235
235
|
provide('buttonActions', props.buttonActions)
|
|
236
236
|
provide('components', toRef(props, 'components'))
|
|
237
237
|
provide('selects', toRef(props, 'selects'))
|
|
238
|
-
provide('rootValue',
|
|
238
|
+
provide('rootValue', computed({
|
|
239
|
+
get() {
|
|
240
|
+
return props.modelValue
|
|
241
|
+
},
|
|
242
|
+
set(val) {
|
|
243
|
+
emit('update:modelValue', val)
|
|
244
|
+
}
|
|
245
|
+
})) // 绑定进入的跟数据
|
|
239
246
|
provide('lang', toRef(props, 'lang'))
|
|
240
247
|
provide('dataLoad', dataLoad) // 是否可以开始执行规则初始化
|
|
241
248
|
provide('dialogComponents', props.dialogComponents) // 是否可以开始执行规则初始化
|
package/src/utils/const.js
CHANGED
|
@@ -151,14 +151,14 @@ export const commonPropsType = {
|
|
|
151
151
|
},
|
|
152
152
|
placeholder: {
|
|
153
153
|
type: String,
|
|
154
|
-
default: () =>
|
|
154
|
+
default: () => '',
|
|
155
155
|
getValue(config, props, modelValue, selects, lang) {
|
|
156
156
|
return (lang?.indexOf('zh') > -1 ? config.defPlacehold : config.defPlaceholdEn) || ''
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
placeholderEn: {
|
|
160
160
|
type: String,
|
|
161
|
-
default: () =>
|
|
161
|
+
default: () => '',
|
|
162
162
|
getValue(config, props, modelValue, selects, lang) {
|
|
163
163
|
return config.defPlaceholdEn
|
|
164
164
|
}
|
package/src/utils/render.jsx
CHANGED
|
@@ -831,15 +831,13 @@ function createFormLable(config, lang = 'zh') {
|
|
|
831
831
|
{required ? <span style="color: #f5222d; margin-right: 3px">*</span> : null}
|
|
832
832
|
<span>{lang.indexOf('zh') > -1 ? config.metaNameZh : config.metaNameEn}</span>
|
|
833
833
|
</span>
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
}
|
|
842
|
-
</ElTooltip>
|
|
834
|
+
{
|
|
835
|
+
config.hintFlag == '1' ? (
|
|
836
|
+
<ElTooltip effect="dark" content={lang.indexOf('zh') > -1 ? config.hintContentZh : config.hintContentEn} placement="top">
|
|
837
|
+
<span class="label-tip"><elIcon><QuestionFilled /></elIcon></span>
|
|
838
|
+
</ElTooltip>
|
|
839
|
+
) : null
|
|
840
|
+
}
|
|
843
841
|
</div>
|
|
844
842
|
)
|
|
845
843
|
}
|