1.0.36 • Published 2 years ago

@yipianjingxue/scene v1.0.36

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.0

2 years ago