@weitutech/by-components 1.1.100 → 1.1.102

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.
@@ -60519,6 +60519,7 @@ __webpack_require__.d(__webpack_exports__, {
60519
60519
  ByDatePickerRange: function() { return /* reexport */ date_picker_range; },
60520
60520
  ByDialog: function() { return /* reexport */ ByDialog; },
60521
60521
  ByDialogService: function() { return /* reexport */ by_dialog_ByDialogService; },
60522
+ ByFloatingMenu: function() { return /* reexport */ ByFloatingMenu; },
60522
60523
  ByFoldSearch: function() { return /* reexport */ fold_search; },
60523
60524
  ByForm: function() { return /* reexport */ form_form; },
60524
60525
  ByPageSearch: function() { return /* reexport */ page_search; },
@@ -79031,6 +79032,548 @@ var ByCascaderPanel_component = normalizeComponent(
79031
79032
  )
79032
79033
 
79033
79034
  /* harmony default export */ var ByCascaderPanel = (ByCascaderPanel_component.exports);
79035
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ffbc40de-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/floating-menu/ByFloatingMenu.vue?vue&type=template&id=08613879
79036
+ var ByFloatingMenuvue_type_template_id_08613879_render = function render() {
79037
+ var _vm = this,
79038
+ _c = _vm._self._c;
79039
+ return _c('div', {
79040
+ staticClass: "by-floating-menu",
79041
+ class: {
79042
+ 'is-hidden': _vm.isHidden
79043
+ },
79044
+ style: _vm.menuStyle,
79045
+ on: {
79046
+ "mousedown": _vm.startDrag
79047
+ }
79048
+ }, [_c('div', {
79049
+ staticClass: "floating-main-btn",
79050
+ class: {
79051
+ 'is-expanded': _vm.isExpanded
79052
+ },
79053
+ style: {
79054
+ width: _vm.mainButtonSize + 'px',
79055
+ height: _vm.mainButtonSize + 'px'
79056
+ },
79057
+ on: {
79058
+ "click": _vm.toggleMenu
79059
+ }
79060
+ }, [_vm.mainButtonIcon ? _c('i', {
79061
+ class: _vm.mainButtonIcon,
79062
+ style: {
79063
+ transform: 'none !important',
79064
+ display: 'block !important',
79065
+ textAlign: 'center !important',
79066
+ lineHeight: _vm.mainButtonSize + 'px !important',
79067
+ width: '100% !important',
79068
+ height: '100% !important',
79069
+ fontStyle: 'normal !important'
79070
+ }
79071
+ }) : _c('span', {
79072
+ style: {
79073
+ transform: 'none !important',
79074
+ display: 'block !important',
79075
+ textAlign: 'center !important',
79076
+ lineHeight: _vm.mainButtonSize + 'px !important',
79077
+ width: '100% !important',
79078
+ height: '100% !important'
79079
+ }
79080
+ }, [_vm._v(_vm._s(_vm.mainButtonText))])]), !_vm.isHidden ? _c('div', {
79081
+ staticClass: "hide-btn",
79082
+ style: {
79083
+ width: _vm.mainButtonSize * 0.33 + 'px',
79084
+ height: _vm.mainButtonSize * 0.33 + 'px',
79085
+ top: -_vm.mainButtonSize * 0.08 + 'px',
79086
+ right: -_vm.mainButtonSize * 0.08 + 'px'
79087
+ },
79088
+ on: {
79089
+ "click": _vm.toggleHide
79090
+ }
79091
+ }, [_c('i', {
79092
+ staticClass: "icon-close",
79093
+ style: {
79094
+ transform: 'none !important',
79095
+ display: 'block !important',
79096
+ textAlign: 'center !important',
79097
+ lineHeight: _vm.mainButtonSize * 0.33 + 'px !important',
79098
+ width: '100% !important',
79099
+ height: '100% !important',
79100
+ fontStyle: 'normal !important'
79101
+ }
79102
+ })]) : _vm._e(), _c('transition', {
79103
+ attrs: {
79104
+ "name": "menu-fade"
79105
+ }
79106
+ }, [_c('div', {
79107
+ directives: [{
79108
+ name: "show",
79109
+ rawName: "v-show",
79110
+ value: _vm.isExpanded && !_vm.isHidden,
79111
+ expression: "isExpanded && !isHidden"
79112
+ }],
79113
+ staticClass: "menu-items"
79114
+ }, _vm._l(_vm.menuItems, function (item, index) {
79115
+ return _c('div', {
79116
+ key: index,
79117
+ staticClass: "menu-item",
79118
+ class: {
79119
+ 'is-disabled': item.disabled
79120
+ },
79121
+ style: {
79122
+ width: _vm.mainButtonSize * 0.83 + 'px',
79123
+ height: _vm.mainButtonSize * 0.83 + 'px'
79124
+ },
79125
+ attrs: {
79126
+ "data-tooltip": item.title
79127
+ },
79128
+ on: {
79129
+ "mousedown": function ($event) {
79130
+ return _vm.startMenuItemDrag($event, item, index);
79131
+ },
79132
+ "click": function ($event) {
79133
+ return _vm.handleMenuClick(item, index);
79134
+ }
79135
+ }
79136
+ }, [item.title ? _c('div', {
79137
+ staticClass: "menu-tooltip"
79138
+ }, [_vm._v(_vm._s(item.title))]) : _vm._e(), item.icon ? _c('i', {
79139
+ class: item.icon,
79140
+ style: {
79141
+ transform: 'none !important',
79142
+ display: 'block !important',
79143
+ textAlign: 'center !important',
79144
+ lineHeight: _vm.mainButtonSize * 0.83 + 'px !important',
79145
+ width: '100% !important',
79146
+ height: '100% !important',
79147
+ fontStyle: 'normal !important'
79148
+ }
79149
+ }) : _c('span', {
79150
+ style: {
79151
+ transform: 'none !important',
79152
+ display: 'block !important',
79153
+ textAlign: 'center !important',
79154
+ lineHeight: _vm.mainButtonSize * 0.83 + 'px !important',
79155
+ width: '100% !important',
79156
+ height: '100% !important'
79157
+ }
79158
+ }, [_vm._v(_vm._s(item.text))])]);
79159
+ }), 0)])], 1);
79160
+ };
79161
+ var ByFloatingMenuvue_type_template_id_08613879_staticRenderFns = [];
79162
+
79163
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/floating-menu/ByFloatingMenu.vue?vue&type=script&lang=js
79164
+ /* harmony default export */ var ByFloatingMenuvue_type_script_lang_js = ({
79165
+ name: 'ByFloatingMenu',
79166
+ props: {
79167
+ // 主按钮图标
79168
+ mainButtonIcon: {
79169
+ type: String,
79170
+ default: 'el-icon-s-operation'
79171
+ },
79172
+ // 主按钮文字(如果没图标,会显示文字)
79173
+ mainButtonText: {
79174
+ type: String,
79175
+ default: ''
79176
+ },
79177
+ // 菜单项配置
79178
+ menuItems: {
79179
+ type: Array,
79180
+ default: () => []
79181
+ },
79182
+ // 初始位置
79183
+ position: {
79184
+ type: Object,
79185
+ default: () => ({
79186
+ right: '20px',
79187
+ bottom: '60px'
79188
+ })
79189
+ },
79190
+ // 按钮大小
79191
+ size: {
79192
+ type: String,
79193
+ default: 'small',
79194
+ validator: value => ['mini', 'small', 'medium'].includes(value)
79195
+ }
79196
+ },
79197
+ data() {
79198
+ return {
79199
+ isExpanded: false,
79200
+ isHidden: false,
79201
+ isDragging: false,
79202
+ hasDragged: false,
79203
+ dragStart: {
79204
+ x: 0,
79205
+ y: 0
79206
+ },
79207
+ currentPosition: {
79208
+ x: 0,
79209
+ y: 0
79210
+ },
79211
+ menuStyle: {},
79212
+ // 菜单项拖动相关
79213
+ menuItemDragStart: {
79214
+ x: 0,
79215
+ y: 0
79216
+ },
79217
+ menuItemHasDragged: false,
79218
+ currentMenuItem: null
79219
+ };
79220
+ },
79221
+ computed: {
79222
+ // 根据size属性计算实际大小
79223
+ mainButtonSize() {
79224
+ const sizeMap = {
79225
+ mini: 40,
79226
+ small: 50,
79227
+ medium: 60
79228
+ };
79229
+ return sizeMap[this.size] || 50;
79230
+ }
79231
+ },
79232
+ mounted() {
79233
+ this.initPosition();
79234
+ this.bindEvents();
79235
+ this.bindPageEvents();
79236
+ },
79237
+ beforeDestroy() {
79238
+ this.unbindEvents();
79239
+ this.unbindPageEvents();
79240
+ this.removeShowButton();
79241
+ // 清理菜单项拖动事件监听器
79242
+ document.removeEventListener('mousemove', this.onMenuItemDrag);
79243
+ document.removeEventListener('mouseup', this.endMenuItemDrag);
79244
+ },
79245
+ methods: {
79246
+ // 初始化位置
79247
+ initPosition() {
79248
+ const {
79249
+ right,
79250
+ bottom
79251
+ } = this.position;
79252
+ this.menuStyle = {
79253
+ right: right,
79254
+ bottom: bottom
79255
+ };
79256
+
79257
+ // 初始化当前位置
79258
+ const windowHeight = window.innerHeight;
79259
+ const bottomValue = parseInt(bottom) || 20;
79260
+ this.currentPosition = {
79261
+ x: 0,
79262
+ y: windowHeight - bottomValue - this.mainButtonSize // 使用动态主按钮大小
79263
+ };
79264
+ },
79265
+ // 切换菜单展开状态
79266
+ toggleMenu() {
79267
+ // 如果刚刚拖动了,则不切换菜单状态
79268
+ if (this.hasDragged) {
79269
+ this.hasDragged = false;
79270
+ return;
79271
+ }
79272
+ this.isExpanded = !this.isExpanded;
79273
+ },
79274
+ // 切换隐藏状态
79275
+ toggleHide() {
79276
+ this.isHidden = !this.isHidden;
79277
+ this.isExpanded = false;
79278
+ if (this.isHidden) {
79279
+ // 保持当前纵向位置,只隐藏横向
79280
+ this.menuStyle = {
79281
+ ...this.menuStyle,
79282
+ right: '-100px',
79283
+ transition: 'right 0.3s ease',
79284
+ opacity: '0'
79285
+ };
79286
+ // 只有在页面可见时才创建显示按钮
79287
+ if (!document.hidden) {
79288
+ this.createShowButton();
79289
+ }
79290
+ } else {
79291
+ // 显示主菜单,保持当前位置
79292
+ this.menuStyle = {
79293
+ ...this.menuStyle,
79294
+ right: '20px',
79295
+ transition: 'right 0.3s ease, opacity 0.3s ease',
79296
+ opacity: '1'
79297
+ };
79298
+ // 移除显示按钮
79299
+ this.removeShowButton();
79300
+ }
79301
+ },
79302
+ // 处理菜单点击
79303
+ handleMenuClick(item, index) {
79304
+ if (item.disabled) return;
79305
+
79306
+ // 如果刚刚拖动了菜单项,则不触发点击
79307
+ if (this.menuItemHasDragged && this.currentMenuItem && this.currentMenuItem.index === index) {
79308
+ this.menuItemHasDragged = false;
79309
+ this.currentMenuItem = null;
79310
+ return;
79311
+ }
79312
+ this.$emit('menu-click', {
79313
+ item,
79314
+ index
79315
+ });
79316
+ this.isExpanded = false;
79317
+ },
79318
+ // 开始菜单项拖动
79319
+ startMenuItemDrag(e, item, index) {
79320
+ this.menuItemHasDragged = false;
79321
+ this.currentMenuItem = {
79322
+ item,
79323
+ index
79324
+ };
79325
+ this.menuItemDragStart = {
79326
+ x: e.clientX,
79327
+ y: e.clientY
79328
+ };
79329
+
79330
+ // 绑定菜单项拖动事件
79331
+ document.addEventListener('mousemove', this.onMenuItemDrag);
79332
+ document.addEventListener('mouseup', this.endMenuItemDrag);
79333
+
79334
+ // 阻止默认行为
79335
+ e.preventDefault();
79336
+ },
79337
+ // 菜单项拖动中
79338
+ onMenuItemDrag(e) {
79339
+ const deltaX = e.clientX - this.menuItemDragStart.x;
79340
+ const deltaY = e.clientY - this.menuItemDragStart.y;
79341
+
79342
+ // 如果移动距离超过阈值,标记为真正拖动
79343
+ if (Math.abs(deltaX) > 5 || Math.abs(deltaY) > 5) {
79344
+ this.menuItemHasDragged = true;
79345
+ }
79346
+ },
79347
+ // 结束菜单项拖动
79348
+ endMenuItemDrag() {
79349
+ // 解绑菜单项拖动事件
79350
+ document.removeEventListener('mousemove', this.onMenuItemDrag);
79351
+ document.removeEventListener('mouseup', this.endMenuItemDrag);
79352
+ },
79353
+ // 开始拖拽
79354
+ startDrag(e) {
79355
+ if (this.isHidden) return;
79356
+ this.isDragging = true;
79357
+ this.hasDragged = false; // 标记是否真正拖动了
79358
+
79359
+ // 如果当前位置未初始化,则从当前DOM位置计算
79360
+ if (this.currentPosition.y === 0) {
79361
+ const windowHeight = window.innerHeight;
79362
+ const bottomValue = parseInt(this.menuStyle.bottom) || 20;
79363
+ this.currentPosition.y = windowHeight - bottomValue - this.mainButtonSize;
79364
+ }
79365
+ this.dragStart = {
79366
+ x: e.clientX,
79367
+ y: e.clientY
79368
+ };
79369
+
79370
+ // 阻止默认行为和事件传播
79371
+ e.preventDefault();
79372
+ e.stopPropagation();
79373
+ },
79374
+ // 拖拽中
79375
+ onDrag(e) {
79376
+ if (!this.isDragging || this.isHidden) return;
79377
+ const deltaX = e.clientX - this.dragStart.x;
79378
+ const deltaY = e.clientY - this.dragStart.y;
79379
+
79380
+ // 如果移动距离超过阈值,标记为真正拖动
79381
+ if (Math.abs(deltaY) > 5) {
79382
+ this.hasDragged = true;
79383
+ }
79384
+
79385
+ // 只允许垂直拖拽
79386
+ const newY = this.currentPosition.y + deltaY;
79387
+ const windowHeight = window.innerHeight;
79388
+ const menuHeight = this.mainButtonSize; // 使用动态主按钮大小
79389
+
79390
+ // 限制在屏幕范围内
79391
+ const clampedY = Math.max(0, Math.min(newY, windowHeight - menuHeight));
79392
+ this.currentPosition = {
79393
+ x: this.currentPosition.x,
79394
+ y: clampedY
79395
+ };
79396
+ this.menuStyle = {
79397
+ right: this.menuStyle.right || '20px',
79398
+ bottom: 'auto',
79399
+ top: `${clampedY}px`,
79400
+ transition: 'none'
79401
+ };
79402
+ this.dragStart = {
79403
+ x: e.clientX,
79404
+ y: e.clientY
79405
+ };
79406
+ },
79407
+ // 结束拖拽
79408
+ endDrag() {
79409
+ this.isDragging = false;
79410
+
79411
+ // 更新currentPosition以匹配当前DOM位置
79412
+ if (this.menuStyle.top) {
79413
+ this.currentPosition.y = parseInt(this.menuStyle.top);
79414
+ }
79415
+
79416
+ // 保持当前位置,恢复过渡动画
79417
+ this.menuStyle = {
79418
+ ...this.menuStyle,
79419
+ transition: 'right 0.3s ease, opacity 0.3s ease'
79420
+ };
79421
+ },
79422
+ // 绑定事件
79423
+ bindEvents() {
79424
+ document.addEventListener('mousemove', this.onDrag);
79425
+ document.addEventListener('mouseup', this.endDrag);
79426
+ },
79427
+ // 解绑事件
79428
+ unbindEvents() {
79429
+ document.removeEventListener('mousemove', this.onDrag);
79430
+ document.removeEventListener('mouseup', this.endDrag);
79431
+ },
79432
+ // 绑定页面相关事件
79433
+ bindPageEvents() {
79434
+ // 监听页面可见性变化(切换 tab)
79435
+ document.addEventListener('visibilitychange', this.onVisibilityChange);
79436
+
79437
+ // 监听页面卸载事件
79438
+ window.addEventListener('beforeunload', this.onPageUnload);
79439
+
79440
+ // 监听路由变化(如果使用了 Vue Router)
79441
+ if (this.$router) {
79442
+ this.$router.beforeEach((to, from, next) => {
79443
+ // 在路由切换前移除显示按钮
79444
+ this.removeShowButton();
79445
+ next();
79446
+ });
79447
+ }
79448
+ },
79449
+ // 解绑页面相关事件
79450
+ unbindPageEvents() {
79451
+ document.removeEventListener('visibilitychange', this.onVisibilityChange);
79452
+ window.removeEventListener('beforeunload', this.onPageUnload);
79453
+ },
79454
+ // 页面可见性变化处理
79455
+ onVisibilityChange() {
79456
+ if (document.hidden) {
79457
+ // 页面变为隐藏状态(切换 tab 或最小化),移除显示按钮
79458
+ this.removeShowButton();
79459
+ }
79460
+ },
79461
+ // 页面卸载处理
79462
+ onPageUnload() {
79463
+ // 页面卸载前移除显示按钮
79464
+ this.removeShowButton();
79465
+ },
79466
+ // 创建显示按钮
79467
+ createShowButton() {
79468
+ // 先移除可能存在的显示按钮
79469
+ this.removeShowButton();
79470
+
79471
+ // 如果页面不可见,不创建显示按钮
79472
+ if (document.hidden) {
79473
+ return;
79474
+ }
79475
+
79476
+ // 计算当前主按钮的纵向位置
79477
+ let topPosition = '50%';
79478
+ if (this.menuStyle.top) {
79479
+ // 如果使用top定位,直接使用
79480
+ topPosition = this.menuStyle.top;
79481
+ } else if (this.menuStyle.bottom) {
79482
+ // 如果使用bottom定位,转换为top
79483
+ const windowHeight = window.innerHeight;
79484
+ const bottomValue = parseInt(this.menuStyle.bottom) || 20;
79485
+ const menuHeight = this.mainButtonSize; // 主按钮高度
79486
+ const showBtnHeight = this.mainButtonSize * 1.33; // 吸附按钮高度(主按钮的1.33倍)
79487
+ // 计算主按钮顶部位置,然后让吸附按钮中心对齐主按钮中心
79488
+ const mainBtnTop = windowHeight - bottomValue - menuHeight;
79489
+ const showBtnTop = mainBtnTop + (menuHeight - showBtnHeight) / 2;
79490
+ topPosition = `${showBtnTop}px`;
79491
+ }
79492
+
79493
+ // 创建显示按钮元素
79494
+ const showBtn = document.createElement('div');
79495
+ showBtn.id = 'floating-show-btn-' + this._uid;
79496
+ showBtn.innerHTML = '<span>◀</span>';
79497
+
79498
+ // 设置样式
79499
+ showBtn.style.position = 'fixed';
79500
+ showBtn.style.right = '0';
79501
+ showBtn.style.top = topPosition;
79502
+ showBtn.style.transform = topPosition.includes('%') ? 'translateY(-30%)' : 'none';
79503
+ showBtn.style.width = this.mainButtonSize * 0.4 + 'px';
79504
+ showBtn.style.height = this.mainButtonSize * 1.33 + 'px';
79505
+ showBtn.style.background = '#409eff';
79506
+ showBtn.style.color = 'white';
79507
+ showBtn.style.display = 'flex';
79508
+ showBtn.style.alignItems = 'center';
79509
+ showBtn.style.justifyContent = 'center';
79510
+ showBtn.style.cursor = 'pointer';
79511
+ showBtn.style.borderRadius = '10px 0 0 10px';
79512
+ showBtn.style.boxShadow = '-2px 0 8px rgba(64, 158, 255, 0.3)';
79513
+ showBtn.style.zIndex = '10001';
79514
+ showBtn.style.transition = 'all 0.3s ease';
79515
+ showBtn.style.fontSize = '15px';
79516
+ showBtn.style.fontWeight = 'bold';
79517
+
79518
+ // 设置span样式
79519
+ const span = showBtn.querySelector('span');
79520
+ if (span) {
79521
+ span.style.fontSize = '15px';
79522
+ span.style.fontWeight = 'bold';
79523
+ span.style.transform = 'none';
79524
+ span.style.display = 'block';
79525
+ }
79526
+
79527
+ // 添加点击事件
79528
+ showBtn.addEventListener('click', this.toggleHide);
79529
+
79530
+ // 添加悬停效果
79531
+ const originalTransform = topPosition.includes('%') ? 'translateY(-30%)' : 'none';
79532
+ showBtn.addEventListener('mouseenter', () => {
79533
+ showBtn.style.background = '#66b1ff';
79534
+ showBtn.style.transform = topPosition.includes('%') ? 'translateY(-50%) translateX(-4px)' : 'translateX(-4px)';
79535
+ showBtn.style.boxShadow = '-4px 0 12px rgba(64, 158, 255, 0.4)';
79536
+ });
79537
+ showBtn.addEventListener('mouseleave', () => {
79538
+ showBtn.style.background = '#409eff';
79539
+ showBtn.style.transform = originalTransform;
79540
+ showBtn.style.boxShadow = '-2px 0 8px rgba(64, 158, 255, 0.3)';
79541
+ });
79542
+
79543
+ // 添加到body
79544
+ document.body.appendChild(showBtn);
79545
+ },
79546
+ // 移除显示按钮
79547
+ removeShowButton() {
79548
+ const showBtn = document.getElementById('floating-show-btn-' + this._uid);
79549
+ if (showBtn) {
79550
+ showBtn.remove();
79551
+ }
79552
+ }
79553
+ }
79554
+ });
79555
+ ;// ./src/components/floating-menu/ByFloatingMenu.vue?vue&type=script&lang=js
79556
+ /* harmony default export */ var floating_menu_ByFloatingMenuvue_type_script_lang_js = (ByFloatingMenuvue_type_script_lang_js);
79557
+ ;// ./src/components/floating-menu/ByFloatingMenu.vue
79558
+
79559
+
79560
+
79561
+
79562
+
79563
+ /* normalize component */
79564
+ ;
79565
+ var ByFloatingMenu_component = normalizeComponent(
79566
+ floating_menu_ByFloatingMenuvue_type_script_lang_js,
79567
+ ByFloatingMenuvue_type_template_id_08613879_render,
79568
+ ByFloatingMenuvue_type_template_id_08613879_staticRenderFns,
79569
+ false,
79570
+ null,
79571
+ null,
79572
+ null
79573
+
79574
+ )
79575
+
79576
+ /* harmony default export */ var ByFloatingMenu = (ByFloatingMenu_component.exports);
79034
79577
  ;// ./src/index.js
79035
79578
 
79036
79579
 
@@ -79051,6 +79594,7 @@ var ByCascaderPanel_component = normalizeComponent(
79051
79594
 
79052
79595
 
79053
79596
 
79597
+
79054
79598
  const components = {
79055
79599
  ByPager: pager,
79056
79600
  ByTable: table,
@@ -79065,7 +79609,8 @@ const components = {
79065
79609
  ByBatchQuerySelector: BatchQuerySelector,
79066
79610
  ByTreeSearch: ByTreeSearch,
79067
79611
  ByDialog: ByDialog,
79068
- ByCascaderPanel: ByCascaderPanel
79612
+ ByCascaderPanel: ByCascaderPanel,
79613
+ ByFloatingMenu: ByFloatingMenu
79069
79614
  };
79070
79615
 
79071
79616
  // 设置当前 z-index 起始值