@cloudbase/weda-ui-mp 3.28.0 → 3.29.0
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.
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: WdTd;
|
|
3
|
-
src: url('https://comp-public-replace-
|
|
4
|
-
url('https://comp-public-replace-
|
|
5
|
-
|
|
6
|
-
url('https://comp-public-replace-
|
|
7
|
-
url('https://comp-public-replace-
|
|
8
|
-
url('https://comp-public-replace-1303824488-cos.weda.tencent.com/icon/0.0.7/t.svg') format('svg');
|
|
3
|
+
src: url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.eot'),
|
|
4
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t_iefix.eot') format('embedded-opentype'),
|
|
5
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.woff') format('woff'),
|
|
6
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.ttf') format('truetype'),
|
|
7
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.svg') format('svg');
|
|
9
8
|
font-weight: 400;
|
|
10
9
|
font-style: normal;
|
|
11
10
|
}
|
|
@@ -9,6 +9,7 @@ import { WdCompError } from '../../utils/error';
|
|
|
9
9
|
import { getErrorObjectFromValidateResult, getFormDataFromItemMap } from './form-utils';
|
|
10
10
|
import lodashGet from 'lodash.get';
|
|
11
11
|
import debounce from '../../utils/debounce';
|
|
12
|
+
import { convertMethodParam } from '../../utils/getFormLegacy';
|
|
12
13
|
|
|
13
14
|
const formTypeWithInitValue = ['edit', 'read'];
|
|
14
15
|
const debounceMs = 100;
|
|
@@ -82,8 +83,13 @@ Component({
|
|
|
82
83
|
},
|
|
83
84
|
},
|
|
84
85
|
methods: {
|
|
85
|
-
setValue(
|
|
86
|
-
|
|
86
|
+
setValue(_data, setNull) {
|
|
87
|
+
if (typeof _data !== 'object' || _data === null) {
|
|
88
|
+
console.warn('setValue data need expect a object but got null', _data);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
_data = convertMethodParam(_data);
|
|
92
|
+
const data = Object.freeze(JSON.parse(JSON.stringify(_data)));
|
|
87
93
|
// Object.entries(that.data._formItemMap).forEach(())
|
|
88
94
|
Object.keys(this.data._formItemMap).forEach((name) => {
|
|
89
95
|
const items = this.data._formItemMap[name];
|
package/package.json
CHANGED
package/style/wd-font-icon.wxss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: WdTd;
|
|
3
|
-
src: url('https://comp-public-replace-
|
|
4
|
-
url('https://comp-public-replace-
|
|
3
|
+
src: url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.eot'),
|
|
4
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t_iefix.eot')
|
|
5
5
|
format('embedded-opentype'),
|
|
6
|
-
url('https://comp-public-replace-
|
|
7
|
-
url('https://comp-public-replace-
|
|
8
|
-
url('https://comp-public-replace-
|
|
6
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.woff') format('woff'),
|
|
7
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.ttf') format('truetype'),
|
|
8
|
+
url('https://comp-public-replace-cos.cloudbase.net/icon/0.0.7/t.svg') format('svg');
|
|
9
9
|
font-weight: 400;
|
|
10
10
|
font-style: normal;
|
|
11
11
|
}
|