br-dionysus 1.6.15 → 1.6.16

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 CHANGED
@@ -47,11 +47,28 @@
47
47
  <template>
48
48
  <div>
49
49
  <p>弹窗</p>
50
- <el-button @click="dialogVisible = true">默认</el-button>
50
+ <el-button @click="open">默认</el-button>
51
+ <m-dialog
52
+ v-model="dialogVisible"
53
+ draggable
54
+ title="这是标题"
55
+ resize
56
+ >
57
+ <div class="u-box">
58
+ <p>这是测试是数据</p>
59
+ </div>
60
+ <template #footer>
61
+ <div class="dialog-footer">
62
+ <el-button @click="dialogVisible = false">取消</el-button>
63
+ <el-button type="primary" @click="dialogVisible = false">确认</el-button>
64
+ </div>
65
+ </template>
66
+ </m-dialog>
67
+
51
68
  <p>设置弹窗高(弹框高度为{{ insideHeight }})</p>
52
69
  <el-button @click="open2">设置容器高度为300px</el-button>
53
70
  <m-dialog
54
- v-model="dialogVisible"
71
+ v-model="dialogVisible2"
55
72
  draggable
56
73
  title="这是标题"
57
74
  resize
@@ -71,10 +88,8 @@
71
88
  </div>
72
89
  <template #footer>
73
90
  <div class="dialog-footer">
74
- <el-button @click="dialogVisible = false">取消</el-button>
75
- <el-button type="primary" @click="dialogVisible = false">
76
- 确认
77
- </el-button>
91
+ <el-button @click="dialogVisible2 = false">取消</el-button>
92
+ <el-button type="primary" @click="dialogVisible2 = false">确认</el-button>
78
93
  </div>
79
94
  </template>
80
95
  </m-dialog>
@@ -94,9 +109,7 @@
94
109
  <template #footer>
95
110
  <div class="dialog-footer">
96
111
  <el-button @click="dialogVisible3 = false">取消</el-button>
97
- <el-button type="primary" @click="dialogVisible3 = false">
98
- 确认
99
- </el-button>
112
+ <el-button type="primary" @click="dialogVisible3 = false">确认</el-button>
100
113
  </div>
101
114
  </template>
102
115
  </m-dialog>
@@ -109,6 +122,11 @@ import { MDialog } from 'packages/MDialog'
109
122
  import { useRemainingSpace } from 'packages/index'
110
123
 
111
124
  const dialogVisible = ref<boolean>(false)
125
+ const open = () => {
126
+ dialogVisible.value = true
127
+ }
128
+
129
+ const dialogVisible2 = ref<boolean>(false)
112
130
  const test = (size: { width: number, height: number }) => {
113
131
  // console.log('size', size)
114
132
  }
@@ -119,7 +137,7 @@ const opened = () => {
119
137
  const insideHeight = ref<number>(0)
120
138
  const open2 = () => {
121
139
  insideHeight.value = 300
122
- dialogVisible.value = true
140
+ dialogVisible2.value = true
123
141
  }
124
142
 
125
143
  const dialogVisible3 = ref<boolean>(false)
@@ -2200,11 +2218,28 @@ const list = ref<{ name: string, className: string }[]>([
2200
2218
  <template>
2201
2219
  <div>
2202
2220
  <p>弹窗</p>
2203
- <el-button @click="dialogVisible = true">默认</el-button>
2221
+ <el-button @click="open">默认</el-button>
2222
+ <m-dialog
2223
+ v-model="dialogVisible"
2224
+ draggable
2225
+ title="这是标题"
2226
+ resize
2227
+ >
2228
+ <div class="u-box">
2229
+ <p>这是测试是数据</p>
2230
+ </div>
2231
+ <template #footer>
2232
+ <div class="dialog-footer">
2233
+ <el-button @click="dialogVisible = false">取消</el-button>
2234
+ <el-button type="primary" @click="dialogVisible = false">确认</el-button>
2235
+ </div>
2236
+ </template>
2237
+ </m-dialog>
2238
+
2204
2239
  <p>设置弹窗高(弹框高度为{{ insideHeight }})</p>
2205
2240
  <el-button @click="open2">设置容器高度为300px</el-button>
2206
2241
  <m-dialog
2207
- v-model="dialogVisible"
2242
+ v-model="dialogVisible2"
2208
2243
  draggable
2209
2244
  title="这是标题"
2210
2245
  resize
@@ -2224,10 +2259,8 @@ const list = ref<{ name: string, className: string }[]>([
2224
2259
  </div>
2225
2260
  <template #footer>
2226
2261
  <div class="dialog-footer">
2227
- <el-button @click="dialogVisible = false">取消</el-button>
2228
- <el-button type="primary" @click="dialogVisible = false">
2229
- 确认
2230
- </el-button>
2262
+ <el-button @click="dialogVisible2 = false">取消</el-button>
2263
+ <el-button type="primary" @click="dialogVisible2 = false">确认</el-button>
2231
2264
  </div>
2232
2265
  </template>
2233
2266
  </m-dialog>
@@ -2247,9 +2280,7 @@ const list = ref<{ name: string, className: string }[]>([
2247
2280
  <template #footer>
2248
2281
  <div class="dialog-footer">
2249
2282
  <el-button @click="dialogVisible3 = false">取消</el-button>
2250
- <el-button type="primary" @click="dialogVisible3 = false">
2251
- 确认
2252
- </el-button>
2283
+ <el-button type="primary" @click="dialogVisible3 = false">确认</el-button>
2253
2284
  </div>
2254
2285
  </template>
2255
2286
  </m-dialog>
@@ -2262,6 +2293,11 @@ import { MDialog } from 'packages/MDialog'
2262
2293
  import { useRemainingSpace } from 'packages/index'
2263
2294
 
2264
2295
  const dialogVisible = ref<boolean>(false)
2296
+ const open = () => {
2297
+ dialogVisible.value = true
2298
+ }
2299
+
2300
+ const dialogVisible2 = ref<boolean>(false)
2265
2301
  const test = (size: { width: number, height: number }) => {
2266
2302
  // console.log('size', size)
2267
2303
  }
@@ -2272,7 +2308,7 @@ const opened = () => {
2272
2308
  const insideHeight = ref<number>(0)
2273
2309
  const open2 = () => {
2274
2310
  insideHeight.value = 300
2275
- dialogVisible.value = true
2311
+ dialogVisible2.value = true
2276
2312
  }
2277
2313
 
2278
2314
  const dialogVisible3 = ref<boolean>(false)
@@ -12282,7 +12282,7 @@ const xC = { class: "g-box g-select-table-box" }, OC = {
12282
12282
  E.value !== h(r.insideHeight) && (E.value = h(r.insideHeight));
12283
12283
  }
12284
12284
  );
12285
- const w = T(() => E.value === null ? "auto" : E.value + "px");
12285
+ const w = T(() => E.value === null || r.insideHeight === null ? "auto" : E.value + "px");
12286
12286
  let O = 0, I = 0, b = 0, S = 0;
12287
12287
  U(
12288
12288
  () => r.modelValue,