element-ps 1.0.15 → 1.0.16
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/dist/index.full.js +2 -2
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- package/es/index.mjs +10 -10
- package/es/packages/components/affix/index.mjs +2 -2
- package/es/packages/components/affix/src/affix.mjs +5 -22
- package/es/packages/components/affix/src/affix.mjs.map +1 -1
- package/es/packages/components/affix/src/affix.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/affix/src/affix2.mjs +22 -5
- package/es/packages/components/affix/src/affix2.mjs.map +1 -1
- package/es/packages/components/alert/index.mjs +2 -2
- package/es/packages/components/alert/src/alert.mjs +34 -5
- package/es/packages/components/alert/src/alert.mjs.map +1 -1
- package/es/packages/components/alert/src/alert.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/alert/src/alert2.mjs +5 -34
- package/es/packages/components/alert/src/alert2.mjs.map +1 -1
- package/es/packages/components/badge/index.mjs +2 -2
- package/es/packages/components/badge/src/badge.mjs +5 -20
- package/es/packages/components/badge/src/badge.mjs.map +1 -1
- package/es/packages/components/badge/src/badge.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/badge/src/badge2.mjs +20 -5
- package/es/packages/components/badge/src/badge2.mjs.map +1 -1
- package/es/packages/components/empty/index.mjs +2 -2
- package/es/packages/components/empty/src/empty.mjs +5 -12
- package/es/packages/components/empty/src/empty.mjs.map +1 -1
- package/es/packages/components/empty/src/empty.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/empty/src/empty2.mjs +12 -5
- package/es/packages/components/empty/src/empty2.mjs.map +1 -1
- package/es/packages/components/icon/index.mjs +2 -2
- package/es/packages/components/icon/src/icon.mjs +5 -11
- package/es/packages/components/icon/src/icon.mjs.map +1 -1
- package/es/packages/components/icon/src/icon.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/icon/src/icon2.mjs +11 -5
- package/es/packages/components/icon/src/icon2.mjs.map +1 -1
- package/es/packages/components/index.mjs +10 -10
- package/es/packages/components/input/index.mjs +2 -2
- package/es/packages/components/input/src/input.mjs +5 -79
- package/es/packages/components/input/src/input.mjs.map +1 -1
- package/es/packages/components/input/src/input.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/input/src/input2.mjs +79 -5
- package/es/packages/components/input/src/input2.mjs.map +1 -1
- package/es/packages/components/input-number/index.mjs +2 -2
- package/es/packages/components/input-number/src/input-number.mjs +5 -49
- package/es/packages/components/input-number/src/input-number.mjs.map +1 -1
- package/es/packages/components/input-number/src/input-number.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/input-number/src/input-number2.mjs +49 -5
- package/es/packages/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/packages/components/link/index.mjs +2 -2
- package/es/packages/components/link/src/link.mjs +5 -20
- package/es/packages/components/link/src/link.mjs.map +1 -1
- package/es/packages/components/link/src/link.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/link/src/link2.mjs +20 -5
- package/es/packages/components/link/src/link2.mjs.map +1 -1
- package/es/packages/components/menu/index.mjs +2 -2
- package/es/packages/components/menu/src/menu-item-group.mjs +5 -4
- package/es/packages/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/packages/components/menu/src/menu-item-group.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/menu/src/menu-item-group2.mjs +4 -5
- package/es/packages/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/packages/components/tag/index.mjs +2 -2
- package/es/packages/components/tag/src/tag.mjs +5 -26
- package/es/packages/components/tag/src/tag.mjs.map +1 -1
- package/es/packages/components/tag/src/tag.vue_vue&type=script&lang.mjs +1 -1
- package/es/packages/components/tag/src/tag2.mjs +26 -5
- package/es/packages/components/tag/src/tag2.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/index.js +10 -10
- package/lib/packages/components/affix/index.js +2 -2
- package/lib/packages/components/affix/src/affix.js +5 -21
- package/lib/packages/components/affix/src/affix.js.map +1 -1
- package/lib/packages/components/affix/src/affix.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/affix/src/affix2.js +21 -5
- package/lib/packages/components/affix/src/affix2.js.map +1 -1
- package/lib/packages/components/alert/index.js +2 -2
- package/lib/packages/components/alert/src/alert.js +33 -5
- package/lib/packages/components/alert/src/alert.js.map +1 -1
- package/lib/packages/components/alert/src/alert.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/alert/src/alert2.js +5 -33
- package/lib/packages/components/alert/src/alert2.js.map +1 -1
- package/lib/packages/components/badge/index.js +2 -2
- package/lib/packages/components/badge/src/badge.js +5 -19
- package/lib/packages/components/badge/src/badge.js.map +1 -1
- package/lib/packages/components/badge/src/badge.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/badge/src/badge2.js +19 -5
- package/lib/packages/components/badge/src/badge2.js.map +1 -1
- package/lib/packages/components/empty/index.js +2 -2
- package/lib/packages/components/empty/src/empty.js +6 -12
- package/lib/packages/components/empty/src/empty.js.map +1 -1
- package/lib/packages/components/empty/src/empty.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/empty/src/empty2.js +12 -6
- package/lib/packages/components/empty/src/empty2.js.map +1 -1
- package/lib/packages/components/icon/index.js +2 -2
- package/lib/packages/components/icon/src/icon.js +5 -10
- package/lib/packages/components/icon/src/icon.js.map +1 -1
- package/lib/packages/components/icon/src/icon.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/icon/src/icon2.js +10 -5
- package/lib/packages/components/icon/src/icon2.js.map +1 -1
- package/lib/packages/components/index.js +10 -10
- package/lib/packages/components/input/index.js +2 -2
- package/lib/packages/components/input/src/input.js +5 -78
- package/lib/packages/components/input/src/input.js.map +1 -1
- package/lib/packages/components/input/src/input.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/input/src/input2.js +78 -5
- package/lib/packages/components/input/src/input2.js.map +1 -1
- package/lib/packages/components/input-number/index.js +2 -2
- package/lib/packages/components/input-number/src/input-number.js +5 -48
- package/lib/packages/components/input-number/src/input-number.js.map +1 -1
- package/lib/packages/components/input-number/src/input-number.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/input-number/src/input-number2.js +48 -5
- package/lib/packages/components/input-number/src/input-number2.js.map +1 -1
- package/lib/packages/components/link/index.js +2 -2
- package/lib/packages/components/link/src/link.js +5 -19
- package/lib/packages/components/link/src/link.js.map +1 -1
- package/lib/packages/components/link/src/link.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/link/src/link2.js +19 -5
- package/lib/packages/components/link/src/link2.js.map +1 -1
- package/lib/packages/components/menu/index.js +2 -2
- package/lib/packages/components/menu/src/menu-item-group.js +6 -4
- package/lib/packages/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/packages/components/menu/src/menu-item-group.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/menu/src/menu-item-group2.js +4 -6
- package/lib/packages/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/packages/components/tag/index.js +2 -2
- package/lib/packages/components/tag/src/tag.js +5 -25
- package/lib/packages/components/tag/src/tag.js.map +1 -1
- package/lib/packages/components/tag/src/tag.vue_vue&type=script&lang.js +1 -1
- package/lib/packages/components/tag/src/tag2.js +25 -5
- package/lib/packages/components/tag/src/tag2.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 +1 -1
- package/web-types.json +1 -1
|
@@ -1,81 +1,7 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
import script from './input.vue_vue&type=script&lang.mjs';
|
|
2
|
+
export { default } from './input.vue_vue&type=script&lang.mjs';
|
|
3
|
+
import { render } from './input.vue_vue&type=template&id=3290dcb6&lang.mjs';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: definePropType(void 0),
|
|
9
|
-
default: ""
|
|
10
|
-
},
|
|
11
|
-
type: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "text"
|
|
14
|
-
},
|
|
15
|
-
resize: {
|
|
16
|
-
type: String,
|
|
17
|
-
values: ["none", "both", "horizontal", "vertical"]
|
|
18
|
-
},
|
|
19
|
-
autosize: {
|
|
20
|
-
type: definePropType([Boolean, Object]),
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
|
-
autocomplete: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "off"
|
|
26
|
-
},
|
|
27
|
-
placeholder: {
|
|
28
|
-
type: String
|
|
29
|
-
},
|
|
30
|
-
form: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: ""
|
|
33
|
-
},
|
|
34
|
-
readonly: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
},
|
|
38
|
-
clearable: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: false
|
|
41
|
-
},
|
|
42
|
-
showPassword: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
},
|
|
46
|
-
showWordLimit: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
|
-
suffixIcon: {
|
|
51
|
-
type: definePropType([String, Object]),
|
|
52
|
-
default: ""
|
|
53
|
-
},
|
|
54
|
-
prefixIcon: {
|
|
55
|
-
type: definePropType([String, Object]),
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
label: {
|
|
59
|
-
type: String
|
|
60
|
-
},
|
|
61
|
-
tabindex: {
|
|
62
|
-
type: [Number, String]
|
|
63
|
-
},
|
|
64
|
-
validateEvent: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: true
|
|
67
|
-
},
|
|
68
|
-
inputStyle: {
|
|
69
|
-
type: definePropType([Object, Array, String]),
|
|
70
|
-
default: () => mutable({})
|
|
71
|
-
},
|
|
72
|
-
maxlength: {
|
|
73
|
-
type: [Number, String]
|
|
74
|
-
},
|
|
75
|
-
widget: {
|
|
76
|
-
type: String
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export { inputProps };
|
|
5
|
+
script.render = render;
|
|
6
|
+
script.__file = "packages/components/input/src/input.vue";
|
|
81
7
|
//# sourceMappingURL=input.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"input.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -5,7 +5,7 @@ import { VALIDATE_STATE_MAP } from '../../../utils/constants.mjs';
|
|
|
5
5
|
import '../../../utils/util.mjs';
|
|
6
6
|
import isServer from '../../../utils/isServer.mjs';
|
|
7
7
|
import { calcTextareaHeight } from './calc-textarea-height.mjs';
|
|
8
|
-
import { inputProps } from './
|
|
8
|
+
import { inputProps } from './input2.mjs';
|
|
9
9
|
import { PsIcon } from '../../icon/index.mjs';
|
|
10
10
|
import { CircleClose, View } from '@element-plus/icons';
|
|
11
11
|
import useAttrs from '../../../hooks/use-attrs/index.mjs';
|
|
@@ -1,7 +1,81 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
import '../../../hooks/index.mjs';
|
|
2
|
+
import { buildProps, definePropType, mutable } from '../../../utils/props.mjs';
|
|
3
|
+
import { useFormItemProps } from '../../../hooks/use-form-item/index.mjs';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const inputProps = buildProps({
|
|
6
|
+
...useFormItemProps,
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: definePropType(void 0),
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
type: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "text"
|
|
14
|
+
},
|
|
15
|
+
resize: {
|
|
16
|
+
type: String,
|
|
17
|
+
values: ["none", "both", "horizontal", "vertical"]
|
|
18
|
+
},
|
|
19
|
+
autosize: {
|
|
20
|
+
type: definePropType([Boolean, Object]),
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
autocomplete: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "off"
|
|
26
|
+
},
|
|
27
|
+
placeholder: {
|
|
28
|
+
type: String
|
|
29
|
+
},
|
|
30
|
+
form: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: ""
|
|
33
|
+
},
|
|
34
|
+
readonly: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
clearable: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
showPassword: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
showWordLimit: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
suffixIcon: {
|
|
51
|
+
type: definePropType([String, Object]),
|
|
52
|
+
default: ""
|
|
53
|
+
},
|
|
54
|
+
prefixIcon: {
|
|
55
|
+
type: definePropType([String, Object]),
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
58
|
+
label: {
|
|
59
|
+
type: String
|
|
60
|
+
},
|
|
61
|
+
tabindex: {
|
|
62
|
+
type: [Number, String]
|
|
63
|
+
},
|
|
64
|
+
validateEvent: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
68
|
+
inputStyle: {
|
|
69
|
+
type: definePropType([Object, Array, String]),
|
|
70
|
+
default: () => mutable({})
|
|
71
|
+
},
|
|
72
|
+
maxlength: {
|
|
73
|
+
type: [Number, String]
|
|
74
|
+
},
|
|
75
|
+
widget: {
|
|
76
|
+
type: String
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export { inputProps };
|
|
7
81
|
//# sourceMappingURL=input2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input2.mjs","sources":["../../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import { useFormItemProps } from '@element-ps/hooks'\nimport { buildProps, definePropType, mutable } from '@element-ps/utils/props'\nimport type { StyleValue } from '@element-ps/utils/types'\nimport type { ExtractPropTypes, Component } from 'vue'\n\ntype AutoSize = { minRows?: number; maxRows?: number } | boolean\n\nexport const inputProps = buildProps({\n ...useFormItemProps,\n modelValue: {\n type: definePropType<string | number | null | undefined>(undefined),\n default: '',\n },\n type: {\n type: String,\n default: 'text',\n },\n resize: {\n type: String,\n values: ['none', 'both', 'horizontal', 'vertical'],\n },\n autosize: {\n type: definePropType<AutoSize>([Boolean, Object]),\n default: false,\n },\n autocomplete: {\n type: String,\n default: 'off',\n },\n placeholder: {\n type: String,\n },\n form: {\n type: String,\n default: '',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n clearable: {\n type: Boolean,\n default: false,\n },\n showPassword: {\n type: Boolean,\n default: false,\n },\n showWordLimit: {\n type: Boolean,\n default: false,\n },\n suffixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n label: {\n type: String,\n },\n tabindex: {\n type: [Number, String],\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n inputStyle: {\n type: definePropType<StyleValue>([Object, Array, String]),\n default: () => mutable({} as const),\n },\n maxlength: {\n type: [Number, String],\n },\n widget: {\n type: String,\n },\n} as const)\nexport type InputProps = ExtractPropTypes<typeof inputProps>\n"],"names":[],"mappings":";;;;MAOa,aAAa,WAAW;AAAA,KAChC;AAAA,EACH,YAAY;AAAA,IACV,MAAM,eAAmD;AAAA,IACzD,SAAS;AAAA;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,QAAQ,CAAC,QAAQ,QAAQ,cAAc;AAAA;AAAA,EAEzC,UAAU;AAAA,IACR,MAAM,eAAyB,CAAC,SAAS;AAAA,IACzC,SAAS;AAAA;AAAA,EAEX,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,aAAa;AAAA,IACX,MAAM;AAAA;AAAA,EAER,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,YAAY;AAAA,IACV,MAAM,eAAmC,CAAC,QAAQ;AAAA,IAClD,SAAS;AAAA;AAAA,EAEX,YAAY;AAAA,IACV,MAAM,eAAmC,CAAC,QAAQ;AAAA,IAClD,SAAS;AAAA;AAAA,EAEX,OAAO;AAAA,IACL,MAAM;AAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAM,CAAC,QAAQ;AAAA;AAAA,EAEjB,eAAe;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,YAAY;AAAA,IACV,MAAM,eAA2B,CAAC,QAAQ,OAAO;AAAA,IACjD,SAAS,MAAM,QAAQ;AAAA;AAAA,EAEzB,WAAW;AAAA,IACT,MAAM,CAAC,QAAQ;AAAA;AAAA,EAEjB,QAAQ;AAAA,IACN,MAAM;AAAA;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
2
|
-
import './src/input-
|
|
3
|
-
export { inputNumberProps } from './src/input-
|
|
2
|
+
import './src/input-number.mjs';
|
|
3
|
+
export { inputNumberProps } from './src/input-number2.mjs';
|
|
4
4
|
import script from './src/input-number.vue_vue&type=script&lang.mjs';
|
|
5
5
|
|
|
6
6
|
const PsInputNumber = withInstall(script);
|
|
@@ -1,51 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import script from './input-number.vue_vue&type=script&lang.mjs';
|
|
2
|
+
export { default } from './input-number.vue_vue&type=script&lang.mjs';
|
|
3
|
+
import { render } from './input-number.vue_vue&type=template&id=dec60af6&lang.mjs';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: Number,
|
|
6
|
-
default: 1
|
|
7
|
-
},
|
|
8
|
-
stepStrictly: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
default: false
|
|
11
|
-
},
|
|
12
|
-
max: {
|
|
13
|
-
type: Number,
|
|
14
|
-
default: Infinity
|
|
15
|
-
},
|
|
16
|
-
min: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: -Infinity
|
|
19
|
-
},
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: Number,
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
disabled: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
values: componentSize
|
|
31
|
-
},
|
|
32
|
-
controls: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: true
|
|
35
|
-
},
|
|
36
|
-
controlsPosition: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "",
|
|
39
|
-
values: ["", "right"]
|
|
40
|
-
},
|
|
41
|
-
name: String,
|
|
42
|
-
label: String,
|
|
43
|
-
placeholder: String,
|
|
44
|
-
precision: {
|
|
45
|
-
type: Number,
|
|
46
|
-
validator: (val) => val >= 0 && val === parseInt(`${val}`, 10)
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export { inputNumberProps };
|
|
5
|
+
script.render = render;
|
|
6
|
+
script.__file = "packages/components/input-number/src/input-number.vue";
|
|
51
7
|
//# sourceMappingURL=input-number.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"input-number.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -5,7 +5,7 @@ import { PsInput } from '../../input/index.mjs';
|
|
|
5
5
|
import { isNumber } from '../../../utils/util.mjs';
|
|
6
6
|
import { debugWarn } from '../../../utils/error.mjs';
|
|
7
7
|
import { ArrowUp, ArrowDown, Plus, Minus } from '@element-plus/icons';
|
|
8
|
-
import { inputNumberProps } from './input-
|
|
8
|
+
import { inputNumberProps } from './input-number2.mjs';
|
|
9
9
|
import { useFormItem } from '../../../hooks/use-form-item/index.mjs';
|
|
10
10
|
|
|
11
11
|
var script = defineComponent({
|
|
@@ -1,7 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from './input-number.vue_vue&type=script&lang.mjs';
|
|
3
|
-
import { render } from './input-number.vue_vue&type=template&id=dec60af6&lang.mjs';
|
|
1
|
+
import { buildProps, componentSize } from '../../../utils/props.mjs';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const inputNumberProps = buildProps({
|
|
4
|
+
step: {
|
|
5
|
+
type: Number,
|
|
6
|
+
default: 1
|
|
7
|
+
},
|
|
8
|
+
stepStrictly: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false
|
|
11
|
+
},
|
|
12
|
+
max: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: Infinity
|
|
15
|
+
},
|
|
16
|
+
min: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: -Infinity
|
|
19
|
+
},
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: Number,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
type: String,
|
|
30
|
+
values: componentSize
|
|
31
|
+
},
|
|
32
|
+
controls: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: true
|
|
35
|
+
},
|
|
36
|
+
controlsPosition: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "",
|
|
39
|
+
values: ["", "right"]
|
|
40
|
+
},
|
|
41
|
+
name: String,
|
|
42
|
+
label: String,
|
|
43
|
+
placeholder: String,
|
|
44
|
+
precision: {
|
|
45
|
+
type: Number,
|
|
46
|
+
validator: (val) => val >= 0 && val === parseInt(`${val}`, 10)
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export { inputNumberProps };
|
|
7
51
|
//# sourceMappingURL=input-number2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-number2.mjs","sources":["../../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { buildProps, componentSize } from '@element-ps/utils/props'\n\nexport const inputNumberProps = buildProps({\n step: {\n type: Number,\n default: 1,\n },\n stepStrictly: {\n type: Boolean,\n default: false,\n },\n max: {\n type: Number,\n default: Infinity,\n },\n min: {\n type: Number,\n default: -Infinity,\n },\n modelValue: {\n type: Number,\n required: true,\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n size: {\n type: String,\n values: componentSize,\n },\n controls: {\n type: Boolean,\n default: true,\n },\n controlsPosition: {\n type: String,\n default: '',\n values: ['', 'right'],\n },\n name: String,\n label: String,\n placeholder: String,\n precision: {\n type: Number,\n validator: (val: number) => val >= 0 && val === parseInt(`${val}`, 10),\n },\n} as const)\n"],"names":[],"mappings":";;MAEa,mBAAmB,WAAW;AAAA,EACzC,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,KAAK;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,KAAK;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,YAAY;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA;AAAA,EAEZ,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ;AAAA;AAAA,EAEV,UAAU;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,SAAS;AAAA,IACT,QAAQ,CAAC,IAAI;AAAA;AAAA,EAEf,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,WAAW;AAAA,IACT,MAAM;AAAA,IACN,WAAW,CAAC,QAAgB,OAAO,KAAK,QAAQ,SAAS,GAAG,OAAO;AAAA;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
2
|
-
import './src/
|
|
3
|
-
export { linkProps } from './src/
|
|
2
|
+
import './src/link.mjs';
|
|
3
|
+
export { linkProps } from './src/link2.mjs';
|
|
4
4
|
import script from './src/link.vue_vue&type=script&lang.mjs';
|
|
5
5
|
|
|
6
6
|
const PsLink = withInstall(script);
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import script from './link.vue_vue&type=script&lang.mjs';
|
|
2
|
+
export { default } from './link.vue_vue&type=script&lang.mjs';
|
|
3
|
+
import { render } from './link.vue_vue&type=template&id=6a422645&lang.mjs';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: String,
|
|
6
|
-
values: ["primary", "success", "warning", "info", "danger", "default"],
|
|
7
|
-
default: "default"
|
|
8
|
-
},
|
|
9
|
-
underline: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: true
|
|
12
|
-
},
|
|
13
|
-
disabled: { type: Boolean, default: false },
|
|
14
|
-
href: { type: String, default: "" },
|
|
15
|
-
icon: {
|
|
16
|
-
type: definePropType([String, Object]),
|
|
17
|
-
default: ""
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export { linkProps };
|
|
5
|
+
script.render = render;
|
|
6
|
+
script.__file = "packages/components/link/src/link.vue";
|
|
22
7
|
//# sourceMappingURL=link.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"link.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from './link.vue_vue&type=script&lang.mjs';
|
|
3
|
-
import { render } from './link.vue_vue&type=template&id=6a422645&lang.mjs';
|
|
1
|
+
import { buildProps, definePropType } from '../../../utils/props.mjs';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const linkProps = buildProps({
|
|
4
|
+
type: {
|
|
5
|
+
type: String,
|
|
6
|
+
values: ["primary", "success", "warning", "info", "danger", "default"],
|
|
7
|
+
default: "default"
|
|
8
|
+
},
|
|
9
|
+
underline: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
},
|
|
13
|
+
disabled: { type: Boolean, default: false },
|
|
14
|
+
href: { type: String, default: "" },
|
|
15
|
+
icon: {
|
|
16
|
+
type: definePropType([String, Object]),
|
|
17
|
+
default: ""
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { linkProps };
|
|
7
22
|
//# sourceMappingURL=link2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"link2.mjs","sources":["../../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-ps/utils/props'\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport const linkProps = buildProps({\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: 'default',\n },\n underline: {\n type: Boolean,\n default: true,\n },\n disabled: { type: Boolean, default: false },\n href: { type: String, default: '' },\n icon: {\n type: definePropType<string | Component>([String, Object]),\n default: '',\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n"],"names":[],"mappings":";;MAGa,YAAY,WAAW;AAAA,EAClC,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ,CAAC,WAAW,WAAW,WAAW,QAAQ,UAAU;AAAA,IAC5D,SAAS;AAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,UAAU,EAAE,MAAM,SAAS,SAAS;AAAA,EACpC,MAAM,EAAE,MAAM,QAAQ,SAAS;AAAA,EAC/B,MAAM;AAAA,IACJ,MAAM,eAAmC,CAAC,QAAQ;AAAA,IAClD,SAAS;AAAA;AAAA;;;;"}
|
|
@@ -2,11 +2,11 @@ import { withInstall, withNoopInstall } from '../../utils/with-install.mjs';
|
|
|
2
2
|
import Menu from './src/menu.mjs';
|
|
3
3
|
export { menuEmits, menuProps } from './src/menu.mjs';
|
|
4
4
|
import './src/menu-item2.mjs';
|
|
5
|
-
import './src/menu-item-
|
|
5
|
+
import './src/menu-item-group.mjs';
|
|
6
6
|
import SubMenu from './src/sub-menu.mjs';
|
|
7
7
|
export { subMenuProps } from './src/sub-menu.mjs';
|
|
8
8
|
export { menuItemEmits, menuItemProps } from './src/menu-item.mjs';
|
|
9
|
-
export { menuItemGroupProps } from './src/menu-item-
|
|
9
|
+
export { menuItemGroupProps } from './src/menu-item-group2.mjs';
|
|
10
10
|
import './src/types.mjs';
|
|
11
11
|
import script from './src/menu-item.vue_vue&type=script&lang.mjs';
|
|
12
12
|
import script$1 from './src/menu-item-group.vue_vue&type=script&lang.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
1
|
+
import script from './menu-item-group.vue_vue&type=script&lang.mjs';
|
|
2
|
+
export { default } from './menu-item-group.vue_vue&type=script&lang.mjs';
|
|
3
|
+
import { render } from './menu-item-group.vue_vue&type=template&id=67a2995d&lang.mjs';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
script.render = render;
|
|
6
|
+
script.__file = "packages/components/menu/src/menu-item-group.vue";
|
|
6
7
|
//# sourceMappingURL=menu-item-group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-group.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"menu-item-group.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, inject, computed } from 'vue';
|
|
2
2
|
import { throwError } from '../../../utils/error.mjs';
|
|
3
|
-
import { menuItemGroupProps } from './menu-item-
|
|
3
|
+
import { menuItemGroupProps } from './menu-item-group2.mjs';
|
|
4
4
|
|
|
5
5
|
const COMPONENT_NAME = "ElMenuItemGroup";
|
|
6
6
|
var script = defineComponent({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const menuItemGroupProps = {
|
|
2
|
+
title: String
|
|
3
|
+
};
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
script.__file = "packages/components/menu/src/menu-item-group.vue";
|
|
5
|
+
export { menuItemGroupProps };
|
|
7
6
|
//# sourceMappingURL=menu-item-group2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-group2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu-item-group2.mjs","sources":["../../../../../../../packages/components/menu/src/menu-item-group.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const menuItemGroupProps = {\n title: String,\n} as const\nexport type MenuItemGroupProps = ExtractPropTypes<typeof menuItemGroupProps>\n"],"names":[],"mappings":"MAEa,qBAAqB;AAAA,EAChC,OAAO;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
2
|
-
import './src/
|
|
3
|
-
export { tagProps } from './src/
|
|
2
|
+
import './src/tag.mjs';
|
|
3
|
+
export { tagProps } from './src/tag2.mjs';
|
|
4
4
|
import script from './src/tag.vue_vue&type=script&lang.mjs';
|
|
5
5
|
|
|
6
6
|
const PsTag = withInstall(script);
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import script from './tag.vue_vue&type=script&lang.mjs';
|
|
2
|
+
export { default } from './tag.vue_vue&type=script&lang.mjs';
|
|
3
|
+
import { render } from './tag.vue_vue&type=template&id=525996c5&lang.mjs';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: {
|
|
6
|
-
type: String,
|
|
7
|
-
values: ["success", "info", "warning", "danger", ""],
|
|
8
|
-
default: ""
|
|
9
|
-
},
|
|
10
|
-
hit: Boolean,
|
|
11
|
-
disableTransitions: Boolean,
|
|
12
|
-
color: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
type: String,
|
|
18
|
-
values: ["large", "medium", "small", "mini"]
|
|
19
|
-
},
|
|
20
|
-
effect: {
|
|
21
|
-
type: String,
|
|
22
|
-
values: ["dark", "light", "plain"],
|
|
23
|
-
default: "light"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export { tagProps };
|
|
5
|
+
script.render = render;
|
|
6
|
+
script.__file = "packages/components/tag/src/tag.vue";
|
|
28
7
|
//# sourceMappingURL=tag.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"tag.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -2,7 +2,7 @@ import { defineComponent, computed } from 'vue';
|
|
|
2
2
|
import { PsIcon } from '../../icon/index.mjs';
|
|
3
3
|
import { useGlobalConfig } from '../../../utils/util.mjs';
|
|
4
4
|
import { Close } from '@element-plus/icons';
|
|
5
|
-
import { tagProps } from './
|
|
5
|
+
import { tagProps } from './tag2.mjs';
|
|
6
6
|
|
|
7
7
|
var script = defineComponent({
|
|
8
8
|
name: "PsTag",
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { default } from './tag.vue_vue&type=script&lang.mjs';
|
|
3
|
-
import { render } from './tag.vue_vue&type=template&id=525996c5&lang.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/props.mjs';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
const tagProps = buildProps({
|
|
4
|
+
closable: Boolean,
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
values: ["success", "info", "warning", "danger", ""],
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
hit: Boolean,
|
|
11
|
+
disableTransitions: Boolean,
|
|
12
|
+
color: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
values: ["large", "medium", "small", "mini"]
|
|
19
|
+
},
|
|
20
|
+
effect: {
|
|
21
|
+
type: String,
|
|
22
|
+
values: ["dark", "light", "plain"],
|
|
23
|
+
default: "light"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { tagProps };
|
|
7
28
|
//# sourceMappingURL=tag2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag2.mjs","sources":["../../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-ps/utils/props'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n closable: Boolean,\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n hit: Boolean,\n disableTransitions: Boolean,\n color: {\n type: String,\n default: '',\n },\n size: {\n type: String,\n values: ['large', 'medium', 'small', 'mini'],\n },\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n"],"names":[],"mappings":";;MAIa,WAAW,WAAW;AAAA,EACjC,UAAU;AAAA,EACV,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ,CAAC,WAAW,QAAQ,WAAW,UAAU;AAAA,IACjD,SAAS;AAAA;AAAA,EAEX,KAAK;AAAA,EACL,oBAAoB;AAAA,EACpB,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA;AAAA,EAEX,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQ,CAAC,SAAS,UAAU,SAAS;AAAA;AAAA,EAEvC,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,QAAQ,CAAC,QAAQ,SAAS;AAAA,IAC1B,SAAS;AAAA;AAAA;;;;"}
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.15";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-ps/version.ts"],"sourcesContent":["export const version = '1.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-ps/version.ts"],"sourcesContent":["export const version = '1.0.15'\n"],"names":[],"mappings":"MAAa,UAAU;;;;"}
|