l-painter-text.vue 509 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <text style="opacity: 0;height: 0;"><slot/></text>
  3. </template>
  4. <script>
  5. import {parent, children} from '../common/relation';
  6. export default {
  7. name: 'lime-painter-text',
  8. mixins:[children('painter')],
  9. props: {
  10. type: {
  11. type: String,
  12. default: 'text'
  13. },
  14. uid: String,
  15. css: [String, Object],
  16. text: [String, Number],
  17. replace: Object,
  18. },
  19. data() {
  20. return {
  21. // type: 'text',
  22. el: {
  23. css: {},
  24. text: null
  25. },
  26. }
  27. }
  28. }
  29. </script>
  30. <style>
  31. </style>