feat:完成生成打印纸的步骤
This commit is contained in:
@@ -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 });
|
||||
// },
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user