v-uni-app-ui 1.0.2 → 1.0.6

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 (65) hide show
  1. package/README.md +127 -0
  2. package/dist/v-uni-app-ui.css +1 -0
  3. package/dist/v-uni-app-ui.es.js +6569 -0
  4. package/dist/v-uni-app-ui.umd.js +7 -0
  5. package/package.json +28 -8
  6. package/components/config.js +0 -123
  7. package/components/layout/v-card/v-card.vue +0 -108
  8. package/components/layout/v-grid/v-grid.vue +0 -162
  9. package/components/layout/v-icon-grid/v-icon-grid.vue +0 -195
  10. package/components/layout/v-infinite-scroll/v-infinite-scroll.vue +0 -172
  11. package/components/layout/v-list/v-list.vue +0 -43
  12. package/components/layout/v-row/v-row.vue +0 -142
  13. package/components/layout/v-waterfall/v-waterfall.vue +0 -79
  14. package/components/model/compound/v-checkbox-group/v-checkbox-group.vue +0 -96
  15. package/components/model/compound/v-console/v-console.js +0 -20
  16. package/components/model/compound/v-console/v-console.vue +0 -299
  17. package/components/model/compound/v-date-time/v-date-time.vue +0 -261
  18. package/components/model/compound/v-dialog/v-dialog.vue +0 -178
  19. package/components/model/compound/v-drum-select-picker/v-drum-select-picker.vue +0 -83
  20. package/components/model/compound/v-form/v-form.vue +0 -226
  21. package/components/model/compound/v-form-item/v-form-item.vue +0 -255
  22. package/components/model/compound/v-image/v-image.vue +0 -357
  23. package/components/model/compound/v-input-desensitize/v-input-desensitize.vue +0 -101
  24. package/components/model/compound/v-page/v-page.vue +0 -11
  25. package/components/model/compound/v-pages/v-pages.vue +0 -141
  26. package/components/model/compound/v-picker-list/v-picker-list.vue +0 -109
  27. package/components/model/compound/v-popup/v-popup.vue +0 -151
  28. package/components/model/compound/v-radio-group/v-radio-group.vue +0 -86
  29. package/components/model/compound/v-select-picker/v-select-picker.vue +0 -202
  30. package/components/model/compound/v-series-picker-list/v-series-picker-list.vue +0 -221
  31. package/components/model/compound/v-series-select-picker/v-series-select-picker.vue +0 -203
  32. package/components/model/compound/v-switch/v-switch.vue +0 -136
  33. package/components/model/compound/v-tabs-page/v-tabs-page.vue +0 -138
  34. package/components/model/native/v-badge/v-badge.vue +0 -143
  35. package/components/model/native/v-button/v-button.vue +0 -273
  36. package/components/model/native/v-carousel/v-carousel.vue +0 -138
  37. package/components/model/native/v-checkbox/v-checkbox.vue +0 -215
  38. package/components/model/native/v-collapse/v-collapse.vue +0 -190
  39. package/components/model/native/v-header-navigation-bar/v-header-navigation-bar.vue +0 -92
  40. package/components/model/native/v-input/v-input.vue +0 -352
  41. package/components/model/native/v-input-code/v-input-code.vue +0 -146
  42. package/components/model/native/v-loading/v-loading.vue +0 -206
  43. package/components/model/native/v-menu/v-menu.vue +0 -222
  44. package/components/model/native/v-menu-slide/v-menu-slide.vue +0 -364
  45. package/components/model/native/v-min-loading/v-min-loading.vue +0 -80
  46. package/components/model/native/v-null/v-null.vue +0 -97
  47. package/components/model/native/v-overlay/v-overlay.vue +0 -96
  48. package/components/model/native/v-pull-up-refresh/v-pull-up-refresh.vue +0 -157
  49. package/components/model/native/v-radio/v-radio.vue +0 -138
  50. package/components/model/native/v-scroll-list/v-scroll-list.vue +0 -169
  51. package/components/model/native/v-steps/v-steps.vue +0 -253
  52. package/components/model/native/v-table/v-table.vue +0 -203
  53. package/components/model/native/v-tabs/v-tabs.vue +0 -235
  54. package/components/model/native/v-tag/v-tag.vue +0 -206
  55. package/components/model/native/v-text/v-text.vue +0 -187
  56. package/components/model/native/v-text-button/v-text-button.vue +0 -139
  57. package/components/model/native/v-textarea/v-textarea.vue +0 -178
  58. package/components/model/native/v-title/v-title.vue +0 -91
  59. package/components/model/native/v-toast/info.png +0 -0
  60. package/components/model/native/v-toast/success.png +0 -0
  61. package/components/model/native/v-toast/v-toast.vue +0 -198
  62. package/components/model/native/v-toast/warn.png +0 -0
  63. package/components/model/native/v-upload-file-button/v-upload-file-button.vue +0 -296
  64. package/components/model/native/v-video/v-video.vue +0 -175
  65. package/components/model/native/v-window/v-window.vue +0 -158
