@steedos-widgets/amis-object 6.3.8 → 6.3.10
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.esm.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.esm.js
CHANGED
|
@@ -17036,9 +17036,9 @@ async function getFieldSearchable(perField, permissionFields, ctx){
|
|
|
17036
17036
|
_field.precision = field.precision;
|
|
17037
17037
|
_field.scale = field.scale;
|
|
17038
17038
|
}
|
|
17039
|
-
else if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17040
|
-
|
|
17041
|
-
}
|
|
17039
|
+
// else if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17040
|
+
// _field.type = field.data_type;
|
|
17041
|
+
// }
|
|
17042
17042
|
|
|
17043
17043
|
if(_field.type === 'number' || _field.type === 'currency'){
|
|
17044
17044
|
_field.type = 'input-array';
|
|
@@ -17166,8 +17166,8 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
17166
17166
|
/*
|
|
17167
17167
|
* @Author: baozhoutao@steedos.com
|
|
17168
17168
|
* @Date: 2022-05-26 16:02:08
|
|
17169
|
-
* @LastEditors:
|
|
17170
|
-
* @LastEditTime: 2024-
|
|
17169
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
17170
|
+
* @LastEditTime: 2024-09-11 15:27:32
|
|
17171
17171
|
* @Description:
|
|
17172
17172
|
*/
|
|
17173
17173
|
|
|
@@ -17223,17 +17223,17 @@ const getSection = async (formFields, permissionFields, fieldSchemaArray, sectio
|
|
|
17223
17223
|
// console.log(`perField.type object ===> field`, field)
|
|
17224
17224
|
}
|
|
17225
17225
|
if (field.name.indexOf(".") < 0) {
|
|
17226
|
-
let _field = _.cloneDeep(field);
|
|
17227
|
-
if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17228
|
-
|
|
17229
|
-
}
|
|
17226
|
+
// let _field = _.cloneDeep(field);
|
|
17227
|
+
// if(field.type === "select" && field.data_type && field.data_type != "text"){
|
|
17228
|
+
// _field.type = field.data_type;
|
|
17229
|
+
// }
|
|
17230
17230
|
if(field.type === "steedos-field"){
|
|
17231
17231
|
// 如果是steedos-field则不需要通过convertSFieldToAmisField函数转换,因为steedos-field组件会转换
|
|
17232
|
-
fieldSetBody.push(
|
|
17232
|
+
fieldSetBody.push(field);
|
|
17233
17233
|
}
|
|
17234
17234
|
else {
|
|
17235
17235
|
ctx.__formFields = formFields;
|
|
17236
|
-
const amisField = await convertSFieldToAmisField(
|
|
17236
|
+
const amisField = await convertSFieldToAmisField(field, field.readonly, ctx);
|
|
17237
17237
|
// 如果steedos-field稳定了,可以放开下面的代码直接用组件统一渲染字段
|
|
17238
17238
|
// const amisField = {
|
|
17239
17239
|
// "type": "steedos-field",
|
|
@@ -25459,8 +25459,8 @@ var AmisProvider = function (props) { return __awaiter(void 0, void 0, void 0, f
|
|
|
25459
25459
|
/*
|
|
25460
25460
|
* @Author: baozhoutao@steedos.com
|
|
25461
25461
|
* @Date: 2022-09-01 14:44:57
|
|
25462
|
-
* @LastEditors:
|
|
25463
|
-
* @LastEditTime: 2024-
|
|
25462
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
25463
|
+
* @LastEditTime: 2024-09-09 14:53:25
|
|
25464
25464
|
* @Description:
|
|
25465
25465
|
*/
|
|
25466
25466
|
var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -25749,7 +25749,7 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
25749
25749
|
"api": {
|
|
25750
25750
|
"method": "get",
|
|
25751
25751
|
"cache": "10000",
|
|
25752
|
-
"url": "${context.rootUrl}/service/api/apps/menus?mobile=
|
|
25752
|
+
"url": "${context.rootUrl}/service/api/apps/menus?mobile=" + isMobile,
|
|
25753
25753
|
"headers": {
|
|
25754
25754
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
25755
25755
|
},
|
|
@@ -26907,6 +26907,14 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
|
|
|
26907
26907
|
}
|
|
26908
26908
|
}
|
|
26909
26909
|
editorClassName = "mx-10";
|
|
26910
|
+
if (config.type === 'formula' || config.type === 'summary') {
|
|
26911
|
+
return [2 /*return*/, {
|
|
26912
|
+
type: 'input-text',
|
|
26913
|
+
label: "".concat(config.label, "(\u65B0\u5EFA\u3001\u7F16\u8F91\u65F6\u4E0D\u53EF\u89C1)"),
|
|
26914
|
+
className: 'mx-10',
|
|
26915
|
+
readonly: true
|
|
26916
|
+
}];
|
|
26917
|
+
}
|
|
26910
26918
|
}
|
|
26911
26919
|
if (isString(ctx)) {
|
|
26912
26920
|
ctx = JSON.parse(ctx);
|
|
@@ -27829,6 +27837,35 @@ var createFieldFunction = function (type) {
|
|
|
27829
27837
|
if (!props.config.name) {
|
|
27830
27838
|
props.config.name = "f".concat(generateRandomString(5));
|
|
27831
27839
|
}
|
|
27840
|
+
if (props.config.type === 'textarea') {
|
|
27841
|
+
if (!props.config.rows) {
|
|
27842
|
+
props.config.rows = 3;
|
|
27843
|
+
}
|
|
27844
|
+
}
|
|
27845
|
+
if (props.config.type === 'select') {
|
|
27846
|
+
if (!props.config.options) {
|
|
27847
|
+
props.config.options = [{
|
|
27848
|
+
label: '选项1',
|
|
27849
|
+
value: 'v1'
|
|
27850
|
+
}, {
|
|
27851
|
+
label: '选项2',
|
|
27852
|
+
value: 'v2'
|
|
27853
|
+
}];
|
|
27854
|
+
}
|
|
27855
|
+
}
|
|
27856
|
+
if (includes(['number', 'currency', 'percent', 'summary'], props.config.type)) {
|
|
27857
|
+
if (!props.config.precision) {
|
|
27858
|
+
props.config.precision = 18;
|
|
27859
|
+
}
|
|
27860
|
+
if (!props.config.scale && props.config.scale != 0) {
|
|
27861
|
+
props.config.scale = 2;
|
|
27862
|
+
}
|
|
27863
|
+
}
|
|
27864
|
+
if (props.config.type === 'autonumber') {
|
|
27865
|
+
if (!props.config.formula) {
|
|
27866
|
+
props.config.formula = '自动编号{YYYY}{MM}{DD}{000}';
|
|
27867
|
+
}
|
|
27868
|
+
}
|
|
27832
27869
|
if (has(props, '$$editor')) {
|
|
27833
27870
|
// props.config = Object.assign({}, props.config, {label: `${props.config.label}:${props.config.name}`})
|
|
27834
27871
|
if (props.config.hidden || props.config.visible_on === '{{false}}') {
|