2026-09-09 11:26:08 +08:00
2026-08-27 16:04:06 +08:00
2026-08-27 16:04:06 +08:00
2026-09-09 11:26:08 +08:00
2025-07-08 16:33:11 +08:00
2025-07-08 16:33:11 +08:00
2025-07-08 16:33:11 +08:00
2026-04-03 01:03:22 +08:00
2026-08-25 17:35:42 +08:00
2025-07-08 03:24:24 +00:00
2026-08-27 16:04:06 +08:00
2026-08-27 16:04:06 +08:00
2026-08-27 16:04:06 +08:00
2026-08-25 17:35:42 +08:00
2026-04-03 01:03:22 +08:00
2025-07-08 16:33:11 +08:00
2026-08-27 16:04:06 +08:00

timi-tdesign-mobile

Vue 3 移动端通用组件库,依赖 timi-web 提供基础组件和编辑器能力。

本包不依赖 timi-web-api。业务项目可以只安装本包使用通用组件;需要业务接口、领域类型或用户状态时,再单独安装 timi-web-api。

文章和通知组件

ArticleEditor、ArticleView、NotifyEditor、NotifyView 只约束对象的最小字段。Article、Attachment 和 NotifyDetail 支持携带业务自定义字段,不要求对象来自 timi-web-api。

上传和附件地址由业务项目通过回调注入:

<article-editor
  :model-value="article"
  :upload-image="uploadImage"
  :upload-video="uploadVideo"
  :resolve-attachment-url="resolveAttachmentUrl"
  @update:model-value="article = $event"
/>
<article-view
  :article="article"
  :resolve-attachment-url="resolveAttachmentUrl"
/>

通知组件使用同样的 uploadImage、uploadVideo 和 resolveAttachmentUrl 回调。没有附件上传需求时,可以不传上传回调。

开发

pnpm install
pnpm run build
S
Description
移动端前端组件库
Readme MIT
619 KiB
Languages
Vue 82.1%
TypeScript 12.6%
Less 4.6%
HTML 0.7%