1.0.18 • Published 3 years ago

@wya/assist-vm v1.0.18

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

Playgroud

npm install @wya/vue-cli -g
  • npm run dev

注意

  • 目前 Portal 只能单独用 js 包裹一层
  • @wya/sass 编译上 rollup 和 webpack 存在差异, 暂时不使用
  • vc的包只能这么引入: import Portal from '@wya/vc/lib/portal';

Sortable模块

用法

import { createVMDrags } from '@wya/vm';
import { Sorts } from '@wya/assist-vm';

const Modules = {
	...Sorts.modules, 
	// custom
};
let { Combo, Preview } = createVMDrags(Modules, { mode: 'sortable' });

Sorts 参数说明

名称说明开发计划
keys所有模块的key1-
origins原始模块1-
modules默认模块1-
getModules可配置的Modules1-

默认模块

  • Sorts.keys
名称说明开发计划
page页面设置1-
rtf富文本1-
space辅助空白1-
cutoff分割线1-

Draggable模块

暂无

公共模块

Viewer

components

  • 用法
import { Viewer } from '@wya/assist-vm';

export default {
	components: {
		'vm-viewer-layout': Viewer.Layout
	}
};
  • Layout
名称说明默认值其他
inner是否为内填充方式false-

mixins

  • 用法
import { Viewer } from '@wya/assist-vm';

export default {
	// 前者无参数的写法,后者带参数的写法
	mixins: [Viewer.mixins(['layout-style', { name: 'rebuild-index', prefix: 'q-' }])],
	components: {
		'vm-viewer-layout': Viewer.Layout
	}
};
  • layout-style

在不使用View.Layout时,使用此项可快捷自定义, 参数: layoutStyle.wrapperlayoutStyle.content

  • rebuild-index

用于处理同一分类下index重新排序,默认值 prefix: 'q-', 参数: rebuildIndex

Editor

components

  • 用法
import { Editor } from '@wya/assist-vm';

export default {
	components: {
		'vm-editor-layout': Editor.Layout,
		'vm-editor-slider': Editor.Slider,
		'vm-editor-add': Editor.Add,
		'vm-editor-cell': Editor.Cell,
		// ...
	}
};
名称说明默认值其他
title标题''-

项目移植而来,可能有些不完善,及时PR

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.11

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago