2.0.19 • Published 5 months ago
oh-gov-docblacks v2.0.19
说明
oh-gov-docblack,是一个红头文件的编辑器,便捷的工具会让您信手拈来,如鱼得水
安装
使用 npm 安装
npm install oh-gov-docblacks
使用 yarn 安装
yarn add oh-gov-docblacks
使用 pnpm 安装
pnpm install oh-gov-docblacks
配置
main.ts
import OhGovDocblack from 'oh-gov-docblack';
// 引入样式
import "oh-gov-docblack/lib/oh-gov-docblack.css";
快速上手
import Docblock from "oh-gov-docblacks";
const editor = new Docblock(document, options).getEditor()
参数
document
需要生成编辑器的dom
options
配置参数
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
mode | 编辑器模式 | String | edit | readonly |
docmentId | 文档id | Number | - | - |
hideHeader | 是否影藏头部 | boolean | false | true |
appkey | - | - | - | - |
methods
方法 | 说明 | 参数 |
---|---|---|
getEditor | 获取编辑器对象 | - |
editor methods
使用方式
import Docblock from "oh-gov-docblacks";
const editor = new Docblock(document, options).getEditor()
editor.command.commandName()
2.0.19
5 months ago
2.0.18
5 months ago
2.0.17
5 months ago
2.0.16
5 months ago
2.0.15
5 months ago
2.0.13
5 months ago
2.0.14
5 months ago
2.0.12
5 months ago
2.0.11
5 months ago
2.0.10
5 months ago
2.0.9
5 months ago
2.0.8
5 months ago
2.0.7
5 months ago
2.0.6
5 months ago
2.0.5
5 months ago
2.0.4
5 months ago
2.0.3
5 months ago
2.0.2
5 months ago
1.0.2
7 months ago
1.0.1
7 months ago