1.0.36 • Published 3 years ago

@yipianjingxue/scene v1.0.36

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

scene

A Vue component to scene

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

使用组件

通过npm install @yipianjingxue/scene -s 安装到相应的项目下,安装成功如下图所示:

如图

到项目中的node_modules/目录下将可以看到:

如图

需要用到该组件时可以这样引入

import scene from '@yipianjingxuescene';
import Css from '@yipianjingxue/scene/dist/scene.min.css'
export default {
  name: 'app',
  components:{
      "scene": scene
    },
}

看一个demo:

<template>
  <div id="app">
    <div class="scene-wrap" style="width: 100px;"><scene content="33333" class="two"  :showtwo="false"></scene></div>
    <div class="scene-wrap" style="width: 100px;"><scene content="22222" class="two"  :showtwo="false"></scene></div>
    <div class="scene-wrap" style="width: 100px;"><scene content="1" class="two"  :showtwo="false"></scene></div>
    <router-view></router-view>
  </div>
</template>

<script>
import scene from '@yipianjingxue/scene';
import Css from '@yipianjingxue/scene/dist/scene.min.css'
export default {
  name: 'app',
  components:{
      "scene": scene
    },
}
</script>

效果:

如图

For detailed explanation on how things work, checkout the guide 构建过程,见 guide

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.0

3 years ago