1 line
5.5 KiB
JSON
1 line
5.5 KiB
JSON
{"remainingRequest":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\@jiaminghi\\data-view\\lib\\components\\decoration11\\src\\main.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\@jiaminghi\\data-view\\lib\\components\\decoration11\\src\\main.vue","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBhdXRvUmVzaXplIGZyb20gJy4uLy4uLy4uL21peGluL2F1dG9SZXNpemUnCgppbXBvcnQgeyBkZWVwTWVyZ2UgfSBmcm9tICdAamlhbWluZ2hpL2NoYXJ0cy9saWIvdXRpbC9pbmRleCcKCmltcG9ydCB7IGRlZXBDbG9uZSB9IGZyb20gJ0BqaWFtaW5naGkvYy1yZW5kZXIvbGliL3BsdWdpbi91dGlsJwoKaW1wb3J0IHsgZmFkZSB9IGZyb20gJ0BqaWFtaW5naGkvY29sb3InCgpleHBvcnQgZGVmYXVsdCB7CiAgbmFtZTogJ0R2RGVjb3JhdGlvbjExJywKICBtaXhpbnM6IFthdXRvUmVzaXplXSwKICBwcm9wczogewogICAgY29sb3I6IHsKICAgICAgdHlwZTogQXJyYXksCiAgICAgIGRlZmF1bHQ6ICgpID0+IChbXSkKICAgIH0KICB9LAogIGRhdGEgKCkgewogICAgY29uc3QgdGltZXN0YW1wID0gRGF0ZS5ub3coKQogICAgcmV0dXJuIHsKICAgICAgcmVmOiAnZGVjb3JhdGlvbi0xMScsCgogICAgICBkZWZhdWx0Q29sb3I6IFsnIzFhOThmYycsICcjMmNmN2ZlJ10sCgogICAgICBtZXJnZWRDb2xvcjogW10KICAgIH0KICB9LAogIHdhdGNoOiB7CiAgICBjb2xvciAoKSB7CiAgICAgIGNvbnN0IHsgbWVyZ2VDb2xvciB9ID0gdGhpcwoKICAgICAgbWVyZ2VDb2xvcigpCiAgICB9CiAgfSwKICBtZXRob2RzOiB7CiAgICBtZXJnZUNvbG9yICgpIHsKICAgICAgY29uc3QgeyBjb2xvciwgZGVmYXVsdENvbG9yIH0gPSB0aGlzCgogICAgICB0aGlzLm1lcmdlZENvbG9yID0gZGVlcE1lcmdlKGRlZXBDbG9uZShkZWZhdWx0Q29sb3IsIHRydWUpLCBjb2xvciB8fCBbXSkKICAgIH0sCiAgICBmYWRlCiAgfSwKICBtb3VudGVkICgpIHsKICAgIGNvbnN0IHsgbWVyZ2VDb2xvciB9ID0gdGhpcwoKICAgIG1lcmdlQ29sb3IoKQogIH0KfQo="},{"version":3,"sources":["main.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","file":"main.vue","sourceRoot":"node_modules/@jiaminghi/data-view/lib/components/decoration11/src","sourcesContent":["<template>\n <div class=\"dv-decoration-11\" :ref=\"ref\">\n <svg :width=\"width\" :height=\"height\">\n <polygon\n :fill=\"fade(mergedColor[1] || defaultColor[1], 10)\"\n :stroke=\"mergedColor[1]\"\n :points=\"`20 10, 25 4, 55 4 60 10`\"\n />\n\n <polygon\n :fill=\"fade(mergedColor[1] || defaultColor[1], 10)\"\n :stroke=\"mergedColor[1]\"\n :points=\"`20 ${height - 10}, 25 ${height - 4}, 55 ${height - 4} 60 ${height - 10}`\"\n />\n\n <polygon\n :fill=\"fade(mergedColor[1] || defaultColor[1], 10)\"\n :stroke=\"mergedColor[1]\"\n :points=\"`${width - 20} 10, ${width - 25} 4, ${width - 55} 4 ${width - 60} 10`\"\n />\n\n <polygon\n :fill=\"fade(mergedColor[1] || defaultColor[1], 10)\"\n :stroke=\"mergedColor[1]\"\n :points=\"`${width - 20} ${height - 10}, ${width - 25} ${height - 4}, ${width - 55} ${height - 4} ${width - 60} ${height - 10}`\"\n />\n\n <polygon\n :fill=\"fade(mergedColor[0] || defaultColor[0], 20)\"\n :stroke=\"mergedColor[0]\"\n :points=\"`\n 20 10, 5 ${height / 2} 20 ${height - 10}\n ${width - 20} ${height - 10} ${width - 5} ${height / 2} ${width - 20} 10\n `\"\n />\n\n <polyline\n fill=\"transparent\"\n :stroke=\"fade(mergedColor[0] || defaultColor[0], 70)\"\n :points=\"`25 18, 15 ${height / 2} 25 ${height - 18}`\"\n />\n\n <polyline\n fill=\"transparent\"\n :stroke=\"fade(mergedColor[0] || defaultColor[0], 70)\"\n :points=\"`${width - 25} 18, ${width - 15} ${height / 2} ${width - 25} ${height - 18}`\"\n />\n </svg>\n\n <div class=\"decoration-content\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script>\nimport autoResize from '../../../mixin/autoResize'\n\nimport { deepMerge } from '@jiaminghi/charts/lib/util/index'\n\nimport { deepClone } from '@jiaminghi/c-render/lib/plugin/util'\n\nimport { fade } from '@jiaminghi/color'\n\nexport default {\n name: 'DvDecoration11',\n mixins: [autoResize],\n props: {\n color: {\n type: Array,\n default: () => ([])\n }\n },\n data () {\n const timestamp = Date.now()\n return {\n ref: 'decoration-11',\n\n defaultColor: ['#1a98fc', '#2cf7fe'],\n\n mergedColor: []\n }\n },\n watch: {\n color () {\n const { mergeColor } = this\n\n mergeColor()\n }\n },\n methods: {\n mergeColor () {\n const { color, defaultColor } = this\n\n this.mergedColor = deepMerge(deepClone(defaultColor, true), color || [])\n },\n fade\n },\n mounted () {\n const { mergeColor } = this\n\n mergeColor()\n }\n}\n</script>"]}]} |