yy-forms 1.0.2 → 1.0.3
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/dist/index.esm.js
CHANGED
|
@@ -2781,10 +2781,10 @@ function GlobalSettings(_ref) {
|
|
|
2781
2781
|
globalWidgets = _useStore.widgets,
|
|
2782
2782
|
frProps = _useStore.frProps,
|
|
2783
2783
|
_useStore$userProps = _useStore.userProps,
|
|
2784
|
-
userProps = _useStore$userProps === void 0 ? {} : _useStore$userProps,
|
|
2785
2784
|
mapping = _useStore.mapping;
|
|
2786
2785
|
var setGlobal = useGlobal();
|
|
2787
|
-
|
|
2786
|
+
// const globalSettings = userProps.globalSettings || defaultGlobalSettings(t);
|
|
2787
|
+
|
|
2788
2788
|
var onDataChange = function onDataChange(value) {
|
|
2789
2789
|
setInnerUpdate(!!Object.keys(value).length);
|
|
2790
2790
|
setGlobal({
|
|
@@ -2809,7 +2809,7 @@ function GlobalSettings(_ref) {
|
|
|
2809
2809
|
}
|
|
2810
2810
|
}, /*#__PURE__*/React.createElement(FormRender, {
|
|
2811
2811
|
form: form,
|
|
2812
|
-
schema:
|
|
2812
|
+
schema: defaultGlobalSettings(t),
|
|
2813
2813
|
watch: {
|
|
2814
2814
|
'#': function _(v) {
|
|
2815
2815
|
return onDataChange(v);
|
package/dist/index.js
CHANGED
|
@@ -2808,10 +2808,10 @@ function GlobalSettings(_ref) {
|
|
|
2808
2808
|
globalWidgets = _useStore.widgets,
|
|
2809
2809
|
frProps = _useStore.frProps,
|
|
2810
2810
|
_useStore$userProps = _useStore.userProps,
|
|
2811
|
-
userProps = _useStore$userProps === void 0 ? {} : _useStore$userProps,
|
|
2812
2811
|
mapping = _useStore.mapping;
|
|
2813
2812
|
var setGlobal = useGlobal();
|
|
2814
|
-
|
|
2813
|
+
// const globalSettings = userProps.globalSettings || defaultGlobalSettings(t);
|
|
2814
|
+
|
|
2815
2815
|
var onDataChange = function onDataChange(value) {
|
|
2816
2816
|
setInnerUpdate(!!Object.keys(value).length);
|
|
2817
2817
|
setGlobal({
|
|
@@ -2836,7 +2836,7 @@ function GlobalSettings(_ref) {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
}, /*#__PURE__*/React__default['default'].createElement(FormRender__default['default'], {
|
|
2838
2838
|
form: form,
|
|
2839
|
-
schema:
|
|
2839
|
+
schema: defaultGlobalSettings(t),
|
|
2840
2840
|
watch: {
|
|
2841
2841
|
'#': function _(v) {
|
|
2842
2842
|
return onDataChange(v);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export default function GlobalSettings({ widgets }) {
|
|
|
15
15
|
mapping,
|
|
16
16
|
} = useStore();
|
|
17
17
|
const setGlobal = useGlobal();
|
|
18
|
-
const globalSettings = userProps.globalSettings || defaultGlobalSettings(t);
|
|
18
|
+
// const globalSettings = userProps.globalSettings || defaultGlobalSettings(t);
|
|
19
19
|
|
|
20
20
|
const onDataChange = value => {
|
|
21
21
|
setInnerUpdate(!!Object.keys(value).length);
|
|
@@ -38,7 +38,7 @@ export default function GlobalSettings({ widgets }) {
|
|
|
38
38
|
<div style={{ paddingRight: 24 }}>
|
|
39
39
|
<FormRender
|
|
40
40
|
form={form}
|
|
41
|
-
schema={
|
|
41
|
+
schema={defaultGlobalSettings(t)}
|
|
42
42
|
watch={{
|
|
43
43
|
'#': v => onDataChange(v),
|
|
44
44
|
}}
|