This commit is contained in:
syuilo 2020-09-05 22:13:34 +09:00
parent a965fac82a
commit e441ee9d8a
3 changed files with 3 additions and 5 deletions

View File

@ -209,14 +209,11 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
.mk-dialog { .mk-dialog {
display: block; position: relative;
position: fixed;
margin: auto;
padding: 32px; padding: 32px;
min-width: 320px; min-width: 320px;
max-width: 480px; max-width: 480px;
box-sizing: border-box; box-sizing: border-box;
width: calc(100% - 32px);
text-align: center; text-align: center;
background: var(--panel); background: var(--panel);
border-radius: var(--radius); border-radius: var(--radius);

View File

@ -66,6 +66,7 @@ export default defineComponent({
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
margin: auto;
max-width: calc(100% - 16px); max-width: calc(100% - 16px);
max-height: calc(100% - 16px); max-height: calc(100% - 16px);
overflow: auto; overflow: auto;

View File

@ -145,7 +145,7 @@ export default defineComponent({
}); });
watch(v, newValue => { watch(v, newValue => {
if (type.value === 'number') { if (type?.value === 'number') {
context.emit('update:value', parseFloat(newValue)); context.emit('update:value', parseFloat(newValue));
} else { } else {
context.emit('update:value', newValue); context.emit('update:value', newValue);