<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择周
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date"picker="week"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择月
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date"picker="month"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择季度
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date"picker="quarter"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择年份
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date"picker="year"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择日期区间
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择日期时间区间
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"show-time/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择周区间
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"picker="week"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择月区间
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"picker="month"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:选择年区间
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"picker="year"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:日期格式
<scriptsetup>import{ref}from"vue";const date =ref(null)</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"format="YYYY年MM月DD日"/><a-divider/><a-typography-title>{{ date}}</a-typography-title></div></template>
案例:预设日期
<scriptsetup>import{ref}from"vue";import dayjs from"dayjs"const date =ref(null)const presets =[{label:"昨天",value:dayjs().add(-1,'d')},{label:"上周",value:dayjs().add(-7,'d')},{label:"上月",value:dayjs().add(-1,'month')}]</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date":presets="presets"/><a-divider/><a-typography-title>{{ date }}</a-typography-title></div></template>
案例:预设日期区间
<scriptsetup>import{ref}from"vue";import dayjs from"dayjs"const date =ref(null)const presets =[{label:"最近一周",value:[dayjs().add(-7,'d'),dayjs()]},{label:"最近半月",value:[dayjs().add(-15,'d'),dayjs()]},{label:"最近一月",value:[dayjs().add(-1,'month'),dayjs()]}]</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date":presets="presets"/><a-divider/><a-typography-title>{{ date }}</a-typography-title></div></template>
案例:日期选中事件
<scriptsetup>import{ref}from"vue";const date =ref(null)constonChange=(date, dateStr)=>{
console.log(date)
console.log(dateStr)}</script><template><divclass="p-8 bg-indigo-50 text-center"><a-date-pickerv-model:value="date"@change="onChange"/><a-divider/><a-typography-title>{{ date }}</a-typography-title></div></template>
案例:日期区间选中事件
<scriptsetup>import{ref}from"vue";const date =ref(null)constonChange=(dates, dateStrs)=>{
console.log(dates)
console.log(dateStrs)}</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"@change="onChange"/><a-divider/><a-typography-title>{{ date }}</a-typography-title></div></template>
案例:显示中文
<scriptsetup>import{ref}from"vue";import locale from"ant-design-vue/es/date-picker/locale/zh_CN"const date =ref(null)constonChange=(dates, dateStrs)=>{
console.log(dates)
console.log(dateStrs)}</script><template><divclass="p-8 bg-indigo-50 text-center"><a-range-pickerv-model:value="date"@change="onChange":locale="locale"/><a-divider/><a-typography-title>{{ date }}</a-typography-title></div></template>
一、操作手册
1、安装工具
1.1、安装代理软件Charles
软件下载地址:Download a Free Trial of Charles • Charles Web Debugging Proxy
1.2、安装https代理插件:(有问题自行百度解决) 2、配置策略
以下以https接口为例&…
1、官网下载地址:
Download Kibana Free | Get Started Now | Elastic
2、进入 Kibana下载界面,点击 View past releases 查看过去的版本 3、选择版本 Elasticsearch 7.10.2,点击 Download 4、点击 LINUX 64-BIT,进行下载 5、下…
C# WPF 读写CAN数据
CAN 分析仪 分析仪资料下载
官方地址:https://www.zhcxgd.com/1.html
CSDN:
项目配置
复制Dll库文件
文件在上面的资料里面 设置不安全代码 CAN C#工具类
CAN_Tool.cs
using Microsoft.VisualBasic;
using System;
using Sys…