feat:完成生成打印纸的步骤

This commit is contained in:
2025-06-02 10:05:59 +08:00
parent 419818eb24
commit 82c55fece3
18 changed files with 726 additions and 46 deletions
+19 -11
View File
@@ -5,23 +5,31 @@ Component({
/**
* 组件的属性列表
*/
properties: {
extClass: {
type: String,
value: '',
},
},
properties: {},
/**
* 组件的初始数据
*/
data: {
displayStyle: '',
},
data: {},
lifetimes: {
attached() {},
attached() {
(this as any).words = '';
},
},
/**
* 组件的方法列表
*/
methods: {},
methods: {
onConfirm(e: WechatMiniprogram.Input) {
let { value } = e.detail;
// (this as any).words = value;
value = value.replace(' ', '');
if (value.length > 0) {
this.triggerEvent('onConfirm', { value });
}
},
// onTap() {
// this.triggerEvent('onTap', { words: (this as any).words });
// },
},
});