Browse Source

refactor(gui-v2): move css to class

pull/2928/head
Wing-Kam Wong 2 years ago
parent
commit
aa66ff25bd
  1. 8
      packages/nc-gui-v2/components/cell/Float.vue
  2. 8
      packages/nc-gui-v2/components/cell/Integer.vue

8
packages/nc-gui-v2/components/cell/Float.vue

@ -25,12 +25,8 @@ onMounted(() => {
</script>
<template>
<input v-if="editEnabled" ref="root" v-model="vModel" type="number" />
<input v-if="editEnabled" ref="root" v-model="vModel" class="outline-none w-full h-full" type="number" />
<span v-else>{{ vModel }}</span>
</template>
<style scoped>
input {
@apply outline-none w-full h-full;
}
</style>
<style scoped></style>

8
packages/nc-gui-v2/components/cell/Integer.vue

@ -27,12 +27,8 @@ function onKeyDown(evt: KeyboardEvent) {
</script>
<template>
<input v-if="editEnabled" ref="root" v-model="vModel" type="number" @keydown="onKeyDown" />
<input v-if="editEnabled" ref="root" v-model="vModel" class="outline-none w-full h-full" type="number" @keydown="onKeyDown" />
<span v-else>{{ vModel }}</span>
</template>
<style scoped>
input {
@apply outline-none w-full h-full;
}
</style>
<style scoped></style>

Loading…
Cancel
Save