refactor: update/fix JSDoc props

This commit is contained in:
Eric Liu 2020-11-04 06:04:25 -08:00
commit d38e6d8be6
204 changed files with 992 additions and 2359 deletions

View file

@ -1,14 +1,8 @@
<script>
/**
* Specify the current page index
* @type {number} [page=0]
*/
/** Specify the current page index */
export let page = 0;
/**
* Set to `true` to use the active state
* @type {boolean} [active=false]
*/
/** Set to `true` to use the active state */
export let active = false;
</script>

View file

@ -1,38 +1,20 @@
<script>
/**
* Specify the current page index
* @type {number} [page=0]
*/
/** Specify the current page index */
export let page = 0;
/**
* Specify the total number of pages
* @type {number} [total=10]
*/
/** Specify the total number of pages */
export let total = 10;
/**
* Specify the total number of pages to show
* @type {number} [shown=10]
*/
/** Specify the total number of pages to show */
export let shown = 10;
/**
* Set to `true` to loop the navigation
* @type {boolean} [loop=false]
*/
/** Set to `true` to loop the navigation */
export let loop = false;
/**
* Specify the forward button text
* @type {string} [forwardText="Next page"]
*/
/** Specify the forward button text */
export let forwardText = "Next page";
/**
* Specify the backward button text
* @type {string} [backwardText="Next page"]
*/
/** Specify the backward button text */
export let backwardText = "Previous page";
import { afterUpdate, createEventDispatcher } from "svelte";
@ -43,12 +25,6 @@
import { Button } from "../Button";
const dispatch = createEventDispatcher();
/**
* Minimum number of items to be shown
* @constant
* @type {4}
*/
const MIN = 4;
afterUpdate(() => {

View file

@ -1,14 +1,8 @@
<script>
/**
* Specify the pivot start index
* @type {number} [fromIndex=0]
*/
/** Specify the pivot start index */
export let fromIndex = 0;
/**
* Specify the pivot end index
* @type {number} [count=0]
*/
/** Specify the pivot end index */
export let count = 0;
import { createEventDispatcher } from "svelte";