duoyun-ui 2.2.8 → 2.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/react/DyBadge.d.ts +9 -1
- package/react/DyBadge.js +1 -1
- package/react/DyBanner.d.ts +6 -1
- package/react/DyBanner.js +1 -1
- package/react/DyButton.d.ts +15 -1
- package/react/DyButton.js +1 -1
- package/react/DyCheckbox.d.ts +7 -1
- package/react/DyCheckbox.js +1 -1
- package/react/DyCodeBlock.d.ts +5 -1
- package/react/DyCodeBlock.js +1 -1
- package/react/DyCollapsePanel.d.ts +7 -1
- package/react/DyCollapsePanel.js +1 -1
- package/react/DyCompartment.d.ts +3 -1
- package/react/DyCompartment.js +1 -1
- package/react/DyCountdown.d.ts +5 -1
- package/react/DyCountdown.js +1 -1
- package/react/DyDivider.d.ts +6 -1
- package/react/DyDivider.js +1 -1
- package/react/DyDrawer.d.ts +21 -1
- package/react/DyDrawer.js +1 -1
- package/react/DyEmpty.d.ts +5 -1
- package/react/DyEmpty.js +1 -1
- package/react/DyGesture.d.ts +11 -1
- package/react/DyGesture.js +1 -1
- package/react/DyInput.d.ts +22 -1
- package/react/DyInput.js +1 -1
- package/react/DyLetters.d.ts +18 -2
- package/react/DyLetters.js +6 -2
- package/react/DyLink.d.ts +14 -1
- package/react/DyLink.js +1 -1
- package/react/DyList.d.ts +14 -0
- package/react/DyList.js +1 -1
- package/react/DyOptions.d.ts +5 -1
- package/react/DyOptions.js +1 -1
- package/react/DyPlaceholder.d.ts +10 -1
- package/react/DyPlaceholder.js +1 -1
- package/react/DyRadio.d.ts +6 -1
- package/react/DyRadio.js +1 -1
- package/react/DyRate.d.ts +7 -1
- package/react/DyRate.js +1 -1
- package/react/DyReflect.d.ts +4 -1
- package/react/DyReflect.js +1 -1
- package/react/DyRollingNumber.d.ts +7 -1
- package/react/DyRollingNumber.js +1 -1
- package/react/DySegmented.d.ts +8 -1
- package/react/DySegmented.js +1 -1
- package/react/DySlider.d.ts +12 -1
- package/react/DySlider.js +1 -1
- package/react/DySpace.d.ts +4 -1
- package/react/DySpace.js +1 -1
- package/react/DySwitch.d.ts +7 -1
- package/react/DySwitch.js +1 -1
- package/react/DyTag.d.ts +9 -1
- package/react/DyTag.js +1 -1
- package/react/DyTitle.d.ts +5 -1
- package/react/DyTitle.js +1 -1
- package/react/DyUnsafe.d.ts +4 -1
- package/react/DyUnsafe.js +1 -1
- package/react/DyUse.d.ts +6 -1
- package/react/DyUse.js +1 -1
- package/svelte/badge.d.ts +8 -0
- package/svelte/banner.d.ts +5 -0
- package/svelte/button.d.ts +14 -0
- package/svelte/code-block.d.ts +4 -0
- package/svelte/compartment.d.ts +2 -0
- package/svelte/countdown.d.ts +4 -0
- package/svelte/divider.d.ts +5 -0
- package/svelte/drawer.d.ts +20 -0
- package/svelte/empty.d.ts +4 -0
- package/svelte/gesture.d.ts +10 -0
- package/svelte/letters.d.ts +14 -0
- package/svelte/list.d.ts +14 -0
- package/svelte/options.d.ts +4 -0
- package/svelte/placeholder.d.ts +9 -0
- package/svelte/rate.d.ts +6 -0
- package/svelte/reflect.d.ts +3 -0
- package/svelte/rolling-number.d.ts +6 -0
- package/svelte/segmented.d.ts +7 -0
- package/svelte/slider.d.ts +11 -0
- package/svelte/space.d.ts +3 -0
- package/svelte/switch.d.ts +6 -0
- package/svelte/tag.d.ts +8 -0
- package/svelte/title.d.ts +4 -0
- package/svelte/unsafe.d.ts +3 -0
- package/svelte/use.d.ts +5 -0
- package/vue/DyBadge.vue +8 -2
- package/vue/DyBanner.vue +6 -4
- package/vue/DyButton.vue +14 -2
- package/vue/DyCheckbox.vue +7 -4
- package/vue/DyCodeBlock.vue +4 -2
- package/vue/DyCollapsePanel.vue +7 -4
- package/vue/DyCompartment.vue +2 -2
- package/vue/DyCountdown.vue +5 -4
- package/vue/DyDivider.vue +5 -2
- package/vue/DyDrawer.vue +21 -4
- package/vue/DyEmpty.vue +4 -2
- package/vue/DyGesture.vue +11 -4
- package/vue/DyInput.vue +22 -4
- package/vue/DyLetters.vue +20 -5
- package/vue/DyLink.vue +13 -2
- package/vue/DyList.vue +17 -4
- package/vue/DyOptions.vue +4 -2
- package/vue/DyPlaceholder.vue +9 -2
- package/vue/DyRadio.vue +6 -4
- package/vue/DyRate.vue +7 -4
- package/vue/DyReflect.vue +3 -2
- package/vue/DyRollingNumber.vue +6 -2
- package/vue/DySegmented.vue +8 -4
- package/vue/DySlider.vue +12 -4
- package/vue/DySpace.vue +3 -2
- package/vue/DySwitch.vue +7 -4
- package/vue/DyTag.vue +9 -4
- package/vue/DyTitle.vue +4 -2
- package/vue/DyUnsafe.vue +3 -2
- package/vue/DyUse.vue +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "duoyun-ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10",
|
|
4
4
|
"description": "A lightweight desktop UI component library, implemented using Gem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"frontend",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"prepublishOnly": "pnpm build && pnpm build:components"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mantou/tap-ui": "^0.1.
|
|
50
|
+
"@mantou/tap-ui": "^0.1.7",
|
|
51
51
|
"deep-query-selector": "^1.0.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
package/react/DyBadge.d.ts
CHANGED
|
@@ -2,7 +2,15 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunBadgeElement } from '../elements/badge';
|
|
4
4
|
export * from '../elements/badge';
|
|
5
|
-
export type DyBadgeProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunBadgeElement> & {
|
|
5
|
+
export type DyBadgeProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunBadgeElement> & {
|
|
6
|
+
color?: DuoyunBadgeElement['color'];
|
|
7
|
+
count?: DuoyunBadgeElement['count'];
|
|
8
|
+
dot?: DuoyunBadgeElement['dot'];
|
|
9
|
+
small?: DuoyunBadgeElement['small'];
|
|
10
|
+
max?: DuoyunBadgeElement['max'];
|
|
11
|
+
inline?: DuoyunBadgeElement['inline'];
|
|
12
|
+
icon?: DuoyunBadgeElement['icon'];
|
|
13
|
+
};
|
|
6
14
|
export type DyBadgeExpose = {};
|
|
7
15
|
declare global {
|
|
8
16
|
namespace JSX {
|
package/react/DyBadge.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyBadge = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["color", "count", "dot", "small", "max", "inline", "icon"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyBanner.d.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunBannerElement } from '../elements/banner';
|
|
4
4
|
export * from '../elements/banner';
|
|
5
|
-
export type DyBannerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunBannerElement> & {
|
|
5
|
+
export type DyBannerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunBannerElement> & {
|
|
6
|
+
closable?: DuoyunBannerElement['closable'];
|
|
7
|
+
status?: DuoyunBannerElement['status'];
|
|
8
|
+
action?: DuoyunBannerElement['action'];
|
|
9
|
+
'onclose'?: (event: CustomEvent<Parameters<DuoyunBannerElement['close']>[0]>) => void;
|
|
10
|
+
};
|
|
6
11
|
export type DyBannerExpose = {};
|
|
7
12
|
declare global {
|
|
8
13
|
namespace JSX {
|
package/react/DyBanner.js
CHANGED
package/react/DyButton.d.ts
CHANGED
|
@@ -2,7 +2,21 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunButtonElement } from '../elements/button';
|
|
4
4
|
export * from '../elements/button';
|
|
5
|
-
export type DyButtonProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunButtonElement> & {
|
|
5
|
+
export type DyButtonProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunButtonElement> & {
|
|
6
|
+
type?: DuoyunButtonElement['type'];
|
|
7
|
+
color?: DuoyunButtonElement['color'];
|
|
8
|
+
small?: DuoyunButtonElement['small'];
|
|
9
|
+
round?: DuoyunButtonElement['round'];
|
|
10
|
+
square?: DuoyunButtonElement['square'];
|
|
11
|
+
disabled?: DuoyunButtonElement['disabled'];
|
|
12
|
+
borderless?: DuoyunButtonElement['borderless'];
|
|
13
|
+
dropdown?: DuoyunButtonElement['dropdown'];
|
|
14
|
+
route?: DuoyunButtonElement['route'];
|
|
15
|
+
params?: DuoyunButtonElement['params'];
|
|
16
|
+
query?: DuoyunButtonElement['query'];
|
|
17
|
+
icon?: DuoyunButtonElement['icon'];
|
|
18
|
+
active?: DuoyunButtonElement['active'];
|
|
19
|
+
};
|
|
6
20
|
export type DyButtonExpose = {};
|
|
7
21
|
declare global {
|
|
8
22
|
namespace JSX {
|
package/react/DyButton.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyButton = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["type", "color", "small", "round", "square", "disabled", "borderless", "dropdown", "route", "params", "query", "icon", "active"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyCheckbox.d.ts
CHANGED
|
@@ -2,7 +2,13 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunCheckboxElement } from '../elements/checkbox';
|
|
4
4
|
export * from '../elements/checkbox';
|
|
5
|
-
export type DyCheckboxProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCheckboxElement> & {
|
|
5
|
+
export type DyCheckboxProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCheckboxElement> & {
|
|
6
|
+
checked?: DuoyunCheckboxElement['checked'];
|
|
7
|
+
indeterminate?: DuoyunCheckboxElement['indeterminate'];
|
|
8
|
+
disabled?: DuoyunCheckboxElement['disabled'];
|
|
9
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunCheckboxElement['change']>[0]>) => void;
|
|
10
|
+
value?: DuoyunCheckboxElement['value'];
|
|
11
|
+
};
|
|
6
12
|
export type DyCheckboxExpose = {};
|
|
7
13
|
declare global {
|
|
8
14
|
namespace JSX {
|
package/react/DyCheckbox.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyCheckbox = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["checked", "indeterminate", "disabled", "value"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyCodeBlock.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunCodeBlockElement } from '../elements/code-block';
|
|
4
4
|
export * from '../elements/code-block';
|
|
5
|
-
export type DyCodeBlockProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCodeBlockElement> & {
|
|
5
|
+
export type DyCodeBlockProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCodeBlockElement> & {
|
|
6
|
+
codelang?: DuoyunCodeBlockElement['codelang'];
|
|
7
|
+
range?: DuoyunCodeBlockElement['range'];
|
|
8
|
+
highlight?: DuoyunCodeBlockElement['highlight'];
|
|
9
|
+
};
|
|
6
10
|
export type DyCodeBlockExpose = {};
|
|
7
11
|
declare global {
|
|
8
12
|
namespace JSX {
|
package/react/DyCodeBlock.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyCodeBlock = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["codelang", "range", "highlight"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
|
@@ -2,7 +2,13 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunCollapsePanelElement } from '../elements/collapse';
|
|
4
4
|
export * from '../elements/collapse';
|
|
5
|
-
export type DyCollapsePanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCollapsePanelElement> & {
|
|
5
|
+
export type DyCollapsePanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCollapsePanelElement> & {
|
|
6
|
+
searchable?: DuoyunCollapsePanelElement['searchable'];
|
|
7
|
+
summary?: DuoyunCollapsePanelElement['summary'];
|
|
8
|
+
'ontoggle'?: (event: CustomEvent<Parameters<DuoyunCollapsePanelElement['toggle']>[0]>) => void;
|
|
9
|
+
collapsePanel?: DuoyunCollapsePanelElement['collapsePanel'];
|
|
10
|
+
toggleState?: DuoyunCollapsePanelElement['toggleState'];
|
|
11
|
+
};
|
|
6
12
|
export type DyCollapsePanelExpose = {};
|
|
7
13
|
declare global {
|
|
8
14
|
namespace JSX {
|
package/react/DyCollapsePanel.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyCollapsePanel = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["searchable", "summary", "collapsePanel", "toggleState"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyCompartment.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunCompartmentElement } from '../elements/compartment';
|
|
4
4
|
export * from '../elements/compartment';
|
|
5
|
-
export type DyCompartmentProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCompartmentElement> & {
|
|
5
|
+
export type DyCompartmentProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCompartmentElement> & {
|
|
6
|
+
content?: DuoyunCompartmentElement['content'];
|
|
7
|
+
};
|
|
6
8
|
export type DyCompartmentExpose = {};
|
|
7
9
|
declare global {
|
|
8
10
|
namespace JSX {
|
package/react/DyCompartment.js
CHANGED
package/react/DyCountdown.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunCountdownElement } from '../elements/countdown';
|
|
4
4
|
export * from '../elements/countdown';
|
|
5
|
-
export type DyCountdownProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCountdownElement> & {
|
|
5
|
+
export type DyCountdownProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCountdownElement> & {
|
|
6
|
+
value?: DuoyunCountdownElement['value'];
|
|
7
|
+
renderChar?: DuoyunCountdownElement['renderChar'];
|
|
8
|
+
'onfinish'?: (event: CustomEvent<Parameters<DuoyunCountdownElement['finish']>[0]>) => void;
|
|
9
|
+
};
|
|
6
10
|
export type DyCountdownExpose = {};
|
|
7
11
|
declare global {
|
|
8
12
|
namespace JSX {
|
package/react/DyCountdown.js
CHANGED
package/react/DyDivider.d.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunDividerElement } from '../elements/divider';
|
|
4
4
|
export * from '../elements/divider';
|
|
5
|
-
export type DyDividerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDividerElement> & {
|
|
5
|
+
export type DyDividerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDividerElement> & {
|
|
6
|
+
size?: DuoyunDividerElement['size'];
|
|
7
|
+
color?: DuoyunDividerElement['color'];
|
|
8
|
+
orientation?: DuoyunDividerElement['orientation'];
|
|
9
|
+
position?: DuoyunDividerElement['position'];
|
|
10
|
+
};
|
|
6
11
|
export type DyDividerExpose = {};
|
|
7
12
|
declare global {
|
|
8
13
|
namespace JSX {
|
package/react/DyDivider.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyDivider = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["size", "color", "orientation", "position"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyDrawer.d.ts
CHANGED
|
@@ -2,7 +2,27 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunDrawerElement } from '../elements/drawer';
|
|
4
4
|
export * from '../elements/drawer';
|
|
5
|
-
export type DyDrawerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDrawerElement> & {
|
|
5
|
+
export type DyDrawerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDrawerElement> & {
|
|
6
|
+
open?: DuoyunDrawerElement['open'];
|
|
7
|
+
customize?: DuoyunDrawerElement['customize'];
|
|
8
|
+
maskClosable?: DuoyunDrawerElement['maskClosable'];
|
|
9
|
+
okText?: DuoyunDrawerElement['okText'];
|
|
10
|
+
cancelText?: DuoyunDrawerElement['cancelText'];
|
|
11
|
+
disableDefaultCancelBtn?: DuoyunDrawerElement['disableDefaultCancelBtn'];
|
|
12
|
+
disableDefaultOKBtn?: DuoyunDrawerElement['disableDefaultOKBtn'];
|
|
13
|
+
dangerDefaultOkBtn?: DuoyunDrawerElement['dangerDefaultOkBtn'];
|
|
14
|
+
header?: DuoyunDrawerElement['header'];
|
|
15
|
+
body?: DuoyunDrawerElement['body'];
|
|
16
|
+
'onclose'?: (event: CustomEvent<Parameters<DuoyunDrawerElement['close']>[0]>) => void;
|
|
17
|
+
'onok'?: (event: CustomEvent<Parameters<DuoyunDrawerElement['ok']>[0]>) => void;
|
|
18
|
+
'onmaskclick'?: (event: CustomEvent<Parameters<DuoyunDrawerElement['maskclick']>[0]>) => void;
|
|
19
|
+
openAnimation?: DuoyunDrawerElement['openAnimation'];
|
|
20
|
+
closeAnimation?: DuoyunDrawerElement['closeAnimation'];
|
|
21
|
+
closing?: DuoyunDrawerElement['closing'];
|
|
22
|
+
headerSlot?: DuoyunDrawerElement['headerSlot'];
|
|
23
|
+
bodySlot?: DuoyunDrawerElement['bodySlot'];
|
|
24
|
+
footerSlot?: DuoyunDrawerElement['footerSlot'];
|
|
25
|
+
};
|
|
6
26
|
export type DyDrawerExpose = {};
|
|
7
27
|
declare global {
|
|
8
28
|
namespace JSX {
|
package/react/DyDrawer.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyDrawer = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["open", "customize", "maskClosable", "okText", "cancelText", "disableDefaultCancelBtn", "disableDefaultOKBtn", "dangerDefaultOkBtn", "header", "body", "openAnimation", "closeAnimation", "closing", "headerSlot", "bodySlot", "footerSlot"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyEmpty.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunEmptyElement } from '../elements/empty';
|
|
4
4
|
export * from '../elements/empty';
|
|
5
|
-
export type DyEmptyProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunEmptyElement> & {
|
|
5
|
+
export type DyEmptyProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunEmptyElement> & {
|
|
6
|
+
icon?: DuoyunEmptyElement['icon'];
|
|
7
|
+
text?: DuoyunEmptyElement['text'];
|
|
8
|
+
slotName?: DuoyunEmptyElement['slotName'];
|
|
9
|
+
};
|
|
6
10
|
export type DyEmptyExpose = {};
|
|
7
11
|
declare global {
|
|
8
12
|
namespace JSX {
|
package/react/DyEmpty.js
CHANGED
package/react/DyGesture.d.ts
CHANGED
|
@@ -2,7 +2,17 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunGestureElement } from '../elements/gesture';
|
|
4
4
|
export * from '../elements/gesture';
|
|
5
|
-
export type DyGestureProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunGestureElement> & {
|
|
5
|
+
export type DyGestureProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunGestureElement> & {
|
|
6
|
+
'onpan'?: (event: CustomEvent<Parameters<DuoyunGestureElement['pan']>[0]>) => void;
|
|
7
|
+
'onpinch'?: (event: CustomEvent<Parameters<DuoyunGestureElement['pinch']>[0]>) => void;
|
|
8
|
+
'onrotate'?: (event: CustomEvent<Parameters<DuoyunGestureElement['rotate']>[0]>) => void;
|
|
9
|
+
'onswipe'?: (event: CustomEvent<Parameters<DuoyunGestureElement['swipe']>[0]>) => void;
|
|
10
|
+
'onpress'?: (event: CustomEvent<Parameters<DuoyunGestureElement['press']>[0]>) => void;
|
|
11
|
+
'onend'?: (event: CustomEvent<Parameters<DuoyunGestureElement['end']>[0]>) => void;
|
|
12
|
+
touchAction?: DuoyunGestureElement['touchAction'];
|
|
13
|
+
grabbing?: DuoyunGestureElement['grabbing'];
|
|
14
|
+
movesMap?: DuoyunGestureElement['movesMap'];
|
|
15
|
+
};
|
|
6
16
|
export type DyGestureExpose = {};
|
|
7
17
|
declare global {
|
|
8
18
|
namespace JSX {
|
package/react/DyGesture.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyGesture = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["touchAction", "grabbing", "movesMap"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyInput.d.ts
CHANGED
|
@@ -2,7 +2,28 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunInputElement } from '../elements/input';
|
|
4
4
|
export * from '../elements/input';
|
|
5
|
-
export type DyInputProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunInputElement> & {
|
|
5
|
+
export type DyInputProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunInputElement> & {
|
|
6
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunInputElement['change']>[0]>) => void;
|
|
7
|
+
'onclear'?: (event: CustomEvent<Parameters<DuoyunInputElement['clear']>[0]>) => void;
|
|
8
|
+
name?: DuoyunInputElement['name'];
|
|
9
|
+
value?: DuoyunInputElement['value'];
|
|
10
|
+
type?: DuoyunInputElement['type'];
|
|
11
|
+
placeholder?: DuoyunInputElement['placeholder'];
|
|
12
|
+
spellcheck?: DuoyunInputElement['spellcheck'];
|
|
13
|
+
required?: DuoyunInputElement['required'];
|
|
14
|
+
disabled?: DuoyunInputElement['disabled'];
|
|
15
|
+
autofocus?: DuoyunInputElement['autofocus'];
|
|
16
|
+
clearable?: DuoyunInputElement['clearable'];
|
|
17
|
+
alwayclearable?: DuoyunInputElement['alwayclearable'];
|
|
18
|
+
rows?: DuoyunInputElement['rows'];
|
|
19
|
+
step?: DuoyunInputElement['step'];
|
|
20
|
+
min?: DuoyunInputElement['min'];
|
|
21
|
+
max?: DuoyunInputElement['max'];
|
|
22
|
+
dataList?: DuoyunInputElement['dataList'];
|
|
23
|
+
icon?: DuoyunInputElement['icon'];
|
|
24
|
+
filled?: DuoyunInputElement['filled'];
|
|
25
|
+
composing?: DuoyunInputElement['composing'];
|
|
26
|
+
};
|
|
6
27
|
export type DyInputExpose = {};
|
|
7
28
|
declare global {
|
|
8
29
|
namespace JSX {
|
package/react/DyInput.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyInput = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["name", "value", "type", "placeholder", "spellcheck", "required", "disabled", "autofocus", "clearable", "alwayclearable", "rows", "step", "min", "max", "dataList", "icon", "filled", "composing"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyLetters.d.ts
CHANGED
|
@@ -2,8 +2,24 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunLettersElement } from '../elements/letters';
|
|
4
4
|
export * from '../elements/letters';
|
|
5
|
-
export type DyLettersProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunLettersElement> & {
|
|
6
|
-
|
|
5
|
+
export type DyLettersProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunLettersElement> & {
|
|
6
|
+
text?: DuoyunLettersElement['text'];
|
|
7
|
+
colors?: DuoyunLettersElement['colors'];
|
|
8
|
+
strokeWidth?: DuoyunLettersElement['strokeWidth'];
|
|
9
|
+
duration?: DuoyunLettersElement['duration'];
|
|
10
|
+
easing?: DuoyunLettersElement['easing'];
|
|
11
|
+
autoplay?: DuoyunLettersElement['autoplay'];
|
|
12
|
+
'onfinished'?: (event: CustomEvent<Parameters<DuoyunLettersElement['finished']>[0]>) => void;
|
|
13
|
+
'onelapse'?: (event: CustomEvent<Parameters<DuoyunLettersElement['elapse']>[0]>) => void;
|
|
14
|
+
layout?: DuoyunLettersElement['layout'];
|
|
15
|
+
play?: DuoyunLettersElement['play'];
|
|
16
|
+
pause?: DuoyunLettersElement['pause'];
|
|
17
|
+
resume?: DuoyunLettersElement['resume'];
|
|
18
|
+
position?: DuoyunLettersElement['position'];
|
|
19
|
+
};
|
|
20
|
+
export type DyLettersExpose = {
|
|
21
|
+
playing: DuoyunLettersElement['playing'];
|
|
22
|
+
};
|
|
7
23
|
declare global {
|
|
8
24
|
namespace JSX {
|
|
9
25
|
interface IntrinsicElements {
|
package/react/DyLetters.js
CHANGED
|
@@ -4,12 +4,16 @@ export * from '../elements/letters';
|
|
|
4
4
|
export const DyLetters = forwardRef(function (props, ref) {
|
|
5
5
|
const elementRef = useRef(null);
|
|
6
6
|
useImperativeHandle(ref, () => {
|
|
7
|
-
return {
|
|
7
|
+
return {
|
|
8
|
+
get playing() {
|
|
9
|
+
return elementRef.current.playing;
|
|
10
|
+
},
|
|
11
|
+
};
|
|
8
12
|
}, []);
|
|
9
13
|
// React Bug?
|
|
10
14
|
useLayoutEffect(() => {
|
|
11
15
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
16
|
+
["text", "colors", "strokeWidth", "duration", "easing", "autoplay", "layout", "play", "pause", "resume", "position"].map(name => {
|
|
13
17
|
element[name] = props[name];
|
|
14
18
|
});
|
|
15
19
|
}, []);
|
package/react/DyLink.d.ts
CHANGED
|
@@ -2,7 +2,20 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunLinkElement } from '../elements/link';
|
|
4
4
|
export * from '../elements/link';
|
|
5
|
-
export type DyLinkProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunLinkElement> & {
|
|
5
|
+
export type DyLinkProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunLinkElement> & {
|
|
6
|
+
href?: DuoyunLinkElement['href'];
|
|
7
|
+
target?: DuoyunLinkElement['target'];
|
|
8
|
+
path?: DuoyunLinkElement['path'];
|
|
9
|
+
query?: DuoyunLinkElement['query'];
|
|
10
|
+
hash?: DuoyunLinkElement['hash'];
|
|
11
|
+
hint?: DuoyunLinkElement['hint'];
|
|
12
|
+
preload?: DuoyunLinkElement['preload'];
|
|
13
|
+
route?: DuoyunLinkElement['route'];
|
|
14
|
+
/**@deprecated */
|
|
15
|
+
options?: DuoyunLinkElement['options'];
|
|
16
|
+
routeOptions?: DuoyunLinkElement['routeOptions'];
|
|
17
|
+
prepare?: DuoyunLinkElement['prepare'];
|
|
18
|
+
};
|
|
6
19
|
export type DyLinkExpose = {};
|
|
7
20
|
declare global {
|
|
8
21
|
namespace JSX {
|
package/react/DyLink.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyLink = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["href", "target", "path", "query", "hash", "hint", "preload", "route", "options", "routeOptions", "prepare"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyList.d.ts
CHANGED
|
@@ -4,6 +4,20 @@ import { DuoyunListElement } from '../elements/list';
|
|
|
4
4
|
export * from '../elements/list';
|
|
5
5
|
export type DyListProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunListElement> & {
|
|
6
6
|
renderItem?: DuoyunListElement['renderItem'];
|
|
7
|
+
/**@deprecated */
|
|
8
|
+
data?: DuoyunListElement['data'];
|
|
9
|
+
items?: DuoyunListElement['items'];
|
|
10
|
+
'onbackward'?: (event: CustomEvent<Parameters<DuoyunListElement['backward']>[0]>) => void;
|
|
11
|
+
key?: DuoyunListElement['key'];
|
|
12
|
+
renderItem?: DuoyunListElement['renderItem'];
|
|
13
|
+
debug?: DuoyunListElement['debug'];
|
|
14
|
+
infinite?: DuoyunListElement['infinite'];
|
|
15
|
+
getKey?: DuoyunListElement['getKey'];
|
|
16
|
+
'onforward'?: (event: CustomEvent<Parameters<DuoyunListElement['forward']>[0]>) => void;
|
|
17
|
+
'onitemshow'?: (event: CustomEvent<Parameters<DuoyunListElement['itemshow']>[0]>) => void;
|
|
18
|
+
persistentState?: DuoyunListElement['persistentState'];
|
|
19
|
+
persistentState?: DuoyunListElement['persistentState'];
|
|
20
|
+
scrollContainer?: DuoyunListElement['scrollContainer'];
|
|
7
21
|
};
|
|
8
22
|
export type DyListExpose = {};
|
|
9
23
|
declare global {
|
package/react/DyList.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyList = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
["renderItem"].map(name => {
|
|
12
|
+
["renderItem", "data", "items", "key", "renderItem", "debug", "infinite", "getKey", "persistentState", "persistentState", "scrollContainer"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyOptions.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunOptionsElement } from '../elements/options';
|
|
4
4
|
export * from '../elements/options';
|
|
5
|
-
export type DyOptionsProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunOptionsElement> & {
|
|
5
|
+
export type DyOptionsProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunOptionsElement> & {
|
|
6
|
+
searchable?: DuoyunOptionsElement['searchable'];
|
|
7
|
+
options?: DuoyunOptionsElement['options'];
|
|
8
|
+
adder?: DuoyunOptionsElement['adder'];
|
|
9
|
+
};
|
|
6
10
|
export type DyOptionsExpose = {};
|
|
7
11
|
declare global {
|
|
8
12
|
namespace JSX {
|
package/react/DyOptions.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyOptions = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["searchable", "options", "adder"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyPlaceholder.d.ts
CHANGED
|
@@ -2,7 +2,16 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunPlaceholderElement } from '../elements/placeholder';
|
|
4
4
|
export * from '../elements/placeholder';
|
|
5
|
-
export type DyPlaceholderProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunPlaceholderElement> & {
|
|
5
|
+
export type DyPlaceholderProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunPlaceholderElement> & {
|
|
6
|
+
/**@deprecated */
|
|
7
|
+
mode?: DuoyunPlaceholderElement['mode'];
|
|
8
|
+
type?: DuoyunPlaceholderElement['type'];
|
|
9
|
+
center?: DuoyunPlaceholderElement['center'];
|
|
10
|
+
width?: DuoyunPlaceholderElement['width'];
|
|
11
|
+
color?: DuoyunPlaceholderElement['color'];
|
|
12
|
+
maxLine?: DuoyunPlaceholderElement['maxLine'];
|
|
13
|
+
minLine?: DuoyunPlaceholderElement['minLine'];
|
|
14
|
+
};
|
|
6
15
|
export type DyPlaceholderExpose = {};
|
|
7
16
|
declare global {
|
|
8
17
|
namespace JSX {
|
package/react/DyPlaceholder.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyPlaceholder = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["mode", "type", "center", "width", "color", "maxLine", "minLine"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyRadio.d.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunRadioElement } from '../elements/radio';
|
|
4
4
|
export * from '../elements/radio';
|
|
5
|
-
export type DyRadioProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioElement> & {
|
|
5
|
+
export type DyRadioProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRadioElement> & {
|
|
6
|
+
checked?: DuoyunRadioElement['checked'];
|
|
7
|
+
disabled?: DuoyunRadioElement['disabled'];
|
|
8
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunRadioElement['change']>[0]>) => void;
|
|
9
|
+
value?: DuoyunRadioElement['value'];
|
|
10
|
+
};
|
|
6
11
|
export type DyRadioExpose = {};
|
|
7
12
|
declare global {
|
|
8
13
|
namespace JSX {
|
package/react/DyRadio.js
CHANGED
package/react/DyRate.d.ts
CHANGED
|
@@ -2,7 +2,13 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunRateElement } from '../elements/rate';
|
|
4
4
|
export * from '../elements/rate';
|
|
5
|
-
export type DyRateProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRateElement> & {
|
|
5
|
+
export type DyRateProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunRateElement> & {
|
|
6
|
+
value?: DuoyunRateElement['value'];
|
|
7
|
+
total?: DuoyunRateElement['total'];
|
|
8
|
+
disabled?: DuoyunRateElement['disabled'];
|
|
9
|
+
readonly?: DuoyunRateElement['readonly'];
|
|
10
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunRateElement['change']>[0]>) => void;
|
|
11
|
+
};
|
|
6
12
|
export type DyRateExpose = {};
|
|
7
13
|
declare global {
|
|
8
14
|
namespace JSX {
|
package/react/DyRate.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DyRate = forwardRef(function (props, ref) {
|
|
|
9
9
|
// React Bug?
|
|
10
10
|
useLayoutEffect(() => {
|
|
11
11
|
const element = elementRef.current;
|
|
12
|
-
[].map(name => {
|
|
12
|
+
["value", "total", "disabled", "readonly"].map(name => {
|
|
13
13
|
element[name] = props[name];
|
|
14
14
|
});
|
|
15
15
|
}, []);
|
package/react/DyReflect.d.ts
CHANGED
|
@@ -2,7 +2,10 @@ import { HTMLAttributes, RefAttributes } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { DuoyunReflectElement } from '../elements/reflect';
|
|
4
4
|
export * from '../elements/reflect';
|
|
5
|
-
export type DyReflectProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunReflectElement> & {
|
|
5
|
+
export type DyReflectProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunReflectElement> & {
|
|
6
|
+
method?: DuoyunReflectElement['method'];
|
|
7
|
+
target?: DuoyunReflectElement['target'];
|
|
8
|
+
};
|
|
6
9
|
export type DyReflectExpose = {};
|
|
7
10
|
declare global {
|
|
8
11
|
namespace JSX {
|