0.0.4 • Published 8 months ago

@suey/rocketry v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Install

Compatibility

Rocketry's output file is used to build your own application in the framework, and this package uses a lot of new syntax. If you want to be compatible with more browsers, please add Babel and Polyfill yourself, and ensure that the build tool helps you to be compatible with lower versions of browsers.

IEFirefoxChromeSafari
Edge ≥ 79Firefox ≥ 78Chrome ≥ 64Safari ≥ 12

Version

Rocketry is currently a personal component library that handles development iterations.

Using Package Management Tools

I recommend using the package management tool (NPM, YARN)( https://classic.yarnpkg.com/lang/en/ ), PNPMhttps://pnpm.io/ ))Go install Rocketry

This way, you can use the build tool Vitehttps://vitejs.dev )And webpackhttps://webpack.js.org/ )Or more.

# Choose your favorite build tool

# NPM
$ npm install @suey/rocketry --save

# Yarn
$ yarn add @suey/rocketry

# pnpm
$ pnpm install @suey/rocketry

If your network environment is not good, it is recommended to use the image source cnpmhttps://github.com/cnpm/cnpm )Or Alibabahttps://registry.npmmirror.com/ ).

The component is ready for normal use, and currently only one usage example is provided

Example

// main.ts
import '@suey/rocketry/index.css';
<template>
  <RMacDocker>
    <template #main>Dfffff</template>

    <template #default>
      <template v-for="(src, index) in list" :key="index"><RMacDockerItem :src="src" /></template>
    </template>

    <template #control>
      <RMacDockerItem src="https://tse3-mm.cn.bing.net/th/id/OIP-C.HKngSDiahYfSyociRrS4KwAAAA?w=143&h=150&c=7&r=0&o=5&pid=1.7" />
    </template>
  </RMacDocker>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue';
import { RMacDocker, RMacDockerItem } from '@suey/rocketry';

const list = [
  'https://tse4-mm.cn.bing.net/th/id/OIP-C.wPY2_PJMnXtLAUKPUAlwlAAAAA?w=152&h=140&c=7&r=0&o=5&pid=1.7',
  'https://tse3-mm.cn.bing.net/th/id/OIP-C.Xhuf16W9uzvkQPj6NhDDRAAAAA?w=130&h=130&c=7&r=0&o=5&pid=1.7',
  'https://tse1-mm.cn.bing.net/th/id/OIP-C.hlviKjBLfMuQ9Fr7J2cWzwAAAA?w=140&h=150&c=7&r=0&o=5&pid=1.7',
  'https://tse1-mm.cn.bing.net/th/id/OIP-C.hlviKjBLfMuQ9Fr7J2cWzwAAAA?w=140&h=150&c=7&r=0&o=5&pid=1.7',
  'https://tse1-mm.cn.bing.net/th/id/OIP-C.hlviKjBLfMuQ9Fr7J2cWzwAAAA?w=140&h=150&c=7&r=0&o=5&pid=1.7',
];
</script>