@@ -72,8 +72,8 @@ Although highly versatile, this doesn't mean modal dialogs are fit for all purpo
7272<!-- @code -->
7373<dt-modal
7474 title="Example title"
75- :show ="isOpen"
76- @update:show="updateShow "
75+ :open ="isOpen"
76+ @update:open="updateOpen "
7777 copy="Lorem ipsum ..."
7878>
7979 <template
@@ -110,8 +110,8 @@ This is the default behavior that adds the scroll automatically in the modal con
110110<!-- @code -->
111111<dt-modal
112112 title="Example title"
113- :show ="isOpen"
114- @update:show="updateShow "
113+ :open ="isOpen"
114+ @update:open="updateOpen "
115115 :showFooter="true"
116116 :fixed-header-footer="true"
117117 copy="Sed at orci quis nunc finibus gravida eget vitae est..."
@@ -150,10 +150,10 @@ A modal style for destructive or irreversible actions.
150150<!-- @code -->
151151<dt-modal
152152 title="Example title"
153- :show ="isOpen"
153+ :open ="isOpen"
154154 kind="critical"
155155 copy="Sed at orci quis nunc finibus gravida eget vitae est..."
156- @update:show="updateShow "
156+ @update:open="updateOpen "
157157>
158158 <template
159159 #footer
@@ -190,10 +190,10 @@ To make this modal take up as much of the screen as possible.
190190<!-- @code -->
191191<dt-modal
192192 title="Example title"
193- :show ="isOpen"
193+ :open ="isOpen"
194194 size="full"
195195 copy="Sed at orci quis nunc finibus gravida eget vitae est..."
196- @update:show="updateShow "
196+ @update:open="updateOpen "
197197>
198198 <template
199199 #footer
@@ -237,11 +237,11 @@ When there is a need of more context information regarding the content of the Mo
237237<!-- @code -->
238238<dt-modal
239239 title="Example title"
240- :show ="isOpen"
240+ :open ="isOpen"
241241 banner-title="This banner can have different kinds."
242242 :bannerKind="selectedBannerKind"
243243 copy="Sed at orci quis nunc finibus gravida eget vitae est..."
244- @update:show="updateShow "
244+ @update:open="updateOpen "
245245>
246246 <template
247247 #footer
@@ -279,8 +279,8 @@ In addition to the footer, custom elements can be inserted into the header and b
279279``` vue demo
280280<div>
281281 <dt-modal
282- :show ="isOpen"
283- @update:show="updateShow "
282+ :open ="isOpen"
283+ @update:open="updateOpen "
284284 >
285285 <template #header>
286286 <dt-stack direction="row" align="center" justify="center" class="d-p-150 d-bgc-purple-100">
@@ -299,8 +299,8 @@ In addition to the footer, custom elements can be inserted into the header and b
299299</div>
300300<!-- @code -->
301301<dt-modal
302- :show ="isOpen"
303- @update:show="updateShow "
302+ :open ="isOpen"
303+ @update:open="updateOpen "
304304>
305305 <template #header>
306306 <dt-stack direction="row" align="center" justify="center" class="d-p-150 d-bgc-purple-100">
@@ -324,8 +324,8 @@ Modal content renders outside the DOM tree. Use the `contentMode` prop to apply
324324 content-mode="invert"
325325 title="Inverted Modal"
326326 copy="This modal's content is in the inverted mode."
327- :show ="invertedModalOpen"
328- @update:show ="invertedModalOpen = $event"
327+ :open ="invertedModalOpen"
328+ @update:open ="invertedModalOpen = $event"
329329 />
330330</div>
331331<!-- @code -->
@@ -361,7 +361,7 @@ At minimum, modals contain a title and one button. They could also contain body
361361 isOpen .value = true ;
362362 };
363363
364- const updateShow = (value ) => {
364+ const updateOpen = (value ) => {
365365 if (! value) isOpen .value = false ;
366366 };
367367
0 commit comments