
Security News
CISA Rebuffs Funding Concerns as CVE Foundation Draws Criticism
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
@blueking/date-picker
Advanced tools
npm i @blueking/date-picker
<template>
<div class="app">
<DatePicker
v-model="value"
v-model:timezone="timezone"
format="YYYY-MM-DD HH:mm:ss"
:behavior="'normal'"
:version="2"
:disabled="false"
@update:model-value="handleValueChange"
/>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import DatePicker from '@blueking/date-picker';
import DatePicker from '@blueking/date-picker/vue3/vue3.css';
const value = ref(['now-2d/d', 'now',]);
const timezone = ref('Asia/Shanghai');
const handleValueChange = (value, info) => {
console.log(value, info);
};
</script>
<template>
<div class="hello">
<DatePicker
:modelValue="modelValue"
:timezone.sync="timezone"
@update:modelValue="handleValueChange"/>
</div>
</template>
<script>
import DatePicker from '@blueking/date-picker/vue2'
import '@blueking/date-picker/vue2/vue2.css'
export default {
data(){
return {
modelValue: ['now-2d/d', 'now'],
timezone: 'Asia/Shanghai'
}
},
components: {
DatePicker
},
methods: {
handleValueChange(v, info) {
console.log(v, info)
this.modelValue = v
}
}
}
</script>
属性名 | 描述 | 属性类型 | 默认值 |
---|---|---|---|
behavior | 组件展示风格 | 'normal' | 'simplicity' | 'normal' |
commonUseList | 常用列表 | DateValue[] | |
disabled | 是否禁用 | boolean | |
format | 日期转换显示格式 | string | |
modelValue | 日期值 | DateValue | dayjs.Dayjs[] | number[] | string[] | undefined | |
needTimezone | 是否展示时区 | boolean | |
timezone | 时区值 | string | 浏览器时区 |
validDateRange | 有效可选的日期范围 | DateValue | undefined | |
version | 版本号 用于控制本地缓存 | number | string | '1.0' |
minDuration | 最小可选时间跨度毫秒值 | number | |
maxDuration | 最大可选时间跨度毫秒值 | number | |
enableFormatClick | 可支持的时间格式是否可以点击切换 | boolean | false |
事件名 | 参数 | 参数类型 | 描述 |
---|---|---|---|
update:modelValue | value, info | value: IDatePickerProps['modelValue'] info: Array { dayjs: dayjs.Dayjs | null; formatText: null | string; } | 更新date值的事件,以及相关信息 |
update:timezone | value, timezoneInfo | value: string timezoneInfo: ITimezoneItem | 更新时区值的事件,以及时区信息 |
update:format | value | value: string | 更新时间格式的值 |
FAQs
The npm package @blueking/date-picker receives a total of 196 weekly downloads. As such, @blueking/date-picker popularity was classified as not popular.
We found that @blueking/date-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.