三咲智子
4335b01d6c
refactor(utils)!: refactor global config ( #4793 )
...
* refactor(utils)!: remove global config
* refactor(utils): named export PopupManager
* fix tests
2021-12-30 19:31:35 +08:00
Herrington Darkholme
d03d8cc20a
fix(components): change size mini to small ( #4947 )
2021-12-26 15:08:39 +08:00
Herrington Darkholme
b431838d60
fix(core): fix unit testing warning ( #4948 )
2021-12-26 15:08:04 +08:00
三咲智子
6287c1f92d
refactor(utils): remove isServer ( #4792 )
2021-12-12 23:28:03 +08:00
云游君
4560adfdf8
refactor(style): adjust component size to large/default/small ( #4491 )
...
* refactor(style): adjust component size to large/default/small
* refactor(components): avatar size & use flex instead of block
* refactor(components): adjust check button size
* refactor(components): adjust tag size
* refactor(components): adjust size doc
* fix(components): datetime-picker demo style width
* refactor(components): color-picker size & block to flex
* refactor(components): adjust slider input size
* refactor(components): adjust radio input size for demo
* refactor(components): adjust select size & docs
* refactor(components): adjust form radio size & docs
* refactor(components): add windicss for docs
* refactor(components): adjust skeleton avatar size to css var
* refactor(components): simplify typography size demo
* refactor(components): adjust dropdown size & demo
* refactor(components): adjust descriptions size
* fix(components): datetime-picker showcase class pollute global button
* chore(ci): upgrade docs dependencies to fix ci
* fix(ci): add highlight because vitepress not export it
* fix(ci): disable line for no-console
* fix(ci): remove mini to fix test
* fix(style): code font size
* fix(style): button span flex style
* fix(style): button padding horizontal default 15px
* refactor(components): adjust tag padding size & demo
* refactor(components): adjust form line-height for input
* refactor(components): adjust dropdown menu size & button padding
* fix(style): picker separator block to flex center
* fix: dropdown button span items-center
* style: adjust input-with-icon & size demo & fix input vitepress load
* chore: upgrade dependencies
* chore: upgrade dependencies
* ci: fix website build
* ci: regenerate pnpm-lock.yaml
* ci: use dev pnpm-lock
* ci: update pnpm-lock.yaml
2021-12-12 17:54:21 +08:00
三咲智子
d14609954b
fix(build): circular dependency ( #4791 )
2021-12-12 13:39:54 +08:00
三咲智子
db1d9401fe
feat(components): [el-config-provider] add size ( #4730 )
2021-12-10 17:21:01 +08:00
Zapic
d2ab3844b6
fix(hooks): [lockscreen] body lock remove unexpected ( #4693 ) ( #4694 )
...
Co-authored-by: KawaiiZapic <kawaiizapic@zapic.moe>
2021-12-07 17:25:50 +08:00
三咲智子
b153aaa7a5
fix(hooks): return key name if not defined ( #4664 )
2021-12-04 23:40:06 +08:00
三咲智子
7647c9e685
fix(hooks): fix translate option ( #4619 )
2021-12-04 11:15:49 +08:00
C.Y.Kun
f1c9be0bbc
fix(hooks): rename ConfigProvdierContext
to ConfigProviderContext
( #4620 )
2021-12-01 22:26:57 +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
C.Y.Kun
0832a55f89
refactor(components): refactor button ( #4499 )
2021-11-23 00:10:54 +08:00
云游君
e68b6c05d7
refactor(style): rename to text-color bg-color ( #4468 )
...
* refactor(style): rename -font to -text-color & -background to -bg-color
* refactor(style): rename bg-color text-color
* refactor(style): rename 'color' to 'text-color'
2021-11-22 11:19:44 +08:00
msidolphin
75c6ea967a
refactor: [el-config-provider] change default autoInsertSpace to false ( #4330 )
2021-11-10 15:21:20 +08:00
Kevin
e9a110ed47
refactor(components): refactor radio
2021-11-06 03:48:19 +08:00
msidolphin
66043aa3b5
refactor(components): [el-config-provider] improve componomponent extendiability ( #4175 )
...
re #4146
added button configuration
added useGlobalConfig hook
2021-11-05 18:10:07 +08:00
jeremywu
5a0ac482ce
feat(components): el-teleport ( #4186 )
2021-11-03 17:42:05 +08:00
btea
cb03f4d890
fix(hooks): add type remove ts error ( #4055 )
2021-10-28 04:44:27 +08:00
三咲智子
4e99d0b5ba
build!: simplify build & support esm import ( #4018 )
...
* build!: simplify build & support native esm import
* build: refactor build
* refactor: reorganize files
* refactor: refactor build
* build: improve perf
* fix: scripts
* build: add rollup-plugin-filesize
* chore: scripts ignore no-console
* build: disable tree-shaking
* build: improve code
* build: add sourcemap
* build: add banner
* refactor: remove annotation
* build!: improve esm exports (#3871 )
* build: improve esm import
* refactor: change mjs for esm version
* chore: improve exports map
* fix: add sideEffects
* refactor: improve alias
* build: upgrade dependencies
2021-10-25 17:07:48 +08:00
jeremywu
6006e910aa
refactor(components): ElInputNumber ( #3974 )
...
* refactor(components): ElInputNumber
- Rename index.vue -> input-number.vue
- Extract inputNumberProps and inputNumberEmits to input-number.ts
* Update input number docs
* Update input number docs
* Update input number docs
* Address comments
* Code perfection
* Make modelValue required field
* Fix linter
* Remove unnecessary code
* Fix linter
2021-10-22 23:28:03 +08:00
jeremywu
16f069ebbe
Revert "build!: simplify build & support native esm import ( #3900 )" ( #3945 )
...
* Revert "build!: simplify build & support native esm import (#3900 )"
This reverts commit fb94222bb4
.
* remove module
* Fix linter
* Add @element-plus/icons as dependency
* update pnpm lock file
* temporary lock element-plus at 1.1.0-beta.20
2021-10-20 09:42:32 +08:00
三咲智子
fb94222bb4
build!: simplify build & support native esm import ( #3900 )
...
* build: refactor build
* refactor: reorganize files
* refactor: refactor build
* build: improve perf
* fix: scripts
* build: add rollup-plugin-filesize
* chore: scripts ignore no-console
* build: disable tree-shaking
* build: improve code
* build: add sourcemap
* build: add banner
* refactor: remove annotation
2021-10-18 14:45:57 +08:00
三咲智子
3cf091f2d5
refactor(components): refactor image ( #3770 )
2021-10-06 20:17:18 +08:00
三咲智子
edb5726c2d
refactor(utils): refactor buildProps & replace buildProp ( #3775 )
2021-10-06 19:56:24 +08:00
三咲智子
ab8982379e
build: refactor each package build ( #3709 )
2021-09-28 20:28:47 +08:00
btea
ea31eeabed
chore(project): revise rm rf to rimraf ( #3680 )
2021-09-27 16:38:15 +08:00
三咲智子
7a9c6f38d7
build: parallel build ( #3416 )
2021-09-26 01:29:07 +08:00
三咲智子
5f5248020c
chore(project): adjust dependency ( #3595 )
2021-09-24 09:28:21 +08:00
三咲智子
f9e192535f
refactor: replace yarn with pnpm ( #3571 )
...
* refactor: replace yarn with pnpm
* chore: install pnpm
* chore: disable cache
* ignore pnpm-lock.yaml
* resolve deps
* setup pnpm
2021-09-23 08:12:37 +08:00
云游君
ac30cd0d6e
chore: add vscode config & upgrade typescript/sass/vite ( #3502 )
...
* chore: add vscode config & upgrade typescript/sass/vite
* fix: format scss by prettier
2021-09-19 19:34:25 +08:00
Aex
78ab1b2f8e
feat(hooks): add same target support ( #3473 )
...
* feat(hooks): add same target support
* fix: dialog test
* fix: remove unused code
* improvement: custom-mask-event attr
2021-09-18 10:04:25 +08:00
jeremywu
477519a52e
feat(project): local dev environment ( #3463 )
...
- Add vite config for local dev
2021-09-17 16:42:20 +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
三咲智子
c86c2b0fe9
style: eslint enable prefer-template ( #3414 )
...
* style: eslint enable prefer-template
* chore: apply eslint rules
2021-09-17 09:18:24 +08:00
啝裳
58585bf87d
fix: use fromPairs replace Object.fromEntries ( #3422 )
2021-09-15 14:43:34 +08:00
三咲智子
680de635f6
fix(core): downgrade vueuse version ( #3405 )
2021-09-14 23:22:59 +08:00
jeremywu
19bc41f965
feat(hooks): extracting size injection for form items ( #3383 )
...
* feat(hooks): extracting size injection for form items
- Extract common code for form items
- Apply extracted code for el-button
* - Address import order
* Update packages/hooks/use-form-item/index.ts
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
* - Fix type annotation for fallbacks
* - Use MaybeRef to mark type of local fallbacks
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2021-09-13 23:14:48 +08:00
三咲智子
0bcebf5e18
fix: add @vueuse/core as dependency ( #3374 )
2021-09-13 13:13:13 +08:00
三咲智子
200effa261
refactor(utils): drop ie support ( #3304 )
...
* refactor(utils): drop ie support
* fix(utils): remove unused
2021-09-10 15:00:39 +08:00
三咲智子
2f23940152
refactor(utils): refactor throwError
( #3301 )
...
* refactor(utils): refactor error
* refactor(utils): remove default export
2021-09-10 10:01:17 +08:00
三咲智子
eade4c90a1
refactor(hooks): refactor useAttrs ( #3300 )
2021-09-10 10:00:44 +08:00
Aex
03f02b5554
refactor(utils): improve debug warn ( #3302 )
2021-09-09 11:49:48 +08:00
Aex
ac7c226196
chore(project): upgrade dependencies to latest minor ( #3242 )
...
* chore(project): bump @babel/cli from 7.12.1 to 7.15.4
* chore(project): bump @babel/core from 7.11.6 to 7.15.5
* chore(project): bump @babel/plugin-proposal-class-properties to 7.14.5
* chore(project): bump @babel/plugin-transform-runtime to 7.15.0
* chore(project): bump @babel/preset-env from 7.11.5 to 7.15.4
* chore(project): bump @babel/preset-typescript from 7.10.4 to 7.15.0
* chore(project): bump babel-loader from 8.1.0 to 8.2.2
* chore(project): bump babel-plugin-module-resolver from 4.0.0 to 4.1.0
* chore(project): bump @popperjs/core from 2.4.4 to 2.10.1
* chore(project): update babel.config.js
* chore(project): update jest.config.js
* chore(project): bump @typescript-eslint/eslint-plugin to 4.30.0
* chore(project): bump @typescript-eslint/parser from 4.29.3 to 4.30.0
* chore(project): bump algoliasearch from 4.4.0 to 4.10.5
* chore(project): bump transliteration from 2.1.11 to 2.2.0
* chore(project): bump typescript from 4.3.5 to 4.4.2
* chore(project): bump esbuild from 0.12.5 to 0.12.25
* chore(project): bump file-loader from 6.1.0 to 6.2.0
* chore(project): bump rollup from 2.28.2 to 2.56.3
* chore(project): bump rollup-plugin-esbuild from 4.2.3 to 4.5.0
* chore(project): bump sass from 1.37.0 to 1.39.0
* chore(project): move sass & typescript to devDependencies
2021-09-05 19:57:35 +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
jeremywu
12006ecdb7
chore(build): remove unused package.json scripts ( #3150 )
...
* chore(build): remove unused package.json scripts
- Remove unused scripts
- Revert changes made for removing ts-node
- Fix button.var error
* Update dropdown.vue
2021-08-31 17:57:35 +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
Sanxiaozhizi
e9e56d5938
chore: upgrade & improve eslint rule ( #3105 )
...
* chore: remove unused ts-node
* chore: upgrade lodash
* chore: upgrade eslint
* perf: remove side effects in computed
* refactor: follow eslint rules
* chore: remove vue-template-compiler
* style: enhance eslint format rule
* style: format code
2021-08-27 17:46:06 +08:00
Haoqun Jiang
5d9037a8b5
fix: stop pinning vue peer dependency version ( #3051 )
...
* fix: stop pinning vue peer dependency version
It should be safe to trust `vue` to follow semver.
Pinning a peer dependency version is a bad idea because any change in
peer dependency requirement should be considered a breaking change in
theory.
On the other hand, `@vue/compiler-sfc` has a strict peer dependency
version requirement.
So pinning the `vue` version is likely to causing issues like
https://github.com/vitejs/vite/issues/4573 in the future.
* chore: update lockfile
2021-08-25 17:34:57 +08:00
jeremywu
e926d20179
fix(build): exposing installer function and version for umd build ( #3041 )
...
* fix(build): exposing installer function and version for umd build
* fix codepen code snippet error
2021-08-25 11:27:16 +08:00
jeremywu
ef94ac1a70
fix(build): upgrade vue to 3.2.x ( #3031 )
...
* chore(build): upgrade vue to 3.2.x
- Update Vue related dependencies version
* update vue version
2021-08-25 00:18:06 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder ( #3016 )
2021-08-24 13:36:48 +08:00
jeremywu
7c97bc5283
fix(project): node is not exporting issue ( #2827 )
...
- Fix issue that caused ts definition file not generating
2021-08-04 18:28:08 +08:00
jeremywu
3d6259263a
fix(locale): inject locale for modal like components ( #2737 )
...
- Add a runtime locale object cache for modal components to use
2021-07-28 12:20:23 +08:00
jeremywu
c42f905c10
refactor: i18n implementation ( #2670 )
2021-07-26 00:24:30 +08:00
jeremywu
c8d65bf43d
feat(locale): locale-provider ( #2662 )
...
- Add a component for providing configs
- Add `use-locale` hooks into hooks for composable usage
- Add `use-locale` for `config-provider` to allow user to provide locale config via `react-like` API
- Add test cases against these new features
2021-07-25 15:26:00 +08:00
hangzou
65924dd40c
feat: new hook: useCssVar
for inject custom css vars ( #2547 )
...
* feat: new hook: `usecssvars` for inject custom css vars
* perf: optimize usecssvar logic
* test: test css var
2021-07-20 15:26:17 +08:00
jeremywu
425567ec3b
refactor(hooks): refactor transition ( #2556 )
...
* refactor(hooks): refactor transition
- Introduce new hook named useTransition
- Update transition.scss with css vars
* - Align variable name.
* - Update transitions to cssvars
* - Address PR comments
2021-07-18 20:08:58 +08:00
jeremywu
c28d7b3738
feat(hooks): redesign popper apis ( #2529 )
...
* feat(hooks): redesign popper apis
- Redesign use-popper APIs to make it more adaptable.
* - Reorganize the popper APIs
2021-07-15 14:08:13 +08:00
jeremywu
2e097605dc
feat(hooks): export popperjs common attributes ( #2520 )
...
- Export popperjs/core common attributes for reusing
2021-07-14 14:59:39 +08:00
JeremyWuuuuu
a7a8f29a19
refactor(popper): use-popper-hook for popper
...
- Add new use popper hook into the codebase for replacing the current `use-popper`
2021-07-13 17:49:00 +08:00
jeremywu
6b4c04fd0a
feat(hooks): add use-timeout hook ( #2439 )
...
* feat(hooks): add use-timeout hook
- Add use timeout hook for register timeout callbacks
- Add test cases against add-timeout
* resolve linter issue
2021-07-06 07:49:49 +08:00
JeremyWuuuuu
b66044db84
Finish unfinished test case
2021-07-05 08:50:36 +08:00
JeremyWuuuuu
5f8b25bc31
feat(hooks): add use-model-toggle hook
...
- Add use model hook to the hooks for toggleable model common logic
2021-07-05 08:50:36 +08:00
JeremyWuuuuu
d970108d16
feat(hooks): add use-transition-fallthrough-hook
...
- Add transition-fallthrough-hook to get common logic extracted.
2021-07-05 08:49:45 +08:00
jeremywu
913aaafabb
feat(hooks): add use-teleport hook ( #2421 )
...
* feat(hooks) add use-teleport hook
- Add teleport hook for teleported components
- Add teleport hooks hepler methods
- Add coresponding testing cases
* - add use teleport to the exporting entry
2021-07-03 19:04:03 +08:00
jeremywu
e9ea4b4ee2
Fix/revert changes for fixing issue ( #2313 )
...
* Revert "fix(project): fix beta 49 build issue (#2310 )"
This reverts commit 7d39b37f00
.
* Revert "feat(hooks): feat: Encapsulate function for rendering teleport element"
This reverts commit 74ec002d23
.
* Revert "refactor(popper): refactor extract common props for props (#2300 )"
This reverts commit 45982cff8a
.
Co-authored-by: jeremywuuuuu <jeremywuuuuu@no-reply.github.com>
2021-06-23 21:08:31 +08:00
jeremywuuuuu
74ec002d23
feat(hooks): feat: Encapsulate function for rendering teleport element
...
- Add new function for rendering teleport element.
2021-06-23 16:41:13 +08:00
jeremywu
8206e34a66
fix(project): fix/upgrade-to-vue-3-1-1-and-with-bug-fix ( #2220 )
...
- Upgrade Vue to 3.1.1 and fix the bug alone with the upgrade
2021-06-11 18:20:49 +08:00
xiejiahe
62cffd67a4
style: using 'Array.prototype.forEach()' ( #1826 )
2021-04-13 17:52:51 +08:00
jeremywu
ac0612965f
build(project): project/bumping-vue-version ( #1702 )
...
* build(project): project/bumping-vue-version
- Bumping vue to 3.0.9
* remove unnecessary dependency
* restore @vue/compiler-sfc
2021-03-28 12:46:58 +08:00
jeremywu
184af0b56f
fix(hooks): fix use-lock-screen hook ( #1651 )
...
- Fix when unmounting `use-lock-screen` could cleanup the side effects
2021-03-16 21:40:45 +08:00
Ryan2128
c550bcfd27
fix(popper): fix popper error cause by vue version update ( #1556 )
...
* chore: update vue version
* fix(infinite-scroll): fix test case error
* fix(popper): fix popper error cause by vue version update
2021-03-03 11:43:31 +08:00
jeremywu
30f1947c47
fix(overlay): Fix overlay event triggering issue ( #1235 )
2021-01-14 17:01:37 +08:00
jeremywu
a58f0fab90
chore(project): chore/bumping-vue-version ( #1159 )
...
* chore(project): chore/bumping-vue-version
- Upgrade vue to 3.0.5
* chore(project): - revision dependencies
2020-12-31 11:11:45 +08:00
porcelainHeart
8b2febe2f6
feat: new compontent Skeleton ( #953 )
2020-12-21 20:07:48 +08:00
Simona
536c43a571
fix(input): non-emit events such as keyup not work ( #866 )
...
* fix(input): non-emit events such as keyup not work
fix #837
* fix: remove debug code
* test(input): add test case
2020-12-07 13:21:23 +08:00
bastarder
e4bb9daf4f
fix(select): Fix select.focus is undefined bug ( #862 )
...
* fix(select): Fix select.focus is undefined bug
* fix(select): Add hook test
Co-authored-by: bastarder <jie.qian@blockheaders.com>
2020-12-07 11:29:08 +08:00
Simona
a2ad745293
refactor: optimize useAttrs signature ( #864 )
2020-12-07 10:57:48 +08:00
jeremywu
de0696b4f6
core/bumping-dependency-vue-version ( #729 )
...
* bumping version
* build(core): bumping vue version
- Bumping up vue version from ^3.0.0 to ^3.0.3 due to the change of `emitOptions`
* Remove transition mock/Add before-enter and before-leave hook emitter for popper
2020-12-01 10:28:42 +08:00
justwiner
2985a71751
feat(table): table ( #407 )
...
Co-authored-by: winerlu <winerlu@tencent.com>
Co-authored-by: zazzaz <izazzaz@hotmail.com>
2020-10-20 10:31:47 +08:00
Simona
e1add47603
feat(hooks): add useAttrs hook ( #317 )
...
* feat(hooks): add useAttrs hook
* feat(hooks): undo binding class and style automatically
* test: remove unused import statement
2020-09-19 20:44:07 +08:00
Herrington Darkholme
f8da703a9a
feat: bump vue version ( #330 )
...
* feat(core): bump vue version
* fix(steps): remove the usage of setupState
2020-09-19 15:38:36 +08:00
zazzaz
72274ed0ad
fix: fix eslint && typescript-eslint issue
2020-09-11 10:44:39 +08:00
jeremywu
ef92b6c11c
### feat: add dialog ( #197 )
...
* Add overlay component; Dialog component almost done
* feat(dialog): add use-lockscreen
* feat(dialog): coding completed awaiting tests
* feat(dialog): finish writing test cases
* fix test failures
* Address PR comments
* fallback some changes
2020-09-09 21:18:08 +08:00
LongYinan
122c88c60c
chore: upgrade all dependencies
2020-08-31 09:43:07 +08:00
jeremywu
d0b37cdf5f
Feat/implementing trigger for popper ( #214 )
...
* feat/implementing-trigger-for-popper
- Implementing trigger for popper
- Refactors against click-outside
* feat(popper): implemented trigger for popper
2020-08-28 10:47:02 +08:00
JeremyWuuuuu
af45dbd070
feat(tooltip): tooltip component
2020-08-25 22:51:26 +08:00