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