# x-wxml-to-canvas
**Repository Path**: xyzgy/x-wxml-to-canvas
## Basic Information
- **Project Name**: x-wxml-to-canvas
- **Description**: 基于微信小程序 wxml-to-canvas 改版的 uni版本的 html-to-canvas
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 9
- **Forks**: 4
- **Created**: 2021-01-24
- **Last Updated**: 2024-01-02
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
### 使用
#### 1、页面引用
* 确保已执行npm install
```
import xWxmlToCanvas from '@/components/x-wxml-to-canvas/x-wxml-to-canvas';
```
#### 2、components声明
```
components: {
xWxmlToCanvas
}
```
#### 3、使用
```
.container { width: 350px; height: 500px; background: #fff; border-radius: 20px; padding: 20px; } .img { width: 310px; height: 310px; } .wrap { display: flex; justify-content: space-between; margin-top: 10px; } .wraptext { display: inline-block; font-size: 13px; padding-right:10px; } .wrapimg { width: 60px; height: 60px; } |
container: { width: 350, height: 500, backgroundColor: '#fff', borderRadius: 20, padding: 20 }, img: { width: 310, height: 310 }, wrap: { flexDirection: 'row', justifyContent: 'space-between', marginTop: 10 }, wraptext: { width:210, height:60, fontSize: 13, paddingRight: 10 }, wrapimg: { width: 60, height: 60 } |