refactor: #7090 for Stepper
parent
4a3306b97e
commit
60c596db96
|
@ -7,7 +7,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { UniqueComponentId } from '@primevue/core/utils';
|
||||
import BaseStepper from './BaseStepper.vue';
|
||||
|
||||
export default {
|
||||
|
@ -17,21 +16,14 @@ export default {
|
|||
emits: ['update:value'],
|
||||
data() {
|
||||
return {
|
||||
id: this.$attrs.id,
|
||||
d_value: this.value
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
'$attrs.id'(newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
},
|
||||
value(newValue) {
|
||||
this.d_value = newValue;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.id = this.id || UniqueComponentId();
|
||||
},
|
||||
methods: {
|
||||
updateValue(newValue) {
|
||||
if (this.d_value !== newValue) {
|
||||
|
|
Loading…
Reference in New Issue