Skip to content

Commit

Permalink
fix(docs): add input-number
Browse files Browse the repository at this point in the history
  • Loading branch information
koory1st committed Dec 1, 2023
1 parent 471b6e7 commit fb697bc
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 88 deletions.
1 change: 1 addition & 0 deletions docs/src/lib/component_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const component_group_list = [
name: 'cutil02020',
component_list: [
{ key: 'input', name: 'cinput01010' },
{ key: 'input_number', name: 'cinputNum01010' },
{ key: 'checkbox', name: 'ccheckbox01010' },
{ key: 'radio', name: 'cradio01010' },
],
Expand Down
2 changes: 2 additions & 0 deletions docs/src/lib/i18n/zh/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import scrollbar from '$lib/i18n/zh/scrollbar.js';
import checkbox from '$lib/i18n/zh/checkbox.js';
import divider from '$lib/i18n/zh/divider.js';
import input from '$lib/i18n/zh/input.js';
import inputNumber from '$lib/i18n/zh/input_number.js';
import radio from '$lib/i18n/zh/radio.js';

export const langDict = {
Expand All @@ -22,6 +23,7 @@ export const langDict = {
...radio,
...divider,
...input,
...inputNumber,
};

function getText(key) {
Expand Down
3 changes: 3 additions & 0 deletions docs/src/lib/i18n/zh/input_number.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
cinputNum01010: 'Input Number 数字输入框',
};
88 changes: 0 additions & 88 deletions docs/src/lib/i18nZhCn.js

This file was deleted.

13 changes: 13 additions & 0 deletions docs/src/routes/component/input_number/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script>
import Example from '$lib/example.svelte';
import { getContext } from 'svelte';
import { SvelButton, SvelCol, SvelInputNumber, SvelRow } from '@svelement-ui/all';
import { Calendar, Search, SvelIcon } from '@svelement-ui/icon';
let langFn = getContext('langFn');
let input1 = '';
let inputF = '';
</script>

<h1>{$langFn('cinputNum01010')}</h1>
1 change: 1 addition & 0 deletions packages/all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@svelement-ui/container": "workspace:^",
"@svelement-ui/divider": "workspace:^",
"@svelement-ui/input": "workspace:^",
"@svelement-ui/input-number": "workspace:^",
"@svelement-ui/layout": "workspace:^",
"@svelement-ui/link": "workspace:^",
"@svelement-ui/radio": "workspace:^",
Expand Down
2 changes: 2 additions & 0 deletions packages/all/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { SvelCheckbox, SvelCheckboxButton, SvelCheckboxGroup } from '@svelement-
import SvelScrollbar from '@svelement-ui/scrollbar';
import { SvelRadio, SvelRadioButton, SvelRadioGroup } from '@svelement-ui/radio';
import SvelInput from '@svelement-ui/input';
import SvelInputNumber from '@svelement-ui/input-number';

export {
SvelAside,
Expand All @@ -38,4 +39,5 @@ export {
SvelRadioButton,
SvelRadioGroup,
SvelInput,
SvelInputNumber,
};
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb697bc

Please sign in to comment.