更新记录
1.0.3(2025-09-09) 下载此版本
更新文档
1.0.2(2025-09-09) 下载此版本
更新文档
1.0.1(2025-09-09) 下载此版本
支持中文编码
查看更多平台兼容性
uni-app(4.07)
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
- | √ | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
uni-app x(4.07)
Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
---|---|---|---|---|---|
- | - | - | - | - | - |
创印蓝牙打印插件
使用方法
CPCL 打印指令
import PrintCPCL from '@/uni_modules/chuangyin-bluetooth/utils/print_cpcl.js'
const cpcl = new PrintCPCL()
cpcl.text_bold('hello, world!')
cpcl.text('欢迎使用创印智能打印机!')
const data = cpcl.render()
蓝牙打印机
import BluetoothPrinter from '@/uni_modules/chuangyin-bluetooth/utils/bluetooth_printer.js'
const printer = new BluetoothPrinter(uni)
printer.registeredDevices = ['GP-M421-87F6']
printer.getState({
success: (res) => {
printer.writeBuffer(data)
}
})