0.0.15 • Published 3 years ago

j-dogui v0.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

全局引入

import JDogUI from 'j-dogui'
import 'j-dogui/dist/style.css'

app.use(JDogUI)

引入 mian.ts 出现 找不到模块“j-dogui”或其相应的类型声明。

  • src目录下新建XXXX.d.ts文件
declare module 'j-dogui'

按需引入

import { jPagination } from 'j-dogui'
import 'j-dogui/dist/style.css'

使用说明

- 详细参数见Ant Design Vue

  1. 分页器
<template>
    <jPagination 
    v-model:currentPage="currentPage"
    v-model:currentPageSize="pageSize"
    :total="533"
    @handlerPage="getPageChange"/>
</template>
    
<script setup lang="ts">
    import { jPagination } from 'j-dogui'
    import {ref} from "vue"
    const currentPage = ref<number>(1)
    const pageSize = ref<number>(10)
    const getPageChange=()=>{
      console.log(currentPage,pageSize)
    }
</script>
  1. 日历多选组件
<template>
    <jCalendar 
    v-model:jCalendarValue="jCalendarValue"
    @handlerGetDate="handlerGetDate"/>
</template>
<script setup lang="ts">
import { Dayjs } from 'dayjs'
import {ref} from "vue";

const jCalendarValue=ref<Dayjs>()
const handlerGetDate=(val:Array<string>)=>{
  console.log('get选择日期数组',val)
}
</script>
0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago