vdesign-ui 0.2.9 → 0.2.12
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 +78 -78
- package/dist/components/actionbar/index.js +8 -8
- package/dist/components/actionbar/index.vue +39 -39
- package/dist/components/actionbar/style.less +44 -44
- package/dist/components/actionbar-cell/index.js +7 -7
- package/dist/components/actionbar-cell/index.vue +38 -38
- package/dist/components/actions/index.js +6 -6
- package/dist/components/actions/index.vue +76 -76
- package/dist/components/actions/style.less +109 -109
- package/dist/components/actions-cell/index.js +6 -6
- package/dist/components/actions-cell/index.vue +94 -94
- package/dist/components/actions-cell/style.less +38 -38
- package/dist/components/activityviews/index.js +8 -8
- package/dist/components/activityviews/index.vue +192 -192
- package/dist/components/activityviews/style.less +151 -151
- package/dist/components/badge/index.js +8 -8
- package/dist/components/badge/index.vue +49 -49
- package/dist/components/badge/style.less +54 -54
- package/dist/components/button/index.js +8 -8
- package/dist/components/button/index.vue +93 -93
- package/dist/components/button/style.less +558 -558
- package/dist/components/calendar/index-element.vue +84 -84
- package/dist/components/calendar/index.js +7 -7
- package/dist/components/calendar/index.vue +52 -52
- package/dist/components/calendar/style.less +138 -138
- package/dist/components/checkbox/index.js +8 -8
- package/dist/components/checkbox/index.vue +161 -161
- package/dist/components/checkbox/style.less +288 -288
- package/dist/components/checkbox-group/index.js +7 -7
- package/dist/components/checkbox-group/index.vue +69 -69
- package/dist/components/common/state/index.vue +33 -33
- package/dist/components/common/state/style.less +47 -47
- package/dist/components/data-list/index.js +10 -10
- package/dist/components/data-list/index.vue +19 -19
- package/dist/components/data-list/style.less +623 -623
- package/dist/components/datetime-picker/index.js +7 -7
- package/dist/components/datetime-picker/index.vue +37 -37
- package/dist/components/datetime-picker/style.less +23 -23
- package/dist/components/dialog/index.js +8 -8
- package/dist/components/dialog/index.vue +164 -164
- package/dist/components/dialog/overlay-manager.js +18 -18
- package/dist/components/dialog/style.less +138 -138
- package/dist/components/divider/index.js +8 -8
- package/dist/components/divider/index.vue +54 -54
- package/dist/components/divider/style.less +92 -92
- package/dist/components/dropdown/index.js +8 -8
- package/dist/components/dropdown/index.vue +218 -218
- package/dist/components/dropdown/style.less +432 -432
- package/dist/components/empty/index.js +8 -8
- package/dist/components/empty/index.vue +138 -138
- package/dist/components/empty/style.less +60 -60
- package/dist/components/footer/index.js +6 -6
- package/dist/components/footer/index.vue +33 -33
- package/dist/components/footer/style.less +20 -20
- package/dist/components/footnav/index.js +6 -6
- package/dist/components/footnav/index.vue +93 -93
- package/dist/components/footnav/style.less +22 -22
- package/dist/components/footnav-item/index.js +6 -6
- package/dist/components/footnav-item/index.vue +50 -50
- package/dist/components/footnav-item/style.less +39 -39
- package/dist/components/form/index.js +6 -6
- package/dist/components/form/index.vue +12 -12
- package/dist/components/headnav/index.js +6 -6
- package/dist/components/headnav/index.vue +185 -185
- package/dist/components/headnav/style.less +231 -231
- package/dist/components/icon/font/iconfont.css +163 -163
- package/dist/components/icon/font/iconfont.js +5 -5
- package/dist/components/icon/index.js +9 -9
- package/dist/components/icon/index.vue +96 -96
- package/dist/components/icon/style.less +44 -44
- package/dist/components/input/calcTextareaHeight.js +162 -162
- package/dist/components/input/index.js +8 -8
- package/dist/components/input/index.vue +345 -345
- package/dist/components/input/style.less +470 -470
- package/dist/components/list/index.js +8 -8
- package/dist/components/list/index.vue +152 -152
- package/dist/components/list/style.less +213 -213
- package/dist/components/loading/index.js +6 -6
- package/dist/components/loading/index.vue +68 -68
- package/dist/components/loading/style.less +53 -53
- package/dist/components/mixins/clickoutside.js +81 -81
- package/dist/components/mixins/languageMixin.js +41 -41
- package/dist/components/mixins/outlineConfigPlugin.js +45 -45
- package/dist/components/mixins/themeMixin.js +43 -43
- package/dist/components/noticebar/index.js +8 -8
- package/dist/components/noticebar/index.vue +258 -258
- package/dist/components/noticebar/style.less +328 -328
- package/dist/components/overlay/index.js +8 -8
- package/dist/components/overlay/index.vue +184 -184
- package/dist/components/overlay/style.less +23 -23
- package/dist/components/pagebreak/index.js +6 -6
- package/dist/components/pagebreak/index.vue +67 -67
- package/dist/components/pagebreak/style.less +41 -41
- package/dist/components/password/index.js +8 -8
- package/dist/components/password/index.vue +60 -60
- package/dist/components/popover/index.js +8 -8
- package/dist/components/popover/index.vue +100 -100
- package/dist/components/popover/style.less +346 -346
- package/dist/components/popover/vue-popover.vue +314 -314
- package/dist/components/popup/index.js +7 -7
- package/dist/components/popup/index.vue +243 -243
- package/dist/components/radio/index.js +8 -8
- package/dist/components/radio/index.vue +184 -184
- package/dist/components/radio/style.less +293 -293
- package/dist/components/radio-group/index.js +6 -6
- package/dist/components/radio-group/index.vue +58 -58
- package/dist/components/result/index.js +8 -8
- package/dist/components/result/index.vue +73 -73
- package/dist/components/result/style.less +43 -43
- package/dist/components/search/index.js +8 -8
- package/dist/components/search/index.vue +66 -66
- package/dist/components/selector/index.js +8 -8
- package/dist/components/selector/index.vue +161 -161
- package/dist/components/selector/style.less +484 -484
- package/dist/components/skeleton/index.js +6 -6
- package/dist/components/skeleton/index.vue +207 -206
- package/dist/components/skeleton/style.less +196 -196
- package/dist/components/slider/draggable.js +49 -49
- package/dist/components/slider/index.js +6 -6
- package/dist/components/slider/index.vue +167 -167
- package/dist/components/slider/style.less +99 -99
- package/dist/components/slider/utils.js +59 -59
- package/dist/components/step/index.js +7 -7
- package/dist/components/step/index.vue +48 -48
- package/dist/components/step/style.less +57 -57
- package/dist/components/step-item/index.js +7 -7
- package/dist/components/step-item/index.vue +126 -126
- package/dist/components/step-item/style.less +362 -362
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/index.vue +146 -146
- package/dist/components/style/index.vue +42 -42
- package/dist/components/switch/index.js +8 -8
- package/dist/components/switch/index.vue +72 -72
- package/dist/components/switch/style.less +56 -56
- package/dist/components/tab/index.js +7 -7
- package/dist/components/tab/index.vue +94 -93
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.vue +281 -271
- package/dist/components/tabs/style.less +408 -409
- package/dist/components/tag/index.js +6 -6
- package/dist/components/tag/index.vue +64 -64
- package/dist/components/tag/style.less +210 -210
- package/dist/components/title/index.js +8 -8
- package/dist/components/title/index.vue +99 -99
- package/dist/components/title/style.less +187 -187
- package/dist/components/toast/index.js +97 -86
- package/dist/components/toast/index.vue +49 -49
- package/dist/components/toast/style.less +57 -57
- package/dist/components/transition/index.js +8 -8
- package/dist/components/transition/index.vue +13 -13
- package/dist/components/transition/style.less +208 -208
- package/dist/components/upload/index.js +6 -6
- package/dist/components/upload/index.vue +106 -106
- package/dist/components/upload/style.less +147 -147
- package/dist/components/utils/assist.js +34 -34
- package/dist/components/utils/env.js +21 -21
- package/dist/locale/ar.js +97 -97
- package/dist/locale/en.js +97 -97
- package/dist/locale/zh.js +97 -97
- package/dist/token.css +2988 -2988
- package/dist/vdesign-ui.common.js +308 -8512
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +312 -8516
- package/dist/vdesign-ui.umd.min.js +2 -8
- package/package.json +113 -113
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
@upload-prefix-cls: vd-upload;
|
|
2
|
-
|
|
3
|
-
.@{upload-prefix-cls}{
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
width: 100%;
|
|
7
|
-
overflow-x: auto;
|
|
8
|
-
|
|
9
|
-
&--block{
|
|
10
|
-
display: flex;
|
|
11
|
-
width: 100%;
|
|
12
|
-
.@{upload-prefix-cls}{
|
|
13
|
-
&__wrapper{
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
&__uploader{
|
|
17
|
-
width: 100%;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__wrapper{
|
|
23
|
-
display: flex;
|
|
24
|
-
gap: 12px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__uploader{
|
|
28
|
-
position: relative;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
height: var(--height-upload-bg);
|
|
34
|
-
min-width: var(--width-upload-small);
|
|
35
|
-
background-color: var(--color-upload-bg);
|
|
36
|
-
border-radius: var(--radius-upload-content);
|
|
37
|
-
|
|
38
|
-
&--text{
|
|
39
|
-
padding-block-start: var(--spacing-upload-padding_top);
|
|
40
|
-
padding-block-end: var(--spacing-upload-padding_bottom);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&__preview{
|
|
45
|
-
position: relative;
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
width: var(--width-upload-small);
|
|
50
|
-
border-radius: var(--radius-upload-content);
|
|
51
|
-
|
|
52
|
-
&--pdf{
|
|
53
|
-
background-color: var(--color-upload-pdf-bg);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&-delete{
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 0;
|
|
59
|
-
right: 0;
|
|
60
|
-
width: 24px;
|
|
61
|
-
height: 24px;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
border-radius: 0 var(--radius-upload-content);
|
|
66
|
-
background-color: var(--color-upload-close_bg);
|
|
67
|
-
&-icon{
|
|
68
|
-
font-size: var(--icon-upload-close);
|
|
69
|
-
color: #ffffff;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
&-word{
|
|
73
|
-
color: var(--color-upload-pdf-text);
|
|
74
|
-
font-size: var(--en-single-f-f-b-fontSize);
|
|
75
|
-
font-weight: var(--en-single-f-f-b-fontWeight);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&-img{
|
|
79
|
-
img{
|
|
80
|
-
object-fit: cover;
|
|
81
|
-
width: var(--height-upload-bg);
|
|
82
|
-
height: var(--height-upload-bg);
|
|
83
|
-
border-radius: var(--radius-upload-content);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&__icon{
|
|
89
|
-
font-size: var(--icon-upload-size);
|
|
90
|
-
color: var(--color-upload-icon);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&__text{
|
|
94
|
-
margin-block-start: var(--spacing-upload-text-margin_top);
|
|
95
|
-
color: var(--color-upload-text);
|
|
96
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
97
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&__input{
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: 0;
|
|
103
|
-
left: 0;
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: 100%;
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
cursor: pointer;
|
|
108
|
-
opacity: 0;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.vd-image-preview{
|
|
113
|
-
display: flex;
|
|
114
|
-
flex-direction: column;
|
|
115
|
-
position: fixed;
|
|
116
|
-
top: 0;
|
|
117
|
-
left: 0;
|
|
118
|
-
z-index: 2001;
|
|
119
|
-
width: 100%;
|
|
120
|
-
height: 100%;
|
|
121
|
-
background-color: var(--color-dialog-mask_bg);
|
|
122
|
-
background: rgba(0,0,0,.8);
|
|
123
|
-
|
|
124
|
-
&__item{
|
|
125
|
-
flex-grow: 1;
|
|
126
|
-
position: relative;
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
align-items: center;
|
|
130
|
-
img{
|
|
131
|
-
display: block;
|
|
132
|
-
object-fit: contain;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
[lang='ar'] {
|
|
138
|
-
.@{upload-prefix-cls}{
|
|
139
|
-
&__preview{
|
|
140
|
-
&-delete{
|
|
141
|
-
left: 0;
|
|
142
|
-
right: auto;
|
|
143
|
-
border-radius: var(--radius-upload-content) 0;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
1
|
+
@upload-prefix-cls: vd-upload;
|
|
2
|
+
|
|
3
|
+
.@{upload-prefix-cls}{
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
|
|
9
|
+
&--block{
|
|
10
|
+
display: flex;
|
|
11
|
+
width: 100%;
|
|
12
|
+
.@{upload-prefix-cls}{
|
|
13
|
+
&__wrapper{
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
&__uploader{
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__wrapper{
|
|
23
|
+
display: flex;
|
|
24
|
+
gap: 12px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__uploader{
|
|
28
|
+
position: relative;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
height: var(--height-upload-bg);
|
|
34
|
+
min-width: var(--width-upload-small);
|
|
35
|
+
background-color: var(--color-upload-bg);
|
|
36
|
+
border-radius: var(--radius-upload-content);
|
|
37
|
+
|
|
38
|
+
&--text{
|
|
39
|
+
padding-block-start: var(--spacing-upload-padding_top);
|
|
40
|
+
padding-block-end: var(--spacing-upload-padding_bottom);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__preview{
|
|
45
|
+
position: relative;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
width: var(--width-upload-small);
|
|
50
|
+
border-radius: var(--radius-upload-content);
|
|
51
|
+
|
|
52
|
+
&--pdf{
|
|
53
|
+
background-color: var(--color-upload-pdf-bg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-delete{
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 0;
|
|
59
|
+
right: 0;
|
|
60
|
+
width: 24px;
|
|
61
|
+
height: 24px;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
border-radius: 0 var(--radius-upload-content);
|
|
66
|
+
background-color: var(--color-upload-close_bg);
|
|
67
|
+
&-icon{
|
|
68
|
+
font-size: var(--icon-upload-close);
|
|
69
|
+
color: #ffffff;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&-word{
|
|
73
|
+
color: var(--color-upload-pdf-text);
|
|
74
|
+
font-size: var(--en-single-f-f-b-fontSize);
|
|
75
|
+
font-weight: var(--en-single-f-f-b-fontWeight);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-img{
|
|
79
|
+
img{
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
width: var(--height-upload-bg);
|
|
82
|
+
height: var(--height-upload-bg);
|
|
83
|
+
border-radius: var(--radius-upload-content);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__icon{
|
|
89
|
+
font-size: var(--icon-upload-size);
|
|
90
|
+
color: var(--color-upload-icon);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__text{
|
|
94
|
+
margin-block-start: var(--spacing-upload-text-margin_top);
|
|
95
|
+
color: var(--color-upload-text);
|
|
96
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
97
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__input{
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.vd-image-preview{
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
position: fixed;
|
|
116
|
+
top: 0;
|
|
117
|
+
left: 0;
|
|
118
|
+
z-index: 2001;
|
|
119
|
+
width: 100%;
|
|
120
|
+
height: 100%;
|
|
121
|
+
background-color: var(--color-dialog-mask_bg);
|
|
122
|
+
background: rgba(0,0,0,.8);
|
|
123
|
+
|
|
124
|
+
&__item{
|
|
125
|
+
flex-grow: 1;
|
|
126
|
+
position: relative;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
align-items: center;
|
|
130
|
+
img{
|
|
131
|
+
display: block;
|
|
132
|
+
object-fit: contain;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[lang='ar'] {
|
|
138
|
+
.@{upload-prefix-cls}{
|
|
139
|
+
&__preview{
|
|
140
|
+
&-delete{
|
|
141
|
+
left: 0;
|
|
142
|
+
right: auto;
|
|
143
|
+
border-radius: var(--radius-upload-content) 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Find components downward
|
|
4
|
-
export function findComponentsDownward (context, componentName, ignoreComponentNames = []) {
|
|
5
|
-
if (!Array.isArray(ignoreComponentNames)) {
|
|
6
|
-
ignoreComponentNames = [ignoreComponentNames];
|
|
7
|
-
}
|
|
8
|
-
return context.$children.reduce((components, child) => {
|
|
9
|
-
if (child.$options.name === componentName) components.push(child);
|
|
10
|
-
if (ignoreComponentNames.indexOf(child.$options.name) < 0) {
|
|
11
|
-
const foundChilds = findComponentsDownward(child, componentName);
|
|
12
|
-
return components.concat(foundChilds);
|
|
13
|
-
} else {
|
|
14
|
-
return components;
|
|
15
|
-
}
|
|
16
|
-
}, []);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Find components upward
|
|
20
|
-
export function findComponentUpward (context, componentName, componentNames) {
|
|
21
|
-
if (typeof componentName === 'string') {
|
|
22
|
-
componentNames = [componentName];
|
|
23
|
-
} else {
|
|
24
|
-
componentNames = componentName;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let parent = context.$parent;
|
|
28
|
-
let name = parent.$options.name;
|
|
29
|
-
while (parent && (!name || componentNames.indexOf(name) < 0)) {
|
|
30
|
-
parent = parent.$parent;
|
|
31
|
-
if (parent) name = parent.$options.name;
|
|
32
|
-
}
|
|
33
|
-
return parent;
|
|
34
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
// Find components downward
|
|
4
|
+
export function findComponentsDownward (context, componentName, ignoreComponentNames = []) {
|
|
5
|
+
if (!Array.isArray(ignoreComponentNames)) {
|
|
6
|
+
ignoreComponentNames = [ignoreComponentNames];
|
|
7
|
+
}
|
|
8
|
+
return context.$children.reduce((components, child) => {
|
|
9
|
+
if (child.$options.name === componentName) components.push(child);
|
|
10
|
+
if (ignoreComponentNames.indexOf(child.$options.name) < 0) {
|
|
11
|
+
const foundChilds = findComponentsDownward(child, componentName);
|
|
12
|
+
return components.concat(foundChilds);
|
|
13
|
+
} else {
|
|
14
|
+
return components;
|
|
15
|
+
}
|
|
16
|
+
}, []);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Find components upward
|
|
20
|
+
export function findComponentUpward (context, componentName, componentNames) {
|
|
21
|
+
if (typeof componentName === 'string') {
|
|
22
|
+
componentNames = [componentName];
|
|
23
|
+
} else {
|
|
24
|
+
componentNames = componentName;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let parent = context.$parent;
|
|
28
|
+
let name = parent.$options.name;
|
|
29
|
+
while (parent && (!name || componentNames.indexOf(name) < 0)) {
|
|
30
|
+
parent = parent.$parent;
|
|
31
|
+
if (parent) name = parent.$options.name;
|
|
32
|
+
}
|
|
33
|
+
return parent;
|
|
34
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
|
|
3
|
-
export const inBrowser = typeof window !== 'undefined';
|
|
4
|
-
|
|
5
|
-
export const isServer = Vue.prototype.$isServer;
|
|
6
|
-
|
|
7
|
-
export function isObject(val) {
|
|
8
|
-
return val !== null && typeof val === 'object';
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function isInDocument(element) {
|
|
12
|
-
return document.body.contains(element);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function removeNode(el) {
|
|
16
|
-
const parent = el.parentNode;
|
|
17
|
-
|
|
18
|
-
if (parent) {
|
|
19
|
-
parent.removeChild(el);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
|
|
3
|
+
export const inBrowser = typeof window !== 'undefined';
|
|
4
|
+
|
|
5
|
+
export const isServer = Vue.prototype.$isServer;
|
|
6
|
+
|
|
7
|
+
export function isObject(val) {
|
|
8
|
+
return val !== null && typeof val === 'object';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function isInDocument(element) {
|
|
12
|
+
return document.body.contains(element);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function removeNode(el) {
|
|
16
|
+
const parent = el.parentNode;
|
|
17
|
+
|
|
18
|
+
if (parent) {
|
|
19
|
+
parent.removeChild(el);
|
|
20
|
+
}
|
|
21
|
+
}
|
package/dist/locale/ar.js
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
message: {
|
|
3
|
-
hello: "مرحبا العالم"
|
|
4
|
-
},
|
|
5
|
-
button: {
|
|
6
|
-
loading: "تحميل .",
|
|
7
|
-
default: "خرق",
|
|
8
|
-
primary: "الرئيسية الرئيسية",
|
|
9
|
-
secondary: "ثانوي",
|
|
10
|
-
warning: "حذر",
|
|
11
|
-
warning_grey: "تحذير رمادي",
|
|
12
|
-
tertiary: "المستوى الثالث",
|
|
13
|
-
tertiary_grey: "التعليم العالي رمادي",
|
|
14
|
-
wireframe: "خط الإطار",
|
|
15
|
-
primary_text: "primary_text",
|
|
16
|
-
warning_text: "النص الرئيسي",
|
|
17
|
-
tertiary_text: "نص المستوى الثالث",
|
|
18
|
-
link_text: "ربط النص",
|
|
19
|
-
small: "صغير",
|
|
20
|
-
medium: "متوسط",
|
|
21
|
-
large: "كبير",
|
|
22
|
-
disabled: "تعطيل",
|
|
23
|
-
block: "كتلة",
|
|
24
|
-
buy: "شراء",
|
|
25
|
-
sell: "بيع .",
|
|
26
|
-
text: "زر النص"
|
|
27
|
-
},
|
|
28
|
-
actionbar: {
|
|
29
|
-
text: "شريط العمل",
|
|
30
|
-
filter: "عنوان",
|
|
31
|
-
edit: "عنوان",
|
|
32
|
-
add: "عنوان",
|
|
33
|
-
delete: "عنوان",
|
|
34
|
-
more: "عنوان",
|
|
35
|
-
reset: "عنوان",
|
|
36
|
-
create: "عنوان",
|
|
37
|
-
alert: "عنوان",
|
|
38
|
-
chart: "عنوان"
|
|
39
|
-
},
|
|
40
|
-
title: {
|
|
41
|
-
text: "عنوان"
|
|
42
|
-
},
|
|
43
|
-
radio: {
|
|
44
|
-
text: "مذياع"
|
|
45
|
-
},
|
|
46
|
-
checkbox: {
|
|
47
|
-
text: "مذياع"
|
|
48
|
-
},
|
|
49
|
-
dropdown: {
|
|
50
|
-
text: "اسقاط",
|
|
51
|
-
text1: "المحدد",
|
|
52
|
-
text2: "المحدد",
|
|
53
|
-
text3: "المحدد"
|
|
54
|
-
},
|
|
55
|
-
tab: {
|
|
56
|
-
text: "فاتورة غير مدفوعة"
|
|
57
|
-
},
|
|
58
|
-
empty: {
|
|
59
|
-
description: "لايوجد بيانات"
|
|
60
|
-
},
|
|
61
|
-
result: {
|
|
62
|
-
text: "يستخدم هذا النوع بشكل أساسي في النوافذ المنبثقة الأساسية للتنبيه",
|
|
63
|
-
title: "عنوان"
|
|
64
|
-
},
|
|
65
|
-
selector: {
|
|
66
|
-
text: "محدد"
|
|
67
|
-
},
|
|
68
|
-
alert: {
|
|
69
|
-
title: "نمط العنوان",
|
|
70
|
-
content: "هذا هو نوع من منبهات الأساسية...",
|
|
71
|
-
long: "هذا هو نوع من منبهات الأساسية...",
|
|
72
|
-
confirm: "أكّد",
|
|
73
|
-
cancel: "ألغى",
|
|
74
|
-
delete: "حذف"
|
|
75
|
-
},
|
|
76
|
-
noticebar: {
|
|
77
|
-
title: "القمر في الصباح الباكر ، قليلة هي لينة ، وسادة يهز بهدوء .",
|
|
78
|
-
content: "القمر في الصباح الباكر...",
|
|
79
|
-
button: "الأزرار",
|
|
80
|
-
state: "حذف"
|
|
81
|
-
},
|
|
82
|
-
steps: {
|
|
83
|
-
title: "محدد",
|
|
84
|
-
text: "نمط العنوان",
|
|
85
|
-
content: "القمر في الصباح الباكر..."
|
|
86
|
-
},
|
|
87
|
-
divider: {
|
|
88
|
-
text: "العنوان"
|
|
89
|
-
},
|
|
90
|
-
footnav: {
|
|
91
|
-
text: "العنوان"
|
|
92
|
-
},
|
|
93
|
-
list: {
|
|
94
|
-
title: "العنوان",
|
|
95
|
-
text: "القمر في الصباح الباكر..."
|
|
96
|
-
}
|
|
97
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
message: {
|
|
3
|
+
hello: "مرحبا العالم"
|
|
4
|
+
},
|
|
5
|
+
button: {
|
|
6
|
+
loading: "تحميل .",
|
|
7
|
+
default: "خرق",
|
|
8
|
+
primary: "الرئيسية الرئيسية",
|
|
9
|
+
secondary: "ثانوي",
|
|
10
|
+
warning: "حذر",
|
|
11
|
+
warning_grey: "تحذير رمادي",
|
|
12
|
+
tertiary: "المستوى الثالث",
|
|
13
|
+
tertiary_grey: "التعليم العالي رمادي",
|
|
14
|
+
wireframe: "خط الإطار",
|
|
15
|
+
primary_text: "primary_text",
|
|
16
|
+
warning_text: "النص الرئيسي",
|
|
17
|
+
tertiary_text: "نص المستوى الثالث",
|
|
18
|
+
link_text: "ربط النص",
|
|
19
|
+
small: "صغير",
|
|
20
|
+
medium: "متوسط",
|
|
21
|
+
large: "كبير",
|
|
22
|
+
disabled: "تعطيل",
|
|
23
|
+
block: "كتلة",
|
|
24
|
+
buy: "شراء",
|
|
25
|
+
sell: "بيع .",
|
|
26
|
+
text: "زر النص"
|
|
27
|
+
},
|
|
28
|
+
actionbar: {
|
|
29
|
+
text: "شريط العمل",
|
|
30
|
+
filter: "عنوان",
|
|
31
|
+
edit: "عنوان",
|
|
32
|
+
add: "عنوان",
|
|
33
|
+
delete: "عنوان",
|
|
34
|
+
more: "عنوان",
|
|
35
|
+
reset: "عنوان",
|
|
36
|
+
create: "عنوان",
|
|
37
|
+
alert: "عنوان",
|
|
38
|
+
chart: "عنوان"
|
|
39
|
+
},
|
|
40
|
+
title: {
|
|
41
|
+
text: "عنوان"
|
|
42
|
+
},
|
|
43
|
+
radio: {
|
|
44
|
+
text: "مذياع"
|
|
45
|
+
},
|
|
46
|
+
checkbox: {
|
|
47
|
+
text: "مذياع"
|
|
48
|
+
},
|
|
49
|
+
dropdown: {
|
|
50
|
+
text: "اسقاط",
|
|
51
|
+
text1: "المحدد",
|
|
52
|
+
text2: "المحدد",
|
|
53
|
+
text3: "المحدد"
|
|
54
|
+
},
|
|
55
|
+
tab: {
|
|
56
|
+
text: "فاتورة غير مدفوعة"
|
|
57
|
+
},
|
|
58
|
+
empty: {
|
|
59
|
+
description: "لايوجد بيانات"
|
|
60
|
+
},
|
|
61
|
+
result: {
|
|
62
|
+
text: "يستخدم هذا النوع بشكل أساسي في النوافذ المنبثقة الأساسية للتنبيه",
|
|
63
|
+
title: "عنوان"
|
|
64
|
+
},
|
|
65
|
+
selector: {
|
|
66
|
+
text: "محدد"
|
|
67
|
+
},
|
|
68
|
+
alert: {
|
|
69
|
+
title: "نمط العنوان",
|
|
70
|
+
content: "هذا هو نوع من منبهات الأساسية...",
|
|
71
|
+
long: "هذا هو نوع من منبهات الأساسية...",
|
|
72
|
+
confirm: "أكّد",
|
|
73
|
+
cancel: "ألغى",
|
|
74
|
+
delete: "حذف"
|
|
75
|
+
},
|
|
76
|
+
noticebar: {
|
|
77
|
+
title: "القمر في الصباح الباكر ، قليلة هي لينة ، وسادة يهز بهدوء .",
|
|
78
|
+
content: "القمر في الصباح الباكر...",
|
|
79
|
+
button: "الأزرار",
|
|
80
|
+
state: "حذف"
|
|
81
|
+
},
|
|
82
|
+
steps: {
|
|
83
|
+
title: "محدد",
|
|
84
|
+
text: "نمط العنوان",
|
|
85
|
+
content: "القمر في الصباح الباكر..."
|
|
86
|
+
},
|
|
87
|
+
divider: {
|
|
88
|
+
text: "العنوان"
|
|
89
|
+
},
|
|
90
|
+
footnav: {
|
|
91
|
+
text: "العنوان"
|
|
92
|
+
},
|
|
93
|
+
list: {
|
|
94
|
+
title: "العنوان",
|
|
95
|
+
text: "القمر في الصباح الباكر..."
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
98
|
|