dufu1991 пре 2 година
родитељ
комит
7543693e79

+ 2 - 0
demo/src/routes/+layout.svelte

@@ -1,6 +1,8 @@
 <script>
 	import { setContext, onMount } from 'svelte';
+	// @ts-ignore
 	import { page } from '$app/stores';
+	// @ts-ignore
 	import { goto } from '$app/navigation';
 	import { NavBar, Icon } from '../../../packages/stdf/components';
 	import zh_CN from '../../../packages/stdf/lang/zh_CN';

+ 3 - 0
demo/src/routes/en_US/indexBar/+page.svelte

@@ -103,6 +103,9 @@
 	const navHeight = 48;
 	const bottomHeight = 50;
 	const height = window.innerHeight - navHeight - bottomHeight;
+	/**
+	 * @type {'base' | 'full' | 'none'}
+	 */
 	let radius = 'base';
 	let dataFlag = 0;
 	let scrollAlign = true;

+ 3 - 0
demo/src/routes/en_US/input/+page.svelte

@@ -21,6 +21,9 @@
 	const changeStateFun = e => {
 		mobileLength = e.detail.length;
 	};
+	/**
+	 * @type {'success' | 'warning' | 'error' | 'info'| 'theme'}
+	 */
 	$: mobileState = mobileLength === 11 ? 'success' : mobileLength === 0 ? 'theme' : 'error';
 
 	// Press key

+ 3 - 0
demo/src/routes/zh_CN/indexBar/+page.svelte

@@ -102,6 +102,9 @@
 	const navHeight = 48;
 	const bottomHeight = 50;
 	const height = window.innerHeight - navHeight - bottomHeight;
+	/**
+	 * @type {'base' | 'full' | 'none'}
+	 */
 	let radius = 'base';
 	let dataFlag = 0;
 	let scrollAlign = true;

+ 3 - 0
demo/src/routes/zh_CN/input/+page.svelte

@@ -21,6 +21,9 @@
 	const changeStateFun = e => {
 		mobileLength = e.detail.length;
 	};
+	/**
+	 * @type {'success' | 'warning' | 'error' | 'info'| 'theme'}
+	 */
 	$: mobileState = mobileLength === 11 ? 'success' : mobileLength === 0 ? 'theme' : 'error';
 
 	// 按键 key