Skip to content

Commit

Permalink
fix: change types (#1045)
Browse files Browse the repository at this point in the history
Co-authored-by: DiamondYuan <[email protected]>
  • Loading branch information
DiamondYuan and DiamondYuan authored Jan 22, 2024
1 parent 29fb40b commit 4bfeeac
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
7 changes: 3 additions & 4 deletions compiled/alipay/demo/pages/Form/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
allowClear
ref="handleRef">
<view slot="tooltip">
<icon
<ant-icon
onTap="showToast"
type="QuestionCircleOutline" />
</view>
Expand Down Expand Up @@ -100,8 +100,7 @@
</ant-button>
<ant-button onTap="reset">重置</ant-button>
</view>

<toast
<ant-toast
content="密码的自定义 tooltip"
visible="{{toastShow}}"
visible="{{ toastShow }}"
onClose="handleCloseToast" />
4 changes: 2 additions & 2 deletions compiled/alipay/demo/pages/Form/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"form-rate": "../../../src/Form/FormRate/index",
"form-textarea": "../../../src/Form/FormTextarea/index",
"ant-button": "../../../src/Button/index",
"icon": "../../../src/Icon/index",
"toast": "../../../src/Toast/index"
"ant-icon": "../../../src/Icon/index",
"ant-toast": "../../../src/Toast/index"
}
}
4 changes: 2 additions & 2 deletions compiled/wechat/demo/pages/Form/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"form-rate": "../../../src/Form/FormRate/index",
"form-textarea": "../../../src/Form/FormTextarea/index",
"ant-button": "../../../src/Button/index",
"icon": "../../../src/Icon/index",
"toast": "../../../src/Toast/index"
"ant-icon": "../../../src/Icon/index",
"ant-toast": "../../../src/Toast/index"
}
}
7 changes: 3 additions & 4 deletions compiled/wechat/demo/pages/Form/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
allowClear
bind:ref="handleRef">
<view slot="tooltip">
<icon
<ant-icon
bind:tap="showToast"
type="QuestionCircleOutline" />
</view>
Expand Down Expand Up @@ -100,8 +100,7 @@
</ant-button>
<ant-button bind:tap="reset">重置</ant-button>
</view>

<toast
<ant-toast
content="密码的自定义 tooltip"
visible="{{toastShow}}"
visible="{{ toastShow }}"
onClose="handleCloseToast" />
11 changes: 6 additions & 5 deletions demo/pages/Form/index.axml.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import FormUploadImage from '../../../src/Form/FormImageUpload/index.axml';
import FormRate from '../../../src/Form/FormRate/index.axml';
import FormTextarea from '../../../src/Form/FormTextarea/index.axml';
import AntButton from '../../../src/Button/index.axml';
import Icon from '../../../src/Icon/index.axml';
import AntIcon from '../../../src/Icon/index.axml';
import AntToast from '../../../src/Toast/index.axml';

export default ({
fruitList,
Expand All @@ -23,6 +24,7 @@ export default ({
checkboxGroupOptions,
selectorOptions,
onUpload,
toastShow,
}) => (
<Page>
<FormInput
Expand All @@ -41,7 +43,7 @@ export default ({
ref="handleRef"
>
<View slot="tooltip">
<Icon onTap="showToast" type="QuestionCircleOutline" />
<AntIcon onTap="showToast" type="QuestionCircleOutline" />
</View>
</FormInput>
<FormInput
Expand Down Expand Up @@ -111,10 +113,9 @@ export default ({
</AntButton>
<AntButton onTap="reset">重置</AntButton>
</View>

<toast
<AntToast
content="密码的自定义 tooltip"
visible="{{toastShow}}"
visible={toastShow}
onClose="handleCloseToast"
/>
</Page>
Expand Down
4 changes: 2 additions & 2 deletions demo/pages/Form/index.json5
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"form-rate": "../../../src/Form/FormRate/index",
"form-textarea": "../../../src/Form/FormTextarea/index",
"ant-button": "../../../src/Button/index",
"icon": "../../../src/Icon/index",
"toast": "../../../src/Toast/index"
"ant-icon": "../../../src/Icon/index",
"ant-toast": "../../../src/Toast/index"
}
}

0 comments on commit 4bfeeac

Please sign in to comment.