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

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

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

Loading…
Cancel
Save