@dsh-plugin/dsh-ui-components-vue 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/NOTICE +57 -0
- package/README.md +66 -2
- package/README.zh_CN.md +67 -0
- package/dist/icons.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +2682 -0
- package/dist/style.css +1 -0
- package/dist/vue/arco.d.ts +8 -0
- package/dist/vue/basic.d.ts +3629 -0
- package/dist/vue/button.d.ts +78 -0
- package/dist/vue/color-model.d.ts +2 -0
- package/dist/vue/color.d.ts +3 -0
- package/dist/vue/components.d.ts +48 -0
- package/dist/vue/date-input.d.ts +35 -0
- package/dist/vue/icons.d.ts +2 -0
- package/dist/vue/overlays.d.ts +33 -0
- package/dist/vue/picker-model.d.ts +37 -0
- package/dist/vue/picker.d.ts +1290 -0
- package/dist/vue/popup.d.ts +28 -0
- package/dist/vue/primitives.d.ts +288 -0
- package/dist/vue/progress.d.ts +104 -0
- package/dist/vue/provider.d.ts +90 -0
- package/dist/vue/selection-model.d.ts +22 -0
- package/dist/vue/selection.d.ts +186 -0
- package/dist/vue/toast-layout.d.ts +2 -0
- package/docs/vue-coverage.md +75 -0
- package/licenses/HeroUI-Apache-2.0.txt +199 -0
- package/package.json +75 -4
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type SelectionOption, type SelectionValue } from './selection-model.js';
|
|
3
|
+
export type { SelectionOption, SelectionValue } from './selection-model.js';
|
|
4
|
+
/** 单选和多选列表提供活动后代、首尾导航和文字检索。 */
|
|
5
|
+
export declare const ListBox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
readonly options: {
|
|
7
|
+
readonly type: PropType<readonly SelectionOption[]>;
|
|
8
|
+
readonly default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
readonly modelValue: PropType<SelectionValue>;
|
|
11
|
+
readonly defaultValue: PropType<SelectionValue>;
|
|
12
|
+
readonly multiple: BooleanConstructor;
|
|
13
|
+
readonly disabled: BooleanConstructor;
|
|
14
|
+
readonly allowEmpty: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: true;
|
|
17
|
+
};
|
|
18
|
+
readonly label: StringConstructor;
|
|
19
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
readonly options: {
|
|
23
|
+
readonly type: PropType<readonly SelectionOption[]>;
|
|
24
|
+
readonly default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
readonly modelValue: PropType<SelectionValue>;
|
|
27
|
+
readonly defaultValue: PropType<SelectionValue>;
|
|
28
|
+
readonly multiple: BooleanConstructor;
|
|
29
|
+
readonly disabled: BooleanConstructor;
|
|
30
|
+
readonly allowEmpty: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: true;
|
|
33
|
+
};
|
|
34
|
+
readonly label: StringConstructor;
|
|
35
|
+
}>> & Readonly<{
|
|
36
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
readonly disabled: boolean;
|
|
40
|
+
readonly multiple: boolean;
|
|
41
|
+
readonly options: readonly SelectionOption[];
|
|
42
|
+
readonly allowEmpty: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
/** 可切换按钮使用 aria-pressed 表达选中状态。 */
|
|
45
|
+
export declare const ToggleButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
defaultValue: BooleanConstructor;
|
|
51
|
+
disabled: BooleanConstructor;
|
|
52
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "click" | "update:modelValue")[], "change" | "click" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
modelValue: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
defaultValue: BooleanConstructor;
|
|
60
|
+
disabled: BooleanConstructor;
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
modelValue: boolean;
|
|
67
|
+
defaultValue: boolean;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
/** 一组可切换按钮;方向键移动焦点,空格和回车执行选择。 */
|
|
71
|
+
export declare const ToggleButtonGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
72
|
+
orientation: {
|
|
73
|
+
type: PropType<"horizontal" | "vertical">;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
options: {
|
|
77
|
+
readonly type: PropType<readonly SelectionOption[]>;
|
|
78
|
+
readonly default: () => never[];
|
|
79
|
+
};
|
|
80
|
+
modelValue: PropType<SelectionValue>;
|
|
81
|
+
defaultValue: PropType<SelectionValue>;
|
|
82
|
+
multiple: BooleanConstructor;
|
|
83
|
+
disabled: BooleanConstructor;
|
|
84
|
+
allowEmpty: {
|
|
85
|
+
readonly type: BooleanConstructor;
|
|
86
|
+
readonly default: true;
|
|
87
|
+
};
|
|
88
|
+
label: StringConstructor;
|
|
89
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
orientation: {
|
|
93
|
+
type: PropType<"horizontal" | "vertical">;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
options: {
|
|
97
|
+
readonly type: PropType<readonly SelectionOption[]>;
|
|
98
|
+
readonly default: () => never[];
|
|
99
|
+
};
|
|
100
|
+
modelValue: PropType<SelectionValue>;
|
|
101
|
+
defaultValue: PropType<SelectionValue>;
|
|
102
|
+
multiple: BooleanConstructor;
|
|
103
|
+
disabled: BooleanConstructor;
|
|
104
|
+
allowEmpty: {
|
|
105
|
+
readonly type: BooleanConstructor;
|
|
106
|
+
readonly default: true;
|
|
107
|
+
};
|
|
108
|
+
label: StringConstructor;
|
|
109
|
+
}>> & Readonly<{
|
|
110
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
}>, {
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
multiple: boolean;
|
|
115
|
+
options: readonly SelectionOption[];
|
|
116
|
+
orientation: "horizontal" | "vertical";
|
|
117
|
+
allowEmpty: boolean;
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
|
+
/** 工具栏保留单个 Tab 入口,并通过方向键访问可用操作。 */
|
|
120
|
+
export declare const Toolbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
121
|
+
label: StringConstructor;
|
|
122
|
+
orientation: {
|
|
123
|
+
type: PropType<"horizontal" | "vertical">;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
label: StringConstructor;
|
|
130
|
+
orientation: {
|
|
131
|
+
type: PropType<"horizontal" | "vertical">;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
}>> & Readonly<{}>, {
|
|
135
|
+
orientation: "horizontal" | "vertical";
|
|
136
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
137
|
+
/** 可删除标签的模型项;value 用于稳定标识和删除回调。 */
|
|
138
|
+
export interface TagItem {
|
|
139
|
+
value: string | number;
|
|
140
|
+
label: string;
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
}
|
|
143
|
+
/** 标签组通过 v-model 更新剩余项,删除后将焦点交给邻近标签。 */
|
|
144
|
+
export declare const TagGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
145
|
+
modelValue: PropType<readonly TagItem[]>;
|
|
146
|
+
defaultValue: {
|
|
147
|
+
type: PropType<readonly TagItem[]>;
|
|
148
|
+
default: () => never[];
|
|
149
|
+
};
|
|
150
|
+
label: StringConstructor;
|
|
151
|
+
removable: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
disabled: BooleanConstructor;
|
|
156
|
+
removeLabel: {
|
|
157
|
+
type: PropType<(item: TagItem) => string>;
|
|
158
|
+
default: (item: TagItem) => string;
|
|
159
|
+
};
|
|
160
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "remove")[], "update:modelValue" | "remove", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
163
|
+
modelValue: PropType<readonly TagItem[]>;
|
|
164
|
+
defaultValue: {
|
|
165
|
+
type: PropType<readonly TagItem[]>;
|
|
166
|
+
default: () => never[];
|
|
167
|
+
};
|
|
168
|
+
label: StringConstructor;
|
|
169
|
+
removable: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
disabled: BooleanConstructor;
|
|
174
|
+
removeLabel: {
|
|
175
|
+
type: PropType<(item: TagItem) => string>;
|
|
176
|
+
default: (item: TagItem) => string;
|
|
177
|
+
};
|
|
178
|
+
}>> & Readonly<{
|
|
179
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
180
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
181
|
+
}>, {
|
|
182
|
+
defaultValue: readonly TagItem[];
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
removable: boolean;
|
|
185
|
+
removeLabel: (item: TagItem) => string;
|
|
186
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Vue 组件覆盖与迁移
|
|
2
|
+
|
|
3
|
+
`@dsh-plugin/dsh-ui-components-vue` 以 Arco Design Vue 的完整导出为能力基线,使用 HeroUI v3 的视觉层级统一外观,并补充字段、验证码、列表选择与工具栏组件。
|
|
4
|
+
|
|
5
|
+
## 覆盖规则
|
|
6
|
+
|
|
7
|
+
根入口覆盖 `@arco-design/web-vue` 的全部组件及子组件名称,`Arco` 命名空间完整保留原生组件、实例类型和功能 API。表中的 HeroUI 名称用于说明用途对应关系;调用参数、插槽与事件以 Arco Vue 为准,额外包装的差异见下方迁移表。名称相似不代表可以直接替换导入。
|
|
8
|
+
|
|
9
|
+
HeroUI 没有直接对应组件时,保留 Arco 的完整交互能力,并统一表面、颜色、圆角、阴影和焦点状态;这类组件仍属于验收范围,包括层级选择、穿梭框、上传、评论、时间线、统计、水印和布局工具。
|
|
10
|
+
|
|
11
|
+
| Arco 组件族 | HeroUI 对应能力 | 本包主题处理 |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Button、ButtonGroup | Button、ButtonGroup、CloseButton | 主、次、三级、描边、幽灵、危险与柔和危险变体;三种尺寸、圆角、焦点及按压状态 |
|
|
14
|
+
| Link、Typography | Link、Typography、Heading、Paragraph、Label、Description、Kbd | 文字层级、链接强调色、键盘快捷键 |
|
|
15
|
+
| Divider、Space、Grid、Layout、Split、ResizeBox | Separator、布局容器 | 分割颜色、间距、表面色和拖动条 |
|
|
16
|
+
| Affix、Anchor、BackTop、PageHeader | 导航与页面结构 | 选中强调色、浮动表面、标题层级 |
|
|
17
|
+
| ConfigProvider | Provider | `DshProvider` 管理主题、圆角、减少动画及浮层容器 |
|
|
18
|
+
| Input、InputNumber、InputTag、Mention、VerificationCode | Input、TextArea、NumberField、TextField、SearchField、TagGroup、InputOTP | 统一字段背景、描边、焦点环、错误与禁用状态 |
|
|
19
|
+
| Form、FormItem | Form、Fieldset、Label、Description、FieldError | 保留 Arco 校验规则,提供关联标签和说明的字段组合 |
|
|
20
|
+
| AutoComplete、Select | Autocomplete、ComboBox、Select | 下拉容器沿用当前主题,选项与选中状态一致 |
|
|
21
|
+
| Checkbox、Radio、Switch | CheckboxGroup、RadioGroup、SwitchGroup | 选择控件的尺寸、圆角和选中语义色 |
|
|
22
|
+
| Slider、Rate | Slider、评分输入 | 刻度、轨道与选中强调色 |
|
|
23
|
+
| DatePicker、RangePicker、TimePicker、Calendar | DatePicker、DateRangePicker、TimeField、Calendar | 日期网格、选中态、字段与浮层表面 |
|
|
24
|
+
| ColorPicker | ColorPicker | 保留色彩输入与选择能力,统一触发器和面板 |
|
|
25
|
+
| Cascader、TreeSelect、Tree | 层级选择 | 复用统一字段、选项、树节点和选中态 |
|
|
26
|
+
| Transfer | 双列表选择 | 双列表表面、标题、选择状态与操作按钮 |
|
|
27
|
+
| Upload | 文件上传 | 拖入区、图片卡片和文件列表的边框与圆角 |
|
|
28
|
+
| Avatar、Badge、Tag | Avatar、Badge、Chip、Tag | 头像、圆角标签和状态颜色 |
|
|
29
|
+
| Card、Collapse | Card、Surface、Accordion、Disclosure | 三级表面、柔和阴影、大圆角和内容层级 |
|
|
30
|
+
| List、Table、Descriptions、OverflowList | ListBox、Table、信息展示 | 列表行、表头、描边及空状态;ListBox 另有选择与键盘实现 |
|
|
31
|
+
| Image、Carousel | 媒体展示组合,HeroUI 3.2.7 无 Image 根导出 | 媒体边界与容器圆角 |
|
|
32
|
+
| Comment、Timeline、Statistic、Watermark | 评论、活动、统计及水印 | 沿用 Arco 能力,匹配正文、弱化文字和表面色 |
|
|
33
|
+
| Menu、Dropdown、Breadcrumb、Pagination、Steps、Tabs | 菜单、Dropdown、Breadcrumbs、Pagination、Tabs | 菜单选中背景、胶囊标签、导航状态和步骤颜色 |
|
|
34
|
+
| Alert、Result、Empty | Alert、结果、EmptyState | 成功、警告、错误状态与内容层级 |
|
|
35
|
+
| Progress、Spin、Skeleton | ProgressBar、ProgressCircle、Meter、Spinner、Skeleton | 进度语义色、加载状态与减少动画 |
|
|
36
|
+
| Modal、Drawer | Modal、Drawer、AlertDialog | 独立主题浮层;Dialog 上下各 120px 留白与内部 Arco Scrollbar,Drawer 保留官方满高布局 |
|
|
37
|
+
| Tooltip、Popover、Popconfirm、Trigger | Tooltip、Popover、确认和触发器 | 浮层背景、阴影、描边与主题容器 |
|
|
38
|
+
| Message、Notification | Toast | 保留 Arco 功能入口;Provider 内优先使用 `useToast()` 获得隔离主题和生命周期 |
|
|
39
|
+
| Scrollbar | ScrollShadow | 统一滚动条;ScrollShadow 根据实际滚动边缘显示渐隐提示 |
|
|
40
|
+
|
|
41
|
+
## 补充组件
|
|
42
|
+
|
|
43
|
+
除上表中的 Arco 能力,本包提供 `Surface`、`Header`、`Label`、`Description`、`FieldError`、`ErrorMessage`、`Fieldset`、`InputGroup`、`TextField`、`SearchField`、`InputOTP`、`Kbd`、`ListBox`、`ToggleButton`、`ToggleButtonGroup`、`Toolbar`、`TagGroup` 和 `ScrollShadow`。
|
|
44
|
+
|
|
45
|
+
`TextField` 为输入框关联标签、说明与错误信息。`InputOTP` 使用单个原生输入处理粘贴、光标、删除及验证码自动填充,视觉上显示独立字符格。`ListBox` 和 `ToggleButtonGroup` 支持受控值、默认值、单选或多选、禁用项与键盘导航。`Toolbar` 管理组内焦点。`TagGroup` 处理删除后的焦点恢复。`ScrollShadow` 使用 Arco Scrollbar,并在内容或容器尺寸变化后重新计算边缘状态。
|
|
46
|
+
|
|
47
|
+
HeroUI 风格名称包括 `Accordion`、`AccordionItem`、`Disclosure`、`DisclosureGroup`、`Breadcrumbs`、`Chip`、`TextArea`、`NumberField`、`DateRangePicker`、`Text`、`Separator`、`EmptyState` 和 `Spinner`。这些名称用于适配组件用途;例如 `AccordionItem` 仍使用 Arco `CollapseItem` 的 `key`、`header` 和插槽。
|
|
48
|
+
|
|
49
|
+
## 从 hero-ui-vue 迁移
|
|
50
|
+
|
|
51
|
+
先将依赖改为 `@dsh-plugin/dsh-ui-components-vue`,在应用入口导入 `@dsh-plugin/dsh-ui-components-vue/style.css`,再使用 `DshProvider` 包裹应用。组件样式限定在 `.dsh-ui` 与其专属浮层容器内。
|
|
52
|
+
|
|
53
|
+
| 原有用法 | 本包用法与差异 |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| Tailwind CSS v4 与 HeroUI 样式包 | 导入本包 CSS;业务应用可以继续使用自己的 CSS 管线 |
|
|
56
|
+
| `isDisabled`、`isPending` | `disabled`、`loading`;按钮的 `iconOnly` 声明纯图标布局 |
|
|
57
|
+
| `modelValue` / `update:modelValue` | 通常仍用 `v-model`,具体值类型遵循 Arco 组件 |
|
|
58
|
+
| Modal 的 open 状态 | `v-model:visible`;使用 `title`、`header`、默认及 `footer` 插槽 |
|
|
59
|
+
| Card.Header / Card.Content 等组合部件 | 使用 Arco Card 的 `title`、`extra`、默认及 `actions` 插槽 |
|
|
60
|
+
| Tabs 的 selectedKey | Arco `active-key` 与 `v-model:active-key`,子项使用 TabPane |
|
|
61
|
+
| ListBox 的 selectedKeys | 本包 ListBox 使用 `v-model` 和 `options`;单选值为字符串或数字,多选值为数组 |
|
|
62
|
+
| InputOTP 的 maxLength | `length`;`type="numeric"` 或 `type="text"`,完成时触发 `complete` |
|
|
63
|
+
| TagGroup 的标签子部件 | `v-model` 为 `{ value, label, disabled? }[]` |
|
|
64
|
+
| Progress 的百分数 | Arco Progress 的 `percent` 为 `0–1`;ProgressBar、ProgressCircle、Meter 使用各自的数值属性 |
|
|
65
|
+
| 全局主题类 | `DshProvider theme="light\|dark\|auto"`;auto 跟随宿主或系统,支持多个隔离 Provider |
|
|
66
|
+
|
|
67
|
+
本包对标 Arco 的全部能力和 HeroUI 的视觉语言;HeroUI 的每个组合部件、事件名称与 React Aria 签名不属于直接兼容 API。
|
|
68
|
+
|
|
69
|
+
## 验收入口
|
|
70
|
+
|
|
71
|
+
执行 `pnpm typecheck`、`pnpm build`、`pnpm test` 和 `pnpm preview:build` 检查类型、发布产物、选择与验证码规则、预览构建。运行 `pnpm preview` 后检查浅色和深色、圆角切换、减少动画、按钮状态、输入与验证码、列表和工具栏键盘操作、下拉选择、日期、树、穿梭、表格以及浮层中的长内容滚动。
|
|
72
|
+
|
|
73
|
+
视觉依据来自 [HeroUI v3 设计原则](https://heroui.com/en/docs/react/getting-started/design-principles)、[HeroUI Vue 按钮样式](https://github.com/rysinal/hero-ui-vue/blob/main/packages/styles/src/components/button.css) 与[主题变量](https://github.com/rysinal/hero-ui-vue/blob/main/packages/styles/src/themes/default/variables.css)。功能范围以 [Arco Design Vue 源码](https://github.com/arco-design/arco-design-vue)和本包锁定依赖为准。
|
|
74
|
+
|
|
75
|
+
像素验收进度见[全量矩阵](comparison/coverage.md),导出名称核对与逐像素验收分别记录。`Text` 是本包对 Arco TypographyText 的别名,HeroUI 3.2.7 正式根入口使用 Typography、Heading 和 Paragraph。
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. Please also get an approval
|
|
185
|
+
from the project maintainers before using the Apache License.
|
|
186
|
+
|
|
187
|
+
Copyright 2025 NextUI Inc.
|
|
188
|
+
|
|
189
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
190
|
+
you may not use this file except in compliance with the License.
|
|
191
|
+
You may obtain a copy of the License at
|
|
192
|
+
|
|
193
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
194
|
+
|
|
195
|
+
Unless required by applicable law or agreed to in writing, software
|
|
196
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
197
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
198
|
+
See the License for the specific language governing permissions and
|
|
199
|
+
limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plugin/dsh-ui-components-vue",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "基于 Arco Design Vue、采用 HeroUI 风格的 DSH Vue 组件库",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./style.css": "./dist/style.css",
|
|
14
|
+
"./icons": {
|
|
15
|
+
"types": "./dist/vue/icons.d.ts",
|
|
16
|
+
"import": "./dist/icons.js"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"**/*.css"
|
|
22
|
+
],
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"README.zh_CN.md",
|
|
27
|
+
"docs/vue-coverage.md",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"NOTICE",
|
|
30
|
+
"licenses"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"typecheck": "vue-tsc --noEmit -p tsconfig.json",
|
|
34
|
+
"build": "vite build && vue-tsc -p tsconfig.build.json",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"preview": "vite --config docs/preview/vite.config.ts",
|
|
37
|
+
"preview:build": "vite build --config docs/preview/vite.config.ts",
|
|
38
|
+
"verify:arco": "node scripts/verify-arco.mjs",
|
|
39
|
+
"verify": "npm run typecheck && npm run build && npm test && npm run verify:arco && npm run preview:build && npm pack --dry-run",
|
|
40
|
+
"prepublishOnly": "npm run verify"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public",
|
|
44
|
+
"tag": "vue"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=24.9.0"
|
|
48
|
+
},
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://github.com/dsh-plugins/dsh-ui-components.git"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://github.com/dsh-plugins/dsh-ui-components/tree/vue",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"keywords": [
|
|
56
|
+
"dsh",
|
|
57
|
+
"vue",
|
|
58
|
+
"arco-design",
|
|
59
|
+
"components"
|
|
60
|
+
],
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"vue": "^3.5.0"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@arco-design/web-vue": "^2.59.0",
|
|
66
|
+
"dayjs": "1.11.23"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@types/node": "^22.10.0",
|
|
70
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
71
|
+
"typescript": "~5.8.3",
|
|
72
|
+
"vite": "^6.4.6",
|
|
73
|
+
"vitest": "^2.1.9",
|
|
74
|
+
"vue": "^3.5.45",
|
|
75
|
+
"vue-tsc": "^3.1.0"
|
|
76
|
+
}
|
|
77
|
+
}
|