Skip to content

Commit

Permalink
fix pager input 样式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 21, 2024
1 parent ee64630 commit c4018de
Show file tree
Hide file tree
Showing 19 changed files with 278 additions and 189 deletions.
74 changes: 0 additions & 74 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,80 +20,6 @@ A [vue](https://www.npmjs.com/package/vue) based PC component library.
--- | --- | --- | --- | --- |
80+ ✔ | 80+ ✔ | 90+ ✔ | 75+ ✔ | 10+ ✔ |

## 功能点

[👀 Vxe UI](https://vxeui.com)

* [x] alert 警告提示
* [x] anchor 锚点
* [x] anchor-link 锚点-链接
* [x] breadcrumb 面包屑
* [x] breadcrumb-item 面包屑-项
* [x] button 按钮
* [x] button-group 按钮组
* [ ] calendar 日历
* [x] card 卡片
* [ ] carousel 走马灯
* [x] checkbox 复选框
* [x] checkbox-group 复选框-组
* [x] col 列
* [ ] collapse 展开面板
* [ ] collapse-pane 展开面板-容器
* [x] date-picker 日期选择器
* [x] drawer 抽屉
* [ ] flow-design 流程设计器
* [ ] flow-view 流程设计器-视图渲染
* [x] form 表单
* [x] form-design 表单设计器
* [x] form-gather 表单-容器
* [x] form-item 表单-项
* [x] form-view 表单设计器-视图渲染
* [x] icon 图标
* [x] image 图片
* [x] image-preview 图片预览
* [x] input 输入框
* [x] layout-aside 页面布局-左侧
* [x] layout-body 页面布局-内容
* [x] layout-container 页面布局-容器
* [x] layout-footer 页面布局-页尾
* [x] layout-header 页面布局-页头
* [x] link 链接
* [x] list-design 列表设计器
* [x] list-view 列表设计器-视图渲染
* [x] list 虚拟列表
* [x] loading 加载中
* [x] menu 菜单
* [x] modal 模态窗口
* [x] number-input 数值输入框
* [x] optgroup 下拉框-分组项
* [x] option 下拉框-项
* [x] pager 分页
* [x] password-input 密码输入框
* [x] print 打印
* [x] pulldown 下拉容器
* [x] radio 单选框
* [x] radio-button 单选框-按钮
* [x] radio-group 单选框-组
* [x] row 行
* [x] select 下拉框
* [x] switch 开关
* [x] tab-pane 页签-容器
* [x] tabs 页签
* [x] textarea 文本域
* [x] tips 段落提示
* [x] tooltip 文字提示
* [x] tree 树形组件
* [ ] tree-select 树形下拉框
* [x] upload 附件上传

[👀 Vxe Table](https://vxetable.cn)

* [x] table 表格
* [x] column 表格-列
* [x] colgroup 表格-分组列
* [x] toolbar 表格-工具栏
* [x] grid 表格-配置式

## Use

```shell
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* [x] form-item 表单-项
* [x] form-view 表单设计器-视图渲染
* [x] icon 图标
* [x] icon-picker 图标选择
* [x] image 图片
* [x] image-preview 图片预览
* [x] input 输入框
Expand All @@ -70,6 +71,7 @@
* [x] pager 分页
* [x] password-input 密码输入框
* [x] print 打印
* [x] print-page-break 分页打印
* [x] pulldown 下拉容器
* [x] radio 单选框
* [x] radio-button 单选框-按钮
Expand All @@ -80,10 +82,10 @@
* [x] tab-pane 页签-容器
* [x] tabs 页签
* [x] textarea 文本域
* [x] tips 段落提示
* [x] tip 提示
* [x] tooltip 文字提示
* [x] tree 树形组件
* [ ] tree-select 树形下拉框
* [x] tree-select 树形下拉框
* [x] upload 附件上传

[👀 Vxe Table](https://vxetable.cn)
Expand Down
74 changes: 0 additions & 74 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,80 +20,6 @@
--- | --- | --- | --- | --- |
80+ ✔ | 80+ ✔ | 90+ ✔ | 75+ ✔ | 10+ ✔ |

## 功能点

[👀 Vxe UI](https://vxeui.com)

* [x] alert 警告提示
* [x] anchor 锚点
* [x] anchor-link 锚点-链接
* [x] breadcrumb 面包屑
* [x] breadcrumb-item 面包屑-项
* [x] button 按钮
* [x] button-group 按钮组
* [ ] calendar 日历
* [x] card 卡片
* [ ] carousel 走马灯
* [x] checkbox 复选框
* [x] checkbox-group 复选框-组
* [x] col 列
* [ ] collapse 展开面板
* [ ] collapse-pane 展开面板-容器
* [x] date-picker 日期选择器
* [x] drawer 抽屉
* [ ] flow-design 流程设计器
* [ ] flow-view 流程设计器-视图渲染
* [x] form 表单
* [x] form-design 表单设计器
* [x] form-gather 表单-容器
* [x] form-item 表单-项
* [x] form-view 表单设计器-视图渲染
* [x] icon 图标
* [x] image 图片
* [x] image-preview 图片预览
* [x] input 输入框
* [x] layout-aside 页面布局-左侧
* [x] layout-body 页面布局-内容
* [x] layout-container 页面布局-容器
* [x] layout-footer 页面布局-页尾
* [x] layout-header 页面布局-页头
* [x] link 链接
* [x] list-design 列表设计器
* [x] list-view 列表设计器-视图渲染
* [x] list 虚拟列表
* [x] loading 加载中
* [x] menu 菜单
* [x] modal 模态窗口
* [x] number-input 数值输入框
* [x] optgroup 下拉框-分组项
* [x] option 下拉框-项
* [x] pager 分页
* [x] password-input 密码输入框
* [x] print 打印
* [x] pulldown 下拉容器
* [x] radio 单选框
* [x] radio-button 单选框-按钮
* [x] radio-group 单选框-组
* [x] row 行
* [x] select 下拉框
* [x] switch 开关
* [x] tab-pane 页签-容器
* [x] tabs 页签
* [x] textarea 文本域
* [x] tips 段落提示
* [x] tooltip 文字提示
* [x] tree 树形组件
* [ ] tree-select 树形下拉框
* [x] upload 附件上传

[👀 Vxe Table](https://vxetable.cn)

* [x] table 表格
* [x] column 表格-列
* [x] colgroup 表格-分组列
* [x] toolbar 表格-工具栏
* [x] grid 表格-配置式

## 使用

```shell
Expand Down
3 changes: 2 additions & 1 deletion examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const navList = ref<VxeMenuPropTypes.Options>([
{ name: 'ImageTest', routerLink: { name: 'ImageTest' } },
{ name: 'TreeTest', routerLink: { name: 'TreeTest' } },
{ name: 'CardTest', routerLink: { name: 'CardTest' } },
{ name: 'TreeSelectTest', routerLink: { name: 'TreeSelectTest' } }
{ name: 'TreeSelectTest', routerLink: { name: 'TreeSelectTest' } },
{ name: 'CarouselTest', routerLink: { name: 'CarouselTest' } }
])
const theme = ref((localStorage.getItem('VXE_THEME') as 'default' | 'dark') || 'default')
Expand Down
5 changes: 5 additions & 0 deletions examples/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ const routes: Array<RouteRecordRaw> = [
path: '/component/treeSelect',
name: 'TreeSelectTest',
component: () => import('../views/treeSelect/TreeSelectTest.vue')
},
{
path: '/component/carousel',
name: 'CarouselTest',
component: () => import('../views/carousel/CarouselTest.vue')
}
]

Expand Down
68 changes: 68 additions & 0 deletions examples/views/carousel/CarouselTest.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<template>
<div>
<p>
<vxe-checkbox v-model="demo1.value1" content="默认尺寸"></vxe-checkbox>
<vxe-checkbox v-model="demo1.value2" size="medium" content="中等尺寸"></vxe-checkbox>
<vxe-checkbox v-model="demo1.value3" size="small" content="小型尺寸"></vxe-checkbox>
<vxe-checkbox v-model="demo1.value4" size="mini" content="超小尺寸"></vxe-checkbox>
<vxe-checkbox v-model="demo1.value5" content="默认尺寸" indeterminate></vxe-checkbox>
<vxe-checkbox v-model="demo1.value6" size="medium" content="中等尺寸" indeterminate></vxe-checkbox>
<vxe-checkbox v-model="demo1.value7" size="small" content="小型尺寸" indeterminate></vxe-checkbox>
<vxe-checkbox v-model="demo1.value8" size="mini" content="超小尺寸" indeterminate></vxe-checkbox>
</p>

<p>
<vxe-checkbox v-model="demo1.value9" content="复选1"></vxe-checkbox>
<vxe-checkbox v-model="demo1.value10" content="复选2" disabled></vxe-checkbox>
<vxe-checkbox v-model="demo1.value11" content="自定义值" checked-value="1" unchecked-value="0"></vxe-checkbox>
</p>

<p>
<vxe-checkbox-group v-model="demo1.value12">
<vxe-checkbox label="1" content="HTML"></vxe-checkbox>
<vxe-checkbox label="2" content="CSS"></vxe-checkbox>
<vxe-checkbox label="3" content="Javascript"></vxe-checkbox>
<vxe-checkbox label="4" content="SASS"></vxe-checkbox>
<vxe-checkbox label="5" content="LESS"></vxe-checkbox>
</vxe-checkbox-group>
<vxe-checkbox-group v-model="demo1.value12" :options="demo1.opts1" ></vxe-checkbox-group>
</p>

<p>
<vxe-checkbox-group v-model="demo1.value20" :max="3">
<vxe-checkbox label="1" content="HTML"></vxe-checkbox>
<vxe-checkbox label="2" content="CSS"></vxe-checkbox>
<vxe-checkbox label="3" content="Javascript"></vxe-checkbox>
<vxe-checkbox label="4" content="SASS"></vxe-checkbox>
<vxe-checkbox label="5" content="LESS"></vxe-checkbox>
</vxe-checkbox-group>
</p>
</div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'
const demo1 = reactive({
value1: null,
value2: null,
value3: null,
value4: null,
value5: false,
value6: false,
value7: false,
value8: false,
value9: true,
value10: true,
value11: '1',
value12: ['3'],
value20: [],
opts1: [
{ value: '1', label: 'HTML' },
{ value: '2', label: 'CSS' },
{ value: '3', label: 'Javascript' },
{ value: '4', label: 'SASS' },
{ value: '5', label: 'LESS' }
]
})
</script>
4 changes: 2 additions & 2 deletions examples/views/tabs/TabsTest.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<p>
<vxe-tabs modelValue="3" >
<vxe-tabs modelValue1="3" >
<vxe-tab-pane title="xxx1" name="1">xxxx</vxe-tab-pane>
<vxe-tab-pane title="xxx2" name="2" icon="vxe-icon-pc">cccc</vxe-tab-pane>
<vxe-tab-pane title="xxx3" name="3" icon="vxe-icon-pc">vvvv</vxe-tab-pane>
Expand All @@ -15,7 +15,7 @@
</p>

<p>
<vxe-tabs modelValue="3" type="card">
<vxe-tabs modelValue1="3" type="card">
<vxe-tab-pane title="xxx1" name="1">xxxx</vxe-tab-pane>
<vxe-tab-pane title="xxx2" name="2" icon="vxe-icon-pc">cccc</vxe-tab-pane>
<vxe-tab-pane title="xxx3" name="3" icon="vxe-icon-pc">vvvv</vxe-tab-pane>
Expand Down
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const componentList = [
'calendar',
'card',
'carousel',
'carousel-item',
'checkbox',
'checkbox-group',
'col',
Expand Down
16 changes: 16 additions & 0 deletions packages/carousel-item/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { App } from 'vue'
import { VxeUI } from '@vxe-ui/core'
import VxeCarouselItemComponent from './src/carousel-item'
import { dynamicApp } from '../dynamics'

export const VxeCarouselItem = Object.assign({}, VxeCarouselItemComponent, {
install (app: App) {
app.component(VxeCarouselItemComponent.name as string, VxeCarouselItemComponent)
}
})

dynamicApp.component(VxeCarouselItemComponent.name as string, VxeCarouselItemComponent)
VxeUI.component(VxeCarouselItemComponent)

export const CarouselItem = VxeCarouselItem
export default VxeCarouselItem
57 changes: 57 additions & 0 deletions packages/carousel-item/src/carousel-item.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import { defineComponent, ref, h, reactive, PropType } from 'vue'
import XEUtils from 'xe-utils'

import type { VxeCarouselItemPropTypes, CarouselItemReactData, CarouselItemPrivateRef, VxeCarouselItemPrivateComputed, VxeCarouselItemConstructor, VxeCarouselItemPrivateMethods } from '../../../types'

export default defineComponent({
name: 'VxeCarouselItem',
props: {
name: String as PropType<VxeCarouselItemPropTypes.Name>,
className: String as PropType<VxeCarouselItemPropTypes.ClassName>,
url: String as PropType<VxeCarouselItemPropTypes.Url>
},
emits: [],
setup (props, context) {
const { slots } = context

const xID = XEUtils.uniqueId()

const refElem = ref<HTMLDivElement>()

const reactData = reactive<CarouselItemReactData>({
})

const refMaps: CarouselItemPrivateRef = {
refElem
}

const computeMaps: VxeCarouselItemPrivateComputed = {
}

const $xeCarouselItem = {
xID,
props,
context,
reactData,

getRefMaps: () => refMaps,
getComputeMaps: () => computeMaps
} as unknown as VxeCarouselItemConstructor & VxeCarouselItemPrivateMethods

const renderVN = () => {
const { className } = props
const defaultSlot = slots.default
return h('div', {
ref: refElem,
class: ['vxe-carousel-item', className || '']
}, defaultSlot ? defaultSlot({}) : [])
}

$xeCarouselItem.renderVN = renderVN

return $xeCarouselItem
},
render () {
return this.renderVN()
}
})
Loading

0 comments on commit c4018de

Please sign in to comment.