Skip to content

Commit f4163e2

Browse files
committed
fix(modal): fix modal's demos
1 parent 4941e87 commit f4163e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/sites/demos/pc/app/modal/message-close-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { TinyButton, TinyModal } from '@opentiny/vue'
1111
1212
function btnClick() {
13-
TinyModal.confirm({
13+
TinyModal.message({
1414
status: 'info',
1515
message: '自定义消息的内容可关闭,5s 后得自动关闭',
1616
messageClosable: true,

examples/sites/demos/pc/app/modal/message-id-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { TinyButton, TinyModal } from '@opentiny/vue'
1111
1212
function btnClick() {
13-
TinyModal.confirm({
13+
TinyModal.message({
1414
status: 'info',
1515
message: '自定义消息具有唯一 id,所以不会重复出现',
1616
id: 'unique'

examples/sites/demos/pc/app/modal/message-top-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { TinyButton, TinyModal } from '@opentiny/vue'
1111
1212
function btnClick() {
13-
TinyModal.confirm({
13+
TinyModal.message({
1414
status: 'info',
1515
message: '自定义消息的内容距离顶部500px',
1616
top: 500

0 commit comments

Comments
 (0)