vdesign-ui 0.1.17 → 0.1.19

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.
Files changed (192) hide show
  1. package/dist/css/chunk-1952c402.04c2303e.css +1 -0
  2. package/dist/css/chunk-6a5c6104.38021b56.css +1 -0
  3. package/dist/css/chunk-vendors.4ecfba63.css +1 -0
  4. package/dist/css/sites.395ce21f.css +1 -0
  5. package/dist/img/404-dark.775df5bb.png +0 -0
  6. package/dist/img/bg_mobile.5909f667.png +0 -0
  7. package/dist/img/completed-dark.4183a8a8.png +0 -0
  8. package/dist/img/error-dark.b80857da.png +0 -0
  9. package/dist/img/icon.a67073c3.svg +7 -0
  10. package/dist/img/iphoneX.38c8778e.png +0 -0
  11. package/dist/img/logo-white.fad4f907.png +0 -0
  12. package/dist/img/logo.1eda11d6.png +0 -0
  13. package/dist/img/network-dark.11a147bb.png +0 -0
  14. package/dist/img/nodata-dark.b0ea0e39.png +0 -0
  15. package/dist/img/qrcode2.0a9d9044.png +0 -0
  16. package/dist/img/wait-dark.6aa28731.png +0 -0
  17. package/dist/index.html +1 -0
  18. package/dist/js/chunk-1952c402.c58ecfb5.js +1 -0
  19. package/dist/js/chunk-2d2183be.2a64419d.js +1 -0
  20. package/dist/js/chunk-6a5c6104.c8fa5635.js +1 -0
  21. package/dist/js/chunk-vendors.490b7673.js +37 -0
  22. package/dist/js/sites.5a217467.js +1 -0
  23. package/package.json +3 -3
  24. package/dist/components/actionbar/actionbar-cell/index.vue +0 -34
  25. package/dist/components/actionbar/index.js +0 -8
  26. package/dist/components/actionbar/index.vue +0 -39
  27. package/dist/components/actionbar/style.less +0 -48
  28. package/dist/components/actions-cell/actions/index.js +0 -7
  29. package/dist/components/actions-cell/actions/index.vue +0 -68
  30. package/dist/components/actions-cell/actions/style.less +0 -94
  31. package/dist/components/actions-cell/index.js +0 -7
  32. package/dist/components/actions-cell/index.vue +0 -94
  33. package/dist/components/actions-cell/style.less +0 -39
  34. package/dist/components/activityviews/index.js +0 -8
  35. package/dist/components/activityviews/index.vue +0 -107
  36. package/dist/components/activityviews/style.less +0 -152
  37. package/dist/components/badge/index.js +0 -8
  38. package/dist/components/badge/index.vue +0 -49
  39. package/dist/components/badge/style.less +0 -66
  40. package/dist/components/button/index.js +0 -8
  41. package/dist/components/button/index.vue +0 -89
  42. package/dist/components/button/style.less +0 -563
  43. package/dist/components/calendar/end.png +0 -0
  44. package/dist/components/calendar/index-element.vue +0 -84
  45. package/dist/components/calendar/index.js +0 -8
  46. package/dist/components/calendar/index.vue +0 -52
  47. package/dist/components/calendar/start.png +0 -0
  48. package/dist/components/calendar/style.less +0 -167
  49. package/dist/components/checkbox/assist.js +0 -34
  50. package/dist/components/checkbox/checkbox-group/index.js +0 -8
  51. package/dist/components/checkbox/checkbox-group/index.vue +0 -69
  52. package/dist/components/checkbox/index.js +0 -8
  53. package/dist/components/checkbox/index.vue +0 -184
  54. package/dist/components/checkbox/style.less +0 -289
  55. package/dist/components/common/state/index.vue +0 -80
  56. package/dist/components/data-list/index.js +0 -10
  57. package/dist/components/data-list/index.vue +0 -19
  58. package/dist/components/data-list/style.less +0 -624
  59. package/dist/components/datetime-picker/index.js +0 -8
  60. package/dist/components/datetime-picker/index.vue +0 -37
  61. package/dist/components/datetime-picker/style.less +0 -24
  62. package/dist/components/dialog/index copy.vue +0 -112
  63. package/dist/components/dialog/index.js +0 -8
  64. package/dist/components/dialog/index.vue +0 -112
  65. package/dist/components/dialog/style.less +0 -122
  66. package/dist/components/divider/index.js +0 -8
  67. package/dist/components/divider/index.vue +0 -54
  68. package/dist/components/divider/style.less +0 -92
  69. package/dist/components/dropdown/index.js +0 -8
  70. package/dist/components/dropdown/index.vue +0 -210
  71. package/dist/components/dropdown/style.less +0 -402
  72. package/dist/components/empty/empty-404.png +0 -0
  73. package/dist/components/empty/empty-img.png +0 -0
  74. package/dist/components/empty/empty-network.png +0 -0
  75. package/dist/components/empty/index.js +0 -8
  76. package/dist/components/empty/index.vue +0 -65
  77. package/dist/components/empty/style.less +0 -53
  78. package/dist/components/footer/index.js +0 -7
  79. package/dist/components/footer/index.vue +0 -29
  80. package/dist/components/footer/style.less +0 -22
  81. package/dist/components/footnav/footnav-item/index.js +0 -7
  82. package/dist/components/footnav/footnav-item/index.vue +0 -75
  83. package/dist/components/footnav/footnav-item/style.less +0 -39
  84. package/dist/components/footnav/index.js +0 -7
  85. package/dist/components/footnav/index.vue +0 -82
  86. package/dist/components/footnav/style.less +0 -22
  87. package/dist/components/form/index.js +0 -7
  88. package/dist/components/form/index.vue +0 -12
  89. package/dist/components/headnav/index.js +0 -7
  90. package/dist/components/headnav/index.vue +0 -139
  91. package/dist/components/headnav/style.less +0 -232
  92. package/dist/components/icon/font/iconfont.css +0 -817
  93. package/dist/components/icon/font/iconfont.js +0 -2
  94. package/dist/components/icon/index.js +0 -9
  95. package/dist/components/icon/index.vue +0 -46
  96. package/dist/components/icon/style.less +0 -44
  97. package/dist/components/input/calcTextareaHeight.js +0 -266
  98. package/dist/components/input/index.js +0 -8
  99. package/dist/components/input/index.vue +0 -343
  100. package/dist/components/input/password/index.js +0 -8
  101. package/dist/components/input/password/index.vue +0 -60
  102. package/dist/components/input/search/index.js +0 -8
  103. package/dist/components/input/search/index.vue +0 -66
  104. package/dist/components/input/stepper/index.js +0 -8
  105. package/dist/components/input/stepper/index.vue +0 -136
  106. package/dist/components/input/style.less +0 -496
  107. package/dist/components/list/index.js +0 -8
  108. package/dist/components/list/index.vue +0 -159
  109. package/dist/components/list/style.less +0 -292
  110. package/dist/components/loading/index.js +0 -7
  111. package/dist/components/loading/index.vue +0 -53
  112. package/dist/components/loading/loading.png +0 -0
  113. package/dist/components/loading/refresh.png +0 -0
  114. package/dist/components/loading/style.less +0 -48
  115. package/dist/components/mixins/clickoutside.js +0 -81
  116. package/dist/components/mixins/dom.js +0 -41
  117. package/dist/components/mixins/languageMixin.js +0 -38
  118. package/dist/components/mixins/outlineConfigPlugin.js +0 -40
  119. package/dist/components/mixins/router-link.js +0 -23
  120. package/dist/components/noticebar/index.js +0 -8
  121. package/dist/components/noticebar/index.vue +0 -246
  122. package/dist/components/noticebar/style.less +0 -309
  123. package/dist/components/overlay/index.js +0 -8
  124. package/dist/components/overlay/index.vue +0 -161
  125. package/dist/components/overlay/style.less +0 -23
  126. package/dist/components/pagebreak/index.js +0 -7
  127. package/dist/components/pagebreak/index.vue +0 -60
  128. package/dist/components/pagebreak/style.less +0 -43
  129. package/dist/components/popover/index.js +0 -8
  130. package/dist/components/popover/index.vue +0 -99
  131. package/dist/components/popover/style.less +0 -349
  132. package/dist/components/popover/vue-popover.vue +0 -314
  133. package/dist/components/radio/assist.js +0 -34
  134. package/dist/components/radio/index.js +0 -8
  135. package/dist/components/radio/index.vue +0 -159
  136. package/dist/components/radio/radio-group/index.vue +0 -70
  137. package/dist/components/radio/style.less +0 -297
  138. package/dist/components/result/completed.png +0 -0
  139. package/dist/components/result/error.png +0 -0
  140. package/dist/components/result/index.js +0 -8
  141. package/dist/components/result/index.vue +0 -47
  142. package/dist/components/result/style.less +0 -42
  143. package/dist/components/result/wait.png +0 -0
  144. package/dist/components/selector/index.js +0 -8
  145. package/dist/components/selector/index.vue +0 -124
  146. package/dist/components/selector/style.less +0 -474
  147. package/dist/components/skeleton/index.js +0 -7
  148. package/dist/components/skeleton/index.vue +0 -142
  149. package/dist/components/skeleton/style.less +0 -192
  150. package/dist/components/slider/draggable.js +0 -49
  151. package/dist/components/slider/index.js +0 -7
  152. package/dist/components/slider/index.vue +0 -173
  153. package/dist/components/slider/style.less +0 -95
  154. package/dist/components/slider/utils.js +0 -60
  155. package/dist/components/step/index.js +0 -7
  156. package/dist/components/step/index.vue +0 -48
  157. package/dist/components/step/style.less +0 -59
  158. package/dist/components/step-item/index.js +0 -7
  159. package/dist/components/step-item/index.vue +0 -89
  160. package/dist/components/step-item/style.less +0 -361
  161. package/dist/components/style/index.vue +0 -42
  162. package/dist/components/switch/index.js +0 -8
  163. package/dist/components/switch/index.vue +0 -72
  164. package/dist/components/switch/style.less +0 -54
  165. package/dist/components/tabs/index.js +0 -8
  166. package/dist/components/tabs/index.vue +0 -145
  167. package/dist/components/tabs/style.less +0 -383
  168. package/dist/components/tabs/tab/index.vue +0 -56
  169. package/dist/components/tag/index.js +0 -7
  170. package/dist/components/tag/index.vue +0 -50
  171. package/dist/components/tag/style.less +0 -211
  172. package/dist/components/title/index.js +0 -8
  173. package/dist/components/title/index.vue +0 -92
  174. package/dist/components/title/style.less +0 -188
  175. package/dist/components/toast/index.js +0 -80
  176. package/dist/components/toast/index.vue +0 -44
  177. package/dist/components/toast/style.less +0 -55
  178. package/dist/components/transition/index.js +0 -8
  179. package/dist/components/transition/index.vue +0 -13
  180. package/dist/components/transition/style.less +0 -208
  181. package/dist/components/upload/index.js +0 -7
  182. package/dist/components/upload/index.vue +0 -224
  183. package/dist/components/upload/style.less +0 -156
  184. package/dist/demo.html +0 -10
  185. package/dist/locale/ar.js +0 -98
  186. package/dist/locale/en.js +0 -98
  187. package/dist/locale/zh.js +0 -98
  188. package/dist/token.css +0 -2973
  189. package/dist/vdesign-ui.common.js +0 -26919
  190. package/dist/vdesign-ui.css +0 -1
  191. package/dist/vdesign-ui.umd.js +0 -26929
  192. package/dist/vdesign-ui.umd.min.js +0 -32
