vdesign-ui 0.1.16 → 0.1.18

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 (40) hide show
  1. package/dist/components/actions-cell/actions/index.vue +22 -13
  2. package/dist/components/actions-cell/actions/style.less +37 -0
  3. package/dist/components/activityviews/index.vue +74 -42
  4. package/dist/components/activityviews/style.less +11 -7
  5. package/dist/components/checkbox/style.less +6 -4
  6. package/dist/components/data-list/style.less +7 -7
  7. package/dist/components/dialog/index.vue +12 -13
  8. package/dist/components/dialog/style.less +44 -34
  9. package/dist/components/dropdown/index.vue +1 -1
  10. package/dist/components/dropdown/style.less +16 -0
  11. package/dist/components/footer/style.less +1 -1
  12. package/dist/components/footnav/footnav-item/style.less +1 -0
  13. package/dist/components/icon/font/iconfont.css +1041 -817
  14. package/dist/components/icon/font/iconfont.js +1 -1
  15. package/dist/components/input/style.less +9 -8
  16. package/dist/components/list/style.less +8 -6
  17. package/dist/components/mixins/themeMixin.js +29 -0
  18. package/dist/components/noticebar/index.vue +4 -3
  19. package/dist/components/noticebar/style.less +23 -0
  20. package/dist/components/popover/style.less +1 -4
  21. package/dist/components/result/completed-dark.png +0 -0
  22. package/dist/components/result/error-dark.png +0 -0
  23. package/dist/components/result/index.vue +24 -5
  24. package/dist/components/result/wait-dark.png +0 -0
  25. package/dist/components/slider/style.less +1 -0
  26. package/dist/components/step-item/index.vue +40 -12
  27. package/dist/components/step-item/style.less +6 -6
  28. package/dist/components/switch/style.less +2 -0
  29. package/dist/components/tabs/index.vue +4 -1
  30. package/dist/components/tabs/style.less +12 -12
  31. package/dist/img/completed-dark.4183a8a8.png +0 -0
  32. package/dist/img/error-dark.b80857da.png +0 -0
  33. package/dist/img/wait-dark.6aa28731.png +0 -0
  34. package/dist/token.css +184 -176
  35. package/dist/vdesign-ui.common.js +417 -305
  36. package/dist/vdesign-ui.css +1 -1
  37. package/dist/vdesign-ui.umd.js +417 -305
  38. package/dist/vdesign-ui.umd.min.js +3 -3
  39. package/package.json +3 -3
  40. package/dist/components/dialog/index copy.vue +0 -112
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vdesign-ui",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "main": "dist/vdesign-ui.umd.js",
6
6
  "files": [
@@ -24,10 +24,10 @@
24
24
  "amfe-flexible": "^2.2.1",
25
25
  "concat": "^1.0.3",
26
26
  "core-js": "^3.6.5",
27
+ "popper.js": "^1.16.1",
27
28
  "vant": "^2.12.54",
28
29
  "vue": "^2.6.11",
29
- "vue-i18n": "^8.28.2",
30
- "popper.js": "^1.16.1"
30
+ "vue-i18n": "^8.28.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@commitlint/cli": "16.2.4",
@@ -1,112 +0,0 @@
1
- <template>
2
- <div class="vd-dialog-wrap" v-if="visible">
3
- <div v-if="visible && overlay" @click="close">
4
- <vd-overlay></vd-overlay>
5
- </div>
6
- <div class="vd-dialog" :class="`vd-dialog--${className}`">
7
- <header class="vd-dialog__header" :class="{ 'vd-dialog__header--img': imgs }">
8
- <div class="vd-dialog__header--img-content" v-if="imgs">
9
- <slot name="imgs"></slot>
10
- </div>
11
- <div class="vd-dialog__title">{{ title }}</div>
12
- </header>
13
- <div class="vd-dialog__content">
14
- <div class="vd-dialog__message" :class="{ 'vd-dialog__message--head': !title }" v-if="message">{{
15
- message
16
- }}</div>
17
- <slot name="content"></slot>
18
- </div>
19
- <!-- 这个地方需要加v-if判断吗 -->
20
- <footer class="vd-dialog__footer">
21
- <div class="vd-dialog__btns" v-if="btns">
22
- <vd-button type="tertiary_grey" size="large" @click="cancel">{{ cancelButtonText ||
23
- $t("alert.cancel") }}</vd-button>
24
- <vd-button type="large" @click="confirm">{{ confirmButtonText || $t("alert.confirm") }} </vd-button>
25
- </div>
26
- <div class="vd-dialog__btn" v-if="btn">
27
- <vd-button type="large" @click="confirm" block>{{ confirmButtonText || $t("alert.confirm")
28
- }}</vd-button>
29
- </div>
30
- <div class="vd-dialog__btns--text" v-if="btnsText">
31
- <vd-button type="tertiary" size="large" @click="cancel">{{ cancelButtonText || $t("alert.cancel")
32
- }}</vd-button>
33
- <vd-button type="primary_text" size="large" @click="confirm">{{ confirmButtonText ||
34
- $t("alert.confirm") }}</vd-button>
35
- </div>
36
- <div class="vd-dialog__btn--text-block" v-if="btnTextBlock">
37
- <vd-button type="primary_text" size="large" block @click="confirm">{{ confirmButtonText ||
38
- $t("alert.confirm") }}</vd-button>
39
- </div>
40
- <div class="vd-dialog__btns-block" v-if="btnsBlock">
41
- <vd-button type="primary" block size="large" @click="confirm">{{ confirmButtonText ||
42
- $t("alert.confirm") }}</vd-button>
43
- <vd-button type="primary_text" block size="large" @click="cancel">{{ cancelButtonText ||
44
- $t("alert.cancel") }}</vd-button>
45
- </div>
46
- <div class="vd-dialog__btns--text" v-if="extraBtn">
47
- <slot name="footerBtn"></slot>
48
- </div>
49
- </footer>
50
- </div>
51
- </div>
52
- </template>
53
-
54
- <script>
55
- // const prefixCls = 'vd-dialog';
56
-
57
- export default {
58
- name: 'vd-dialog',
59
- props: {
60
- value: Boolean,
61
- btns: Boolean,
62
- btnsBlock: Boolean,
63
- btn: Boolean,
64
- btnsText: Boolean,
65
- btnTextBlock: Boolean,
66
- imgs: Boolean,
67
- message: String,
68
- title: String,
69
- className: String,
70
- overlay: {
71
- type: Boolean,
72
- default: true
73
- },
74
- extraBtn: Boolean,
75
- confirmButtonText: String,
76
- cancelButtonText: String,
77
- },
78
- data() {
79
- return {
80
- visible: this.value,
81
- }
82
- },
83
- watch: {
84
- value(val) {
85
- this.visible = val;
86
- },
87
- },
88
- computed: {
89
- },
90
- methods: {
91
- close() {
92
- this.visible = false;
93
- this.$emit('input', false);
94
- },
95
- cancel() {
96
- this.close(); // 调用 close 方法关闭对话框
97
- // 触发取消事件,让父组件知道用户点击了取消
98
- this.$emit('cancel');
99
- },
100
- // handleMask () {
101
- // this.close();
102
- // },
103
- confirm() {
104
- this.$emit('confirm');
105
- },
106
- }
107
- }
108
- </script>
109
-
110
- <style lang="less">
111
- @import './style.less';
112
- </style>