Skip to content

Commit

Permalink
[duoyun-ui] Fixed <dy-pat-table> search
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Jan 23, 2024
1 parent f161fb8 commit cc27485
Show file tree
Hide file tree
Showing 27 changed files with 406 additions and 232 deletions.
File renamed without changes.
14 changes: 10 additions & 4 deletions packages/duoyun-ui/docs/en/01-guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,21 @@ Toast.open('error', 'An error occurred');
DuoyunUI supports an ESM method independently uses an element, such as adding a keyboard access to your website(press <kbd>f</kbd> list all focusable elements):

```ts
import('https://esm.sh/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyboardAccessElement }) =>
document.body.append(new DuoyunKeyboardAccessElement()),
import('https://esm.sh/duoyun-ui/elements/keyboard-access').then(
({ DuoyunKeyboardAccessElement }) =>
document.body.append(new DuoyunKeyboardAccessElement()),
);
```

For example, enable input recording mode:

```ts
import('https://esm.sh/duoyun-ui/elements/input-capture').then(({ DuoyunInputCaptureElement }) =>
document.body.append(new DuoyunInputCaptureElement()),
import('https://esm.sh/duoyun-ui/elements/input-capture').then(
({ DuoyunInputCaptureElement }) =>
document.body.append(new DuoyunInputCaptureElement()),
);
```

## Feedback DuoyunUI

