1window.CcnfrmComponentPropId = { 2 3 template: '#ccnps-prop-id-template', 4 5 props: ['modelValue'], 6 7 data: function () { 8 return { 9 value: '', 10 } 11 }, 12 13 watch: { 14 modelValue: function (value) { 15 this.initValue() 16 }, 17 }, 18 19 mounted: function () { 20 this.initValue(); 21 }, 22 23 methods: { 24 25 initValue() { 26 this.value = this.modelValue; 27 if (this.value) return; 28 // get url param 29 let url = new URL(window.location.href); 30 let id = url.searchParams.get("prop_id"); 31 if (id) { 32 this.value = id; 33 this.$emit('update:modelValue', id); 34 } 35 }, 36 37 }, 38 39};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.