Browse Source

feat: use ColorPicker on column options

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2151/head
mertmit 3 years ago
parent
commit
6ec53d232c
  1. 10
      packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue
  2. 10
      packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue

10
packages/nc-gui/components/project/spreadsheet/components/editColumn/CheckboxOptions.vue

@ -30,18 +30,22 @@
</template>
</v-select>
</div>
<v-color-picker
<color-picker
v-model="colMeta.color"
class="mx-auto"
hide-inputs
row-size="8"
:colors="['#fcb401', '#faa307', '#f48c06', '#e85d04', '#dc2f02', '#d00000', '#9d0208', '#777']"
/>
</div>
</template>
<script>
import ColorPicker from '@/components/project/spreadsheet/components/ColorPicker.vue'
export default {
name: 'CheckboxOptions',
components: {
ColorPicker
},
props: ['column', 'meta', 'value'],
data: () => ({
colMeta: {

10
packages/nc-gui/components/project/spreadsheet/components/editColumn/RatingOptions.vue

@ -39,18 +39,22 @@
class="caption"
/>
</div>
<v-color-picker
<color-picker
v-model="colMeta.color"
class="mx-auto"
hide-inputs
row-size="8"
:colors="['#fcb401', '#faa307', '#f48c06', '#e85d04', '#dc2f02', '#d00000', '#9d0208', '#777']"
/>
</div>
</template>
<script>
import ColorPicker from '@/components/project/spreadsheet/components/ColorPicker.vue'
export default {
name: 'RatingOptions',
components: {
ColorPicker
},
props: ['column', 'meta', 'value'],
data: () => ({
colMeta: {

Loading…
Cancel
Save