Commit Graph

41 Commits

Author SHA1 Message Date
dopamine
79938178dd
build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
kooriookami
d8a9f902b2
chore(components): clear deprecated API (#15922)
* chore(components): clear deprecated API

* docs: update
2024-02-28 12:42:17 +08:00
Wu Rui
e416826fae
fix(components): [calendar] improve types (#13165) 2023-06-15 01:10:36 +08:00
Jeremy
8c2a2a69dd
docs(components): [calendar] (#10977)
* docs(components): [calendar]

* Update calendar docs with new syntax.
* Update description for calendar APIs.

* chore: remove backquote for API names

* chore: update scoped slots

* chore: apply suggestion

---------

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2023-02-14 22:29:36 +08:00
Sun Yuu
531ffccda1
fix(components): [calendar] fix range cross year bug (#10574)
* fix(components): [calendar] (#5595)

fix(components): [calendar] fix  range cross year bug

closed #5595

* test(components): [calendar] add test

Co-authored-by: tolking <qw13131wang@gmail.com>
2022-11-11 22:42:48 +08:00
Jeremy
d3a32cdd0b
refactor(components): [calendar] (#10163)
* refactor(components): [calendar]

* Eliminate long function by extracting code as function calls.

* chore: move t out of use-calendar logic
2022-10-22 11:39:18 +08:00
Jeremy
0a73b244cb
refactor(components): [calendar] (#10158)
* Extract calendar common logic to dedicated file.
* Reorganize code for better readability.
2022-10-21 09:13:19 +08:00
Jeremy
c7b8cf7e54
refactor(components): [calendar] (#10155)
* refactor(components): [calendar]

* Extract date-table logic code into a dedicated file.

* chore: add an alias type export
2022-10-20 12:03:02 +00:00
LIUCHAO
34dd435534
refactor(components): [calendar] use self-closing element (#9854) 2022-09-21 20:07:36 +08:00
init-qy
f7d5373ee8
fix(components): [calendar] show wrong weekday when set weekStart (#9824)
* fix(components): [calendar] show wrong weekday when set weekStart

* fix(components): [calendar] add unit test for setWeekStart

* Update packages/components/calendar/__tests__/calendar.test.tsx

Co-authored-by: btea <2356281422@qq.com>

Co-authored-by: init-qy <953218204@qq.com>
Co-authored-by: btea <2356281422@qq.com>
2022-09-21 12:22:14 +08:00
三咲智子
861a7953b4
refactor(components): switch to vue macros (#9306) 2022-09-16 22:57:41 +08:00
qiang
1e6dbd8558
refactor(components): [calendar] rename slot dateCell to date-cell (#9590)
* refactor(components): [calendar] rename slot dateCell to date-cell

closed 9565

* docs: update

* fix(components): [calendar] avoid slots taking effect at the same time
2022-09-03 23:23:10 +08:00
三咲智子
3adb0f2077
refactor(component): improve code (#7959) 2022-05-29 09:42:31 +08:00
Xc
9ce92fb0a2
fix: reasonable remaining (#7353) (#7364)
Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-04-25 20:20:44 +08:00
Dreamcreative
8be7123c75
fix(components): [calendar] fix range year bug (#7227) 2022-04-23 22:30:32 +08:00
三咲智子
1d13ebb05d
feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
Delyan Haralanov
de0ee53cf0
test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
btea
c0e6fd7d72
chore(components): [calender] remove import defineExpose (#6974) 2022-04-02 18:30:24 +08:00
bqy_fe
209f505a27
refactor(components): [calendar] refactor (#6682)
* refactor(components): [calendar] refactor

* fix: extract constant & rename type
2022-04-01 15:28:41 +08:00
三咲智子
184facdb4c
chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
2c72c2ef37 fix: import dayjs 2022-03-24 20:57:45 +08:00
三咲智子
5d85fba20c
chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
blackie
c35dfec666
style(components): rename disabled to is-disabled (#6475)
* style(components): [pagination] rename disabled to is-disabled

* style(components): [slider] rename disabled to is-disabled

* style(components): [pagination] rename active to is-active

* refactor(components): [calendar] use namespace hooks

* fix(components): [pagination] fix test error
2022-03-10 23:57:07 +08:00
三咲智子
b8c38a9fe5
chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
三咲智子
6503e55277
refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00
三咲智子
c1e5d724d8
refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
Valar103769
c552c3b700
refactor(components): [calendar] add namespace (#5496) 2022-01-20 06:04:41 +08:00
msidolphin
1f71d3c80c
fix: [el-calendar] selected wrong date when change the month/year (#5297) 2022-01-11 14:29:06 +08:00
Herrington Darkholme
d03d8cc20a
fix(components): change size mini to small (#4947) 2021-12-26 15:08:39 +08:00
Alan Wang
8600be1cd1
refactor(components): refactor calendar (#4325)
Co-authored-by: Kevin <sxzz@sxzz.moe>
2021-12-10 02:41:46 +08:00
C.Y.Kun
0009de4be0
feat(components): [ElCalender] add internationalization (#4582)
* feat(components): [ElCalender] add internationalization

* perf(components): [ElCalender] remove redundant  `ref`
2021-12-01 16:26:51 +08:00
三咲智子
bbd16a08e9
refactor(hooks): refactor hooks (#4253)
* refactor(hooks): remove use-css-var

* refactor(hooks): remove use-events

* refactor(hooks): remove use-migrating

* refactor(hooks): remove use-transition

* refactor(hooks): named export useAttrs

* refactor(hooks): named export useFocus

* refactor(hooks): refactor useFormItem

* refactor(hooks): refactor useGlobalConfig

* refactor(hooks): refactor useLocale

* refactor(hooks): refactor useLockscreen

* refactor(hooks): refactor useModal

* refactor(hooks): refactor useModelToggle

* refactor(hooks): refactor usePreventGlobal

* refactor(hooks): refactor useRestoreActive

* refactor(hooks): refactor useTeleport

* refactor(hooks): refactor useThrottleRender

* refactor(hooks): refactor useTimeout

* refactor(hooks): refactor useTransitionFallthrogh
2021-11-29 15:58:44 +08:00
btea
816a3bb44e
chore: fix typo (#3831) 2021-10-10 16:56:47 +08:00
三咲智子
0636e1e240
style: add import and stricter lint (#3440)
* style: add import lint

* chore: apply eslint rules

* chore: add stricter lint

* chore: lint all files

* auto fix

* manually fix

* restore build-indices.ts
2021-09-17 15:27:31 +08:00
啝裳
f2939ae075
feat(components): [el-calendar] add prev-year and next-year (#3360) 2021-09-12 18:43:44 +08:00
啝裳
629fef2993
feat(components): calendar component header support slot (#3316)
* feat(components): calendar component header support slot

* feat(components): calendar component header support slot

* feat(components): calendar component header support slot
2021-09-12 18:32:53 +08:00
Aex
03f02b5554
refactor(utils): improve debug warn (#3302) 2021-09-09 11:49:48 +08:00
三咲智子
55348b30b6
style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00
Aex
21cdf61d20
refactor(components): Improve calendar date range validate (#3156)
* fix(components): Improve calendar date range validate method

* chore(components): Add some comments and references

* fix(components): change `console.warn` to `warn`
2021-09-03 09:59:45 +08:00
Sanxiaozhizi
6cc16bbd06
refactor: enhance type definition (#3062)
* chore: add vue-tsc for type check

* refactor(components): respect Vue's own style type

* refactor(components): improve props type

* chore(build): improve types

* fix(components): remove unnecessary props

* perf(components): use shallowRef

* fix(components): add missing property type for table

* refactor(components): improve time-picker types

* refactor(components): extract import type

* refactor(components): improve popper types

* refactor(components): upload list types

* fix(docs): fix type

* better type

* fix: remove index
2021-08-31 09:40:13 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00