3.24.0 • Published 6 months ago

@opentinyvue/vue-runtime v3.24.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@opentinyvue/vue-runtime

TinyVue 组件库提供 es 格式的运行时资源地址。

通过 CDN 方式引入 (v3.17.0开始提供使用)

为了应对不同的业务需要,TinyVue 提供多种形态的 runtime:#

Runtime 名称使用说明
tiny-vue-pc.mjs包含所有pc模板的组件集合
tiny-vue-mobile-first.mjs包含所有多端模板的组件集合
tiny-vue-simple.mjs包含常用组件的集合
<head>
  <!-- 引入 vue 和 @opentinyvue/vue -->
  <script type="importmap">
    {
      "imports": {
        "vue": "https://registry.npmmirror.com/vue/3.4.27/files/dist/vue.runtime.esm-browser.js",
        "echarts": "https://registry.npmmirror.com/echarts/5.4.1/files/dist/echarts.esm.js",
        "@opentinyvue/vue": "https://registry.npmmirror.com/@opentinyvue/vue-runtime/3.17/files/dist3/tiny-vue-pc.mjs",
        "@opentinyvue/vue-icon": "https://registry.npmmirror.com/@opentinyvue/vue-runtime/3.17/files/dist3/tiny-vue-icon.mjs",
        "@opentinyvue/vue-locale": "https://registry.npmmirror.com/@opentinyvue/vue-runtime/3.17/files/dist3/tiny-vue-locale.mjs",
        "@opentinyvue/vue-common": "https://registry.npmmirror.com/@opentinyvue/vue-runtime/3.17/files/dist3/tiny-vue-common.mjs"
      }
    }
  </script>
  <!-- 引入 @opentinyvue/vue 样式 -->
  <link rel="stylesheet" href="https://registry.npmmirror.com/@opentinyvue/vue-theme/3.17/files/index.css" />
</head>