Skip to content

Commit 001b36c

Browse files
Imadmazipan
authored andcommitted
Translate Instance Properties (vuejs#129)
1 parent 2a988f3 commit 001b36c

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

src/v2/api/index.md

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,39 +1311,39 @@ type: api
13111311
13121312
- **Detail:**
13131313
1314-
The data object that the Vue instance is observing. The Vue instance proxies access to the properties on its data object.
1314+
Objek data yang dipantau oleh *Vue instance*. *Vue instance* menjembatani akses ke properti-properti yang ada di objek data *instance* tersebut.
13151315
13161316
- **Lihat juga:** [Options / Data - data](#data)
13171317
13181318
### vm.$props
13191319
1320-
> New in 2.2.0+
1320+
> Baru di versi 2.2.0+
13211321
13221322
- **Tipe:** `Object`
13231323
13241324
- **Detail:**
13251325
1326-
An object representing the current props a component has received. The Vue instance proxies access to the properties on its props object.
1326+
Sebuah objek yang merepresentasikan *props* terkini yang diterima sebuah komponen. *Vue instance* menjembatani akses ke properti-properti yang ada di objek *props* *instance* tersebut.
13271327
13281328
### vm.$el
13291329
13301330
- **Tipe:** `Element`
13311331
1332-
- **Read only**
1332+
- **Hanya dapat dibaca**
13331333
13341334
- **Detail:**
13351335
1336-
The root DOM element that the Vue instance is managing.
1336+
Elemen pangkal (root) DOM yang dikelola oleh *Vue instance*.
13371337
13381338
### vm.$options
13391339
13401340
- **Tipe:** `Object`
13411341
1342-
- **Read only**
1342+
- **Hanya dapat dibaca**
13431343
13441344
- **Detail:**
13451345
1346-
The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:
1346+
Opsi-opsi pembuatan (*instantiation*) yang digunakan untuk *Vue instance* tersebut. Properti ini berguna saat kamu ingin memasukkan properti khusus di dalam opsi:
13471347
13481348
``` js
13491349
new Vue({
@@ -1358,59 +1358,59 @@ type: api
13581358
13591359
- **Tipe:** `Vue instance`
13601360
1361-
- **Read only**
1361+
- **Hanya dapat dibaca**
13621362
13631363
- **Detail:**
13641364
1365-
The parent instance, if the current instance has one.
1365+
*Instance* induk (*parent*), jika *instance* tersebut mempunyainya.
13661366
13671367
### vm.$root
13681368
13691369
- **Tipe:** `Vue instance`
13701370
1371-
- **Read only**
1371+
- **Hanya dapat dibaca**
13721372
13731373
- **Detail:**
13741374
1375-
The root Vue instance of the current component tree. If the current instance has no parents this value will be itself.
1375+
*Vue instance* pangkal (root) dari pohon komponen yang ada. Jika *instance* tersebut tidak mempunyai induk (*parent*), maka nilai dari properti ini adalah *instance* itu sendiri.
13761376
13771377
### vm.$children
13781378
13791379
- **Tipe:** `Array<Vue instance>`
13801380
1381-
- **Read only**
1381+
- **Hanya dapat dibaca**
13821382
13831383
- **Detail:**
13841384
1385-
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.
1385+
Komponen-komponen anakan (child) yang langsung berada dibawah *instance* tersebut. **Sebagai catatan, tidak ada jaminan akan urutan `$children`, dan mereka tidak bersifat reaktif.** Jika kamu ingin mencoba menggunakan `$children` untuk mengikat data (binding), pertimbangkan untuk menggunakan *Array* dan `v-for` untuk membuat (*generate*) komponen anakan (*child*), dan gunakan *Array* tersebut sebagai sumber validitas.
13861386
13871387
### vm.$slots
13881388
13891389
- **Tipe:** `{ [name: string]: ?Array<VNode> }`
13901390
1391-
- **Read only**
1391+
- **Hanya dapat dibaca**
13921392
13931393
- **Detail:**
13941394
1395-
Used to programmatically 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.
1395+
Digunakan untuk secara terprogram mengakses konten [yang didistribusi dengan slots](../guide/components.html#Content-Distribution-with-Slots). Tiap [slot yang memiliki nama (*named slot*)](../guide/components-slots.html#Slot-yang-Memiliki-Nama-Named-Slot) mempunyai properti terkait sendiri (misal: konten `slot="foo"` akan ditemukan pada `vm.$slots.foo`). Properti `default` berisi titik-titik (*nodes*) yang tidak masuk di dalam slot yang memiliki nama (*named slot*).
13961396
1397-
Accessing `vm.$slots` is most useful when writing a component with a [render function](../guide/render-function.html).
1397+
Pengaksesan `vm.$slots` paling berguna saat menulis sebuah komponen dengan [fungsi *render*](.../guide/render-function.html).
13981398
1399-
- **Example:**
1399+
- **Contoh:**
14001400
14011401
```html
14021402
<blog-post>
14031403
<h1 slot="header">
1404-
About Me
1404+
Tentang Saya
14051405
</h1>
14061406

1407-
<p>Here's some page content, which will be included in vm.$slots.default, because it's not inside a named slot.</p>
1407+
<p>Disini beberapa konten halaman, yang akan masuk di dalam vm.$slots.default, karena tidak masuk di slot yang memiliki nama (named slot).</p>
14081408

14091409
<p slot="footer">
14101410
Copyright 2016 Evan You
14111411
</p>
14121412

1413-
<p>If I have some content down here, it will also be included in vm.$slots.default.</p>.
1413+
<p>Jika saya memiliki beberapa konten disini, itu juga akan masuk di dalam vm.$slots.default.</p>.
14141414
</blog-post>
14151415
```
14161416
@@ -1430,84 +1430,84 @@ type: api
14301430
```
14311431
14321432
- **Lihat juga:**
1433-
- [`<slot>` Component](#slot-1)
1434-
- [Content Distribution with Slots](../guide/components.html#Content-Distribution-with-Slots)
1435-
- [Render Functions - Slots](../guide/render-function.html#Slots)
1433+
- [Komponen `<slot>`](#slot-1)
1434+
- [Distribusi Konten dengan Slots](../guide/components.html#Content-Distribution-with-Slots)
1435+
- [Fungsi Render - Slots](../guide/render-function.html#Slots)
14361436
14371437
### vm.$scopedSlots
14381438
1439-
> New in 2.1.0+
1439+
> Baru di versi 2.1.0+
14401440
14411441
- **Tipe:** `{ [name: string]: props => Array<VNode> | undefined }`
14421442
1443-
- **Read only**
1443+
- **Hanya dapat dibaca**
14441444
14451445
- **Detail:**
14461446
1447-
Used to programmatically access [scoped slots](../guide/components.html#Scoped-Slots). For each slot, including the `default` one, the object contains a corresponding function that returns VNodes.
1447+
Digunakan untuk secara terprogram mengakses [scoped slots](../guide/components.html#Scoped-Slots). Tiap slot, termasuk `default`, objeknya memiliki fungsi terkait yang mengembalikan *VNodes*.
14481448
1449-
Accessing `vm.$scopedSlots` is most useful when writing a component with a [render function](../guide/render-function.html).
1449+
Pengaksesan `vm.$scopedSlots` sangat berguna saat menulis komponen dengan [fungsi render](../guide/render-function.html).
14501450
1451-
**Note:** since 2.6.0+, there are two notable changes to this property:
1451+
**Catatan:** sejak versi 2.6.0+, ada dua perubahan di properti ini yg perlu diperhatikan:
14521452
1453-
1. Scoped slot functions are now guaranteed to return an array of VNodes, unless the return value is invalid, in which case the function will return `undefined`.
1453+
1. Fungsi *scoped slot* saat ini menjamin akan mengembalikan *array* dari *VNodes*, kecuali jika nilai yang dikembalikan tidak valid, yang berarti fungsi tersebut akan mengembalikan `undefined`.
14541454
1455-
2. All `$slots` are now also exposed on `$scopedSlots` as functions. If you work with render functions, it is now recommended to always access slots via `$scopedSlots`, whether they currently use a scope or not. This will not only make future refactors to add a scope simpler, but also ease your eventual migration to Vue 3, where all slots will be functions.
1455+
2. Semua `$slots` saat ini juga akan terekspos di `$scopedSlots` sebagai fungsi. Jika kamu berurusan dengan fungsi render, saat ini direkomendasikan untuk selalu mengakses *slots* via `$scopedSlots`, entah saat ini mereka menggunakan *scope* atau tidak. Hal ini tidak hanya akan membuat *refactors* mendatang semakin mudah dalam menambahkan sebuah *scope*, tapi juga akan memudahkan migrasi nantinya ke Vue 3, yang dimana semua *slots* adalah fungsi-fungsi.
14561456
14571457
- **Lihat juga:**
1458-
- [`<slot>` Component](#slot-1)
1458+
- [Komponen `<slot>`](#slot-1)
14591459
- [Scoped Slots](../guide/components.html#Scoped-Slots)
1460-
- [Render Functions - Slots](../guide/render-function.html#Slots)
1460+
- [Fungsi Render - Slots](../guide/render-function.html#Slots)
14611461
14621462
### vm.$refs
14631463
14641464
- **Tipe:** `Object`
14651465
1466-
- **Read only**
1466+
- **Hanya dapat dibaca**
14671467
14681468
- **Detail:**
14691469
1470-
An object of DOM elements and component instances, registered with [`ref` attributes](#ref).
1470+
Sebuah objek dari elemen-elemen DOM dan *instances* komponen, didaftarkan dengan [attribut `ref`](#ref).
14711471
14721472
- **Lihat juga:**
1473-
- [Child Component Refs](../guide/components.html#Child-Component-Refs)
1473+
- [*Refs* pada Komponen Anakan (*Child*)](../guide/components.html#Child-Component-Refs)
14741474
- [Special Attributes - ref](#ref)
14751475
14761476
### vm.$isServer
14771477
14781478
- **Tipe:** `boolean`
14791479
1480-
- **Read only**
1480+
- **Hanya dapat dibaca**
14811481
14821482
- **Detail:**
14831483
1484-
Whether the current Vue instance is running on the server.
1484+
Menyatakan apakah *Vue instance* tersebut berjalan di server.
14851485
14861486
- **Lihat juga:** [Server-Side Rendering](../guide/ssr.html)
14871487
14881488
### vm.$attrs
14891489
1490-
> New in 2.4.0+
1490+
> Baru di versi 2.4.0+
14911491
14921492
- **Tipe:** `{ [key: string]: string }`
14931493
1494-
- **Read only**
1494+
- **Hanya dapat dibaca**
14951495
14961496
- **Detail:**
14971497
1498-
Contains parent-scope attribute bindings (except for `class` and `style`) that are not recognized (and extracted) as props. When a component doesn't have any declared props, this essentially contains all parent-scope bindings (except for `class` and `style`), and can be passed down to an inner component via `v-bind="$attrs"` - useful when creating higher-order components.
1498+
Berisi ikatan (bindings) attribut yang berada di cakupan induk (*parent*) (kecuali untuk `class` dan `style`) yang tidak dianggap (dan diekstrak) sebagai *props*. Saat sebuah komponen tidak memiliki deklarasi *props*, properti ini pada dasarnya berisi semua ikatan (bindings) yang berada di cakupan induk (*parent*) (kecuali untuk `class` dan `style`), dan dapat diteruskan kebawah ke komponen *inner* via `v-bind="$attrs"` - berguna saat membuat komponen *higher-order* (HOC).
14991499
15001500
### vm.$listeners
15011501
1502-
> New in 2.4.0+
1502+
> Baru di versi 2.4.0+
15031503
15041504
- **Tipe:** `{ [key: string]: Function | Array<Function> }`
15051505
1506-
- **Read only**
1506+
- **Hanya dapat dibaca**
15071507
15081508
- **Detail:**
15091509
1510-
Contains parent-scope `v-on` event listeners (without `.native` modifiers). This can be passed down to an inner component via `v-on="$listeners"` - useful when creating transparent wrapper components.
1510+
Berisi pemantau (*listeners*) *events* `v-on` yang berada di cakupan induk (parent) (tanpa pengubah (*modifiers*) `.native`). Properti ini dapat diteruskan kebawah ke komponen *inner* via `v-on="$listeners"` - berguna saat membuat komponen-komponen penyelubung (wrapper) yang bersifat transparan.
15111511
15121512
## Instance Methods / Data
15131513

0 commit comments

Comments
 (0)