vue-cli-target-lib-example icon indicating copy to clipboard operation
vue-cli-target-lib-example copied to clipboard

create plugn

Open ArkIv opened this issue 7 years ago • 0 comments

а как создать Plugin для использования вот так: And how to create a Plugin for use like this:

import test from "../components/test.js";

export default {
  name: "testing",
  components: {
     testTest: test
  },

а, еще лучше так: A, even better so:

export default {
  name: "testing",
  components: {
    testTest: () => import("../components/test")
  },
<template>
  <test-test></test-test>
<template>

да, в Global работает, но это не то что я хочу Yes, Global works, but that 's not what I want

vue-cli-service build --target lib --name testName test.vue

import "../components/test.js";
  components: {
     testTest: testName  //
  },

ArkIv avatar Dec 03 '19 20:12 ArkIv