@steedos/service-plugin-amis 2.3.0-beta.36 → 2.3.0-beta.37

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.
@@ -2,14 +2,14 @@
2
2
  * @Author: baozhoutao@steedos.com
3
3
  * @Date: 2022-05-20 17:42:20
4
4
  * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2022-07-26 16:52:16
5
+ * @LastEditTime: 2022-10-28 11:01:51
6
6
  * @Description: 提供辅助函数
7
7
  */
8
8
  (function(){
9
9
  const filtersAmisSchema = {
10
10
  "type": "page",
11
11
  "title": t("creator_filters"),
12
- "name": "steedos-filters",
12
+ "name": "steedosFiltersPage",
13
13
  "body": [
14
14
  {
15
15
  "type": "form",
@@ -30,6 +30,7 @@
30
30
  }
31
31
  ],
32
32
  "id": "filtersForm",
33
+ "name": "filtersForm",
33
34
  "wrapWithPanel": false
34
35
  }
35
36
  ],
@@ -90,16 +91,16 @@
90
91
  mask: false,
91
92
  width: 550,
92
93
  style: null,
93
- extra: React.createElement(
94
+ extra: React17.createElement(
94
95
  SteedosUI.components.Space,
95
96
  {},
96
97
  [
97
- React.createElement(SteedosUI.components.Button, {
98
+ React17.createElement(SteedosUI.components.Button, {
98
99
  onClick: function(){
99
100
  SteedosUI.getRef(pageName)?.close();
100
101
  }
101
102
  } , t('cancel')),
102
- React.createElement(SteedosUI.components.Button, {
103
+ React17.createElement(SteedosUI.components.Button, {
103
104
  onClick: canSave ? function(){
104
105
 
105
106
  const formValues = window.amisScopes[pageName].getComponentById("filtersForm").getValues()
@@ -137,7 +138,7 @@
137
138
  });
138
139
  }
139
140
  } : function(){
140
- const formValues = window.amisScopes[pageName].getComponentById("filtersForm").getValues()
141
+ const formValues = window.amisScopes[pageName].getComponentByName("filtersForm").getValues();
141
142
  const filters = window.amisConvert.conditionsToFilters(formValues.filters);
142
143
  Session.set("filter_items", filters);
143
144
  SteedosUI.getRef(pageName)?.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.3.0-beta.36",
3
+ "version": "2.3.0-beta.37",
4
4
  "main": "package.service.js",
5
5
  "scripts": {
6
6
  "build": "node .scripts/build.tailwind.js"
@@ -10,5 +10,5 @@
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
- "gitHead": "1fef67d04c0796a7453dbea7f8101514f155235f"
13
+ "gitHead": "5e1dc58290142d1d7deb0fbe2e171d79c5029cdd"
14
14
  }