excelItem.js 661 B

1234567891011121314151617181920212223
  1. let fs = require('fire-fs');
  2. let packageName = "excel-killer";
  3. module.exports = {
  4. init() {
  5. console.log("excel-item 注册组件!");
  6. Vue.component('excel-item', {
  7. props: ['data', 'index'],
  8. template: fs.readFileSync(Editor.url('packages://' + packageName + '/panel/item/excelItem.html', 'utf8')) + "",
  9. created() {
  10. },
  11. methods: {
  12. onBtnClickUse() {
  13. this.data.isUse=!this.data.isUse;
  14. console.log("on use: " + this.data.isUse);
  15. }
  16. },
  17. computed: {},
  18. });
  19. }
  20. };