wip
This commit is contained in:
parent
a965fac82a
commit
e441ee9d8a
|
@ -209,14 +209,11 @@ export default defineComponent({
|
|||
|
||||
<style lang="scss" scoped>
|
||||
.mk-dialog {
|
||||
display: block;
|
||||
position: fixed;
|
||||
margin: auto;
|
||||
position: relative;
|
||||
padding: 32px;
|
||||
min-width: 320px;
|
||||
max-width: 480px;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 32px);
|
||||
text-align: center;
|
||||
background: var(--panel);
|
||||
border-radius: var(--radius);
|
||||
|
|
|
@ -66,6 +66,7 @@ export default defineComponent({
|
|||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
max-width: calc(100% - 16px);
|
||||
max-height: calc(100% - 16px);
|
||||
overflow: auto;
|
||||
|
|
|
@ -145,7 +145,7 @@ export default defineComponent({
|
|||
});
|
||||
|
||||
watch(v, newValue => {
|
||||
if (type.value === 'number') {
|
||||
if (type?.value === 'number') {
|
||||
context.emit('update:value', parseFloat(newValue));
|
||||
} else {
|
||||
context.emit('update:value', newValue);
|
||||
|
|
Loading…
Reference in New Issue