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
- `name` - string, Used to automatically generate transition CSS class names. e.g. `name: 'fade'` will auto expand to `.fade-enter`, `.fade-enter-active`, etc. Defaults to `"v"`.
2492
-
- `appear` - boolean, Whether to apply transition on initial render. Defaults to `false`.
2493
-
- `css` - boolean, Whether to apply CSS transition classes. Defaults to `true`. If set to `false`, will only trigger JavaScript hooks registered via component events.
2494
-
- `type` - string, Specify the type of transition events to wait for to determine transition end timing. Available values are `"transition"` and `"animation"`. By default, it will automatically detect the type that has a longer duration.
2495
-
- `mode` - string, Controls the timing sequence of leaving/entering transitions. Available modes are `"out-in"` and `"in-out"`; defaults to simultaneous.
2491
+
- `name` - string, Digunakan untuk menghasilkan nama kelas CSS transisi secara otomatis. Sebagai contoh `name: 'fade'` akan otomatis _expand_ ke `.fade-enter`, `.fade-enter-active`, dan lain-lain. Nilai bawaan `"v"`.
2492
+
- `appear` - boolean, Apakah akan menerapkan transisi dalam render awal. Nilai bawaan `false`.
2493
+
- `css` - boolean, Apakah akan menerapkan _class_ transisi CSS. Nilai bawaan `true`. Jika diatur menjadi `false`, hanya akan memicu _hook_ Javascript teregistrasi via _event_ komponen.
2494
+
- `type` - string, Menentukan tipe _event_ transisi untuk menunggu untuk memastikan waktu akhir transisi. Nilai yang tersedia adalah `"transition"` dan `"animation"`. Secara bawaan, ini akan secara otomatis mendeteksi tipe yang memiliki durasi lebih lama.
2495
+
- `mode` - string, Mengontrol urutan waktu dari transisi pergi/masuk. Mode yang tersedia adalah `"out-in"` dan `"in-out"`; nilai bawaan serentak.
2496
2496
- `enter-class` - string
2497
2497
- `leave-class` - string
2498
2498
- `appear-class` - string
@@ -2519,20 +2519,20 @@ Digunakan untuk menunjukkan bahwa sebuah elemen `<template>` adalah *scoped slot
2519
2519
2520
2520
- **Penggunaan:**
2521
2521
2522
-
`<transition>` serve as transition effects for **single** element/component. The `<transition>` only applies the transition behavior to the wrapped content inside; it doesn't render an extra DOMelement, or show up in the inspected component hierarchy.
2522
+
`<transition>` disajikan sebagai efek transisi untuk elemen/komponen **tunggal**. `<transition>` hanya menerapkan tingkah laku transisi untuk konten yang terbungkus di dalam; ini tidak merender elemen DOM tambahan, atau ditampilkan dalam hirarki komponen yang terinspeksi.
2523
2523
2524
2524
```html
2525
-
<!-- simple element -->
2525
+
<!-- elemen sedehana -->
2526
2526
<transition>
2527
2527
<div v-if="ok">toggled content</div>
2528
2528
</transition>
2529
2529
2530
-
<!-- dynamic component -->
2530
+
<!-- komponen dinamis -->
2531
2531
<transition name="fade" mode="out-in" appear>
2532
2532
<component :is="view"></component>
2533
2533
</transition>
2534
2534
2535
-
<!-- event hooking -->
2535
+
<!-- pengait event -->
2536
2536
<div id="transition-demo">
2537
2537
<transition @after-enter="transitionComplete">
2538
2538
<div v-show="ok">toggled content</div>
@@ -2552,25 +2552,25 @@ Digunakan untuk menunjukkan bahwa sebuah elemen `<template>` adalah *scoped slot
2552
2552
}).$mount('#transition-demo')
2553
2553
```
2554
2554
2555
-
-**Lihat juga:** [Transitions: Entering, Leaving, and Lists](../guide/transitions.html)
2555
+
- **Lihat juga:** [Transisi: Masuk, Pergi, dan Daftar Transisi lainnya](../guide/transitions.html)
2556
2556
2557
2557
### transition-group
2558
2558
2559
2559
- **Props:**
2560
-
-`tag`- string, defaults to`span`.
2561
-
-`move-class`-overwrite CSSclassapplied during moving transition.
2562
-
-exposes the same props as`<transition>`except`mode`.
- membuka _prop_ yang sama sebagai `<transition>` kecuali `mode`.
2563
2563
2564
2564
- **Events:**
2565
-
-exposes the same events as`<transition>`.
2565
+
- membuka _event_ yang sama sebagai `<transition>`.
2566
2566
2567
2567
- **Penggunaan:**
2568
+
2569
+
`<transition-group>` disajikan sebagai efek transisi untuk elemen/komponen **berganda**. `<transition-group>` merender elemen DOM yang sebenarnya. Sebagai bawaan ini menernder `<span>`. dan Anda dapat mengkonfigurasi elemen apa yang harus dirender melalui atribut `tag`.
2568
2570
2569
-
`<transition-group>` serve as transition effects for**multiple** elements/components. The`<transition-group>`renders a real DOMelement. By default it renders a `<span>`, and you can configure what element it should render via the `tag` attribute.
2571
+
Catatan setiap _child_ dalam `<transition-group>` harus memiliki **kunci yang unik** agar animasi bekerja dengan baik.
2570
2572
2571
-
Note every child in a `<transition-group>` must be **uniquely keyed**for the animations to work properly.
2572
-
2573
-
`<transition-group>` supports moving transitions via CSStransform. When a child's position on screen has changed after an update, it will get applied a moving CSS class (auto generated from the `name` attribute or configured with the `move-class` attribute). If the CSS `transform` property is "transition-able" when the moving class is applied, the element will be smoothly animated to its destination using the [FLIP technique](https://aerotwist.com/blog/flip-your-animations/).
2573
+
`<transition-group>` mendukung transisi berjalan melalui transform CSS. Ketika posisi sebuah _child_ dalam layar berganti setekah pembaruan, ini akan menerapkan _class_ CSS berjalan (otomatis dihasilkan dari atribut `name` atau terkonfigurasi dengan atribut `move-class`). Jika properti `transform` CSS adalah "transition-able" ketika _class_ berjalan diterapkan, elemen akan teranimasi dengan lancar ke destinasi menggunakan [teknik FLIP](https://aerotwist.com/blog/flip-your-animations/).
2574
2574
2575
2575
```html
2576
2576
<transition-group tag="ul" name="slide">
@@ -2580,100 +2580,100 @@ Digunakan untuk menunjukkan bahwa sebuah elemen `<template>` adalah *scoped slot
2580
2580
</transition-group>
2581
2581
```
2582
2582
2583
-
- **Lihat juga:** [Transitions: Entering, Leaving, and Lists](../guide/transitions.html)
2583
+
- **Lihat juga:** [Transisi: Masuk, Pergi, dan Daftar Transisi lainnya](../guide/transitions.html)
2584
2584
2585
2585
### keep-alive
2586
2586
2587
2587
- **Props:**
2588
-
- `include` - string or RegExp or Array. Only components with matching names will be cached.
2589
-
- `exclude` - string or RegExp or Array. Any component with a matching name will not be cached.
2590
-
- `max` - number. The maximum number of component instances to cache.
2588
+
- `include` - string atau RegExp atau Array. Hanya komponen dengan nama yang cocok akan dimasukan _cache_.
2589
+
- `exclude` - string atau RegExp atau Array. Komponen apapun dengan nama yang cocok tidak akan dimasukan _cache_.
2590
+
- `max` - number. Angka maksimum dari instan komponen yang dapat masuk ke daam _cache_.
2591
2591
2592
2592
- **Penggunaan:**
2593
2593
2594
-
When wrapped around a dynamic component, `<keep-alive>` caches the inactive component instances without destroying them. Similar to `<transition>`, `<keep-alive>` is an abstract component: it doesn't render a DOMelement itself, and doesn't show up in the component parent chain.
2594
+
Kerika membungkus komponen dinamis, _cache_ `<keep-alive` instan komponen tidak aktif tanpa menghancurkannya. Seperti `<transition>`, `<keep-alive>` adalah komponen abstrak: tidak merender elemen DOM sendiri, dan tidak tampil dalam rantai komponen _parent_.
2595
2595
2596
-
When a component is toggled inside `<keep-alive>`, its `activated` and `deactivated` lifecycle hooks will be invoked accordingly.
2596
+
Ketika komponen diaktifkan dalam `<keep-alive>`, kait siklus hidup `activated` dan `deactivated` akan diminta sesuai.
2597
2597
2598
-
> In 2.2.0+ and above, `activated` and `deactivated` will fire for all nested components inside a `<keep-alive>` tree.
2598
+
> Dalam 2.2.0+ ke atas, `activated` dan `deactivated` akan menyala untuk semua komponen bersarang di dalam pohon `<keep-alive>`.
2599
2599
2600
-
Primarily used to preserve component state or avoid re-rendering.
2600
+
Terutama digunakan untuk mempertahankan _state_ komponen atau menghindari merender ulang.
2601
2601
2602
2602
```html
2603
-
<!-- basic -->
2603
+
<!-- dasar -->
2604
2604
<keep-alive>
2605
2605
<component :is="view"></component>
2606
2606
</keep-alive>
2607
2607
2608
-
<!-- multiple conditional children -->
2608
+
<!-- kondisional _children_ berganda -->
2609
2609
<keep-alive>
2610
2610
<comp-a v-if="a > 1"></comp-a>
2611
2611
<comp-b v-else></comp-b>
2612
2612
</keep-alive>
2613
2613
2614
-
<!-- used together with `<transition>` -->
2614
+
<!-- digunakan bersama dengan `<transition>` -->
2615
2615
<transition>
2616
2616
<keep-alive>
2617
2617
<component :is="view"></component>
2618
2618
</keep-alive>
2619
2619
</transition>
2620
2620
```
2621
2621
2622
-
Note, `<keep-alive>` is designed for the case where it has one direct child component that is being toggled. It does not work if you have `v-for` inside it. When there are multiple conditional children, as above, `<keep-alive>` requires that only one child is rendered at a time.
2622
+
Catatan, `<keep-alive>` didesain untuk kasus dimana komponen memiliki satu komponen _child_ yang sedang diaktifkan. Ini tidak bekerja jika Anda memiliki `v-for` di dalamnya. Ketika disana terdapat kondisional _children_ berganda, sebagaimana di atas, `<keep-alive>` memerlukan hanya satu _child_ dirender dalam satu waktu.
2623
2623
2624
2624
- **`include` and `exclude`**
2625
2625
2626
-
> New in 2.1.0+
2626
+
> Baru di 2.1.0+
2627
2627
2628
-
The `include` and `exclude` props allow components to be conditionally cached. Both props can be a comma-delimited string, a RegExp or an Array:
2628
+
_Prop_ `include` dan `exclude` mengijinkan komponen untuk secara kondisional dimasukan ke daam _cache_. Semua _prop_ dapat menjadi string _comma-delimited_, sebuah RegExp atau Array:
2629
2629
2630
2630
``` html
2631
2631
<!-- comma-delimited string -->
2632
2632
<keep-alive include="a,b">
2633
2633
<component :is="view"></component>
2634
2634
</keep-alive>
2635
2635
2636
-
<!-- regex (use `v-bind`) -->
2636
+
<!-- regex (gunakan `v-bind`) -->
2637
2637
<keep-alive :include="/a|b/">
2638
2638
<component :is="view"></component>
2639
2639
</keep-alive>
2640
2640
2641
-
<!-- Array (use `v-bind`) -->
2641
+
<!-- Array (gunakan `v-bind`) -->
2642
2642
<keep-alive :include="['a', 'b']">
2643
2643
<component :is="view"></component>
2644
2644
</keep-alive>
2645
2645
```
2646
2646
2647
-
The match is first checked on the component's own `name`option, then its local registration name (the key in the parent's `components` option) if the `name` option is not available. Anonymous components cannot be matched against.
2647
+
Kecocokan adalah yang pertama kali diperiksa pada opsi `name` komponen itu sendiri, lalu nama registrasi lokal (kunci dalam opsi komponen _parent_) jika opsi `name` tidak tersedia. Komponen anonim tidak dapat dicocokan.
2648
2648
2649
2649
- **`max`**
2650
2650
2651
2651
> New in 2.5.0+
2652
2652
2653
-
The maximum number of component instances to cache. Once this number is reached, the cached component instance that was least recently accessed will be destroyed before creating a new instance.
2653
+
Angka maksimum dari instan komponen untuk dimasukan ke dalam _cache_. Saat angka ini tercapai, instan komponen dalam _cache_ yang paling sedikit diakses akan dihancurkan sebelum membuat instan baru.
2654
2654
2655
2655
``` html
2656
2656
<keep-alive :max="10">
2657
2657
<component :is="view"></component>
2658
2658
</keep-alive>
2659
2659
```
2660
2660
2661
-
<p class="tip">`<keep-alive>` does not work with functional components because they do not have instances to be cached.</p>
2661
+
<p class="tip">`<keep-alive>` tidak bekerja dengan komponen fungsional karena mereka tidak memiliki instan untuk dimasukan ke dalam _cache_.</p>
0 commit comments