agilebuilder-ui 1.0.92 → 1.0.94

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": "agilebuilder-ui",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -1127,7 +1127,7 @@ const apis = {
1127
1127
  gridParams.superGrid.clearSelection()
1128
1128
  }
1129
1129
  gridParams.isCreateRow = false
1130
- if (isRestore !== undefined && isRestore === true) {
1130
+ if (isRestore === undefined || !isRestore) {
1131
1131
  // 表示是删除操作,执行删除记录后回调
1132
1132
  if (isEditOptionFunction('afterDelete', listCode)) {
1133
1133
  const isSubTableShowPage = gridParams.isSubTableShowPage
@@ -20,6 +20,7 @@
20
20
  :additional-param-map="additionalParamMap"
21
21
  :listCode="listCode"
22
22
  :component-id="componentId"
23
+ :page-context="pageContext"
23
24
  @change="cellEvent('change', $event)"
24
25
  @input="cellEvent('input', $event)"
25
26
  />
@@ -742,25 +743,29 @@ export default {
742
743
  }
743
744
  }
744
745
  this.getDateAllowTime()
745
- if(!this.gridOptions.customRules){
746
+ if (!this.gridOptions.customRules) {
746
747
  this.gridOptions.customRules = {}
747
748
  }
748
- this.$watch('gridOptions.customRules.'+this.column.prop,
749
- (newVal, oldVal)=> {
750
- this.packageCustomRules(newVal)
751
- },
752
- {
753
- immediate: true,
754
- deep: true,
755
- })
756
- this.$watch('gridOptions.customRules._all_fields',
757
- (newVal, oldVal)=> {
758
- this.packageCustomRules(newVal)
759
- },
760
- {
761
- immediate: true,
762
- deep: true,
763
- })
749
+ this.$watch(
750
+ 'gridOptions.customRules.' + this.column.prop,
751
+ (newVal, oldVal) => {
752
+ this.packageCustomRules(newVal)
753
+ },
754
+ {
755
+ immediate: true,
756
+ deep: true
757
+ }
758
+ )
759
+ this.$watch(
760
+ 'gridOptions.customRules._all_fields',
761
+ (newVal, oldVal) => {
762
+ this.packageCustomRules(newVal)
763
+ },
764
+ {
765
+ immediate: true,
766
+ deep: true
767
+ }
768
+ )
764
769
  },
765
770
  mounted() {
766
771
  // 去掉该监听,否则导致焦点总是跳到第一个编辑框
@@ -1824,13 +1829,13 @@ export default {
1824
1829
  },
1825
1830
  packageCustomRules(columnRule) {
1826
1831
  console.log('packageCustomRules---columnRule=', columnRule)
1827
- if(!columnRule){
1832
+ if (!columnRule) {
1828
1833
  return
1829
1834
  }
1830
- if(columnRule.disabled !== undefined){
1835
+ if (columnRule.disabled !== undefined) {
1831
1836
  this.$emit('change-disabled', columnRule.disabled)
1832
1837
  }
1833
- if(columnRule.required !== undefined){
1838
+ if (columnRule.required !== undefined) {
1834
1839
  this.$emit('change-required', columnRule.required)
1835
1840
  }
1836
1841
  }
@@ -119,6 +119,7 @@
119
119
  :value="getCellValue(row)"
120
120
  :additional-param-map="additionalParamMap"
121
121
  :additional-settings="additionalSettings"
122
+ :page-context="options?.pageContext"
122
123
  />
123
124
  </span>
124
125
  <!-- 自定义格式的时候 -->
@@ -155,6 +156,7 @@
155
156
  :listCode="listCode"
156
157
  :component-id="componentId"
157
158
  :additional-settings="additionalSettings"
159
+ :page-context="options?.pageContext"
158
160
  @prohibitToEdit="prohibitToEdit"
159
161
  @refresh-list="refreshList"
160
162
  /></span>