agilebuilder-ui 1.0.90-tmp183 → 1.0.90-tmp185
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/lib/super-ui.js +11625 -11623
- package/lib/super-ui.umd.cjs +64 -64
- package/package.json +1 -1
- package/packages/super-grid/src/dynamic-input.vue +25 -20
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:parent="parentFormData"
|
|
15
15
|
:prop="column.prop"
|
|
16
16
|
:row="row"
|
|
17
|
+
:page-context="gridOptions?.pageContext"
|
|
17
18
|
:row-index="position ? position.row : null"
|
|
18
19
|
:select-options="options"
|
|
19
20
|
:value="innerValue"
|
|
@@ -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(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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
|
}
|