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