ascii-code.js 431 B

123456789101112131415161718192021
  1. const asciiCodeTool = require('../../../tools/ascii-code/index.js')
  2. const handlers = {
  3. setAsciiCodeState(changedData) {
  4. this.setData(asciiCodeTool.updateState(this.data, changedData))
  5. },
  6. onAsciiCodeInput(event) {
  7. this.setAsciiCodeState({
  8. asciiCodeInputText: event.detail.value
  9. })
  10. },
  11. clearAsciiCodeInput() {
  12. this.setData(asciiCodeTool.clearInput(this.data))
  13. }
  14. }
  15. module.exports = {
  16. handlers
  17. }