@steedos-widgets/amis-lib 3.6.4 → 3.6.5
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +33 -41
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +33 -41
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/input_table.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -11968,7 +11968,8 @@ async function lookupToAmis(field, readonly, ctx){
|
|
|
11968
11968
|
const autoFill = await getAutoFill(field);
|
|
11969
11969
|
if(autoFill){
|
|
11970
11970
|
amisSchema.autoFill = autoFill;
|
|
11971
|
-
|
|
11971
|
+
// 这里不配置initAutoFill值,按amis规则initAutoFill默认值为fillIfNotSet处理--需要amis sdk 版本 > 3.6.3-patch.6(不包括)版本
|
|
11972
|
+
// amisSchema.initAutoFill = false;
|
|
11972
11973
|
}
|
|
11973
11974
|
return amisSchema;
|
|
11974
11975
|
}
|
|
@@ -14764,48 +14765,38 @@ async function getButtonView(props) {
|
|
|
14764
14765
|
|
|
14765
14766
|
async function getButtonDelete(props) {
|
|
14766
14767
|
return {
|
|
14767
|
-
"type": "
|
|
14768
|
+
"type": "button",
|
|
14768
14769
|
"level": "link",
|
|
14769
|
-
"
|
|
14770
|
+
"className": "text-gray-400 steedos-delete-button",
|
|
14770
14771
|
"icon": "fa fa-trash-alt",
|
|
14771
|
-
"
|
|
14772
|
-
"
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
|
|
14776
|
-
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14772
|
+
"actionType": "dialog",
|
|
14773
|
+
"dialog": {
|
|
14774
|
+
"title": "系统信息",
|
|
14775
|
+
"actions": [
|
|
14776
|
+
{
|
|
14777
|
+
"type": "button",
|
|
14778
|
+
"label": "取消",
|
|
14779
|
+
"close": true
|
|
14780
|
+
},
|
|
14781
|
+
{
|
|
14782
|
+
"type": "button",
|
|
14783
|
+
"label": "删除",
|
|
14784
|
+
"level": "danger",
|
|
14785
|
+
"onEvent": {
|
|
14786
|
+
"click": {
|
|
14787
|
+
"actions": await getButtonActions(props, "delete")
|
|
14788
|
+
}
|
|
14783
14789
|
},
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
|
|
14789
|
-
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
{
|
|
14795
|
-
"type": "button",
|
|
14796
|
-
"label": "删除",
|
|
14797
|
-
"level": "danger",
|
|
14798
|
-
"onEvent": {
|
|
14799
|
-
"click": {
|
|
14800
|
-
"actions": await getButtonActions(props, "delete")
|
|
14801
|
-
}
|
|
14802
|
-
}
|
|
14803
|
-
}
|
|
14804
|
-
]
|
|
14805
|
-
}
|
|
14806
|
-
]
|
|
14807
|
-
}
|
|
14808
|
-
]
|
|
14790
|
+
"close": true
|
|
14791
|
+
}
|
|
14792
|
+
],
|
|
14793
|
+
"body": [
|
|
14794
|
+
{
|
|
14795
|
+
"tpl": "确定要删除吗?",
|
|
14796
|
+
"type": "tpl"
|
|
14797
|
+
}
|
|
14798
|
+
]
|
|
14799
|
+
}
|
|
14809
14800
|
}
|
|
14810
14801
|
}
|
|
14811
14802
|
|
|
@@ -15008,7 +14999,8 @@ const getAmisInputTableSchema = async (props) => {
|
|
|
15008
14999
|
"body": {
|
|
15009
15000
|
"type": "service",
|
|
15010
15001
|
"body": schemaBody,
|
|
15011
|
-
"id": serviceId
|
|
15002
|
+
"id": serviceId,
|
|
15003
|
+
"className": "w-full",
|
|
15012
15004
|
},
|
|
15013
15005
|
"label": props.label,
|
|
15014
15006
|
"labelClassName": props.label ? props.labelClassName : "none",
|