@element-plus/nightly 0.0.20220108 → 0.0.20220109
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/README.md +27 -82
- package/dist/index.full.js +25 -10
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +25 -10
- package/es/components/autocomplete/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.mjs +1 -0
- package/es/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs +2 -1
- package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs +1 -0
- package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs.map +1 -1
- package/es/components/menu/src/menu-item.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/menu/src/menu-item.vue_vue_type_template_id_aa755baa_lang.mjs +2 -1
- package/es/components/menu/src/menu-item.vue_vue_type_template_id_aa755baa_lang.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs +2 -1
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs.map +1 -1
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs +2 -1
- package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs.map +1 -1
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs +1 -0
- package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.mjs +1 -0
- package/es/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.mjs.map +1 -1
- package/es/components/slider/src/button.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.mjs +2 -1
- package/es/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs +2 -1
- package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs +6 -2
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs +1 -0
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.js +1 -0
- package/lib/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.js.map +1 -1
- package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js +2 -1
- package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js +1 -0
- package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js.map +1 -1
- package/lib/components/menu/src/menu-item.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/menu/src/menu-item.vue_vue_type_template_id_aa755baa_lang.js +2 -1
- package/lib/components/menu/src/menu-item.vue_vue_type_template_id_aa755baa_lang.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js +2 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js.map +1 -1
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js +2 -1
- package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js.map +1 -1
- package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js +1 -0
- package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js.map +1 -1
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.js +1 -0
- package/lib/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.js.map +1 -1
- package/lib/components/slider/src/button.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.js +2 -1
- package/lib/components/slider/src/button.vue_vue_type_template_id_9cd3e794_lang.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js +2 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js +6 -2
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js +1 -0
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
package/README.md
CHANGED
|
@@ -21,8 +21,18 @@
|
|
|
21
21
|
|
|
22
22
|
This project is still under heavy development. Feel free to join us and make your first pull request.
|
|
23
23
|
|
|
24
|
+
## Getting Started
|
|
25
|
+
|
|
26
|
+
Alright, for you to get started if you are looking for making Element Plus better you should keep reading.
|
|
27
|
+
For developers that uses Element Plus to develop your website you should go ahead visit [Getting Started](https://element-plus.org/)
|
|
28
|
+
|
|
29
|
+
- 中国大陆[加速镜像站点](https://element-plus.gitee.io/)
|
|
30
|
+
|
|
24
31
|
### Playground
|
|
25
32
|
|
|
33
|
+
You can also try Element Plus out with the components built-in playground
|
|
34
|
+
(This thing is still under development, most of the functions are ready)
|
|
35
|
+
|
|
26
36
|
#### Try it with code sandbox
|
|
27
37
|
|
|
28
38
|
[](https://codesandbox.io/s/element-plus-demo-dxtcr)
|
|
@@ -64,99 +74,34 @@ This project is still under heavy development. Feel free to join us and make you
|
|
|
64
74
|
Element Plus is translated to multiple languages, you can click the badge to help up update the translation or apply to become
|
|
65
75
|
a proofreader [](https://crowdin.com/project/element-plus)
|
|
66
76
|
|
|
67
|
-
|
|
77
|
+
For now we are only showing English and Chinese for resource reasons, but we are looking forward to translate it into more languages, please go to the link
|
|
78
|
+
above and leave a message if you want to help translating Element Plus into your desired language.
|
|
68
79
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
国内[加速镜像站点](https://element-plus.gitee.io/)
|
|
80
|
+
## Stay tuned :eyes:
|
|
72
81
|
|
|
73
82
|
Join our [Discord](https://discord.link/ElementPlus) to start communicating with everybody.
|
|
74
83
|
|
|
75
84
|
## Breaking change list
|
|
76
85
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
With command
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
$ pnpm i
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
the project will install all dependencies
|
|
88
|
-
|
|
89
|
-
## Website preview
|
|
90
|
-
|
|
91
|
-
With command
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
$ pnpm docs:dev
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
the project will launch website for you to preview all existing component
|
|
98
|
-
|
|
99
|
-
## Local development
|
|
86
|
+
**Note:** we are now currently preparing for the stable release, the APIs should be stable right now, we are going to
|
|
87
|
+
make a full list about how to get upgraded from [Element UI](https://element.eleme.io) to Element Plus. This breaking change list
|
|
88
|
+
might be updated day by day.
|
|
100
89
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
```shell
|
|
104
|
-
$ pnpm dev
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
will start the local development environment
|
|
108
|
-
|
|
109
|
-
2. Add your component into `play/src/App.vue`
|
|
110
|
-
|
|
111
|
-
> App.vue
|
|
112
|
-
|
|
113
|
-
```vue
|
|
114
|
-
<template>
|
|
115
|
-
<ComponentYouAreDeveloping />
|
|
116
|
-
</template>
|
|
117
|
-
|
|
118
|
-
<script setup lang="ts">
|
|
119
|
-
// make sure this component is registered in @element-plus/components
|
|
120
|
-
import { ComponentYouAreDeveloping } from '@element-plus/components'
|
|
121
|
-
</script>
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
Modify `App.vue` file per your needs to get things work.
|
|
125
|
-
|
|
126
|
-
## Component migration process
|
|
127
|
-
|
|
128
|
-
1. Convert the item in https://github.com/element-plus/element-plus/projects/1 to an issue
|
|
129
|
-
2. Assign yourself to the issue
|
|
130
|
-
3. Author your component by generating new component command below
|
|
131
|
-
4. Migrate tests and docs
|
|
132
|
-
5. Open a new pull request, fill in the component issue link in 1
|
|
133
|
-
|
|
134
|
-
## Generate new component
|
|
135
|
-
|
|
136
|
-
With command
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
$ pnpm gen component-name
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
Note the `component-name` must be in `kebab-case`, combining words by replacing each space with a dash.
|
|
143
|
-
|
|
144
|
-
And component type must be added to `typings/global.d.ts`.
|
|
90
|
+
You can find the breaking change list here: [Breaking Change List](https://github.com/element-plus/element-plus/issues/162).
|
|
145
91
|
|
|
146
|
-
##
|
|
92
|
+
## This thing is broken, I should help improve it!
|
|
147
93
|
|
|
148
|
-
|
|
94
|
+
Awesommmmmmee. Everything you need is down below. You can also refer to
|
|
95
|
+
[CONTRIBUTING](https://github.com/element-plus/element-plus/blob/dev/CONTRIBUTING.md) and
|
|
96
|
+
[Code of Conduct](https://github.com/element-plus/element-plus/blob/dev/CODE_OF_CONDUCT.md)
|
|
97
|
+
where you'll find the same information listed below.
|
|
149
98
|
|
|
150
|
-
|
|
151
|
-
pnpm cz
|
|
152
|
-
```
|
|
99
|
+
## I would like to become a part of the development team!
|
|
153
100
|
|
|
154
|
-
|
|
101
|
+
Welcome :star_struck:! We are looking for talented developers to join us and making Element Plus better! If you care to join the development team, please
|
|
102
|
+
reach out to us, you are more than welcomed to join us! :heart:
|
|
155
103
|
|
|
156
|
-
|
|
157
|
-
# [TYPE](SCOPE): [el-component-name] DESCRIPTION#[ISSUE]
|
|
158
|
-
# example: feat(components): [el-button] add type for form usage #1234
|
|
159
|
-
```
|
|
104
|
+
We are now lacking of experts of `Testing`, `GitHub Actions`, `PM`, if you do feel like you can and willing to help us, please do reach out to us. :pray:
|
|
160
105
|
|
|
161
106
|
## Sponsors
|
|
162
107
|
|
|
@@ -177,7 +122,7 @@ And thank you to all our backers! 🙏
|
|
|
177
122
|
<img src="https://contrib.rocks/image?repo=element-plus/element-plus" />
|
|
178
123
|
</a>
|
|
179
124
|
|
|
180
|
-
##
|
|
125
|
+
## License
|
|
181
126
|
|
|
182
127
|
Element Plus is open source software licensed as
|
|
183
128
|
[MIT](https://github.com/element-plus/element-plus/blob/master/LICENSE).
|
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220109 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -4510,7 +4510,7 @@
|
|
|
4510
4510
|
});
|
|
4511
4511
|
}
|
|
4512
4512
|
|
|
4513
|
-
const version$1 = "0.0.
|
|
4513
|
+
const version$1 = "0.0.20220109";
|
|
4514
4514
|
|
|
4515
4515
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4516
4516
|
const makeInstaller = (components = []) => {
|
|
@@ -10253,6 +10253,7 @@
|
|
|
10253
10253
|
effect: "light",
|
|
10254
10254
|
trigger: "click",
|
|
10255
10255
|
transition: "el-zoom-in-top",
|
|
10256
|
+
persistent: "",
|
|
10256
10257
|
onShow: _ctx.onSuggestionShow
|
|
10257
10258
|
}, {
|
|
10258
10259
|
content: vue.withCtx(() => [
|
|
@@ -12327,11 +12328,15 @@
|
|
|
12327
12328
|
return false;
|
|
12328
12329
|
};
|
|
12329
12330
|
const parser = function(date, format, lang) {
|
|
12330
|
-
const day = isEmpty(format) ? dayjs(date).locale(lang) : dayjs(date, format).locale(lang);
|
|
12331
|
+
const day = isEmpty(format) || format === "x" ? dayjs(date).locale(lang) : dayjs(date, format).locale(lang);
|
|
12331
12332
|
return day.isValid() ? day : void 0;
|
|
12332
12333
|
};
|
|
12333
12334
|
const formatter = function(date, format, lang) {
|
|
12334
|
-
|
|
12335
|
+
if (isEmpty(format))
|
|
12336
|
+
return date;
|
|
12337
|
+
if (format === "x")
|
|
12338
|
+
return +date;
|
|
12339
|
+
return dayjs(date).locale(lang).format(format);
|
|
12335
12340
|
};
|
|
12336
12341
|
var script$1Q = vue.defineComponent({
|
|
12337
12342
|
name: "Picker",
|
|
@@ -12726,6 +12731,7 @@
|
|
|
12726
12731
|
"gpu-acceleration": false,
|
|
12727
12732
|
"stop-popper-mouse-event": false,
|
|
12728
12733
|
"hide-after": 0,
|
|
12734
|
+
persistent: "",
|
|
12729
12735
|
onShow: _cache[17] || (_cache[17] = ($event) => _ctx.pickerActualVisible = true),
|
|
12730
12736
|
onHide: _cache[18] || (_cache[18] = ($event) => _ctx.pickerActualVisible = false)
|
|
12731
12737
|
}), {
|
|
@@ -19218,7 +19224,8 @@
|
|
|
19218
19224
|
"stop-popper-mouse-event": false,
|
|
19219
19225
|
effect: "light",
|
|
19220
19226
|
trigger: "click",
|
|
19221
|
-
transition: "el-zoom-in-top"
|
|
19227
|
+
transition: "el-zoom-in-top",
|
|
19228
|
+
persistent: ""
|
|
19222
19229
|
}, {
|
|
19223
19230
|
content: vue.withCtx(() => [
|
|
19224
19231
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", null, [
|
|
@@ -23757,6 +23764,7 @@
|
|
|
23757
23764
|
"append-to-body": "",
|
|
23758
23765
|
pure: "",
|
|
23759
23766
|
transition: "el-zoom-in-top",
|
|
23767
|
+
persistent: "",
|
|
23760
23768
|
onShow: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("visible-change", true)),
|
|
23761
23769
|
onHide: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("visible-change", false))
|
|
23762
23770
|
}, vue.createSlots({
|
|
@@ -28177,7 +28185,8 @@
|
|
|
28177
28185
|
_ctx.parentMenu.type.name === "ElMenu" && _ctx.rootMenu.props.collapse && _ctx.$slots.title ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
28178
28186
|
key: 0,
|
|
28179
28187
|
effect: _ctx.Effect.DARK,
|
|
28180
|
-
placement: "right"
|
|
28188
|
+
placement: "right",
|
|
28189
|
+
persistent: ""
|
|
28181
28190
|
}, {
|
|
28182
28191
|
content: vue.withCtx(() => [
|
|
28183
28192
|
vue.renderSlot(_ctx.$slots, "title")
|
|
@@ -29654,6 +29663,7 @@
|
|
|
29654
29663
|
transition: "el-zoom-in-top",
|
|
29655
29664
|
"stop-popper-mouse-event": false,
|
|
29656
29665
|
"gpu-acceleration": false,
|
|
29666
|
+
persistent: "",
|
|
29657
29667
|
onShow: _ctx.handleMenuEnter
|
|
29658
29668
|
}, {
|
|
29659
29669
|
default: vue.withCtx(() => [
|
|
@@ -30631,7 +30641,8 @@
|
|
|
30631
30641
|
"popper-class": "el-popover",
|
|
30632
30642
|
"append-to-body": "",
|
|
30633
30643
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
30634
|
-
"hide-after": _ctx.hideAfter
|
|
30644
|
+
"hide-after": _ctx.hideAfter,
|
|
30645
|
+
persistent: ""
|
|
30635
30646
|
}), {
|
|
30636
30647
|
content: vue.withCtx(() => [
|
|
30637
30648
|
vue.createElementVNode("div", _hoisted_1$p, [
|
|
@@ -30766,7 +30777,8 @@
|
|
|
30766
30777
|
effect: _ctx.effect,
|
|
30767
30778
|
enterable: _ctx.enterable,
|
|
30768
30779
|
"popper-class": _ctx.kls,
|
|
30769
|
-
"popper-style": _ctx.style
|
|
30780
|
+
"popper-style": _ctx.style,
|
|
30781
|
+
persistent: ""
|
|
30770
30782
|
}), {
|
|
30771
30783
|
content: vue.withCtx(() => [
|
|
30772
30784
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("v-if", true),
|
|
@@ -34434,6 +34446,7 @@
|
|
|
34434
34446
|
pure: "",
|
|
34435
34447
|
transition: "el-zoom-in-top",
|
|
34436
34448
|
trigger: "click",
|
|
34449
|
+
persistent: "",
|
|
34437
34450
|
onShow: _ctx.handleMenuEnter,
|
|
34438
34451
|
onHide: _cache[23] || (_cache[23] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
34439
34452
|
}, {
|
|
@@ -35088,7 +35101,8 @@
|
|
|
35088
35101
|
"stop-popper-mouse-event": false,
|
|
35089
35102
|
"popper-class": _ctx.tooltipClass,
|
|
35090
35103
|
disabled: !_ctx.showTooltip,
|
|
35091
|
-
manual: ""
|
|
35104
|
+
manual: "",
|
|
35105
|
+
persistent: ""
|
|
35092
35106
|
}, {
|
|
35093
35107
|
content: vue.withCtx(() => [
|
|
35094
35108
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.formatValue), 1)
|
|
@@ -38197,7 +38211,8 @@
|
|
|
38197
38211
|
"append-to-body": "",
|
|
38198
38212
|
effect: "light",
|
|
38199
38213
|
pure: "",
|
|
38200
|
-
"popper-class": "el-table-filter"
|
|
38214
|
+
"popper-class": "el-table-filter",
|
|
38215
|
+
persistent: ""
|
|
38201
38216
|
}, {
|
|
38202
38217
|
content: vue.withCtx(() => [
|
|
38203
38218
|
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
|