123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- Component({
-
- options: {
- multipleSlots: true,
- styleIsolation: "apply- q",
- pureDataPattern: /^_/
- },
- properties: {
- val: {
- type: String,
- value: 10
- },
- count: {
- type: String
- },
- obj: {
- type: Object
- }
- },
-
- data: {
- num: 0,
- isShow: true,
- _aa: 2
- },
- lifetimes: {
- attached: function () {
-
- },
- detached: function () {
-
- },
- },
- pageLifetimes: {
- show: function () {
-
- },
- hide: function () {
-
- },
- resize: function (size) {
-
- }
- },
-
- observers: {
- count: function (val) {
- console.log(val)
- }
- },
-
- methods: {
-
- add(event) {
-
-
-
-
-
-
-
- console.log(event)
- this.triggerEvent('myevent', {
- step: 5
- })
- }
- }
- })
|