@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/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
- amisSchema.initAutoFill = false;
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": "dropdown-button",
14768
+ "type": "button",
14768
14769
  "level": "link",
14769
- "btnClassName": "text-gray-400 steedos-delete-button",
14770
+ "className": "text-gray-400 steedos-delete-button",
14770
14771
  "icon": "fa fa-trash-alt",
14771
- "size": "xs",
14772
- "hideCaret": true,
14773
- "closeOnClick": true,
14774
- "body": [
14775
- {
14776
- "type": "wrapper",
14777
- "size": "md",
14778
- "className": "w-80",
14779
- "body": [
14780
- {
14781
- "tpl": "确定要删除吗?",
14782
- "type": "tpl"
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
- "type": "flex",
14786
- "justify": "flex-end",
14787
- "className": "mt-3",
14788
- "items": [
14789
- {
14790
- "type": "button",
14791
- "label": "取消",
14792
- "className": "mr-2"
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",