uniapp-dyckui 4.1.8 → 4.1.10

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.
@@ -4,20 +4,22 @@
4
4
  <!-- 上部分内容 -->
5
5
  <view class="dialog-content">
6
6
  <view class="dialog-icon">
7
- <!-- 图标插槽包装器 -->
8
- <slot name="icon">
9
- <!-- 自定义字体图标 -->
10
- <text v-if="customIcon" class="iconfont dialog-icon-custom">{{ customIcon }}</text>
11
- <!-- 根据图标类型显示字体图标 -->
12
- <text v-else-if="iconType === 'phone'" class="iconfont dialog-button-primary icon-shouji" />
13
- <text v-else-if="iconType === 'screen'" class="iconfont dialog-button-primary icon-xianshiqi" />
14
- <text v-else-if="iconType === 'links'" class="iconfont dialog-button-primary icon-xianshiqi1" />
15
- <text v-else-if="iconType === 'links2'" class="iconfont dialog-button-primary icon-lianjiewangzhi" />
16
- <!-- 兼容旧版本的图片图标 -->
17
- <image v-else-if="icon" :src="icon" alt="dialog-icon" />
18
- <!-- 默认图标 -->
19
- <view v-else class="default-icon" />
20
- </slot>
7
+ <view class="dialog-icon-item">
8
+ <!-- 图标插槽包装器 -->
9
+ <slot name="icon">
10
+ <!-- 自定义字体图标 -->
11
+ <text v-if="customIcon" class="iconfont dialog-icon-custom">{{ customIcon }}</text>
12
+ <!-- 根据图标类型显示字体图标 -->
13
+ <text v-else-if="iconType === 'phone'" class="iconfont dialog-button-primary icon-shouji" />
14
+ <text v-else-if="iconType === 'screen'" class="iconfont dialog-button-primary icon-xianshiqi" />
15
+ <text v-else-if="iconType === 'links'" class="iconfont dialog-button-primary icon-xianshiqi1" />
16
+ <text v-else-if="iconType === 'links2'" class="iconfont dialog-button-primary icon-lianjiewangzhi" />
17
+ <!-- 兼容旧版本的图片图标 -->
18
+ <image v-else-if="icon" :src="icon" alt="dialog-icon" />
19
+ <!-- 默认图标 -->
20
+ <view v-else class="default-icon" />
21
+ </slot>
22
+ </view>
21
23
  </view>
22
24
  <view class="dialog-title">
23
25
  {{ title }}
@@ -32,7 +34,7 @@
32
34
  <view class="dialog-buttons">
33
35
  <!-- 类型1: 取消和打开app -->
34
36
  <template v-if="type === 'open-app'">
35
- <view class="dialog-button dialog-button-cancel" @click="handleCancel">
37
+ <view class="dialog-button dialog-button-cancel dialog-button-line" @click="handleCancel">
36
38
  取消
37
39
  </view>
38
40
  <view class="dialog-button dialog-button-primary" @click="handleConfirm">
@@ -49,7 +51,7 @@
49
51
 
50
52
  <!-- 类型3: 取消和继续访问 -->
51
53
  <template v-else-if="type === 'continue'">
52
- <view class="dialog-button dialog-button-cancel" @click="handleCancel">
54
+ <view class="dialog-button dialog-button-cancel dialog-button-line" @click="handleCancel">
53
55
  取消
54
56
  </view>
55
57
  <view class="dialog-button dialog-button-primary" @click="handleConfirm">
@@ -184,24 +186,14 @@ function handleCancel() {
184
186
  }
185
187
 
186
188
  /* 图标 */
187
- .dialog-icon {
189
+ .dialog-icon-item {
188
190
  margin-bottom: 40rpx;
189
191
  display: flex;
190
192
  justify-content: center;
191
193
  align-items: center;
192
- display: inline-block;
193
194
  border-radius: 50%;
194
195
  border: 2rpx solid rgb(151, 150, 150);
195
- }
196
-
197
- /* 确保dialog-icon容器内的所有直接子元素都应用相同的基础样式 */
198
- .dialog-icon > * {
199
- width: 120rpx;
200
- height: 120rpx;
201
- font-size: 80rpx;
202
- display: flex;
203
- justify-content: center;
204
- align-items: center;
196
+ display: inline-block;
205
197
  }
206
198
 
207
199
  .dialog-icon image {
@@ -210,7 +202,12 @@ function handleCancel() {
210
202
 
211
203
  /* 字体图标样式 */
212
204
  .dialog-icon .iconfont {
213
- /* 已通过 .dialog-icon > * 应用基础样式 */
205
+ width: 120rpx;
206
+ height: 120rpx;
207
+ font-size: 80rpx;
208
+ display: flex;
209
+ justify-content: center;
210
+ align-items: center;
214
211
  }
215
212
 
216
213
  /* 自定义字体图标 */
@@ -259,6 +256,7 @@ function handleCancel() {
259
256
  color: #666;
260
257
  margin: 0;
261
258
  line-height: 1.5;
259
+ display: block;
262
260
  }
263
261
 
264
262
  /* 分割线 */
@@ -307,6 +305,9 @@ function handleCancel() {
307
305
  .dialog-button-primary {
308
306
  color: #00599c;
309
307
  }
308
+ .dialog-button-line {
309
+ border-right: 3rpx solid #e5e5e5;
310
+ }
310
311
 
311
312
  .dialog-button-primary:hover {
312
313
  background-color: #f0f9ff;
@@ -2,6 +2,7 @@
2
2
 
3
3
  // 基础组件
4
4
  import Button from './Button/index.vue'
5
+
5
6
  import Dialog from './Dialog/index.vue'
6
7
  import Divider from './Divider/index.vue'
7
8
  // 导出组合式函数
@@ -9,19 +10,21 @@ import { useDropdownSelect } from './DropdownSelect/dropdownSelect'
9
10
  // 表单组件
10
11
  import DropdownSelect from './DropdownSelect/index.vue'
11
12
  import { useDropdownWithBadge } from './DropdownWithBadge/dropdownWithBadge'
12
-
13
13
  import DropdownWithBadge from './DropdownWithBadge/index.vue'
14
+
14
15
  // 筛选组件
15
16
  import FilterDrawer from './FilterDrawer/index.vue'
16
-
17
17
  import { useFilterDrawer } from './FilterDrawer/useFilterDrawer'
18
+
18
19
  // 交互组件
19
20
  import InfiniteScroll from './InfiniteScroll/index.vue'
20
21
  import Popup from './Popup/index.vue'
21
-
22
22
  import PullRefresh from './PullRefresh/index.vue'
23
+
23
24
  import Swiper from './Swiper/index.vue'
24
25
  import Toast from './Toast/index.vue'
26
+ // 导入字体图标样式
27
+ import '@/assets/font/iconfont.css'
25
28
 
26
29
  export type { DropdownSelectEmits, DropdownSelectProps } from './DropdownSelect/type'
27
30