-
-
+
+
+
-
@@ -34,19 +49,25 @@ export default {
}
}
},
- methods: {
- autoLinkerBooleanValue(key) {
+ computed: {
+ autoLinkerAtomValue() {
+ return this.data[this.setting.key] &&
+ this.data[this.setting.key][0] === ':' ? this.data[this.setting.key].substr(1) : this.data[this.setting.key]
+ },
+ autoLinkerBooleanValue() {
const value = this.data[this.setting.key]
return typeof value === 'string' || typeof value === 'number'
},
- autoLinkerIntegerValue(key) {
+ autoLinkerIntegerValue() {
const value = this.data[this.setting.key]
return value || 0
},
- autoLinkerStringValue(key) {
+ autoLinkerStringValue() {
const value = this.data[this.setting.key]
return value || ''
- },
+ }
+ },
+ methods: {
processTwoTypeValue(value, input) {
if (value === true) {
const data = input === ':truncate' ? 0 : ''