feat:完成生成打印纸的步骤
This commit is contained in:
@@ -6,7 +6,15 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
extClass: {
|
||||
key: {
|
||||
type: Number,
|
||||
value: 0,
|
||||
},
|
||||
word: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
@@ -15,7 +23,8 @@ Component({
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
displayStyle: '',
|
||||
word: '',
|
||||
color: '',
|
||||
},
|
||||
lifetimes: {
|
||||
attached() {},
|
||||
@@ -23,5 +32,10 @@ Component({
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {},
|
||||
methods: {
|
||||
onDelete() {
|
||||
const { key, word } = this.data;
|
||||
this.triggerEvent('onDelete', { key, word });
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user