@@ -1,158 +0,0 @@
1
- <template>
2
- <view v-show="show" :class="['v-window', `v-window--size-${size}`, { 'v-window--fullscreen': fullscreen }]" :style="windowStyle">
3
- <view class="v-window-header" v-if="title">
4
- <view class="v-window-title">{{ title }}</view>
5
- <view class="v-window-actions" v-if="showActions">
6
- <button class="v-window-action" @click="minimize">
7
- <text class="icon-minimize">-</text>
8
- </button>
9
- <button class="v-window-action" @click="maximize">
10
- <text class="icon-maximize">□</text>
11
- </button>
12
- <button class="v-window-action" @click="close">
13
- <text class="icon-close">×</text>
14
- </button>
15
- </view>
16
- </view>
17
- <view class="v-window-content">
18
- <slot></slot>
19
- </view>
20
- </view>
21
- </template>
22
-
23
- <script setup lang="ts">
24
- import { ref, computed,inject,watch } from 'vue';
25
-
26
- const props = defineProps({
27
- title: {
28
- type: String,
29
- default: ''
30
- },
31
- fullscreen: {
32
- type: Boolean,
33
- default: false
34
- },
35
- showActions:{
36
- type:Boolean,
37
- default:true
38
- },
39
- show:{
40
- type:Boolean,
41
- default:true
42
- }
43
- });
44
-
45
- const emit = defineEmits(['update:show','update:showActions','update:fullscreen','close', 'minimize', 'maximize']);
46
- const config = inject<any>('config');
47
- const windowStyle = computed(() => {
48
- return {
49
- width: props.fullscreen ? '100%' : undefined,
50
- height: props.fullscreen ? '100%' : undefined,
51
- '--window-title-color': '#333',
52
- '--window-content-bg': '#fff',
53
- '--window-border-color': '#e0e0e0'
54
- };
55
- });
56
-
57
- const showActions = ref(props.showActions);
58
- const show = ref(props.show);
59
- const fullscreen = ref(props.fullscreen);
60
-
61
- watch(()=>props.show,(newValue)=>{
62
- show.value = newValue;
63
- },{
64
- immediate:true
65
- })
66
- watch(()=>props.showActions,(newValue)=>{
67
- showActions.value = newValue;
68
- },{
69
- immediate:true
70
- })
71
- watch(()=>props.fullscreen,(newValue)=>{
72
- fullscreen.value = newValue;
73
- },{
74
- immediate:true
75
- })
76
-
77
-
78
- const close = () => {
79
- show.value = false;
80
- emit('update:show',false)
81
- emit('close');
82
- };
83
-
84
- const minimize = () => {
85
- fullscreen.value = false;
86
- emit('update:fullscreen',false);
87
- emit('minimize');
88
- };
89
-
90
- const maximize = () => {
91
- fullscreen.value = true;
92
- emit('update:fullscreen',true);
93
- emit('maximize');
94
- };
95
- </script>
96
-
97
- <style lang="scss" scoped>
98
- .v-window {
99
- width: 80%;
100
- height: 100%;
101
- display: flex;
102
- flex-direction: column;
103
- border: 1rpx solid var(--window-border-color);
104
- border-radius: 4rpx;
105
- box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
106
- background-color: var(--window-content-bg);
107
- overflow: hidden;
108
- margin: auto;
109
-
110
- &--fullscreen {
111
- width: 100%;
112
- height: 100%;
113
- position: fixed;
114
- top: 0;
115
- left: 0;
116
- right: 0;
117
- bottom: 0;
118
- z-index: 1000;
119
- }
120
-
121
- .v-window-header {
122
- display: flex;
123
- justify-content: space-between;
124
- align-items: center;
125
- padding: 8rpx 16rpx;
126
- background-color: var(--window-content-bg);
127
- border-bottom: 1rpx solid var(--window-border-color);
128
-
129
- .v-window-title {
130
- font-size: v-bind("config.fontSize.mediumTitle");
131
- font-weight: bold;
132
- color: var(--window-title-color);
133
- }
134
-
135
- .v-window-actions {
136
- display: flex;
137
- }
138
-
139
- .v-window-action {
140
- background: none;
141
- border: none;
142
- cursor: pointer;
143
- font-size: v-bind("config.fontSize.smallText");
144
- margin-left: 8rpx;
145
-
146
- &:hover {
147
- background-color: #f5f5f5;
148
- }
149
- }
150
- }
151
-
152
- .v-window-content {
153
- flex: 1;
154
- padding: 16rpx;
155
- overflow: auto;
156
- }
157
- }
158
- </style>