resolver-egretimp-plus 0.0.256 → 0.0.258

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.256",
3
+ "version": "0.0.258",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -20,7 +20,7 @@ const props = defineProps({
20
20
  loadingcolor: String,
21
21
  })
22
22
  const calcPorps = computed(() => {
23
- return ['displayType', 'widgetSize', 'plain', 'color', 'loading', 'loadtype', 'loadingcolor'].reduce((ret, key) => {
23
+ return ['displayType', 'widgetSize', 'plain', 'color', 'loading', 'loadtype', 'loadingcolor', 'disabled'].reduce((ret, key) => {
24
24
  if (['plain', 'loading', 'loadtype'].includes(key)) {
25
25
  ret[key] = props[key] === '1' ? true : false
26
26
  } else if (key === 'displayType') {
@@ -117,10 +117,24 @@ watch(() => {
117
117
  immediate: true
118
118
  })
119
119
 
120
+ const inputProps = computed(() => {
121
+ return {
122
+ placeholder: lang?.value?.indexOf('zh') > -1 ? props.config?.defPlacehold : props.config?.defPlaceholdEn,
123
+ disabled: props.disabled
124
+ }
125
+ })
126
+
127
+ const onFocus = (e) => {
128
+ open.value = true
129
+ e.preventDefault()
130
+ e.stopPropagation()
131
+ e.target.blur()
132
+ }
133
+
120
134
  </script>
121
135
 
122
136
  <template>
123
- <cmi-input v-if="!calcProps.tiled" :value="valueDesc" suffixIcon @focus="open = true">
137
+ <cmi-input v-if="!calcProps.tiled" :value="valueDesc" suffixIcon @focus="onFocus" v-bind="{...attrs, ...inputProps}">
124
138
  <div slot="suffix-icon" v-if="suffixIcon">
125
139
  <component :is="`cmi-icon-${suffixIcon}`" color="#4E5969"></component>
126
140
  </div>
@@ -64,10 +64,24 @@ const onConfirm = (e) => {
64
64
  open.value = false
65
65
  }
66
66
 
67
+ const inputProps = computed(() => {
68
+ return {
69
+ placeholder: lang?.value?.indexOf('zh') > -1 ? props.config?.defPlacehold : props.config?.defPlaceholdEn,
70
+ disabled: props.disabled
71
+ }
72
+ })
73
+
74
+ const onFocus = (e) => {
75
+ open.value = true
76
+ e.preventDefault()
77
+ e.stopPropagation()
78
+ e.target.blur()
79
+ }
80
+
67
81
  </script>
68
82
 
69
83
  <template>
70
- <cmi-input :value="formatValue" suffixIcon @focus="open = true">
84
+ <cmi-input :value="formatValue" suffixIcon @focus="onFocus" v-bind="{...attrs, ...inputProps}">
71
85
  <div slot="suffix-icon" v-if="suffixIcon">
72
86
  <component :is="`cmi-icon-${suffixIcon}`" color="#4E5969"></component>
73
87
  </div>
@@ -32,6 +32,7 @@ const getItemValue = (idx) => {
32
32
  const getDropdownItemProps = (config, idx) => {
33
33
  return {
34
34
  value: getItemValue(idx),
35
+ disabled: props.disabled,
35
36
  title: config?.label,
36
37
  activetype: props.config?.activetype,
37
38
  options: ((selects?.value && selects?.value?.[config?.selectKey]) || []).map(option => {
@@ -105,7 +105,8 @@ const modelvalDesc = computed(() => {
105
105
 
106
106
  const inputProps = computed(() => {
107
107
  return {
108
- placeholder: lang?.value?.indexOf('zh') > -1 ? props.config?.defPlacehold : props.config?.defPlaceholdEn
108
+ placeholder: lang?.value?.indexOf('zh') > -1 ? props.config?.defPlacehold : props.config?.defPlaceholdEn,
109
+ disabled: props.disabled
109
110
  }
110
111
  })
111
112
 
@@ -22,7 +22,7 @@ const onChange = (e) => {
22
22
  <cmi-radio-group :value="modelValue" v-bind="{ ...attrs, ...calcProps}" @change="onChange">
23
23
  <cmi-radio
24
24
  v-for="option in props.options" :key="option.columnValue"
25
- :disabled="option.columnStatus == '0' || option.columnStatus == '2'"
25
+ :disabled="props.disabled || option.columnStatus == '0' || option.columnStatus == '2'"
26
26
  :name="option.columnValue" :label="lang.indexOf('zh') > -1 ? option.columnDesc_zh : option.columnDesc"
27
27
  />
28
28
  </cmi-radio-group>
@@ -124,7 +124,7 @@
124
124
  }
125
125
  }
126
126
  &.el-collapse-item.is-disabled .el-collapse-item__header {
127
- color: var(--el-collapse-header-height);
127
+ color: var(--el-collapse-header-text-color);
128
128
  }
129
129
  &.el-collapse-item.is-disabled .el-collapse-item__header {
130
130
  cursor: default;
@@ -37,7 +37,7 @@ export const NOT_NEED_FORM_ITEM_META_TYPE = [
37
37
  'cmi-divider'
38
38
  ]
39
39
  export const EXECTE_CLICK_EVENT_COMPONENTS = ['ElInput', 'ElButton', 'CmiInput', 'CmiButton']
40
- export const TRANS_CELL_COMPONETS = ['CmiInput', 'CmiSelect']
40
+ export const TRANS_CELL_COMPONETS = ['CmiInput', 'CmiSelect', 'CmiPicker']
41
41
  export const NOT_NEED_COL_ITEM_META_TYPE = ['CustomComponentTabPane', 'CustomComponentDialog', 'CustomComponentCol', 'CustomComponentTabPaneH5']
42
42
  export const MULTI_PAGE_META_LIST_TYPES = ['CustomComponentTable']
43
43
  export const SPECIAL_SET_FULL_WIDTH_ITEM_META_TYPE = ['el-select', 'el-date-picker', 'el-time-picker', 'el-time-select', 'el-cascader', 'el-input-number', 'CustomComponentTree', 'CustomComponentSteps']
@@ -981,7 +981,7 @@ function isTransCellMobile(config, disabled) {
981
981
  }
982
982
 
983
983
  function isHidden({config}) {
984
- return (typeof config.hidden === 'boolean' && config.hidden) || config.hidden === '1' || config.collapseHidden == '1'
984
+ return (typeof config.hidden === 'boolean' && config.hidden) || config.hidden == '1' || config.collapseHidden == '1'
985
985
  }
986
986
  // 如果父级有一个是hidden了,那就表示hidden了
987
987
  function isChainHidden({config}) {