@steedos-widgets/amis-object 6.3.8 → 6.3.9
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/amis-object.cjs.css +3 -0
- package/dist/amis-object.cjs.js +51 -14
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +3 -0
- package/dist/amis-object.esm.js +51 -14
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +3 -0
- package/dist/amis-object.umd.js +15 -12
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +21 -21
- package/dist/meta.js +20 -8
- package/package.json +3 -3
package/dist/amis-object.cjs.css
CHANGED
|
@@ -2506,6 +2506,9 @@ body.steedos {
|
|
|
2506
2506
|
margin: 0 0.5rem;
|
|
2507
2507
|
margin-bottom: 0.5rem;
|
|
2508
2508
|
}
|
|
2509
|
+
.steedos-header-container-line-two .ant-dropdown-placement-bottomLeft {
|
|
2510
|
+
left: -15px !important;
|
|
2511
|
+
}
|
|
2509
2512
|
|
|
2510
2513
|
#steedosGlobalFooterRoot .steedos-global-footer {
|
|
2511
2514
|
height: 4rem;
|
package/dist/amis-object.cjs.js
CHANGED
|
@@ -17064,9 +17064,9 @@ async function getFieldSearchable(perField, permissionFields, ctx){
|
|
|
17064
17064
|
_field.precision = field.precision;
|
|
17065
17065
|
_field.scale = field.scale;
|
|
17066
17066
|
}
|
|
17067
|
-
else if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17068
|
-
|
|
17069
|
-
}
|
|
17067
|
+
// else if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17068
|
+
// _field.type = field.data_type;
|
|
17069
|
+
// }
|
|
17070
17070
|
|
|
17071
17071
|
if(_field.type === 'number' || _field.type === 'currency'){
|
|
17072
17072
|
_field.type = 'input-array';
|
|
@@ -17194,8 +17194,8 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
17194
17194
|
/*
|
|
17195
17195
|
* @Author: baozhoutao@steedos.com
|
|
17196
17196
|
* @Date: 2022-05-26 16:02:08
|
|
17197
|
-
* @LastEditors:
|
|
17198
|
-
* @LastEditTime: 2024-
|
|
17197
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
17198
|
+
* @LastEditTime: 2024-09-11 15:27:32
|
|
17199
17199
|
* @Description:
|
|
17200
17200
|
*/
|
|
17201
17201
|
|
|
@@ -17251,17 +17251,17 @@ const getSection = async (formFields, permissionFields, fieldSchemaArray, sectio
|
|
|
17251
17251
|
// console.log(`perField.type object ===> field`, field)
|
|
17252
17252
|
}
|
|
17253
17253
|
if (field.name.indexOf(".") < 0) {
|
|
17254
|
-
let _field = _.cloneDeep(field);
|
|
17255
|
-
if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17256
|
-
|
|
17257
|
-
}
|
|
17254
|
+
// let _field = _.cloneDeep(field);
|
|
17255
|
+
// if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17256
|
+
// _field.type = field.data_type;
|
|
17257
|
+
// }
|
|
17258
17258
|
if(field.type === "steedos-field"){
|
|
17259
17259
|
// 如果是steedos-field则不需要通过convertSFieldToAmisField函数转换,因为steedos-field组件会转换
|
|
17260
|
-
fieldSetBody.push(
|
|
17260
|
+
fieldSetBody.push(field);
|
|
17261
17261
|
}
|
|
17262
17262
|
else {
|
|
17263
17263
|
ctx.__formFields = formFields;
|
|
17264
|
-
const amisField = await convertSFieldToAmisField(
|
|
17264
|
+
const amisField = await convertSFieldToAmisField(field, field.readonly, ctx);
|
|
17265
17265
|
// 如果steedos-field稳定了,可以放开下面的代码直接用组件统一渲染字段
|
|
17266
17266
|
// const amisField = {
|
|
17267
17267
|
// "type": "steedos-field",
|
|
@@ -25487,8 +25487,8 @@ var AmisProvider = function (props) { return __awaiter(void 0, void 0, void 0, f
|
|
|
25487
25487
|
/*
|
|
25488
25488
|
* @Author: baozhoutao@steedos.com
|
|
25489
25489
|
* @Date: 2022-09-01 14:44:57
|
|
25490
|
-
* @LastEditors:
|
|
25491
|
-
* @LastEditTime: 2024-
|
|
25490
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
25491
|
+
* @LastEditTime: 2024-09-09 14:53:25
|
|
25492
25492
|
* @Description:
|
|
25493
25493
|
*/
|
|
25494
25494
|
var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -25777,7 +25777,7 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
25777
25777
|
"api": {
|
|
25778
25778
|
"method": "get",
|
|
25779
25779
|
"cache": "10000",
|
|
25780
|
-
"url": "${context.rootUrl}/service/api/apps/menus?mobile=
|
|
25780
|
+
"url": "${context.rootUrl}/service/api/apps/menus?mobile=" + isMobile,
|
|
25781
25781
|
"headers": {
|
|
25782
25782
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
25783
25783
|
},
|
|
@@ -26935,6 +26935,14 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
|
|
|
26935
26935
|
}
|
|
26936
26936
|
}
|
|
26937
26937
|
editorClassName = "mx-10";
|
|
26938
|
+
if (config.type === 'formula' || config.type === 'summary') {
|
|
26939
|
+
return [2 /*return*/, {
|
|
26940
|
+
type: 'input-text',
|
|
26941
|
+
label: "".concat(config.label, "(\u65B0\u5EFA\u3001\u7F16\u8F91\u65F6\u4E0D\u53EF\u89C1)"),
|
|
26942
|
+
className: 'mx-10',
|
|
26943
|
+
readonly: true
|
|
26944
|
+
}];
|
|
26945
|
+
}
|
|
26938
26946
|
}
|
|
26939
26947
|
if (_$1.isString(ctx)) {
|
|
26940
26948
|
ctx = JSON.parse(ctx);
|
|
@@ -27857,6 +27865,35 @@ var createFieldFunction = function (type) {
|
|
|
27857
27865
|
if (!props.config.name) {
|
|
27858
27866
|
props.config.name = "f".concat(generateRandomString(5));
|
|
27859
27867
|
}
|
|
27868
|
+
if (props.config.type === 'textarea') {
|
|
27869
|
+
if (!props.config.rows) {
|
|
27870
|
+
props.config.rows = 3;
|
|
27871
|
+
}
|
|
27872
|
+
}
|
|
27873
|
+
if (props.config.type === 'select') {
|
|
27874
|
+
if (!props.config.options) {
|
|
27875
|
+
props.config.options = [{
|
|
27876
|
+
label: '选项1',
|
|
27877
|
+
value: 'v1'
|
|
27878
|
+
}, {
|
|
27879
|
+
label: '选项2',
|
|
27880
|
+
value: 'v2'
|
|
27881
|
+
}];
|
|
27882
|
+
}
|
|
27883
|
+
}
|
|
27884
|
+
if (_$1.includes(['number', 'currency', 'percent', 'summary'], props.config.type)) {
|
|
27885
|
+
if (!props.config.precision) {
|
|
27886
|
+
props.config.precision = 18;
|
|
27887
|
+
}
|
|
27888
|
+
if (!props.config.scale && props.config.scale != 0) {
|
|
27889
|
+
props.config.scale = 2;
|
|
27890
|
+
}
|
|
27891
|
+
}
|
|
27892
|
+
if (props.config.type === 'autonumber') {
|
|
27893
|
+
if (!props.config.formula) {
|
|
27894
|
+
props.config.formula = '自动编号{YYYY}{MM}{DD}{000}';
|
|
27895
|
+
}
|
|
27896
|
+
}
|
|
27860
27897
|
if (_$1.has(props, '$$editor')) {
|
|
27861
27898
|
// props.config = Object.assign({}, props.config, {label: `${props.config.label}:${props.config.name}`})
|
|
27862
27899
|
if (props.config.hidden || props.config.visible_on === '{{false}}') {
|