Please visit [GitHub](https://github.com/mantou132/gem)
15 changes: 13 additions & 2 deletions packages/duoyun-ui/docs/en/02-elements/cascader-picker.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# `<dy-cascader-picker>`

## Example
## `<dy-cascader-picker>` Example

<gbp-example
name="dy-cascader-picker"
props='{"placeholder": "Please choose", "multiple": true, "value": [["Option 2"]], "options": [{"label": "Option 1", "children": [{"label": "Option 1.1"}]}, {"label": "Option 2"}, {"label": "Option 3"}], "@change": "(evt) => evt.target.value = evt.detail"}'
src="https://esm.sh/duoyun-ui/elements/cascader-picker"></gbp-example>

## API
## `<dy-cascader-picker>` API

<gbp-api src="/src/elements/cascader-picker.ts"></gbp-api>

## `<dy-cascader>` Example

<gbp-example
name="dy-cascader"
props='{"style": "width: 100%;", "placeholder": "Please choose", "value": ["Option 2"], "options": [{"label": "Option 1", "children": [{"label": "Option 1.1"}]}, {"label": "Option 2"}, {"label": "Option 3"}]}'
src="https://esm.sh/duoyun-ui/elements/cascader"></gbp-example>

## `<dy-cascader>` API

<gbp-api src="/src/elements/cascader.ts"></gbp-api>
15 changes: 3 additions & 12 deletions packages/duoyun-ui/docs/en/02-elements/cascader.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# `<dy-cascader>`

## Example

<gbp-example
name="dy-cascader"
props='{"style": "width: 100%;", "placeholder": "Please choose", "value": ["Option 2"], "options": [{"label": "Option 1", "children": [{"label": "Option 1.1"}]}, {"label": "Option 2"}, {"label": "Option 3"}]}'
src="https://esm.sh/duoyun-ui/elements/cascader"></gbp-example>

## API

<gbp-api src="/src/elements/cascader.ts"></gbp-api>
---
redirect: ./cascader-picker.md
---
15 changes: 3 additions & 12 deletions packages/duoyun-ui/docs/en/02-elements/color-panel.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# `<dy-color-panel>`

## Example

<gbp-example
name="dy-color-panel"
props='{"alpha": true, "value": "#e5e", "@change": "(evt) => evt.target.value = evt.detail"}'
src="https://esm.sh/duoyun-ui/elements/color-panel"></gbp-example>

## API

<gbp-api src="/src/elements/color-panel.ts"></gbp-api>
---
redirect: ./color-picker.md
---
26 changes: 24 additions & 2 deletions packages/duoyun-ui/docs/en/02-elements/color-picker.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# `<dy-color-picker>`

## Example
## `<dy-color-picker>` Example

<gbp-example name="dy-color-picker" src="https://esm.sh/duoyun-ui/elements/color-picker">

```json
[
{
"value": "#418eec",
"disabled": true
},
{
"alpha": true,
"value": "#e5e",
Expand All @@ -16,6 +20,24 @@

</gbp-example>

## API
## `<dy-color-picker>` API

<gbp-api src="/src/elements/color-picker.ts"></gbp-api>

## `<dy-color-panel>` Example

<gbp-example name="dy-color-panel" src="https://esm.sh/duoyun-ui/elements/color-panel">

```json
{
"alpha": true,
"value": "#e5e",
"@change": "(evt) => evt.target.value = evt.detail"
}
```

</gbp-example>

## `<dy-color-panel>` API

<gbp-api src="/src/elements/color-panel.ts"></gbp-api>
15 changes: 3 additions & 12 deletions packages/duoyun-ui/docs/en/02-elements/date-panel.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# `<dy-date-panel>`

## Example

<gbp-example
name="dy-date-panel"
props='{"style": "width: 300px;"}'
src="https://esm.sh/duoyun-ui/elements/date-panel"></gbp-example>

## API

<gbp-api src="/src/elements/date-panel.ts"></gbp-api>
---
redirect: ./date-picker.md
---
15 changes: 13 additions & 2 deletions packages/duoyun-ui/docs/en/02-elements/date-picker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `<dy-date-picker>`

## Example
## `<dy-date-picker>` Example

<gbp-example name="dy-date-picker" src="https://esm.sh/duoyun-ui/elements/date-picker">

Expand All @@ -25,6 +25,17 @@

</gbp-example>

## API
## `<dy-date-picker>` API

<gbp-api src="/src/elements/date-picker.ts"></gbp-api>

## `<dy-date-panel>` Example

<gbp-example
name="dy-date-panel"
props='{"style": "width: 300px;"}'
src="https://esm.sh/duoyun-ui/elements/date-panel"></gbp-example>

## `<dy-date-panel>` API

<gbp-api src="/src/elements/date-panel.ts"></gbp-api>
15 changes: 3 additions & 12 deletions packages/duoyun-ui/docs/en/02-elements/date-range-panel.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# `<dy-date-range-panel>`

## Example

<gbp-example
name="dy-date-range-panel"
props='{"style": "width: 360px;"}'
src="https://esm.sh/duoyun-ui/elements/date-range-panel"></gbp-example>

## API

<gbp-api src="/src/elements/date-range-panel.ts"></gbp-api>
---
redirect: ./date-range-picker.md
---
15 changes: 13 additions & 2 deletions packages/duoyun-ui/docs/en/02-elements/date-range-picker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `<dy-date-range-picker>`

## Example
## `<dy-date-range-picker>` Example

<gbp-example name="dy-date-range-picker" src="https://esm.sh/duoyun-ui/elements/date-range-picker">

Expand All @@ -21,6 +21,17 @@

</gbp-example>

## API
## `<dy-date-range-picker>` API

<gbp-api src="/src/elements/date-range-picker.ts"></gbp-api>

## `<dy-date-range-panel>` Example

<gbp-example
name="dy-date-range-panel"
props='{"style": "width: 360px;"}'
src="https://esm.sh/duoyun-ui/elements/date-range-panel"></gbp-example>

## `<dy-date-range-panel>` API

<gbp-api src="/src/elements/date-range-panel.ts"></gbp-api>
15 changes: 3 additions & 12 deletions packages/duoyun-ui/docs/en/02-elements/time-panel.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# `<dy-time-panel>`

## Example

<gbp-example
name="dy-time-panel"
props='{"style": "width: 10em; height: 200px;", "@change": "(evt) => evt.target.value = evt.detail"}'
src="https://esm.sh/duoyun-ui/elements/time-panel"></gbp-example>

## API

<gbp-api src="/src/elements/time-panel.ts"></gbp-api>
---
redirect: ./time-picker.md
---
15 changes: 13 additions & 2 deletions packages/duoyun-ui/docs/en/02-elements/time-picker.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# `<dy-time-picker>`

## Example
## `<dy-time-picker>` Example

<gbp-example
name="dy-time-picker"
props='{"value": 1644475003294, "clearable": true, "@clear": "(evt) => evt.target.value = null", "@change": "(evt) => evt.target.value = evt.detail"}'
src="https://esm.sh/duoyun-ui/elements/time-picker"></gbp-example>

## API
## `<dy-time-picker>` API

<gbp-api src="/src/elements/time-picker.ts"></gbp-api>

## `<dy-time-panel>`Example

<gbp-example
name="dy-time-panel"
props='{"style": "width: 10em; height: 200px;", "@change": "(evt) => evt.target.value = evt.detail"}'
src="https://esm.sh/duoyun-ui/elements/time-panel"></gbp-example>

## `<dy-time-panel>` API

<gbp-api src="/src/elements/time-panel.ts"></gbp-api>
2 changes: 1 addition & 1 deletion packages/duoyun-ui/docs/zh/02-elements/time-panel.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
redirect: time-picker.md
redirect: ./time-picker.md
---
Loading

0 comments on commit cc27485

Please sign in to comment.