pc-switch.js 5.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. exports.ids = [21];
  2. exports.modules = {
  3. /***/ 278:
  4. /***/ (function(module, exports) {
  5. // Exports
  6. module.exports = {
  7. };
  8. /***/ }),
  9. /***/ 333:
  10. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11. "use strict";
  12. __webpack_require__.r(__webpack_exports__);
  13. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(278);
  14. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
  15. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PcSwitch_vue_vue_type_style_index_0_id_58d567c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  16. /***/ }),
  17. /***/ 369:
  18. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19. "use strict";
  20. // ESM COMPAT FLAG
  21. __webpack_require__.r(__webpack_exports__);
  22. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/PcSwitch.vue?vue&type=template&id=58d567c2&scoped=true
  23. var render = function render() {
  24. var _vm = this,
  25. _c = _vm._self._c;
  26. return _c('div', {
  27. class: ['switch', _vm.status ? 'green' : 'red'],
  28. on: {
  29. "click": _vm.changeStatus
  30. }
  31. }, [_vm._ssrNode("<div" + _vm._ssrClass(null, ['switch_inner', _vm.status ? '' : 'right']) + " data-v-58d567c2>" + _vm._ssrEscape("\n " + _vm._s(_vm.status ? 'Yes' : 'No') + "\n ") + "</div>")]);
  32. };
  33. var staticRenderFns = [];
  34. // CONCATENATED MODULE: ./components/PcSwitch.vue?vue&type=template&id=58d567c2&scoped=true
  35. // CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/PcSwitch.vue?vue&type=script&lang=js
  36. /* harmony default export */ var PcSwitchvue_type_script_lang_js = ({
  37. model: {
  38. prop: 'status',
  39. event: 'change'
  40. },
  41. props: {
  42. status: Boolean
  43. },
  44. methods: {
  45. changeStatus() {
  46. this.$emit('change', !this.status);
  47. }
  48. }
  49. });
  50. // CONCATENATED MODULE: ./components/PcSwitch.vue?vue&type=script&lang=js
  51. /* harmony default export */ var components_PcSwitchvue_type_script_lang_js = (PcSwitchvue_type_script_lang_js);
  52. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  53. var componentNormalizer = __webpack_require__(2);
  54. // CONCATENATED MODULE: ./components/PcSwitch.vue
  55. function injectStyles (context) {
  56. var style0 = __webpack_require__(333)
  57. if (style0.__inject__) style0.__inject__(context)
  58. }
  59. /* normalize component */
  60. var component = Object(componentNormalizer["a" /* default */])(
  61. components_PcSwitchvue_type_script_lang_js,
  62. render,
  63. staticRenderFns,
  64. false,
  65. injectStyles,
  66. "58d567c2",
  67. "0ea90ab5"
  68. )
  69. /* harmony default export */ var PcSwitch = __webpack_exports__["default"] = (component.exports);
  70. /***/ })
  71. };;
  72. //# sourceMappingURL=pc-switch.js.map