You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data object that the Vue instance is observing. The Vue instance proxies access to the properties on its data object.
844
+
Vue 实例观察的数据对象。Vue 实例代理了对其 data 对象属性的访问。
845
845
846
-
-**See also:**[Options - data](#data)
846
+
-**另见:**[选项 - data](#data)
847
847
848
848
### vm.$el
849
849
850
-
-**Type:**`HTMLElement`
850
+
-**类型:**`HTMLElement`
851
851
852
-
-**Read only**
852
+
-**只读**
853
853
854
-
-**Details:**
854
+
-**详细:**
855
855
856
-
The root DOM element that the Vue instance is managing.
856
+
Vue 实例使用的根 DOM 元素。
857
857
858
858
### vm.$options
859
859
860
-
-**Type:**`Object`
860
+
-**类型:**`Object`
861
861
862
-
-**Read only**
862
+
-**只读**
863
863
864
-
-**Details:**
864
+
-**详细:**
865
865
866
-
The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:
866
+
用于当前 Vue 实例的初始化选项。当选项中需要自定义属性时会有用处:
867
867
868
868
```js
869
869
newVue({
@@ -876,47 +876,47 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
876
876
877
877
### vm.$parent
878
878
879
-
-**Type:**`Vue instance`
879
+
-**类型:**`Vue instance`
880
880
881
-
-**Read only**
881
+
-**只读**
882
882
883
-
-**Details:**
883
+
-**详细:**
884
884
885
-
The parent instance, if the current instance has one.
885
+
父实例,如果当前实例有的话。
886
886
887
887
### vm.$root
888
888
889
-
-**Type:**`Vue instance`
889
+
-**类型:**`Vue instance`
890
890
891
-
-**Read only**
891
+
-**只读**
892
892
893
-
-**Details:**
893
+
-**详细:**
894
894
895
-
The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.
895
+
当前组件树的根 Vue 实例。如果当前实例没有父实例,属性值将会是其自身。
896
896
897
897
### vm.$children
898
898
899
-
-**Type:**`Array<Vue instance>`
899
+
-**类型:**`Array<Vue instance>`
900
900
901
-
-**Read only**
901
+
-**只读**
902
902
903
-
-**Details:**
903
+
-**详细:**
904
904
905
-
The direct child components of the current instance. **Note there's no order guarantee for `$children`, and it is not reactive.** If you find yourself trying to use `$children`for data binding, consider using an Array and `v-for`to generate child components, and use the Array as the source of truth.
Used to access content [distributed by slots](/guide/components.html#Content-Distribution-with-Slots). Each [named slot](/guide/components.html#Named-Slots)has its own corresponding property (e.g. the contents of `slot="foo"`will be found at `vm.$slots.foo`). The `default`property contains any nodes not included in a named slot.
0 commit comments