resolver-egretimp-plus 0.0.267 → 0.0.269

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.267",
3
+ "version": "0.0.269",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -20,7 +20,7 @@ import { h } from 'vue'
20
20
  const props = defineProps({
21
21
  ...commonPropsType,
22
22
  ...TabPane.props,
23
- hidden: [String, Boolean]
23
+ hidden: [String, Boolean, Number]
24
24
  })
25
25
  const attrs = useAttrs()
26
26
 
@@ -2,6 +2,9 @@
2
2
  --el-checkbox-border-radius: 4px;
3
3
  --el-checkbox-input-height: 16px;
4
4
  --el-checkbox-input-width: 16px;
5
+ --el-checkbox-disabled-checked-input-fill: #646A73;
6
+ --el-checkbox-disabled-checked-input-border-color: #646A73;
7
+ --el-checkbox-disabled-checked-icon-color: #FFFFFF;
5
8
  }
6
9
  .el-checkbox__inner::after {
7
10
  border: 2px solid transparent;
@@ -690,10 +690,25 @@ function generateFormItemPc (config, lang, compProps, params,) {
690
690
  if (isPlainColumn(config, compProps.disabled)) {
691
691
  return node
692
692
  }
693
-
694
- if (!config.needformItem && !config.showFormItem) {
695
- return node
693
+
694
+ let showFormItem = null
695
+ if (hasOwn(config, 'showFormItem')) {
696
+ if (typeof config.showFormItem === 'boolean') {
697
+ showFormItem = config.showFormItem
698
+ } else {
699
+ showFormItem = config.showFormItem == '1'
700
+ }
696
701
  }
702
+ if (showFormItem !== null) {
703
+ if (!showFormItem) {
704
+ return node
705
+ }
706
+ } else {
707
+ if (!config.needformItem) {
708
+ return node
709
+ }
710
+ }
711
+
697
712
  const slots = {}
698
713
  slots[slotName] = () => node
699
714
  if (isFormItem && slotName !== 'label') {
@@ -724,9 +739,25 @@ function generateFormItemH5(config, lang, compProps, params = {}) {
724
739
  if (isTransCellMobile(config, compProps?.disabled)) {
725
740
  return node
726
741
  }
727
- if (!config.needformItem && !config.showFormItem) {
728
- return node
742
+
743
+ let showFormItem = null
744
+ if (hasOwn(config, 'showFormItem')) {
745
+ if (typeof config.showFormItem === 'boolean') {
746
+ showFormItem = config.showFormItem
747
+ } else {
748
+ showFormItem = config.showFormItem == '1'
749
+ }
729
750
  }
751
+ if (showFormItem !== null) {
752
+ if (!showFormItem) {
753
+ return node
754
+ }
755
+ } else {
756
+ if (!config.needformItem) {
757
+ return node
758
+ }
759
+ }
760
+
730
761
  return (
731
762
  <CmiFormItem {...props}>{node}</CmiFormItem>
732
763
  )