Mdui Versions Save

Material Design 3(Material You) UI components using Web Components.

v2.0.6

2 months ago

🐛 Bug Fixes

  • Lost bundled files

v2.0.5

2 months ago

🐛 Bug Fixes

  • Revert ScrollBehaviorMixin (6d4ad198beec909ee12b31dde3c8b6058cbe3ee2)

v2.0.4

2 months ago

🚀 New Features

  • Added English documentation
  • Added JSX TypeScript type declarations

🐛 Bug Fixes

  • Issue with the observeResize function not immediately executing the first callback when multiple listeners are added to the same element.(e99d6656a01ddd753961ca28b9b8f1996c518de5)
  • Animation error in the navigation-drawer component when rapidly closing and reopening.(800f06461fcd8c25a7c9b5a866e8d9f0f28fc652)
  • The lockScreen function now correctly reserves scrollbar width only when a scrollbar is present.(8bde76d586c5ccbd3d0ee627ae775c4c381296c2)
  • Fixed font-weight style not taking effect on the button component.(92c50b1044e1c34bf019a6fb163df11700098327 #291)

v2.0.3

4 months ago

🐛 Bug 修复

  • 修复了 range-slider 组件在含初始值时的赋值问题 ( bcb7b3cdf0b8c71df0e3064c4e618fb500bf3cee )
  • 将 mdui-collapse、mdui-collapse-item 组件添加到 HTMLElementTagNameMap ( bcb7b3cdf0b8c71df0e3064c4e618fb500bf3cee #284)
  • 移除了 mdui-list 组件的默认链接样式 ( f0b1581635c2f1c39c5ce7b3979b5953143eccec #285)
  • 修复了子组件不存在时点击导致的报错。涉及组件:collapse, menu, navigation-bar, navigation-rail, radio-group, segmented-button-group, tabs ( 27471853ee28dae72499f28d994ec0fdd75d2e9f )
  • 当 slider, range-slider 的 value 不在 min、max、step 的限制范围内时,现在支持自动修正值 ( 5f996c2e29457206a626fb96477b2ea17512661e #283)
  • 修复了 segmented-button-group 在选中状态时的错位问题 ( 728bc3d27a1b406ecc8b6604abcb6973da7e6337 )
  • 限制了 navigation-drawer 在窄屏幕上的最大宽度为 80% ( 2bf4e7502ed83a60aae95e2844798d0ad3fd4a03 )
  • dropdown, tooltip 现在会监听所有支持 overflow 的父元素滚动 ( fbade5b99c72c7f70558116a8139c78b79a73769 #282)

💅 优化

  • 添加了组件的事件类型声明 ( 4f9c2e1df19a914d66565f32ce8584e034968e2b )

v2.0.2

5 months ago

🐛 Bug 修复

📦 依赖更新

  • Lit 更新到 v3.0

v2.0.1

6 months ago

全新的使用 Material You 设计规范的 mdui 发布

v1.0.2

3 years ago

升级指导

v1.0.1 可以无缝升级到 v1.0.2

更新说明

fixed #242

v1.0.1

3 years ago

升级指导

v1.0.0 可以无缝升级到 v1.0.1

更新说明

  1. .mdui-typo 中的 video 添加 max-width: 100%
  2. 修复 slider 组件样式 bug。https://www.mdui.org/questions/222
  3. panel 支持动态添加元素。https://www.mdui.org/questions/224
  4. fixed #231
  5. fixed #239
  6. fixed #235

v1.0.0

3 years ago

升级指导

v1.0.0 和 v0.4.3 不兼容,不兼容的部分包括:

mdui.$ 更新

在 0.4.3 中它叫 mdui.JQ,在 1.0.0 中更名为 mdui.$。 如此更改后,在 ES6 模块化环境中,你可以使用如下方式导入 mdui.$,使用上更便捷。

import { $ } from 'mdui';

mdui.$ 中还对多个方法的功能进行了扩充,这里不再叙述。下面仅列出和 0.4.3 不兼容的更新部分。

.width(),.height(),.innerWidth(),.innerHeight() 变更

在 0.4.3 中,是否包含内边距取决于 box-sizing 属性的值。 在 1.0.0 中,宽度和高度与 box-sizing 的属性无关。修改后与 jQuery 保持一致。

.offset(),position() 变更

在 0.4.3 中,返回值格式为 { top: number, left: number, width: number, height: number } 在 1.0.0 中,返回值格式改为 { top: number, left: number }。修改后与 jQuery 保持一致。

.children(),.parent(),.parents(),.prev(),.prevAll(),.next(),.nextAll(),.siblings() 变更

在 0.4.3 中,参数可以是 CSS 选择器、DOM 元素、数组等多种类型。 在 1.0.0 中,参数只能是 CSS 选择器类型。修改后与 jQuery 保持一致。

.has() 变更

在 0.4.3 中,参数可以是 CSS 选择器、DOM 元素、数组等多种类型。 在 1.0.0 中,参数只能是 CSS 选择器或 DOM 元素。修改后与 jQuery 保持一致。

.ready() 移除

在 0.4.3 中,可以使用 $(document).ready(function () {}) 来调用 DOM 加载完毕需要执行的函数。 在 1.0.0 中,请将其替换为 $(function () {})

.ajax() 变更

在 0.4.3 中,.ajax() 方法的返回值为 XMLHttpRequest 对象。且支持发送 jsonp 请求。 在 1.0.0 中,返回值改为了 Promise。且该方法不再支持 jsonp 请求。

v0.4.3

4 years ago

升级指导

v0.4.2 可以无缝升级到 v0.4.3

更新说明

  1. normalize.css 更新到 v8.0.1
  2. 修复 Select 组件在只有一个选项时的高度错误
  3. 修复 JS 文件放在 head 中时,Spinner 组件无法正常显示问题 #185
  4. 移除 Firefox 中 Tab 组件的 outline 轮廓 #189
  5. 修复密集型列表头像变形的问题 #187
  6. 新增不确定状态的 checkbox 样式 #195
  7. 表格行未全部选中时,表头的 checkbox 使用不确定状态
  8. 修复预定义对话框的回调函数报错问题 #197