@burh/nuxt-core 1.0.56 → 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.
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<div class="col-12 d-flex">
|
|
10
|
-
|
|
11
10
|
<div
|
|
11
|
+
id="role"
|
|
12
12
|
tag="div"
|
|
13
|
-
class="d-
|
|
13
|
+
class="d-flex flex-column mb-3"
|
|
14
14
|
name="role"
|
|
15
15
|
>
|
|
16
|
+
<label for="role" class="form-control-label">Cargos</label>
|
|
16
17
|
<el-select
|
|
17
18
|
class="select-danger"
|
|
18
19
|
v-model="firstFieldValue"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
</div>
|
|
30
31
|
|
|
31
32
|
<el-tooltip class="item" placement="top" :content="'Editar Cargo'">
|
|
32
|
-
<base-button size="md" type="link" class="text-primary
|
|
33
|
+
<base-button size="md" type="link" class="text-primary h-25 my-auto px-2 w-auto"
|
|
33
34
|
@click="$emit('first-icon-click', { firstFieldText: firstFieldValue })">
|
|
34
35
|
<font-awesome-icon :icon="['fas', 'save']" class="mr-2" />
|
|
35
36
|
</base-button>
|
|
@@ -115,32 +115,37 @@ export default {
|
|
|
115
115
|
if (this.value > 1) {
|
|
116
116
|
this.$emit('input', this.value - 1);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
watch: {
|
|
121
|
-
perPage() {
|
|
122
|
-
this.$emit('input', 1);
|
|
123
118
|
},
|
|
124
|
-
|
|
125
|
-
this.$emit('input', 1);
|
|
126
|
-
},
|
|
127
|
-
value(newValue, oldValue) {
|
|
119
|
+
display(value) {
|
|
128
120
|
const pagesToDisplay = this.pagesName.length >= 5 ? 5 : this.pagesName.length;
|
|
129
|
-
|
|
121
|
+
|
|
122
|
+
if(value < 5) {
|
|
130
123
|
this.minPage = 1;
|
|
131
124
|
this.maxPage = pagesToDisplay;
|
|
132
125
|
}
|
|
133
126
|
else {
|
|
134
|
-
if(
|
|
135
|
-
this.minPage =
|
|
127
|
+
if(value < this.minPage) {
|
|
128
|
+
this.minPage = value;
|
|
136
129
|
this.maxPage = this.minPage + 4;
|
|
137
130
|
}
|
|
138
|
-
if(
|
|
139
|
-
this.maxPage =
|
|
131
|
+
if(value > this.maxPage) {
|
|
132
|
+
this.maxPage = value;
|
|
140
133
|
this.minPage = this.maxPage - 4;
|
|
141
134
|
}
|
|
142
135
|
}
|
|
143
|
-
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
watch: {
|
|
139
|
+
perPage() {
|
|
140
|
+
this.$emit('input', 1);
|
|
141
|
+
},
|
|
142
|
+
total(newValue, old) {
|
|
143
|
+
this.$emit('input', 1);
|
|
144
|
+
this.display(this.value);
|
|
145
|
+
},
|
|
146
|
+
value(newValue, oldValue) {
|
|
147
|
+
this.display(newValue)
|
|
148
|
+
},
|
|
144
149
|
}
|
|
145
150
|
};
|
|
146
151
|
</script>
|
|
@@ -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
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
</
|
|
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 }
|