Commit Graph

71 Commits

Author SHA1 Message Date
07akioni
6ee3896319
feat(tree-select): component (#211)
* site: tree-select route

* refactor(internal-selection): remove useless remote prop & on-delete-last-option

* refactor(dropdown, popselect): set slots stable mark from true to 1

* fix(scrollbar): attributes applied multiple times

* wip(tree-select): add exports

* fix(tree): misses `on-update-expanded-keys`, `on-update-selected-keys`, `on-update-checked-keys` prop

* feat(tree): support keyboard operations

* feat(tree): scroll with keyboard target node

* fix(tree): `selected-keys` prop influences original array

* feat(tree): pending on selected node at first

* feat(tree): follow tree-select's pending status

* feat(tree): `internalCheckboxFocusable` prop

* refactor(tree): split treeMate to displayTreeMate & dataTreeMate to work with tree-select

* fix(tree): scrollbar won't sync in virtual scroll mode

* feat(tree-select)

* docs: changelog

* docs(tree-select)

* feat(tree-select): stricter type

* fix: typo

* fix(select): input blinks in filterable mode when click at menu and input has value

* fix(tree): multiple line style

* docs(tree-select)

* refactor(tree-select): disable tree expand animation on tree select

* feat(tree-select): change expanded keys on filter

* chore(tree): add comment about animation

* chore

* feat(tree-select): close on single select

* fix(base-selection): input has useless empty row in multiple filterable mode

* docs(tree-select): add clearable in filterable demo
2021-06-21 15:48:15 +08:00
07akioni
7f09dc83f1 fix(scrollbar): set width 100% to scrollbar... 2021-06-08 12:15:46 +08:00
07akioni
d7b96e6230 fix(scrollbar): track may be overlayed in chrome windows 2021-06-06 22:54:41 +08:00
07akioni
0cbceaf27b refactor(scrollbar): rename css vars to avoid overrides slot content's vars 2021-05-26 12:28:36 +08:00
07akioni
4b723085d6 wip(tree): refactor dnd 2021-05-22 14:29:36 +08:00
07akioni
b6eeaf33f2 refactor(data-table): clear scroll related code.
Note that current scroll impl doesn't work well on safari. Since it is tooooo slow.
Use onWheel may alleviate the problem.
However safari has new bug when use onWheel. The overflow scroll behavior will be wired.

****!

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body style="height: 2000px; background: green;">
  <div style="background: red; height:300px;overflow: auto;">
    <div id="x" style="height: 600px;
      width: 50%;

      background: blue;
    "></div>
  </div>
  <script>
    // document.getElementById('x').addEventListener('wheel', (e) => {
//   e.stopImmediatePropagation()
// }, true)
  </script>
</body>
</html>
2021-05-18 13:50:17 +08:00
07akioni
df78a9f8f3 refactor(data-table): clean scroll codes 2021-05-18 02:19:15 +08:00
07akioni
24228424dd perf(scrollbar): reduce redundant rendering 2021-05-17 02:59:44 +08:00
07akioni
fa03dd513f refactor(use-config): rename return fields 2021-04-24 13:45:13 +08:00
07akioni
366ed214f2 refactor(data-table, scrollbar): remove unnecessary overflow:hidden 2021-04-21 10:22:56 +08:00
07akioni
9c74b7ea87 refactor: remove n- prefix of all transitions' name 2021-04-20 12:54:12 +08:00
07akioni
bd4b340128 refactor: dedupe theme vars generation 2021-04-20 12:37:18 +08:00
07akioni
d17dc5da01 refactor: cPrefix => mergedClsPrefix 2021-04-19 01:11:05 +08:00
07akioni
f414106869 refactor: remove useless comment & organize exports 2021-04-18 22:42:29 +08:00
07akioni
c4487319fb feat(checkbox): clsPrefix 2021-04-15 21:47:20 +08:00
07akioni
cb1cf9244b feat(selector, cascader, scrollbar): clsPrefix 2021-04-15 21:24:02 +08:00
07akioni
f35572837a chore: reformat transition style mixins 2021-04-09 21:45:29 +08:00
07akioni
6620d1836c fix: update to vue 3.0.10 to fix teleport is unmounted twice & remove redundant vnode type casting 2021-04-01 15:24:12 +08:00
07akioni
a4ec6e737d feat(theme-editor) (#25)
* wip(theme-editor)

* chore: make theme editor looks better

* feat(theme-editor): use controlled overrides

* fix(theme-editor): no invalid color

* chore: update seemly to support keywords color

* feat(theme-editor): add filter

* refactor(theme-editor): use popover

* fix(site): package bundled twice due to src code reference

* docs(back-top): avoid collision with theme-editor
2021-03-30 02:25:22 +08:00
07akioni
7dc817f5a9 refactor: update deps & fix ts errors in 4.2.3 2021-03-29 01:12:00 +08:00
07akioni
f26b0f2f53 refactor(theme): remove remove all overlay colors 2021-03-02 13:22:51 +08:00
07akioni
6a70895021 test: add basic test for all comps 2021-02-17 16:33:29 +08:00
07akioni
fdad7bed50 feat(create-theme): create global theme from component themes 2021-02-03 11:32:40 +08:00
07akioni
43658733e4 build: ts build 2021-02-03 00:48:31 +08:00
07akioni
184a9474c3 refactor(time): set default type to datetime 2021-02-02 19:44:44 +08:00
07akioni
7863d6d28e refactor: optimize types 2021-02-01 18:16:47 +08:00
07akioni
a1b7a6c207 refactor(transfer): ts 2021-01-26 13:02:24 +08:00
07akioni
261afdd370 refactor: simplify default slot usage 2021-01-25 02:39:28 +08:00
07akioni
c08dc39607 refactor(drawer): ts 2021-01-22 02:09:00 +08:00
07akioni
ee931c25c3 refactor(modal): ts 2021-01-22 01:04:38 +08:00
07akioni
e608c393df refactor(select): ts 2021-01-20 18:31:30 +08:00
07akioni
9e095c1a6a refactor(scrollbar): ts 2021-01-19 13:47:21 +08:00
07akioni
8493f0620d refactor(scrollbar): new theme 2021-01-07 15:41:03 +08:00
07akioni
094a481f0b feat(cascader): keyboard scroll cascader menu 2020-12-16 00:20:50 +08:00
07akioni
2d13c548b6 chore: prettier demo 2020-12-12 13:51:22 +08:00
07akioni
1c032d2279 chore: prettier 2020-12-12 13:47:04 +08:00
07akioni
8c7c2f5dc6 refactor: remove styles in each component index 2020-12-11 22:14:44 +08:00
07akioni
2da974a3b3 feat: add style deps for every component 2020-12-11 22:03:38 +08:00
07akioni
f0893770ee test: add scaffold for all components 2020-12-11 13:32:33 +08:00
07akioni
75153646d1 refactor: remove all install scripts of components, prepare for tree-shaking 2020-12-06 23:41:08 +08:00
07akioni
1b8f16d917 refactor(create-component-base): rename getDerivedVars to getLocalVars 2020-12-04 01:00:39 +08:00
07akioni
69ee56719d refactor: merge base theme vars and derived vars for simplicity 2020-12-01 00:19:50 +08:00
07akioni
ca4e6a8e1b fix(base-suffix): hover & active style on dark theme 2020-11-28 13:55:09 +08:00
07akioni
9673ad94cd refactor(scrollbar): use evtd to handle events 2020-11-27 01:54:14 +08:00
07akioni
3cd9791b97 refactor(select): use v-binder 2020-11-25 14:17:58 +08:00
07akioni
cb21b1d8a9 refactor(drawer): remove body-wrapper prop & simplify dom 2020-11-16 01:12:04 +08:00
07akioni
a975316530 fix(scrollbar): has no binded attrs 2020-11-14 14:31:04 +08:00
07akioni
a2d25cb9fc refactor: rename usecssr -> withCssr, asformitem -> asFormItem 2020-11-09 23:09:18 +08:00
07akioni
22e207c59a feat(scrollbar): scrollTo support numbers 2020-11-04 00:42:35 +08:00
07akioni
efed314065 refactor: clear utils 2020-11-04 00:26:00 +08:00