✨(component): 发布 1.7.0-alpha.1 版本
This commit is contained in:
		
							parent
							
								
									1f6f25bdfb
								
							
						
					
					
						commit
						91c3d1406d
					
				@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "@layui/layui-vue",
 | 
			
		||||
  "version": "1.7.0-dev.20",
 | 
			
		||||
  "version": "1.7.0-alpha.1",
 | 
			
		||||
  "author": "就眠儀式",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "description": "a component library for Vue 3 base on layui-vue",
 | 
			
		||||
 | 
			
		||||
@ -43,7 +43,7 @@ const slots = useSlots();
 | 
			
		||||
 | 
			
		||||
const maxPage = ref(0);
 | 
			
		||||
const limits = ref(props.limits);
 | 
			
		||||
const pages = Math.floor(props.pages / 2);
 | 
			
		||||
const pages = computed(() => Math.floor(props.pages / 2))
 | 
			
		||||
const currentPage: Ref<number> = ref(props.modelValue);
 | 
			
		||||
const currentPageShow: Ref<number> = ref(currentPage.value);
 | 
			
		||||
const inlimit = ref(props.limit);
 | 
			
		||||
@ -62,11 +62,11 @@ const totalPage = computed(() => {
 | 
			
		||||
  let start =
 | 
			
		||||
    maxPage.value <= props.pages
 | 
			
		||||
      ? 1
 | 
			
		||||
      : currentPage.value > pages
 | 
			
		||||
      ? maxPage.value - currentPage.value + 1 < pages
 | 
			
		||||
      : currentPage.value > pages.value
 | 
			
		||||
      ? maxPage.value - currentPage.value + 1 < pages.value
 | 
			
		||||
        ? currentPage.value -
 | 
			
		||||
          (pages + (pages - (maxPage.value - currentPage.value + 1)))
 | 
			
		||||
        : currentPage.value - pages
 | 
			
		||||
          (pages.value + (pages.value - (maxPage.value - currentPage.value + 1)))
 | 
			
		||||
        : currentPage.value - pages.value
 | 
			
		||||
      : 1;
 | 
			
		||||
 | 
			
		||||
  for (let i = start; ; i++) {
 | 
			
		||||
 | 
			
		||||
@ -44,5 +44,5 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  empty: {
 | 
			
		||||
    description: "无数据",
 | 
			
		||||
  },
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@ -13,7 +13,7 @@
 | 
			
		||||
::: demo 使用 `lay-exception` 标签, 创建一个异常页面
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
  <lay-exception status="401" title="401" describe="暂无相关权限">
 | 
			
		||||
  <lay-exception status="401" title="401" describe="身份认证失败">
 | 
			
		||||
      <template #extra>
 | 
			
		||||
        <lay-button>刷新</lay-button>
 | 
			
		||||
        <lay-button type="primary">返回</lay-button>
 | 
			
		||||
 | 
			
		||||
@ -33,6 +33,7 @@
 | 
			
		||||
          <li>[修复] space 组件 size 属性使用内置 string ['md','sm'] 不生效的问题。</li>
 | 
			
		||||
          <li>[修复] table 组件 datasource 为空, 表头超出宽度无法滚动的问题。</li>
 | 
			
		||||
          <li>[修复] page 组件 pages 属性起始页计算逻辑, 在接近尾页时 pages 数量不对应。</li>
 | 
			
		||||
          <li>[修复] page 组件 pages 属性, 缺少响应式特性。</li>
 | 
			
		||||
          <li>[删除] select 组件 show-empty 属性, 由用户自定义 select-option 代替。</li>
 | 
			
		||||
          <li>[删除] select 组件 empty-message 属性, 由用户自定义 select-option 代替。</li>
 | 
			
		||||
          <li>[删除] select 组件 placeholder, searchPlaceholder 属性默认值, 由使用者提供。</li>
 | 
			
		||||
 | 
			
		||||
@ -42,10 +42,6 @@ const locales = [
 | 
			
		||||
];
 | 
			
		||||
</script>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
::: describe 目前支持的语言列表。
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
::: table
 | 
			
		||||
 | 
			
		||||
| 语言        | 内容                |
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user