@ektx/v-macos
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@ektx/v-macos", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "系统主框架", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,18 +0,42 @@ | ||
# 基础组件文件结构模版 | ||
# v-macos | ||
用于快速创建统一规范化的组件模块 | ||
类似 Mac OS 的页面布局解决方案 | ||
## 使用 | ||
描述组件的使用 | ||
HTML | ||
```html | ||
<template> | ||
<div id="app"> | ||
<VMacOSFrame /> | ||
</div> | ||
</template> | ||
### store | ||
当需要改变菜单时,你可能要用到 store 功能,我们为你提供了以下的方法,让你可以方便的修改你的应用菜单 | ||
<script> | ||
// 引入主界面 | ||
import { VMacOSFrame } from '@ektx/v-macos' | ||
> 确保你的项目使用了 vuex | ||
export default { | ||
name: 'app', | ||
components: { VMacOSFrame } | ||
} | ||
</script> | ||
``` | ||
在你的 stroe 文件中,先添加以下内容 | ||
HTML | ||
```html | ||
<template> | ||
<VMacOSDesktop/> | ||
</template> | ||
``` | ||
```js | ||
import { VMacOSDesktop } from '@ektx/v-macos' | ||
import { mapMutations } from 'vuex' | ||
export default { | ||
name: 'index', | ||
components: { | ||
VMacOSDesktop | ||
} | ||
} | ||
``` | ||
## API | ||
组件相应的API说明 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5349
43