@keyblade/pro-components 1.13.8-alpha.18 → 1.13.8-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/pro-calendar/calendar.vue.d.ts +2 -2
- package/es/pro-calendar/calendar.vue.js +96 -96
- package/es/pro-calendar/header.vue.d.ts +14 -30
- package/es/pro-calendar/header.vue.js +18 -19
- package/es/pro-calendar/hooks/useCellClassName.js +2 -2
- package/es/pro-calendar/index.d.ts +6 -6
- package/es/pro-calendar/index.js +1 -1
- package/es/pro-calendar/inerface.d.ts +56 -11
- package/es/pro-calendar/month.js +1 -1
- package/es/pro-calendar/month.vue.d.ts +2 -17
- package/es/pro-calendar/month.vue.js +10 -10
- package/es/pro-calendar/week.vue.d.ts +2 -14
- package/es/pro-calendar/week.vue.js +15 -16
- package/es/pro-calendar/year.vue.d.ts +2 -14
- package/es/pro-calendar/year.vue.js +11 -11
- package/es/pro-image-upload/image-upload.vue.d.ts +1 -1
- package/es/pro-image-upload/index.d.ts +3 -3
- package/es/pro-layout/hooks.d.ts +1 -1
- package/es/pro-layout/hooks.js +2 -2
- package/es/pro-layout/pro-layout.vue.js +35 -37
- package/es/pro-menu/index.d.ts +11 -80
- package/es/pro-menu/interface.d.ts +19 -0
- package/es/pro-menu/menu-item.vue.d.ts +25 -0
- package/es/pro-menu/menu-item.vue.js +35 -0
- package/es/pro-menu/menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu-item.vue.d.ts +7 -0
- package/es/pro-menu/pro-menu-item.vue.js +63 -0
- package/es/pro-menu/pro-menu-item.vue2.js +4 -0
- package/es/pro-menu/pro-menu.vue.d.ts +7 -55
- package/es/pro-menu/pro-menu.vue.js +28 -114
- package/es/pro-menu/sub-menu.vue.d.ts +22 -0
- package/es/pro-menu/sub-menu.vue.js +54 -0
- package/es/pro-menu/sub-menu.vue2.js +4 -0
- package/es/pro-menu/util.d.ts +9 -0
- package/es/pro-menu/util.js +7 -0
- package/es/pro-table/index.d.ts +3 -3
- package/es/pro-table/index.vue.d.ts +1 -1
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/_virtual/_commonjsHelpers.js +0 -6
- package/es/_virtual/advancedFormat.js +0 -7
- package/es/_virtual/advancedFormat2.js +0 -4
- package/es/_virtual/customParseFormat.js +0 -7
- package/es/_virtual/customParseFormat2.js +0 -4
- package/es/_virtual/isBetween.js +0 -7
- package/es/_virtual/isBetween2.js +0 -4
- package/es/_virtual/quarterOfYear.js +0 -7
- package/es/_virtual/quarterOfYear2.js +0 -4
- package/es/_virtual/weekOfYear.js +0 -7
- package/es/_virtual/weekOfYear2.js +0 -4
- package/es/_virtual/weekYear.js +0 -7
- package/es/_virtual/weekYear2.js +0 -4
- package/es/_virtual/zh-cn.js +0 -2
- package/es/_virtual/zh-cn2.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/client-only.js +0 -16
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/feedback-icon.js +0 -42
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/icon-hover.js +0 -42
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/input-label/input-label.js +0 -134
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/resize-observer-v2.js +0 -35
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/resize-observer.js +0 -40
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/select-view/select-view.js +0 -192
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/hooks/use-size.js +0 -61
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/virtual-list-item.js +0 -35
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/virtual-list.js +0 -186
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-component-ref.js +0 -16
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-first-element.js +0 -15
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-form-item.js +0 -24
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-input.js +0 -63
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-pick-slots.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-popup-manager.js +0 -44
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-resize-observer.js +0 -22
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-scrollbar.js +0 -25
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-size.js +0 -14
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-teleport-container.js +0 -22
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-trigger.js +0 -23
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/constant.js +0 -33
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/date.js +0 -96
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/debounce.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/dom.js +0 -53
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/global-config.js +0 -28
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/is-equal.js +0 -26
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/is.js +0 -46
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/keyboard.js +0 -32
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/keycode.js +0 -9
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/omit.js +0 -17
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/pad.js +0 -7
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/pick.js +0 -10
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/raf.js +0 -5
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/throttle-by-raf.js +0 -15
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/vue-utils.js +0 -96
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_virtual/plugin-vue_export-helper.js +0 -8
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/button-group.js +0 -47
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/button.js +0 -130
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/index.js +0 -15
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/checkbox-group.js +0 -94
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/checkbox.js +0 -129
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/icon-check.js +0 -20
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/index.js +0 -15
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/config-provider/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/empty/empty.js +0 -41
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/empty/index.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/form/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-check-circle-fill/icon-check-circle-fill.js +0 -70
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-check-circle-fill/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close/icon-close.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close-circle-fill/icon-close-circle-fill.js +0 -70
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close-circle-fill/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-down/icon-down.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-down/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-empty/icon-empty.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-empty/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.js +0 -70
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-exclamation-circle-fill/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-left/icon-left.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-left/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-loading/icon-loading.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-loading/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-right/icon-right.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-right/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-search/icon-search.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-search/index.js +0 -11
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/index.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/input-tag.js +0 -318
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/utils.js +0 -35
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/index.js +0 -32
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/lang/zh-cn.js +0 -196
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/index.js +0 -15
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/radio-group.js +0 -105
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/radio.js +0 -117
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/index.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/scrollbar.js +0 -194
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/thumb.js +0 -108
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/hooks/use-options.js +0 -96
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/hooks/use-select.js +0 -137
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/index.js +0 -18
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/optgroup.js +0 -32
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/option.js +0 -162
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/select-dropdown.js +0 -119
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/select.js +0 -506
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/utils.js +0 -100
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/dot-loading.js +0 -34
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/index.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/spin.js +0 -64
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/index.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/interface.js +0 -18
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/tag.js +0 -146
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/context.js +0 -4
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/index.js +0 -12
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/trigger.js +0 -446
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/utils.js +0 -305
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/zh-cn.js +0 -24
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/advancedFormat.js +0 -54
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/customParseFormat.js +0 -127
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js +0 -19
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/quarterOfYear.js +0 -33
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/weekOfYear.js +0 -29
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/weekYear.js +0 -19
- package/es/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -290
|
@@ -59,12 +59,12 @@ declare const __VLS_component: import('vue').DefineComponent<IProCalendarProps,
|
|
|
59
59
|
hideRight?: boolean;
|
|
60
60
|
};
|
|
61
61
|
dayStartOfWeek: 0 | 1;
|
|
62
|
-
isWeek: boolean;
|
|
63
|
-
panel: boolean;
|
|
64
62
|
modes: (EMode.month | EMode.year)[];
|
|
65
63
|
defaultMode: EMode.month | EMode.year;
|
|
66
64
|
allowSelect: boolean;
|
|
67
65
|
panelTodayBtn: boolean;
|
|
66
|
+
isWeek: boolean;
|
|
67
|
+
panel: boolean;
|
|
68
68
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
69
69
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
70
70
|
export default _default;
|
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Q, useSlots as R, ref as k, computed as r, watch as U, createElementBlock as i, openBlock as m, mergeProps as v, createVNode as X, createCommentVNode as S, createSlots as b, withCtx as O, unref as u, renderSlot as P, normalizeClass as w, createBlock as x, toDisplayString as Z } from "vue";
|
|
2
2
|
import "dayjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { getDayjsValue as
|
|
7
|
-
import { getPrefixCls as
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { getAllDaysByTime as
|
|
10
|
-
import { EMode as
|
|
11
|
-
import { conclude as
|
|
12
|
-
import { globalProps as
|
|
13
|
-
const we = /* @__PURE__ */
|
|
3
|
+
import ee from "./month.vue.js";
|
|
4
|
+
import ae from "./year.vue.js";
|
|
5
|
+
import te from "./header.vue.js";
|
|
6
|
+
import { getDayjsValue as A, getNow as oe, pickDataAttributes as le, methods as h } from "@arco-design/web-vue/es/_utils/date";
|
|
7
|
+
import { getPrefixCls as ne } from "@arco-design/web-vue/es/_utils/global-config";
|
|
8
|
+
import { useI18n as re } from "@arco-design/web-vue/es/locale";
|
|
9
|
+
import { getAllDaysByTime as ue } from "./month.js";
|
|
10
|
+
import { EMode as l } from "./enum.js";
|
|
11
|
+
import { conclude as de } from "vue-global-config";
|
|
12
|
+
import { globalProps as C } from "../global-props.js";
|
|
13
|
+
const we = /* @__PURE__ */ Q({
|
|
14
14
|
__name: "calendar",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
17
17
|
defaultValue: {},
|
|
18
18
|
mode: {},
|
|
19
|
-
defaultMode: { default:
|
|
20
|
-
modes: { default: () => [
|
|
19
|
+
defaultMode: { default: l.month },
|
|
20
|
+
modes: { default: () => [l.month, l.year] },
|
|
21
21
|
header: { type: [Boolean, Object], default: !0 },
|
|
22
22
|
allowSelect: { type: Boolean, default: !0 },
|
|
23
|
-
panel: { type: Boolean, default: !1 },
|
|
24
23
|
panelWidth: {},
|
|
25
24
|
panelTodayBtn: { type: Boolean, default: !1 },
|
|
26
25
|
dayStartOfWeek: { default: 0 },
|
|
27
|
-
isWeek: { type: Boolean, default: !1 }
|
|
26
|
+
isWeek: { type: Boolean, default: !1 },
|
|
27
|
+
panel: { type: Boolean, default: !1 }
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:modelValue", "change", "panelChange"],
|
|
30
|
-
setup(
|
|
31
|
-
function
|
|
32
|
-
return e ===
|
|
30
|
+
setup(N, { emit: T }) {
|
|
31
|
+
function j(e, o) {
|
|
32
|
+
return e === l.month || e === l.year && !o ? "YYYY-MM-DD" : "YYYY-MM";
|
|
33
33
|
}
|
|
34
|
-
const t =
|
|
35
|
-
|
|
34
|
+
const t = N, s = T, D = R(), d = ne("calendar"), { t: g } = re(), V = k(t.defaultMode), n = r(() => t.mode ? t.mode : V.value), W = r(() => j(n.value, t.panel)), M = k(A(t.defaultValue || Date.now(), W.value)), p = r(() => t.modelValue ? A(t.modelValue, W.value) : M.value), a = k(p.value || oe());
|
|
35
|
+
U(p, (e) => {
|
|
36
36
|
a.value = e;
|
|
37
37
|
});
|
|
38
|
-
const
|
|
38
|
+
const B = r(() => ue(a.value, {
|
|
39
39
|
dayStartOfWeek: t.dayStartOfWeek,
|
|
40
40
|
isWeek: t.isWeek
|
|
41
41
|
}));
|
|
42
|
-
function
|
|
42
|
+
function E(e) {
|
|
43
43
|
a.value = e, s("panelChange", e.toDate());
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
45
|
+
function Y(e) {
|
|
46
|
+
M.value = e, s("change", e.toDate()), s("update:modelValue", e.toDate()), E(e);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
48
|
+
function _(e, o = !1) {
|
|
49
|
+
o || Y(e);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
e.includes("prev") && (a.value =
|
|
51
|
+
const F = r(() => n.value === l.month ? g("calendar.formatMonth") : n.value === l.year ? g("calendar.formatYear") : "");
|
|
52
|
+
function z(e, o) {
|
|
53
|
+
e.includes("prev") && (a.value = h.subtract(a.value, 1, o)), e.includes("next") && (a.value = h.add(a.value, 1, o)), s("panelChange", a.value.toDate());
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
const
|
|
57
|
-
a.value =
|
|
55
|
+
function H(e) {
|
|
56
|
+
const o = h.set(a.value, l.year, e);
|
|
57
|
+
a.value = o, s("panelChange", o.toDate());
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
a.value =
|
|
59
|
+
function I(e) {
|
|
60
|
+
const o = h.set(a.value, l.month, e - 1);
|
|
61
|
+
a.value = o, s("panelChange", o.toDate());
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function q(e) {
|
|
64
|
+
V.value = e;
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const G = r(() => [
|
|
67
67
|
d,
|
|
68
|
-
n.value ===
|
|
68
|
+
n.value === l.month ? `${d}-mode-month` : `${d}-mode-year`,
|
|
69
69
|
{
|
|
70
|
-
[`${d}-panel`]: t.panel && (n.value ===
|
|
70
|
+
[`${d}-panel`]: t.panel && (n.value === l.month || n.value === l.year)
|
|
71
71
|
}
|
|
72
|
-
]),
|
|
72
|
+
]), J = r(() => t.panel ? { width: t.panelWidth } : {}), K = r(() => le(t)), L = r(() => {
|
|
73
73
|
var e;
|
|
74
|
-
return
|
|
74
|
+
return de([t.header, ((e = C.calendar) == null ? void 0 : e.header) || {}]);
|
|
75
|
+
}), y = r(() => {
|
|
76
|
+
var e, o;
|
|
77
|
+
return {
|
|
78
|
+
dayStartOfWeek: ((e = C.calendar) == null ? void 0 : e.dayStartOfWeek) || t.dayStartOfWeek,
|
|
79
|
+
isWeek: ((o = C.calendar) == null ? void 0 : o.isWeek) || t.isWeek
|
|
80
|
+
};
|
|
75
81
|
});
|
|
76
|
-
return (e,
|
|
77
|
-
class:
|
|
78
|
-
style:
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
header:
|
|
82
|
-
move:
|
|
83
|
-
"header-value-format":
|
|
82
|
+
return (e, o) => (m(), i("div", v({
|
|
83
|
+
class: G.value,
|
|
84
|
+
style: J.value
|
|
85
|
+
}, K.value), [
|
|
86
|
+
X(te, v(y.value, {
|
|
87
|
+
header: L.value,
|
|
88
|
+
move: Y,
|
|
89
|
+
"header-value-format": F.value,
|
|
84
90
|
modes: e.modes,
|
|
85
91
|
mode: n.value,
|
|
86
|
-
"page-show-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}, Y({ _: 2 }, [
|
|
94
|
-
u(w).header ? {
|
|
92
|
+
"page-show-date": a.value,
|
|
93
|
+
onModeChange: q,
|
|
94
|
+
onYearChange: H,
|
|
95
|
+
onMonthChange: I,
|
|
96
|
+
onChangePageShowDate: z
|
|
97
|
+
}), b({ _: 2 }, [
|
|
98
|
+
u(D).header ? {
|
|
95
99
|
name: "default",
|
|
96
|
-
fn:
|
|
97
|
-
|
|
98
|
-
value: { year:
|
|
99
|
-
year:
|
|
100
|
-
month:
|
|
100
|
+
fn: O(({ year: c, month: f }) => [
|
|
101
|
+
P(e.$slots, "header", {
|
|
102
|
+
value: { year: c, month: f },
|
|
103
|
+
year: c.toString(),
|
|
104
|
+
month: f.toString().padStart(2, "0")
|
|
101
105
|
})
|
|
102
106
|
]),
|
|
103
107
|
key: "0"
|
|
104
108
|
} : void 0
|
|
105
|
-
]),
|
|
106
|
-
n.value === u(
|
|
109
|
+
]), 1040, ["header", "header-value-format", "modes", "mode", "page-show-date"]),
|
|
110
|
+
n.value === u(l).month ? (m(), i("div", {
|
|
107
111
|
key: 0,
|
|
108
|
-
class:
|
|
112
|
+
class: w(`${u(d)}-body`)
|
|
109
113
|
}, [
|
|
110
|
-
(m(),
|
|
114
|
+
(m(), x(ee, v(y.value, {
|
|
111
115
|
key: a.value.month(),
|
|
112
|
-
"page-data":
|
|
116
|
+
"page-data": B.value,
|
|
113
117
|
value: p.value,
|
|
114
118
|
mode: n.value,
|
|
115
|
-
"select-handler":
|
|
116
|
-
"is-week": e.isWeek,
|
|
117
|
-
"day-start-of-week": e.dayStartOfWeek,
|
|
119
|
+
"select-handler": _,
|
|
118
120
|
"page-show-date": a.value
|
|
119
|
-
},
|
|
120
|
-
u(
|
|
121
|
+
}), b({ _: 2 }, [
|
|
122
|
+
u(D).default ? {
|
|
121
123
|
name: "default",
|
|
122
|
-
fn:
|
|
123
|
-
|
|
124
|
-
year:
|
|
125
|
-
month:
|
|
126
|
-
date:
|
|
127
|
-
value: { year:
|
|
124
|
+
fn: O(({ year: c, month: f, date: $ }) => [
|
|
125
|
+
P(e.$slots, "default", {
|
|
126
|
+
year: c.toString(),
|
|
127
|
+
month: f.toString().padStart(2, "0"),
|
|
128
|
+
date: $.toString().padStart(2, "0"),
|
|
129
|
+
value: { year: c, month: f, date: $ }
|
|
128
130
|
})
|
|
129
131
|
]),
|
|
130
132
|
key: "0"
|
|
131
133
|
} : void 0
|
|
132
|
-
]),
|
|
133
|
-
], 2)) :
|
|
134
|
-
n.value === u(
|
|
134
|
+
]), 1040, ["page-data", "value", "mode", "page-show-date"]))
|
|
135
|
+
], 2)) : S("", !0),
|
|
136
|
+
n.value === u(l).year ? (m(), i("div", {
|
|
135
137
|
key: 1,
|
|
136
|
-
class:
|
|
138
|
+
class: w(`${u(d)}-body`)
|
|
137
139
|
}, [
|
|
138
|
-
(m(),
|
|
140
|
+
(m(), x(ae, v(y.value, {
|
|
139
141
|
key: a.value.year(),
|
|
140
|
-
"page-data":
|
|
141
|
-
"page-show-
|
|
142
|
+
"page-data": B.value,
|
|
143
|
+
"page-show-date": a.value,
|
|
142
144
|
mode: n.value,
|
|
143
|
-
"is-week": e.isWeek,
|
|
144
145
|
value: p.value,
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
e.panel && e.panelTodayBtn ? (m(), c("div", {
|
|
146
|
+
"select-handler": _
|
|
147
|
+
}), null, 16, ["page-data", "page-show-date", "mode", "value"]))
|
|
148
|
+
], 2)) : S("", !0),
|
|
149
|
+
e.panel && e.panelTodayBtn ? (m(), i("div", {
|
|
150
150
|
key: 2,
|
|
151
|
-
class:
|
|
152
|
-
},
|
|
151
|
+
class: w(`${u(d)}-footer-btn-wrapper`)
|
|
152
|
+
}, Z(u(g)("today")), 3)) : S("", !0)
|
|
153
153
|
], 16));
|
|
154
154
|
}
|
|
155
155
|
});
|
|
@@ -1,39 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
modes?: (EMode.month | EMode.year)[];
|
|
10
|
-
headerType?: string;
|
|
11
|
-
pageShowData: Dayjs;
|
|
12
|
-
move: (time: Dayjs) => void;
|
|
13
|
-
/** 年变化 */
|
|
14
|
-
onYearChange: (year: number) => void;
|
|
15
|
-
/** 月变化 */
|
|
16
|
-
onMonthChange: (month: number) => void;
|
|
17
|
-
onChangePageShowDate: (type: 'prev' | 'next', unit: EMode) => void;
|
|
18
|
-
onModeChange: (value: any, ev: Event) => void;
|
|
19
|
-
headerValueFormat: string;
|
|
20
|
-
/**
|
|
21
|
-
* @zh 隐藏头部
|
|
22
|
-
*/
|
|
23
|
-
header?: boolean | {
|
|
24
|
-
hideLeft?: boolean;
|
|
25
|
-
hideRight?: boolean;
|
|
1
|
+
import { IProCalendarHeader } from './inerface';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {
|
|
6
|
+
year: number;
|
|
7
|
+
month: number;
|
|
8
|
+
}): any;
|
|
26
9
|
};
|
|
27
|
-
}
|
|
28
|
-
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
29
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<IProCalendarHeader, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
15
|
yearChange: (year: number) => any;
|
|
32
16
|
monthChange: (month: number) => any;
|
|
33
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<IProCalendarHeader> & Readonly<{
|
|
34
18
|
onYearChange?: ((year: number) => any) | undefined;
|
|
35
19
|
onMonthChange?: ((month: number) => any) | undefined;
|
|
36
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
22
|
export default _default;
|
|
39
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
import { defineComponent as P, useSlots as V, computed as s, withDirectives as h, createElementBlock as m, openBlock as i, normalizeClass as n, unref as o, createElementVNode as p, createVNode as d, Fragment as g, createBlock as z, createCommentVNode as T, renderSlot as Y, createTextVNode as k, toDisplayString as w, withCtx as E, vShow as f } from "vue";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useI18n as G } from "../node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/index.js";
|
|
2
|
+
import $ from "@arco-design/web-vue/es/select";
|
|
3
|
+
import I from "@arco-design/web-vue/es/button";
|
|
4
|
+
import O from "@arco-design/web-vue/es/radio";
|
|
5
|
+
import R from "@arco-design/web-vue/es/icon/icon-left";
|
|
6
|
+
import L from "@arco-design/web-vue/es/icon/icon-right";
|
|
7
|
+
import { getNow as W } from "@arco-design/web-vue/es/_utils/date";
|
|
8
|
+
import { isArray as j } from "@arco-design/web-vue/es/_utils/is";
|
|
9
|
+
import { getPrefixCls as A } from "@arco-design/web-vue/es/_utils/global-config";
|
|
10
|
+
import { useI18n as G } from "@arco-design/web-vue/es/locale";
|
|
12
11
|
import { EMode as v } from "./enum.js";
|
|
13
|
-
const
|
|
12
|
+
const oe = /* @__PURE__ */ P({
|
|
14
13
|
__name: "header",
|
|
15
14
|
props: {
|
|
16
15
|
mode: {},
|
|
17
|
-
dayStartOfWeek: {},
|
|
18
|
-
isWeek: { type: Boolean },
|
|
19
|
-
panel: { type: Boolean },
|
|
20
16
|
modes: {},
|
|
21
17
|
headerType: {},
|
|
22
|
-
|
|
18
|
+
pageShowDate: {},
|
|
23
19
|
move: { type: Function },
|
|
24
20
|
onYearChange: { type: Function },
|
|
25
21
|
onMonthChange: { type: Function },
|
|
26
22
|
onChangePageShowDate: { type: Function },
|
|
27
23
|
onModeChange: { type: Function },
|
|
28
24
|
headerValueFormat: {},
|
|
29
|
-
header: { type: [Boolean, Object] }
|
|
25
|
+
header: { type: [Boolean, Object] },
|
|
26
|
+
dayStartOfWeek: {},
|
|
27
|
+
isWeek: { type: Boolean },
|
|
28
|
+
panel: { type: Boolean }
|
|
30
29
|
},
|
|
31
30
|
emits: ["yearChange", "monthChange"],
|
|
32
31
|
setup(D) {
|
|
33
32
|
const r = D, b = V(), t = A("calendar"), { t: c } = G(), F = s(() => j(r.modes) ? r.modes.map((e) => ({
|
|
34
33
|
label: c(`datePicker.view.${e}`),
|
|
35
34
|
value: e
|
|
36
|
-
})) : []), B = s(() => r.headerType === "select"), l = s(() => r.
|
|
35
|
+
})) : []), B = s(() => r.headerType === "select"), l = s(() => r.pageShowDate.year()), y = s(() => r.pageShowDate.month() + 1), M = s(() => {
|
|
37
36
|
const e = [l.value];
|
|
38
37
|
for (let a = 1; a <= 10; a++)
|
|
39
38
|
e.unshift(l.value - a);
|
|
@@ -88,7 +87,7 @@ const ae = /* @__PURE__ */ P({
|
|
|
88
87
|
year: l.value,
|
|
89
88
|
month: y.value
|
|
90
89
|
}) : (i(), m(g, { key: 1 }, [
|
|
91
|
-
k(w(e.
|
|
90
|
+
k(w(e.pageShowDate.format(e.headerValueFormat)), 1)
|
|
92
91
|
], 64))
|
|
93
92
|
], 2),
|
|
94
93
|
p("div", {
|
|
@@ -132,5 +131,5 @@ const ae = /* @__PURE__ */ P({
|
|
|
132
131
|
}
|
|
133
132
|
});
|
|
134
133
|
export {
|
|
135
|
-
|
|
134
|
+
oe as default
|
|
136
135
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "dayjs";
|
|
2
|
-
import { isArray as w } from "
|
|
3
|
-
import { getNow as u } from "
|
|
2
|
+
import { isArray as w } from "@arco-design/web-vue/es/_utils/is";
|
|
3
|
+
import { getNow as u } from "@arco-design/web-vue/es/_utils/date";
|
|
4
4
|
import { EMode as A } from "../enum.js";
|
|
5
5
|
function o(n, r) {
|
|
6
6
|
if (n && w(n))
|
|
@@ -17,12 +17,12 @@ declare const ProCalendar: {
|
|
|
17
17
|
hideRight?: boolean;
|
|
18
18
|
};
|
|
19
19
|
dayStartOfWeek: 0 | 1;
|
|
20
|
-
isWeek: boolean;
|
|
21
|
-
panel: boolean;
|
|
22
20
|
modes: (import("./enum").EMode.month | import("./enum").EMode.year)[];
|
|
23
21
|
defaultMode: import("./enum").EMode.month | import("./enum").EMode.year;
|
|
24
22
|
allowSelect: boolean;
|
|
25
23
|
panelTodayBtn: boolean;
|
|
24
|
+
isWeek: boolean;
|
|
25
|
+
panel: boolean;
|
|
26
26
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
27
27
|
P: {};
|
|
28
28
|
B: {};
|
|
@@ -40,12 +40,12 @@ declare const ProCalendar: {
|
|
|
40
40
|
hideRight?: boolean;
|
|
41
41
|
};
|
|
42
42
|
dayStartOfWeek: 0 | 1;
|
|
43
|
-
isWeek: boolean;
|
|
44
|
-
panel: boolean;
|
|
45
43
|
modes: (import("./enum").EMode.month | import("./enum").EMode.year)[];
|
|
46
44
|
defaultMode: import("./enum").EMode.month | import("./enum").EMode.year;
|
|
47
45
|
allowSelect: boolean;
|
|
48
46
|
panelTodayBtn: boolean;
|
|
47
|
+
isWeek: boolean;
|
|
48
|
+
panel: boolean;
|
|
49
49
|
}>;
|
|
50
50
|
__isFragment?: never;
|
|
51
51
|
__isTeleport?: never;
|
|
@@ -64,12 +64,12 @@ declare const ProCalendar: {
|
|
|
64
64
|
hideRight?: boolean;
|
|
65
65
|
};
|
|
66
66
|
dayStartOfWeek: 0 | 1;
|
|
67
|
-
isWeek: boolean;
|
|
68
|
-
panel: boolean;
|
|
69
67
|
modes: (import("./enum").EMode.month | import("./enum").EMode.year)[];
|
|
70
68
|
defaultMode: import("./enum").EMode.month | import("./enum").EMode.year;
|
|
71
69
|
allowSelect: boolean;
|
|
72
70
|
panelTodayBtn: boolean;
|
|
71
|
+
isWeek: boolean;
|
|
72
|
+
panel: boolean;
|
|
73
73
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
74
74
|
$slots: Readonly<{
|
|
75
75
|
default?: (props: {
|
package/es/pro-calendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setGlobalConfig as a } from "
|
|
1
|
+
import { setGlobalConfig as a } from "@arco-design/web-vue/es/_utils/global-config";
|
|
2
2
|
import r from "./calendar.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
const l = Object.assign(r, {
|
|
@@ -1,5 +1,58 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
1
2
|
import { EMode } from './enum';
|
|
2
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @zh 隐藏头部
|
|
5
|
+
*/
|
|
6
|
+
type IHeaderProps = boolean | {
|
|
7
|
+
hideLeft?: boolean;
|
|
8
|
+
hideRight?: boolean;
|
|
9
|
+
};
|
|
10
|
+
interface IProCalendarBase {
|
|
11
|
+
/** 0:周末开始 | 1:周一开始 */
|
|
12
|
+
dayStartOfWeek?: 0 | 1;
|
|
13
|
+
isWeek?: boolean;
|
|
14
|
+
panel?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface IProCalendarSub extends IProCalendarBase {
|
|
17
|
+
value: Dayjs;
|
|
18
|
+
pageData?: any[];
|
|
19
|
+
pageShowDate: Dayjs;
|
|
20
|
+
/** 选择 */
|
|
21
|
+
selectHandler: (time: Dayjs, disabled: boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface IProCalendarHeader extends IProCalendarBase {
|
|
24
|
+
/** 模式 */
|
|
25
|
+
mode?: EMode.month | EMode.year;
|
|
26
|
+
modes?: (EMode.month | EMode.year)[];
|
|
27
|
+
headerType?: string;
|
|
28
|
+
pageShowDate: Dayjs;
|
|
29
|
+
move: (time: Dayjs) => void;
|
|
30
|
+
/** 年变化 */
|
|
31
|
+
onYearChange: (year: number) => void;
|
|
32
|
+
/** 月变化 */
|
|
33
|
+
onMonthChange: (month: number) => void;
|
|
34
|
+
onChangePageShowDate: (type: 'prev' | 'next', unit: EMode) => void;
|
|
35
|
+
onModeChange: (value: any, ev: Event) => void;
|
|
36
|
+
headerValueFormat: string;
|
|
37
|
+
header?: IHeaderProps;
|
|
38
|
+
}
|
|
39
|
+
export interface IProCalendarYear extends IProCalendarSub {
|
|
40
|
+
/** 模式 */
|
|
41
|
+
mode: EMode.month | EMode.year;
|
|
42
|
+
}
|
|
43
|
+
/** 月 */
|
|
44
|
+
export interface IProCalendarMonth extends IProCalendarSub {
|
|
45
|
+
cell?: boolean;
|
|
46
|
+
current?: number;
|
|
47
|
+
/** 模式 */
|
|
48
|
+
mode?: EMode;
|
|
49
|
+
}
|
|
50
|
+
/** 星期 */
|
|
51
|
+
export interface IProCalendarWeek extends IProCalendarSub {
|
|
52
|
+
/** 模式 */
|
|
53
|
+
mode?: EMode;
|
|
54
|
+
}
|
|
55
|
+
export interface IProCalendarProps extends IProCalendarBase {
|
|
3
56
|
/**
|
|
4
57
|
* @zh 绑定值
|
|
5
58
|
* @en Value
|
|
@@ -25,18 +78,10 @@ export interface IProCalendarProps {
|
|
|
25
78
|
* @en Displayed mode
|
|
26
79
|
*/
|
|
27
80
|
modes?: (EMode.month | EMode.year)[];
|
|
28
|
-
|
|
29
|
-
* @zh 隐藏头部
|
|
30
|
-
*/
|
|
31
|
-
header?: boolean | {
|
|
32
|
-
hideLeft?: boolean;
|
|
33
|
-
hideRight?: boolean;
|
|
34
|
-
};
|
|
81
|
+
header?: IHeaderProps;
|
|
35
82
|
allowSelect?: boolean;
|
|
36
|
-
panel?: boolean;
|
|
37
83
|
panelWidth?: number;
|
|
38
84
|
panelTodayBtn?: boolean;
|
|
39
|
-
dayStartOfWeek?: 0 | 1;
|
|
40
|
-
isWeek?: boolean;
|
|
41
85
|
}
|
|
42
86
|
export type ProCalendarProps = Partial<IProCalendarProps>;
|
|
87
|
+
export {};
|
package/es/pro-calendar/month.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { methods as o } from "
|
|
1
|
+
import { methods as o } from "@arco-design/web-vue/es/_utils/date";
|
|
2
2
|
const l = 42, d = (r) => ({
|
|
3
3
|
year: r.year(),
|
|
4
4
|
month: r.month() + 1,
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EMode } from './enum';
|
|
3
|
-
interface Props {
|
|
4
|
-
cell?: boolean;
|
|
5
|
-
pageData?: any[];
|
|
6
|
-
current?: number;
|
|
7
|
-
value: Dayjs;
|
|
8
|
-
/** 选择 */
|
|
9
|
-
selectHandler: (time: Dayjs, disabled: boolean) => void;
|
|
10
|
-
/** 模式 */
|
|
11
|
-
mode?: EMode;
|
|
12
|
-
pageShowDate: Dayjs;
|
|
13
|
-
panel?: boolean;
|
|
14
|
-
dayStartOfWeek?: 0 | 1;
|
|
15
|
-
isWeek?: boolean;
|
|
16
|
-
}
|
|
1
|
+
import { IProCalendarMonth } from './inerface';
|
|
17
2
|
declare function __VLS_template(): {
|
|
18
3
|
attrs: Partial<{}>;
|
|
19
4
|
slots: {
|
|
@@ -27,7 +12,7 @@ declare function __VLS_template(): {
|
|
|
27
12
|
rootEl: HTMLDivElement;
|
|
28
13
|
};
|
|
29
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<IProCalendarMonth, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProCalendarMonth> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
31
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
17
|
export default _default;
|
|
33
18
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { defineComponent as C, useSlots as D, computed as f, createElementBlock as s, openBlock as n, normalizeClass as o, unref as r, createVNode as O, createElementVNode as i, Fragment as m, renderList as y, createCommentVNode as V, renderSlot as B, createTextVNode as N, toDisplayString as k } from "vue";
|
|
2
2
|
import "dayjs";
|
|
3
|
-
import { dayjs as Y } from "
|
|
4
|
-
import { padStart as H } from "
|
|
3
|
+
import { dayjs as Y } from "@arco-design/web-vue/es/_utils/date";
|
|
4
|
+
import { padStart as H } from "@arco-design/web-vue/es/_utils/pad";
|
|
5
5
|
import T from "./week.vue.js";
|
|
6
6
|
import b from "./hooks/useCellClassName.js";
|
|
7
|
-
import { getPrefixCls as E } from "
|
|
7
|
+
import { getPrefixCls as E } from "@arco-design/web-vue/es/_utils/global-config";
|
|
8
8
|
import { getAllDaysByTime as F } from "./month.js";
|
|
9
9
|
const M = ["onClick"], R = ["onClick"], J = /* @__PURE__ */ C({
|
|
10
10
|
__name: "month",
|
|
11
11
|
props: {
|
|
12
12
|
cell: { type: Boolean },
|
|
13
|
-
pageData: {},
|
|
14
13
|
current: {},
|
|
15
|
-
value: {},
|
|
16
|
-
selectHandler: { type: Function },
|
|
17
14
|
mode: {},
|
|
15
|
+
value: {},
|
|
16
|
+
pageData: {},
|
|
18
17
|
pageShowDate: {},
|
|
19
|
-
|
|
18
|
+
selectHandler: { type: Function },
|
|
20
19
|
dayStartOfWeek: {},
|
|
21
|
-
isWeek: { type: Boolean }
|
|
20
|
+
isWeek: { type: Boolean },
|
|
21
|
+
panel: { type: Boolean }
|
|
22
22
|
},
|
|
23
23
|
setup(v) {
|
|
24
24
|
const l = v, w = D(), t = E("calendar"), h = l.pageShowDate.year(), g = f(
|
|
@@ -55,9 +55,9 @@ const M = ["onClick"], R = ["onClick"], J = /* @__PURE__ */ C({
|
|
|
55
55
|
"is-week": e.isWeek,
|
|
56
56
|
panel: e.panel,
|
|
57
57
|
mode: e.mode,
|
|
58
|
-
"page-show-
|
|
58
|
+
"page-show-date": e.pageShowDate,
|
|
59
59
|
"page-data": e.pageData
|
|
60
|
-
}, null, 8, ["value", "select-handler", "day-start-of-week", "is-week", "panel", "mode", "page-show-
|
|
60
|
+
}, null, 8, ["value", "select-handler", "day-start-of-week", "is-week", "panel", "mode", "page-show-date", "page-data"]),
|
|
61
61
|
i("div", {
|
|
62
62
|
class: o(`${r(t)}-month-cell-body`)
|
|
63
63
|
}, [
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
interface Props {
|
|
4
|
-
/** 模式 */
|
|
5
|
-
mode?: EMode;
|
|
6
|
-
dayStartOfWeek?: 0 | 1;
|
|
7
|
-
isWeek?: boolean;
|
|
8
|
-
panel?: boolean;
|
|
9
|
-
value: Dayjs;
|
|
10
|
-
selectHandler?: (time: Dayjs, disabled: boolean) => void;
|
|
11
|
-
pageShowData: Dayjs;
|
|
12
|
-
pageData?: any[];
|
|
13
|
-
}
|
|
14
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1
|
+
import { IProCalendarWeek } from './inerface';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IProCalendarWeek, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IProCalendarWeek> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
3
|
export default _default;
|