tiny-vue/packages/vue-runtime
ajaxzheng 4a7c5d993e
feat(readme): add readme files to main packages (#1826)
2024-08-05 15:22:50 +08:00
..
README.md feat(readme): add readme files to main packages (#1826) 2024-08-05 15:22:50 +08:00
README.zh-CN.md feat(readme): add readme files to main packages (#1826) 2024-08-05 15:22:50 +08:00
package.json sync release-3.17.0 to dev (#1777) 2024-07-25 17:44:36 +08:00

README.md

@opentiny/vue-runtime

Provide the runtime resource address in es format for TinyVue component library.

Import via CDN (available from v3.17.0)

In order to meet different business needs, TinyVue provides multiple forms of runtime:#

Runtime name Instructions
tiny-vue-pc.mjs A collection of components including all pc templates
tiny-vue-mobile.mjs A collection of components including all mobile templates
tiny-vue-mobile-first.mjs A collection of components including all multi-terminal templates
tiny-vue-simple.mjs A collection of commonly used components
<head>
  <!-- 引入 vue 和 @opentiny/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",
        "@opentiny/vue": "https://registry.npmmirror.com/@opentiny/vue-runtime/3.17/files/dist3/tiny-vue-pc.mjs",
        "@opentiny/vue-icon": "https://registry.npmmirror.com/@opentiny/vue-runtime/3.17/files/dist3/tiny-vue-icon.mjs",
        "@opentiny/vue-locale": "https://registry.npmmirror.com/@opentiny/vue-runtime/3.17/files/dist3/tiny-vue-locale.mjs",
        "@opentiny/vue-common": "https://registry.npmmirror.com/@opentiny/vue-runtime/3.17/files/dist3/tiny-vue-common.mjs"
      }
    }
  </script>
  <!-- 引入 @opentiny/vue 样式 -->
  <link rel="stylesheet" href="https://registry.npmmirror.com/@opentiny/vue-theme/3.17/files/index.css" />
</head>