@cloudbase/weda-ui-mp 3.13.6 → 3.13.7
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/components/dataView/index.js +7 -4
- package/components/dataView/index.wxml +1 -1
- package/components/form/form/wd-form.wxss +1 -0
- package/components/wd-form/wd-form.wxss +1 -0
- package/components/wd-form-item/wd-form-item.wxss +1 -0
- package/components/wd-form-item-obj/wd-form-item.wxss +1 -0
- package/components/wd-input/inner-input/wd-input.wxss +1 -0
- package/components/wd-progress/wd-progress.wxss +1 -0
- package/components/wd-rating/wd-rating.wxss +1 -0
- package/components/wd-switch/wd-switch.wxss +1 -0
- package/components/wd-tag-select/wd-tag-select.wxss +1 -0
- package/package.json +1 -1
|
@@ -68,6 +68,7 @@ Component({
|
|
|
68
68
|
},
|
|
69
69
|
_dataNullRef: { current: {} }, // 将最近的对象属性设置null后存储下来
|
|
70
70
|
_oldData: undefined,
|
|
71
|
+
_dataSourceData: [],
|
|
71
72
|
},
|
|
72
73
|
methods: {
|
|
73
74
|
handleEvent: function (params) {
|
|
@@ -105,10 +106,7 @@ Component({
|
|
|
105
106
|
record: this.data._oldData,
|
|
106
107
|
refresh,
|
|
107
108
|
deleteOne,
|
|
108
|
-
dataSourceVersion:
|
|
109
|
-
this.properties.datasource?.extra?.methodName === 'wedaGetRecordsV2'
|
|
110
|
-
? 'v2'
|
|
111
|
-
: 'v1',
|
|
109
|
+
dataSourceVersion: this.properties.datasource?.extra?.methodName === 'wedaGetRecordsV2' ? 'v2' : 'v1',
|
|
112
110
|
});
|
|
113
111
|
},
|
|
114
112
|
},
|
|
@@ -116,6 +114,11 @@ Component({
|
|
|
116
114
|
_oldData: function () {
|
|
117
115
|
this.updateWidgetAPI();
|
|
118
116
|
},
|
|
117
|
+
dataSourceData: function (dataSourceData) {
|
|
118
|
+
if (!equal(dataSourceData, this.data._dataSourceData)) {
|
|
119
|
+
this.setData({ _dataSourceData: [].concat(dataSourceData) });
|
|
120
|
+
}
|
|
121
|
+
},
|
|
119
122
|
},
|
|
120
123
|
lifetimes: {
|
|
121
124
|
attached: function () {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
className="weda-data-view__container {{className}}"
|
|
4
4
|
style="{{style}}"
|
|
5
5
|
datasource="{{datasource}}"
|
|
6
|
-
dataSourceData="{{
|
|
6
|
+
dataSourceData="{{_dataSourceData}}"
|
|
7
7
|
bindConnectMetadata="{{bindConnectMetadata}}"
|
|
8
8
|
connectorMethod="{{connectorMethod}}"
|
|
9
9
|
connectorParams="{{connectorParams}}"
|