@zscreate/zhxy-app-component 1.0.236 → 1.0.237
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.
|
@@ -584,7 +584,7 @@ import LbPicker from '../../components/lb-picker/index.vue';
|
|
|
584
584
|
import MyPicker from '../../components/dying318-picker/Pickers.vue';
|
|
585
585
|
import UniRate from '../../components/uni-rate/uni-rate.vue';
|
|
586
586
|
import DataTable from "../../components/DataTable/DataTable.vue";
|
|
587
|
-
|
|
587
|
+
import { run } from "../../utils/formula_run"
|
|
588
588
|
import richEditor from '../rich-editor/index.vue';
|
|
589
589
|
import Pubsub from 'pubsub-js'
|
|
590
590
|
import {
|
|
@@ -607,7 +607,6 @@ import XpPicker from "../xp-picker/xp-picker.vue";
|
|
|
607
607
|
import signatrueWrite from "../signatrue-write/signatrue-write.vue";
|
|
608
608
|
import FullModal from "../fullModal/fullModal.vue";
|
|
609
609
|
import Responsibility from "./components/responsibility.vue";
|
|
610
|
-
import { run } from "../../utils/formula_run";
|
|
611
610
|
|
|
612
611
|
export default {
|
|
613
612
|
options: { styleIsolation: 'shared' },
|
|
@@ -1780,6 +1779,15 @@ export default {
|
|
|
1780
1779
|
}
|
|
1781
1780
|
},
|
|
1782
1781
|
dataModel(v) {
|
|
1782
|
+
let defaultValue = this.widget.options?.defaultValue
|
|
1783
|
+
if (String(defaultValue).startsWith('script:')) {
|
|
1784
|
+
defaultValue = defaultValue.replace('script:', '')
|
|
1785
|
+
const tempValue = { value: '' }
|
|
1786
|
+
run(`tempValue.value = ${defaultValue}`, {'this': this, tempValue})
|
|
1787
|
+
this.dataModel = tempValue.value
|
|
1788
|
+
this.widget.options.defaultValue = ''
|
|
1789
|
+
return
|
|
1790
|
+
}
|
|
1783
1791
|
if (this.tableKey) {
|
|
1784
1792
|
this.tableValueSet(v);
|
|
1785
1793
|
} else {
|