浏览代码

Update the order.

Naotoshi Fujita 2 年之前
父节点
当前提交
4d8e49a29e
共有 2 个文件被更改,包括 14 次插入9 次删除
  1. 6 1
      dist/types/index.d.ts
  2. 8 8
      src/js/types/options.ts

+ 6 - 1
dist/types/index.d.ts

@@ -404,6 +404,12 @@ interface Options extends ResponsiveOptions {
      * - `'move'`: Trims spaces and focuses to move the slider when requested.
      */
     trimSpace?: boolean | 'move';
+    /**
+     * If `true` and the `focus` option is available:
+     * - Disables the next arrow when a carousel reaches the last page even if the active slide is not the last slide.
+     * - Omits redundant pagination dots which just change the active slide and do not move a carousel.
+     */
+    compact?: boolean;
     /**
      * Updates the `is-active` status of slides just before moving the slider.
      */
@@ -426,7 +432,6 @@ interface Options extends ResponsiveOptions {
      * If `true`, screen readers will read a content of each slide whenever slide changes.
      */
     live?: boolean;
-    compact?: boolean;
     /**
      * Determines whether to use the Transition component or not.
      */

+ 8 - 8
src/js/types/options.ts

@@ -152,10 +152,17 @@ export interface Options extends ResponsiveOptions {
   /**
    * Determines whether to trim spaces before/after the slider if the `focus` option is available.
    * - `true`: Trims spaces. The slider may stay on the same location even when requested to move.
-   * - `'move'`: Trims spaces and focuses to move the slider when requested.
+   * - `'move'`: Trims spaces and forces to move the slider when requested.
    */
   trimSpace?: boolean | 'move';
 
+  /**
+   * If `true` and the `focus` option is available:
+   * - Disables the next arrow when a carousel reaches the last page even if the active slide is not the last slide.
+   * - Omits redundant pagination dots which just change the active slide and do not move a carousel.
+   */
+  compact?: boolean;
+
   /**
    * Updates the `is-active` status of slides just before moving the slider.
    */
@@ -183,13 +190,6 @@ export interface Options extends ResponsiveOptions {
    */
   live?: boolean;
 
-  /**
-   * If `true` and the `focus` option is available:
-   * - Disables the next arrow when a carousel reaches the last page even if the active slide is not the last slide.
-   * - Omits redundant pagination dots which just change the active slide and do not move a carousel.
-   */
-  compact?: boolean;
-
   /**
    * Determines whether to use the Transition component or not.
    */