@@ -1932,40 +1932,40 @@ List of 300 VueJS Interview Questions
1932
1932
// Type is {String | Object | Function}
1933
1933
// Required.
1934
1934
'div',
1935
-
1935
+
1936
1936
// A data object corresponding to the attributes you would use in a template.
1937
- //Type is {Object}
1937
+ // Type is {Object}
1938
1938
// Optional.
1939
1939
{
1940
- // Normal HTML attributes
1941
- attrs: {
1942
- id: 'someId'
1943
- },
1944
- // Component props
1945
- props: {
1946
- myProp: 'somePropValue'
1947
- },
1948
- // DOM properties
1949
- domProps: {
1950
- innerHTML: 'This is some text'
1951
- },
1952
- // Event handlers are nested under ` on`
1953
- on: {
1954
- click: this.clickHandler
1955
- },
1956
- // Similar to ` v- bind: style` , accepting either a string, object, or array of objects.
1957
- style: {
1958
- color: 'red',
1959
- fontSize: '14px'
1960
- },
1961
- // Similar to ` v- bind: class ` , accepting either a string, object, or array of strings and objects.
1962
- class: {
1963
- classsName1: true,
1964
- classsName2: false
1965
- },
1966
- ....
1940
+ // Normal HTML attributes
1941
+ attrs: {
1942
+ id: 'someId'
1943
+ },
1944
+ // Component props
1945
+ props: {
1946
+ myProp: 'somePropValue'
1947
+ },
1948
+ // DOM properties
1949
+ domProps: {
1950
+ innerHTML: 'This is some text'
1951
+ },
1952
+ // Event handlers are nested under ` on`
1953
+ on: {
1954
+ click: this.clickHandler
1955
+ },
1956
+ // Similar to ` v- bind: style` , accepting either a string, object, or array of objects.
1957
+ style: {
1958
+ color: 'red',
1959
+ fontSize: '14px'
1960
+ },
1961
+ // Similar to ` v- bind: class ` , accepting either a string, object, or array of strings and objects.
1962
+ class: {
1963
+ classsName1: true,
1964
+ classsName2: false
1965
+ }
1966
+ // ....
1967
1967
},
1968
-
1968
+
1969
1969
// Children VNodes, built using ` createElement ()` , or using strings to get 'text VNodes'.
1970
1970
// Type is {String | Array}
1971
1971
// Optional.
0 commit comments