@@ -1,60 +0,0 @@
1
- <template>
2
- <div class="vd-password">
3
- <input type="tel" :maxlength="length" v-model="innerValue" @input="handleInput" @focus="handleFocus"
4
- @blur="handleBlur" class="vd-password__input" />
5
- <div class="vd-password__security">
6
- <div class="vd-password__item" v-for="n in length" :key="n" :class="{ 'is-filled': n > innerValue.length }">
7
- <template v-if="mask">
8
- <i v-if="n <= innerValue.length" class="mask-icon"></i>
9
- </template>
10
- <template v-else>
11
- {{ innerValue[n - 1] }}
12
- </template>
13
- </div>
14
- </div>
15
- </div>
16
- </template>
17
-
18
- <script>
19
- export default {
20
- name: "vd-password",
21
- props: {
22
- value: {
23
- type: String,
24
- },
25
- length: {
26
- type: Number,
27
- default: 6,
28
- },
29
- mask: {
30
- type: Boolean,
31
- default: true,
32
- },
33
- },
34
- data() {
35
- return {
36
- innerValue: this.value,
37
- };
38
- },
39
- watch: {
40
- value(val) {
41
- this.innerValue = val;
42
- },
43
- },
44
- methods: {
45
- handleInput(e) {
46
- this.innerValue = e.target.value.slice(0, this.length);
47
- this.$emit("input", this.innerValue);
48
- if (this.innerValue.length === this.length) {
49
- this.$emit("complete", this.innerValue);
50
- }
51
- },
52
- handleFocus() {
53
- this.$emit("focus");
54
- },
55
- handleBlur() {
56
- this.$emit("blur");
57
- },
58
- },
59
- };
60
- </script>
@@ -1,8 +0,0 @@
1
- import Search from './index.vue';
2
- import './style.less';
3
-
4
- Search.install = function (Vue) {
5
- Vue.component(Search.name, Search);
6
- };
7
-
8
- export default Search;
@@ -1,66 +0,0 @@
1
- <template>
2
- <div class="vd-search">
3
- <div class="vd-search-content">
4
- <span v-if="prefix || $slots.prefix" class="vd-search__prefix">
5
- <slot name="prefix">
6
- <vd-icon name="icon_nav_search"></vd-icon>
7
- </slot>
8
- </span>
9
- <!-- <input :type="type" :class="inputClasses" :placeholder="placeholder"> -->
10
- <vd-input
11
- v-bind="$attrs"
12
- v-on="listeners"
13
- form="search"
14
- :hairline = "false"
15
- ></vd-input>
16
- <span v-if="suffix || $slots.suffix" class="vd-search__suffix">
17
- <slot name="suffix">
18
- <vd-icon v-if="suffix" name="icon_btn_clean"></vd-icon>
19
- </slot>
20
- </span>
21
-
22
- </div>
23
- <span class="vd-search__action" v-if="$slots.default">
24
- <slot></slot>
25
- </span>
26
- </div>
27
- </template>
28
-
29
- <script>
30
- const prefixCls = 'vd-search';
31
- export default {
32
- name: 'vd-search',
33
- inheritAttrs: false,
34
- props: {
35
- type: {
36
- type: String,
37
- default: 'text'
38
- },
39
- prefix: {
40
- type: Boolean,
41
- },
42
- suffix: {
43
- type: Boolean,
44
- },
45
- },
46
- data() {
47
- return {
48
- }
49
- },
50
- computed: {
51
- inputClasses() {
52
- return [
53
- `${prefixCls}__control`
54
- ]
55
- },
56
- listeners() {
57
- return {
58
- ...this.$listeners,
59
- };
60
- }
61
- },
62
- methods: {
63
-
64
- }
65
- }
66
- </script>
@@ -1,8 +0,0 @@
1
- import Stepper from './index.vue';
2
- import './style.less';
3
-
4
- Stepper.install = function (Vue) {
5
- Vue.component(Stepper.name, Stepper);
6
- };
7
-
8
- export default Stepper;
@@ -1,136 +0,0 @@
1
- <template>
2
- <div class="vd-stepper" :class="wrapClasses">
3
- <vd-button v-if="!position" :class="minusButtonClass" icon="icon_btn_reduce" size="small"
4
- @click="onChange('minus')"></vd-button>
5
- <input type="number" :class="inputClasses" :disabled="disabled" :value="currentValue" :placeholder="placeholder" @input="onInput"
6
- @blur="onBlur">
7
- <vd-button v-if="position === 'right'" class="vd-stepper__minus" icon="icon_btn_reduce" size="small"
8
- @click="onChange('minus')"></vd-button>
9
- <vd-button :class="plusButtonClass" icon="icon_btn_add" size="small"
10
- @click="onChange('plus')"></vd-button>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import languageMixin from '@p/components/mixins/languageMixin.js';
16
-
17
- const prefixCls = 'vd-stepper';
18
- export default {
19
- mixins: [languageMixin],
20
- name: 'vd-stepper',
21
- props: {
22
- value: null,
23
- integer: Boolean,
24
- position: String,
25
- inputCenter: Boolean,
26
- disabled: Boolean,
27
- theme: String,
28
- min: {
29
- type: [String, Number],
30
- default: 1
31
- },
32
- max: {
33
- type: [String, Number],
34
- default: Infinity
35
- },
36
- step: {
37
- type: [String, Number],
38
- default: 1
39
- },
40
- placeholder:String
41
- },
42
- data() {
43
- const value = this.range(this.isDef(this.value) ? this.value : this.defaultValue);
44
- if (value !== +this.value) {
45
- this.$emit('input', value);
46
- }
47
- return {
48
- currentValue: value,
49
- }
50
- },
51
- computed: {
52
- inputClasses() {
53
- return [
54
- `${prefixCls}-input`,
55
- ]
56
- },
57
- wrapClasses() {
58
- return [
59
- {
60
- [`${prefixCls}--disabled`]: this.disabled,
61
- [`${prefixCls}--${this.theme}`]: this.theme,
62
- [`${prefixCls}--center`]: this.inputCenter
63
-
64
- }
65
- ]
66
- },
67
- minusButtonClass() {
68
- const hairlineClass = this.language === 'ar' ? 'vd-hairline--left' : 'vd-hairline--right';
69
- return `vd-stepper__minus ${hairlineClass}`;
70
- },
71
- plusButtonClass() {
72
- const hairlineClass = this.language === 'ar' ? 'vd-hairline--right' : 'vd-hairline--left';
73
- return `vd-stepper__plus ${hairlineClass}`;
74
- }
75
- // minusDisabled() {
76
- // return this.disabled || this.currentValue <= this.min;
77
- // },
78
-
79
- // plusDisabled() {
80
- // return this.disabled || this.currentValue >= this.max;
81
- // }
82
- },
83
- watch: {
84
- value(val) {
85
- if (val !== this.currentValue) {
86
- this.currentValue = this.format(val);
87
- }
88
- },
89
-
90
- currentValue(val) {
91
- this.$emit('input', val);
92
- this.$emit('change', val);
93
- }
94
- },
95
- methods: {
96
- format(value) {
97
- value = String(value).replace(/[^0-9.-]/g, '');
98
- return value === '' ? 0 : this.integer ? Math.floor(value) : +value;
99
- },
100
-
101
- // limit value range
102
- range(value) {
103
- return Math.max(Math.min(this.max, this.format(value)), this.min);
104
- },
105
-
106
- onInput(event) {
107
- const { value } = event.target;
108
- const formatted = this.format(value);
109
- if (+value !== formatted) {
110
- event.target.value = formatted;
111
- }
112
- this.currentValue = formatted;
113
- },
114
-
115
- onChange(type) {
116
- if (this[`${type}Disabled`]) {
117
- this.$emit('overlimit', type);
118
- return;
119
- }
120
- const diff = type === 'minus' ? -this.step : +this.step;
121
- const value = Math.round((this.currentValue + diff) * 100) / 100;
122
- this.currentValue = this.range(value);
123
-
124
- this.$emit(type);
125
- },
126
-
127
- onBlur(event) {
128
- this.currentValue = this.range(this.currentValue);
129
- this.$emit('blur', event);
130
- },
131
- isDef(value) {
132
- return value !== undefined && value !== null;
133
- }
134
- }
135
- }
136
- </script>