{"remainingRequest":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtFieldTail.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\artfess-module\\src\\components\\HtFieldTail.vue","mtime":1675232038574},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\artfess-module\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport utils from \"@/utils.js\";\r\n\r\nexport default {\r\n name: \"ht-field-tail\",\r\n props: {\r\n fieldName: {\r\n type: String,\r\n required: true,\r\n },\r\n readonly: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n inputValue: {\r\n type: [String, Number, Object, Array, Boolean],\r\n },\r\n tagFormatValue: {\r\n type: [Array],\r\n default() {\r\n return [];\r\n },\r\n },\r\n writeable: {\r\n type: Boolean,\r\n default: true,\r\n }\r\n },\r\n data() {\r\n return {\r\n scopeName: null,\r\n };\r\n },\r\n computed: {\r\n fieldScopePath: function() {\r\n let path = this.fieldName;\r\n if (this.scopeName) {\r\n path = `${this.scopeName}.${this.fieldName}`;\r\n }\r\n return path;\r\n },\r\n hasErrors: function() {\r\n return this.errors && this.errors.has(this.fieldScopePath);\r\n },\r\n errorMessage: function() {\r\n return this.errors.first(this.fieldScopePath);\r\n },\r\n formatInputValue() {\r\n let value = [];\r\n if (this.readonly && typeof(this.inputValue) === \"string\") {\r\n if (this.inputValue.includes(\"↵\")) {\r\n vlaue = this.inputValue.split(\"↵\");\r\n } else if (this.inputValue.includes(\"\\n\")) {\r\n value = this.inputValue.split(\"\\n\");\r\n } else {\r\n value = [this.inputValue];\r\n }\r\n }\r\n return value;\r\n },\r\n isReadonlyTextarea(){\r\n return typeof(this.inputValue) === \"string\" ? this.inputValue.includes(\"↵\") || this.inputValue.includes(\"\\n\") : false\r\n }\r\n },\r\n mounted() {\r\n this.scopeName = utils.getSomeAttributeFromParentElement(\r\n this.$el.parentElement,\r\n \"data-vv-scope\"\r\n );\r\n const { subScopeEl, index } = utils.getSubScopeElAndIndex(this.$el.parentElement);\r\n if (subScopeEl && (subScopeEl.getAttribute(\"row_readonly\") == 'true' || subScopeEl.getAttribute(\"row_readonly\") === true)) {\r\n this.$emit(\"update:writeable\",false);\r\n }\r\n },\r\n created() {\r\n this.$validator = this.$root.$validator;\r\n },\r\n};\r\n",null]}