mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
33 lines
625 B
JavaScript
33 lines
625 B
JavaScript
'use strict'
|
|
const ParserMultilineForm = {
|
|
template: "#vue-parser-multiline-form",
|
|
props: [
|
|
"pluginType"
|
|
],
|
|
|
|
data: function() {
|
|
return {
|
|
formatFirstline: "",
|
|
formats: ""
|
|
}
|
|
},
|
|
|
|
watch: {
|
|
"formats": function(newValue, oldValue) {
|
|
console.log(`watch formats: ${newValue}`)
|
|
this.$emit("change-formats", newValue)
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
textareaId: function(pluginType) {
|
|
return `setting_${pluginType}_0__formats`
|
|
},
|
|
textareaName: function(pluginType) {
|
|
return `setting[${pluginType}[0]][formats]`
|
|
}
|
|
}
|
|
}
|
|
|
|
export { ParserMultilineForm as default }
|