GamePortrait/node_modules/.cache/babel-loader/9ef978a7dc9c96d9bccba5962e9170d3ce7522920f31655a69b6bcbd58efb2be.json

1 line
3.3 KiB
JSON

{"ast":null,"code":"import { normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-5f956258\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n class: \"dice-result\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [$props.sendMode == 'openingDiceResult' ? (_openBlock(), _createElementBlock(_Fragment, {\n key: 0\n }, [_createElementVNode(\"div\", {\n class: _normalizeClass([\"dice\", [`dice_${$props.result[0]}`]])\n }, null, 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"dice\", [`dice_${$props.result[1]}`]])\n }, null, 2 /* CLASS */), _createElementVNode(\"div\", {\n class: _normalizeClass([\"dice\", [`dice_${$props.result[2]}`]])\n }, null, 2 /* CLASS */)], 64 /* STABLE_FRAGMENT */)) : _createCommentVNode(\"v-if\", true)]);\n}","map":{"version":3,"names":["class","_createElementBlock","_hoisted_1","$props","sendMode","_Fragment","key","_createElementVNode","_normalizeClass","result"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/DiceResult.vue"],"sourcesContent":["<template>\n <div class=\"dice-result\">\n <template v-if=\"sendMode == 'openingDiceResult'\">\n <div class=\"dice\" :class=\"[`dice_${result[0]}`]\"></div>\n <div class=\"dice\" :class=\"[`dice_${result[1]}`]\"></div>\n <div class=\"dice\" :class=\"[`dice_${result[2]}`]\"></div>\n </template>\n </div>\n</template>\n\n<script>\nexport default {\n name: \"diceResult\",\n props: {\n result: {\n type: Array,\n default: () => [0, 0, 0]\n },\n sendMode: {\n type: String,\n default: \"\"\n }\n },\n setup() {}\n}\n</script>\n<style lang=\"scss\" scoped>\n.dice-result {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotateX(0deg);\n .dice {\n width: 1.5rem;\n height: 1.5rem;\n margin: 0 1.5%;\n background-size: 100% 100%;\n background-repeat: no-repeat;\n &.dice_1 {\n background-image: url(\"~@/assets/images/dice/dice_1.png\");\n }\n &.dice_2 {\n background-image: url(\"~@/assets/images/dice/dice_2.png\");\n }\n &.dice_3 {\n background-image: url(\"~@/assets/images/dice/dice_3.png\");\n }\n &.dice_4 {\n background-image: url(\"~@/assets/images/dice/dice_4.png\");\n }\n &.dice_5 {\n background-image: url(\"~@/assets/images/dice/dice_5.png\");\n }\n &.dice_6 {\n background-image: url(\"~@/assets/images/dice/dice_6.png\");\n }\n }\n}\n</style>\n"],"mappings":";;;EACOA,KAAK,EAAC;AAAa;;uBAAxBC,mBAAA,CAMM,OANNC,UAMM,GALYC,MAAA,CAAAC,QAAQ,2B,cAAxBH,mBAAA,CAIWI,SAAA;IAAAC,GAAA;EAAA,IAHTC,mBAAA,CAAuD;IAAlDP,KAAK,EAAAQ,eAAA,EAAC,MAAM,WAAkBL,MAAA,CAAAM,MAAM;2BACzCF,mBAAA,CAAuD;IAAlDP,KAAK,EAAAQ,eAAA,EAAC,MAAM,WAAkBL,MAAA,CAAAM,MAAM;2BACzCF,mBAAA,CAAuD;IAAlDP,KAAK,EAAAQ,eAAA,EAAC,MAAM,WAAkBL,MAAA,CAAAM,MAAM"},"metadata":{},"sourceType":"module","externalDependencies":[]}