🐛(component): 修复文档缺陷
This commit is contained in:
@@ -165,11 +165,11 @@ npm install @layui/icons-vue
|
||||
|
||||
function getIconUnicode(iconClass){
|
||||
const iconEl = document.querySelector(`.site-doc-icon > li > .${iconClass}`);
|
||||
const iconBeforeContent = getComputedStyle(iconEl,":before").content;
|
||||
const iconBeforeContent = window?.getComputedStyle(iconEl,":before").content;
|
||||
return iconBeforeContent;
|
||||
}
|
||||
onMounted(() => {
|
||||
LayIconList.forEach((icon) => {
|
||||
LayIconList?.forEach((icon) => {
|
||||
const unicode = getIconUnicode(icon.class).charCodeAt(1).toString(16); // unicode 10进制转16进制
|
||||
iconsUnicode.push(unicode)
|
||||
});
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
<li>
|
||||
<h3>1.4.13 <span class="layui-badge-rim">2022-09-14</span></h3>
|
||||
<ul>
|
||||
<li>[新增] transfer 组件 modelValue (v-model) 属性。</li>
|
||||
<li>[新增] transfer 组件 change 事件, 在左右转移数据时回调。</li>
|
||||
<li>[修复] rate 组件 modelValue 值缺少响应式的问题。</li>
|
||||
<li>[修复] transfer 组件 showSearch 为 true 时, 无法搜索的问题。</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user