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.
846
+
Vue 实例观察的数据对象。Vue 实例代理了对其 data 对象属性的访问。
847
847
848
-
-**See also:**[Options - data](#data)
848
+
-**另见:**[选项 - data](#data)
849
849
850
850
### vm.$el
851
851
852
-
-**Type:**`HTMLElement`
852
+
-**类型:**`HTMLElement`
853
853
854
-
-**Read only**
854
+
-**只读**
855
855
856
-
-**Details:**
856
+
-**详细:**
857
857
858
-
The root DOM element that the Vue instance is managing.
858
+
Vue 实例使用的根 DOM 元素。
859
859
860
860
### vm.$options
861
861
862
-
-**Type:**`Object`
862
+
-**类型:**`Object`
863
863
864
-
-**Read only**
864
+
-**只读**
865
865
866
-
-**Details:**
866
+
-**详细:**
867
867
868
-
The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:
868
+
用于当前 Vue 实例的初始化选项。当选项中需要自定义属性时会有用处:
869
869
870
870
```js
871
871
newVue({
@@ -878,47 +878,47 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
878
878
879
879
### vm.$parent
880
880
881
-
-**Type:**`Vue instance`
881
+
-**类型:**`Vue instance`
882
882
883
-
-**Read only**
883
+
-**只读**
884
884
885
-
-**Details:**
885
+
-**详细:**
886
886
887
-
The parent instance, if the current instance has one.
887
+
父实例,如果当前实例有的话。
888
888
889
889
### vm.$root
890
890
891
-
-**Type:**`Vue instance`
891
+
-**类型:**`Vue instance`
892
892
893
-
-**Read only**
893
+
-**只读**
894
894
895
-
-**Details:**
895
+
-**详细:**
896
896
897
-
The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.
897
+
当前组件树的根 Vue 实例。如果当前实例没有父实例,属性值将会是其自身。
898
898
899
899
### vm.$children
900
900
901
-
-**Type:**`Array<Vue instance>`
901
+
-**类型:**`Array<Vue instance>`
902
902
903
-
-**Read only**
903
+
-**只读**
904
904
905
-
-**Details:**
905
+
-**详细:**
906
906
907
-
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