Git Product home page Git Product logo

kook_message_preview's Introduction

kook消息预览组件 @kookapp/kook-message-preview

开发者调试

# 安装依赖
$ pnpm install

# 文档模式调试
$ pnpm run dev

# 构建npm包
$ pnpm run build

# 构建文档站点
$ pnpm run docs_build

项目结构介绍

  • docs 组件文档
  • src 组件源码
  • .dumirc.ts dumi配置文件
  • .fatherrc.ts father打包组件配置文件

LICENSE

MIT

kook_message_preview's People

Contributors

feclickengineer avatar misaka-l avatar

Stargazers

xiaoACE avatar Liu Wenyuan avatar  avatar MODcraft avatar huanmeng_qwq avatar

Watchers

 avatar

kook_message_preview's Issues

图片组件无法正常显示

问题描述

如图,图片组件没有按正常大小显示图片。而是以一个极小的大小显示图片。

image

通过 DevTools 发现图片组件在 style 属性设置了个极小的高度和宽度

image

另外翻阅源代码发现,图片组件是引用了 @kaiheila/kui-lib,但本人未找到相关仓库。

临时解决方案

在应用的 css 文件添加以下片段:

.kui-image {
  height: fit-content !important;
  width: 100% !important;
}

image

文件组件无法正常显示

问题描述

如图所示,文件组件文件标题不正常居中。

image

临时解决方案

在应用 css 文件添加以下片段

.kui-file .file-content .file-info {
  align-items: start;
}

视频,音频组件无法正常使用

问题描述

视频,音频组件部分正常渲染。但是视频组件无预览图。且所有组件都无法播放。

已排除网络问题,即使是本地文件(直接放到开发环境目录里)也不行。DevTools 没有发现网络错误

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.