@burh/nuxt-core 1.0.57 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,8 +57,10 @@ export default {
57
57
  },
58
58
  });
59
59
 
60
- if (this.value.length > 0) {
61
- this.editor.pasteHTML(this.value);
60
+ if (this.value) {
61
+ if (this.value.length > 0) {
62
+ this.editor.pasteHTML(this.value);
63
+ }
62
64
  }
63
65
 
64
66
  let editorRef = this.$refs.editor;
@@ -30,7 +30,7 @@
30
30
  </div>
31
31
 
32
32
  <el-tooltip class="item" placement="top" :content="'Editar Cargo'">
33
- <base-button size="md" type="link" class="text-primary mt-0 px-2 w-auto align-top"
33
+ <base-button size="md" type="link" class="text-primary h-25 my-auto px-2 w-auto"
34
34
  @click="$emit('first-icon-click', { firstFieldText: firstFieldValue })">
35
35
  <font-awesome-icon :icon="['fas', 'save']" class="mr-2" />
36
36
  </base-button>
@@ -1,18 +1,16 @@
1
1
  <template>
2
2
  <div class="card position-relative">
3
3
  <div class="row px-4 justify-content-start">
4
- <validation-provider tag="div" class="col-8" :vid="`question-${step}-${position}`"
5
- name="Pergunta" rules="required" v-slot="{ errors }">
6
- <base-input
7
- :label="`Pergunta #${position + 1}`"
4
+ <div class="col-8">
5
+ <label class="form-control-label d-block pt-1">
6
+ {{`Pergunta #${position + 1}`}}
7
+ </label>
8
+ <html-editor
8
9
  placeholder="Escreva uma pergunta"
9
- type="text"
10
- :error="errors[0]"
11
- :valid="errors.length ? true : false"
12
10
  :value="question.question"
13
11
  v-on:input="setQuestion('question', $event)"
14
12
  />
15
- </validation-provider>
13
+ </div>
16
14
 
17
15
  <div class="col-4">
18
16
  <label class="form-control-label d-block pt-1">
@@ -67,6 +65,7 @@ import {Select, Option} from 'element-ui'
67
65
  import QuestionText from '@burh/nuxt-core/components/burh-ds/Questions/QuestionText.vue';
68
66
  import QuestionRadio from '@burh/nuxt-core/components/burh-ds/Questions/QuestionRadio.vue';
69
67
  import QuestionAttach from '@burh/nuxt-core/components/burh-ds/Questions/QuestionAttach.vue';
68
+ import HtmlEditor from '@burh/nuxt-core/components/burh-ds/Inputs/HtmlEditor.vue'
70
69
 
71
70
  export default {
72
71
  components: {
@@ -74,7 +73,8 @@ export default {
74
73
  [Option.name]: Option,
75
74
  Paragraph: QuestionText,
76
75
  QuestionRadio,
77
- QuestionAttach
76
+ QuestionAttach,
77
+ HtmlEditor
78
78
  },
79
79
  props: {
80
80
  step: {
@@ -120,6 +120,7 @@ export default {
120
120
  setQuestion(type, data) {
121
121
  this.question[type] = data
122
122
  this.emitQuestion();
123
+ console.log(this.question)
123
124
  },
124
125
  mergeDataQuestion(data) {
125
126
  this.question = { ...this.question , ...data }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {