resolver-egretimp-plus 0.0.56 → 0.0.58

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.56",
3
+ "version": "0.0.58",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -179,7 +179,6 @@ export default {
179
179
  appContext
180
180
  }
181
181
  attrs?.onClick?.call(context, e) // 如果配置中有点击事件
182
-
183
182
  executeEventOrchestration({
184
183
  props,
185
184
  axiosInstance: _axiosInstance?.value,
@@ -5,6 +5,10 @@ import { useRoute } from 'vue-router'
5
5
 
6
6
  const appContext = getCurrentInstance()?.appContext
7
7
 
8
+ defineOptions({
9
+ inheritAttrs: false
10
+ })
11
+
8
12
  const props = defineProps({
9
13
  ...commonPropsType,
10
14
  displayType: String,
@@ -31,7 +35,13 @@ const calcPorps = computed(() => {
31
35
  })
32
36
 
33
37
  const attrs = useAttrs()
34
-
38
+ const calcAttrs = computed(() => {
39
+ const props = {
40
+ ...attrs,
41
+ }
42
+ delete props.onClick
43
+ return props
44
+ })
35
45
  const lang = inject('lang')
36
46
 
37
47
  const label = computed(() => {
@@ -91,7 +101,7 @@ const buttonAction = (...arg) => {
91
101
  </script>
92
102
 
93
103
  <template>
94
- <cmi-button @click="buttonAction" v-bind="{ ...attrs, ...calcPorps,}">
104
+ <cmi-button @click="buttonAction" v-bind="{ ...calcAttrs, ...calcPorps,}">
95
105
  {{label}}
96
106
  </cmi-button>
97
107
  </template>
@@ -15,13 +15,13 @@ const inputProps = computed(() => {
15
15
  min: props.config?.min,
16
16
  minlength: props.config?.minlength,
17
17
  max: props.config?.max,
18
- maxlength: props.config?.maxlength,
18
+ maxlength: props.config?.maxLength,
19
19
  disabled: props.disabled,
20
20
  readonly: props.config?.readonly ==='1',
21
21
  required: props.required,
22
22
  errormsg: props.config?.errormsg,
23
23
  clearable: props.clearable,
24
- showWordLimit: props.config?.showWordLimit === '1',
24
+ showWordLimit: props.config?.showWordLimit === '1' && props.config?.maxLength,
25
25
  showPassword: props.config?.showPassword === '1',
26
26
  prefixIcon: props.config?.prefixIcon,
27
27
  suffixIcon: props.config?.suffixIcon,
@@ -1,4 +1,4 @@
1
- import { LCP_LOGIN } from "../api/builtIn"
1
+ import { GET_SYS_PARAM_CACHE, LCP_LOGIN, QUERY_PAGE_CONFIG_DATA } from "../api/builtIn"
2
2
 
3
3
  export const USER_NAME = 'lcpsupport'
4
4
  export const PASSWORD = '8ik,*IK<'
@@ -6,5 +6,7 @@ export const USER_TYPE = '1'
6
6
  export const AUTH_CODE = '9887'
7
7
 
8
8
  export const NOT_AUTH_APIS = [
9
- LCP_LOGIN
9
+ LCP_LOGIN,
10
+ GET_SYS_PARAM_CACHE,
11
+ QUERY_PAGE_CONFIG_DATA
10
12
  ]