Skip to content

Commit

Permalink
feat:更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
陈程 committed Nov 8, 2023
1 parent 7ddea79 commit 3a0360f
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ this.$lodop.previewTemp(temp);
this.$lodop.setLicenses(licenseInfo);

// 获取打印机列表,可根据IP获取远程电脑上的打印机
this.$lodop.getPrinters();
ip参数为选填,默认为本机127.0.0.1
this.$lodop.getPrinters(ip).then(res=> {
console.log('打印机列表--->', res)
})
```

## Attributes
Expand Down Expand Up @@ -114,6 +117,25 @@ tempValue 为打印模板对象, 对象中参数具体解析如下:
value: "自定义文本",
defaultValue: "自定义文本"
},
{
type: "vertical-line",
title: "竖线",
name: ""
},
{
type: "horizontal-line",
title: "横线",
name: ""
},
{
type: "braid-txt",
title: "当前时间",
value: "{YYYY-MM-DD HH:mm:ss}",
defaultValue: '',
width: 150,
height: 20,
name: "_getNowTime"
},
{
type: "braid-txt",
isEdit: false,
Expand Down Expand Up @@ -164,6 +186,11 @@ tempValue 为打印模板对象, 对象中参数具体解析如下:
}
],
columnsAttr: [
{
title: "序号",
value: "{序号}",
name: "_seq"
},
{
title: "产品名称",
value: "{产品名称}",
Expand Down Expand Up @@ -204,7 +231,7 @@ widgetOptions 为设计打印模板的打印项配置, 打印项有多种类

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ------------ | ------------------------------------------- | ------- | ------------------------------------------------------------- | ------ |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code | —— |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code / horizontal-line / vertical-line | —— |
| isEdit | 是否可编辑 | Boolean | true / false | —— |
| dragable | 是否可拖拽 | Boolean | true / false | true |
| resizable | 尺寸是否可变 | Boolean | true / false | true |
Expand Down Expand Up @@ -238,7 +265,7 @@ widgetOptions 为设计打印模板的打印项配置, 打印项有多种类

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ------------ | ------------------------------------------- | ------- | ------------------------------------------------------------- | ------ |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code | —— |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code / horizontal-line / vertical-line | —— |
| isEdit | 是否可编辑 | Boolean | true / false | false |
| dragable | 是否可拖拽 | Boolean | true / false | true |
| resizable | 尺寸是否可变 | Boolean | true / false | true |
Expand Down Expand Up @@ -266,7 +293,7 @@ widgetOptions 为设计打印模板的打印项配置, 打印项有多种类

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ------------ | ------------------------------------------- | ------- | ------------------------------------------------------------- | ---------------- |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code | —— |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code / horizontal-line / vertical-line | —— |
| isEdit | 是否可编辑 | Boolean | true / false | false |
| dragable | 是否可拖拽 | Boolean | true / false | true |
| resizable | 尺寸是否可变 | Boolean | true / false | true |
Expand Down Expand Up @@ -296,7 +323,7 @@ widgetOptions 为设计打印模板的打印项配置, 打印项有多种类

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ------------ | ------------------------------------------- | ------- | ------------------------------------------------------------- | ------ |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code | —— |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code / horizontal-line / vertical-line | —— |
| isEdit | 是否可编辑 | Boolean | true / false | false |
| dragable | 是否可拖拽 | Boolean | true / false | true |
| resizable | 尺寸是否可变 | Boolean | true / false | true |
Expand Down Expand Up @@ -338,7 +365,7 @@ widgetOptions 为设计打印模板的打印项配置, 打印项有多种类

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| ------------ | ------------------------------------------- | ------- | ------------------------------------------------------------- | ------------ |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code | —— |
| type | 模板类型 | String | braid-txt / braid-table / braid-html / braid-image / bar-code / horizontal-line / vertical-line | —— |
| isEdit | 是否可编辑 | Boolean | true / false | false |
| dragable | 是否可拖拽 | Boolean | true / false | true |
| resizable | 尺寸是否可变 | Boolean | true / false | true |
Expand Down

0 comments on commit 3a0360f

Please sign in to comment.