st-comp 0.0.208 → 0.0.210

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 (169) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +74 -1
  3. package/es/CustomFunction.cjs +1 -1
  4. package/es/CustomFunction.js +54 -51
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +46 -43
  7. package/es/HeatMap.cjs +1 -1
  8. package/es/HeatMap.js +118 -1
  9. package/es/Kline.cjs +1 -1
  10. package/es/Kline.js +90 -87
  11. package/es/KlineBasic.cjs +1 -1
  12. package/es/KlineBasic.js +28 -25
  13. package/es/KlineConfig.cjs +1 -1
  14. package/es/KlineConfig.js +164 -161
  15. package/es/KlineNew.cjs +1 -1
  16. package/es/KlineNew.js +114 -111
  17. package/es/KlinePlus.cjs +2 -2
  18. package/es/KlinePlus.js +183 -180
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +143 -140
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -2
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +58 -55
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +88 -85
  27. package/es/VarSelectDialog.cjs +2 -2
  28. package/es/VarSelectDialog.js +56 -53
  29. package/es/VarietyAutoComplete.cjs +1 -1
  30. package/es/VarietyAutoComplete.js +17 -15
  31. package/es/VarietySearch.cjs +14 -14
  32. package/es/VarietySearch.js +2433 -2204
  33. package/es/VarietyTextCopy.cjs +3 -3
  34. package/es/VarietyTextCopy.js +34 -31
  35. package/es/VirtualTable.cjs +1 -1
  36. package/es/VirtualTable.js +106 -103
  37. package/es/_initCloneObject-52b6a510.cjs +1 -0
  38. package/es/{_initCloneObject-c477c74d.js → _initCloneObject-eaef9418.js} +26 -25
  39. package/es/base-a5af3db3.js +288 -0
  40. package/es/base-ef747d02.cjs +5 -0
  41. package/es/castArray-35947698.cjs +1 -0
  42. package/es/{castArray-1eb17278.js → castArray-7741a212.js} +1 -1
  43. package/es/{config-provider-18c0a68a.cjs → config-provider-a584d81e.cjs} +1 -1
  44. package/es/{config-provider-49c17381.js → config-provider-b16efd62.js} +6 -6
  45. package/es/debounce-62f5b6e8.cjs +1 -0
  46. package/es/{debounce-33406a0d.js → debounce-8d53f4dd.js} +9 -9
  47. package/es/{dropdown-3f1fe325.cjs → dropdown-071c5d7e.cjs} +1 -1
  48. package/es/{dropdown-6e7b1df0.js → dropdown-a59bba73.js} +15 -15
  49. package/es/el-autocomplete-a07e9439.cjs +1 -0
  50. package/es/{el-autocomplete-87b7f461.js → el-autocomplete-ba808eb6.js} +53 -51
  51. package/es/{el-button-56624e61.js → el-button-c95adb85.js} +46 -45
  52. package/es/el-button-eec58cff.cjs +1 -0
  53. package/es/{el-checkbox-f13560e9.js → el-checkbox-7421ccd3.js} +40 -40
  54. package/es/{el-checkbox-09f3b57f.cjs → el-checkbox-c25236a6.cjs} +1 -1
  55. package/es/{el-dialog-1d5f5877.js → el-dialog-41ab8417.js} +10 -9
  56. package/es/el-dialog-ae86edb8.cjs +1 -0
  57. package/es/{el-divider-8a4c87e3.cjs → el-divider-4713d74c.cjs} +1 -1
  58. package/es/{el-divider-1cda1783.js → el-divider-4e059794.js} +1 -1
  59. package/es/el-empty-1697ded8.cjs +1 -0
  60. package/es/{el-empty-04682b5d.js → el-empty-33cb66f1.js} +3 -3
  61. package/es/el-form-item-c3fe189b.cjs +12 -0
  62. package/es/{el-form-item-505c0b70.js → el-form-item-c53c374d.js} +76 -75
  63. package/es/{el-input-262851e8.js → el-input-2f75c4ba.js} +85 -84
  64. package/es/el-input-7fd293af.cjs +1 -0
  65. package/es/el-input-number-22e21d16.cjs +1 -0
  66. package/es/{el-input-number-fdac2b86.js → el-input-number-5193fe6d.js} +83 -82
  67. package/es/{el-loading-3cf7b796.cjs → el-loading-cfd86c15.cjs} +1 -1
  68. package/es/{el-loading-7440dc64.js → el-loading-f6022062.js} +2 -2
  69. package/es/el-menu-item-17dc717e.cjs +1 -0
  70. package/es/{el-menu-item-36c3004c.js → el-menu-item-7e881203.js} +54 -53
  71. package/es/el-message-5e6a6be9.cjs +1 -0
  72. package/es/{el-message-box-8f5e34ca.js → el-message-box-a93d2f6a.js} +22 -20
  73. package/es/el-message-box-c10adb52.cjs +1 -0
  74. package/es/{el-message-416bd265.js → el-message-e544a8f5.js} +29 -28
  75. package/es/{el-overlay-04426e36.js → el-overlay-09ad71cd.js} +53 -52
  76. package/es/el-overlay-9e34965f.cjs +1 -0
  77. package/es/el-popconfirm-70a976bf.cjs +1 -0
  78. package/es/{el-popconfirm-3790cda2.js → el-popconfirm-81dcd202.js} +39 -38
  79. package/es/{el-popper-49152708.js → el-popper-b4f97157.js} +192 -191
  80. package/es/el-popper-b6c99b28.cjs +1 -0
  81. package/es/{el-segmented-05509f9d.js → el-segmented-b868d074.js} +13 -12
  82. package/es/el-segmented-f8fce9ac.cjs +1 -0
  83. package/es/{el-select-700f3686.js → el-select-95627997.js} +295 -292
  84. package/es/el-select-d8d91db1.cjs +1 -0
  85. package/es/{el-table-column-44360700.js → el-table-column-376cd907.js} +57 -54
  86. package/es/el-table-column-c974cb96.cjs +14 -0
  87. package/es/{el-tag-55a172c9.js → el-tag-66cab138.js} +31 -30
  88. package/es/el-tag-a33c4b22.cjs +1 -0
  89. package/es/{el-text-ab6bfc40.js → el-text-ac60d0f2.js} +4 -4
  90. package/es/{el-text-5bcaffb6.cjs → el-text-c20a9f48.cjs} +1 -1
  91. package/es/index-098c2447.cjs +1 -0
  92. package/es/{index-d8294b1a.cjs → index-11547a0c.cjs} +1 -1
  93. package/es/{index-0afedcbd.js → index-1f7d4f70.js} +12 -11
  94. package/es/{index-ae6c9d97.cjs → index-298075cf.cjs} +1 -1
  95. package/es/{index-4e46f96c.js → index-57672682.js} +13 -12
  96. package/es/{index-66ad0d6a.js → index-844bdd85.js} +34 -34
  97. package/es/{index-29418a8d.js → index-88546436.js} +18 -18
  98. package/es/index-960806da.js +314 -0
  99. package/es/index-9780a537.cjs +1 -0
  100. package/es/index-9b9ef5dd.cjs +1 -0
  101. package/es/{base-aa512893.js → index-a871c3eb.js} +171 -454
  102. package/es/index-bb833443.cjs +1 -0
  103. package/es/index-c108567d.cjs +1 -0
  104. package/es/index-d77a7336.js +204 -0
  105. package/es/{index-cbbd78b4.js → index-d91dc23f.js} +12 -12
  106. package/es/index-e5566b94.js +368 -0
  107. package/es/index-f3562b52.cjs +1 -0
  108. package/es/{index-882d77d3.cjs → index-f967d6c1.cjs} +1 -1
  109. package/es/raf-80ef0c0a.js +6 -0
  110. package/es/{raf-336ef01e.cjs → raf-8249652f.cjs} +1 -1
  111. package/es/{scroll-0a48995c.js → scroll-679bd6bf.js} +5 -5
  112. package/es/{scroll-19533c53.cjs → scroll-b108dabd.cjs} +1 -1
  113. package/es/style.css +1 -1
  114. package/es/use-form-common-props-815d48a6.js +364 -0
  115. package/es/use-form-common-props-fd9b61a0.cjs +1 -0
  116. package/es/use-global-config-30d7d8ce.cjs +1 -0
  117. package/es/use-global-config-b5e9d3d5.js +72 -0
  118. package/es/{validator-28b22907.cjs → validator-1b8a6128.cjs} +1 -1
  119. package/es/{validator-e35f7978.js → validator-764a9db0.js} +1 -1
  120. package/es/{vnode-b62d0045.js → vnode-5ddb7ed1.js} +1 -1
  121. package/es/{vnode-8cb31692.cjs → vnode-b906ae6d.cjs} +1 -1
  122. package/es/{zh-cn-7c8640bb.cjs → zh-cn-90317f62.cjs} +1 -1
  123. package/es/{zh-cn-346f3a73.js → zh-cn-e963c628.js} +2 -2
  124. package/lib/bundle.js +1 -1
  125. package/lib/bundle.umd.cjs +202 -202
  126. package/lib/{index-da0f2951.js → index-a5dba4c8.js} +26352 -26126
  127. package/lib/{python-c0a1e4ef.js → python-198536af.js} +1 -1
  128. package/lib/style.css +1 -1
  129. package/package.json +1 -1
  130. package/packages/Kline/componentsNew/KlineTips/index.vue +4 -4
  131. package/packages/Kline/index.vue +4 -4
  132. package/packages/KlineNew/components/KlineTips/index.vue +8 -8
  133. package/packages/KlinePlus/index.vue +4 -4
  134. package/packages/VarietySearch/components/CommonIndicator/index.vue +9 -8
  135. package/packages/VarietySearch/components/CompositeOrder/index.vue +243 -0
  136. package/packages/VarietySearch/config.js +16 -7
  137. package/packages/VarietySearch/index.vue +140 -125
  138. package/src/pages/KlineBasic/api.js +1 -1
  139. package/src/pages/VarietySearch/index.vue +101 -8
  140. package/es/_initCloneObject-e660897e.cjs +0 -1
  141. package/es/base-7ba08794.cjs +0 -5
  142. package/es/castArray-efa457a5.cjs +0 -1
  143. package/es/debounce-4aa22feb.cjs +0 -1
  144. package/es/el-autocomplete-609ac86d.cjs +0 -1
  145. package/es/el-button-08310c06.cjs +0 -1
  146. package/es/el-dialog-ea480083.cjs +0 -1
  147. package/es/el-empty-b40fa7ea.cjs +0 -1
  148. package/es/el-form-item-338ea2f7.cjs +0 -12
  149. package/es/el-input-b04b5bfc.cjs +0 -1
  150. package/es/el-input-number-7242c8b5.cjs +0 -1
  151. package/es/el-menu-item-7aca344e.cjs +0 -1
  152. package/es/el-message-05cd85bf.cjs +0 -1
  153. package/es/el-message-box-b7e9917e.cjs +0 -1
  154. package/es/el-overlay-60bc5a02.cjs +0 -1
  155. package/es/el-popconfirm-24b622c5.cjs +0 -1
  156. package/es/el-popper-1dd8f5b4.cjs +0 -1
  157. package/es/el-segmented-a928d89b.cjs +0 -1
  158. package/es/el-select-5fd77a96.cjs +0 -1
  159. package/es/el-table-column-bf3ab2a6.cjs +0 -14
  160. package/es/el-tag-d59f3463.cjs +0 -1
  161. package/es/index-3d0bc5da.js +0 -566
  162. package/es/index-a206f6eb.cjs +0 -1
  163. package/es/index-b4700d83.cjs +0 -1
  164. package/es/index-c30cf7f9.cjs +0 -1
  165. package/es/raf-d8c44079.js +0 -6
  166. package/es/use-form-common-props-41182853.cjs +0 -1
  167. package/es/use-form-common-props-4cdda474.js +0 -671
  168. package/es/use-global-config-7bfbe48c.js +0 -71
  169. package/es/use-global-config-dc5527e8.cjs +0 -1
@@ -1,12 +1,12 @@
1
1
  <script setup name="VarietySearch">
2
- import { watch, computed } from "vue";
2
+ import { watch, computed, provide } from "vue";
3
3
  import defaultConfig from "./config.js";
4
4
  import FactorScreen from "./components/FactorScreen/index.vue";
5
5
  import CommonIndicator from "./components/CommonIndicator/index.vue";
6
+ import CompositeOrder from "./components/CompositeOrder/index.vue";
6
7
 
7
8
  const props = defineProps({ config: { type: Object, default: {} } });
8
9
  const searchData = defineModel("searchData");
9
-
10
10
  searchData.value = Object.assign(searchData.value, {
11
11
  // 品种市场
12
12
  varietyMarket: null,
@@ -26,10 +26,12 @@ searchData.value = Object.assign(searchData.value, {
26
26
  list: [],
27
27
  sqlEnable: 0,
28
28
  sqlValue: null,
29
- factorSelectExpr: '',
29
+ factorSelectExpr: "",
30
30
  },
31
31
  // 常用指标
32
32
  commonIndicator: [],
33
+ // 组合排序
34
+ compositeOrder: [],
33
35
  });
34
36
 
35
37
  // 合并配置项
@@ -43,6 +45,7 @@ const config = computed(() => {
43
45
  });
44
46
  return result;
45
47
  });
48
+
46
49
  // 选项数据源: 品种市场
47
50
  const varietyMarketDict = computed(() => {
48
51
  return config.value.varietyMarket.options;
@@ -115,7 +118,7 @@ const clearRow = (key) => {
115
118
  list: [],
116
119
  sqlEnable: 0,
117
120
  sqlValue: null,
118
- factorSelectExpr: '',
121
+ factorSelectExpr: "",
119
122
  };
120
123
  break;
121
124
  }
@@ -123,6 +126,10 @@ const clearRow = (key) => {
123
126
  searchData.value[key] = [];
124
127
  break;
125
128
  }
129
+ case "compositeOrder": {
130
+ searchData.value[key] = [];
131
+ break;
132
+ }
126
133
  default: {
127
134
  searchData.value[key] = null;
128
135
  break;
@@ -155,6 +162,7 @@ watch(
155
162
  }
156
163
  );
157
164
 
165
+ provide("clearRow", clearRow);
158
166
  defineExpose({
159
167
  // 生成接口传参结构的数据
160
168
  formatData: (data) => {
@@ -438,6 +446,10 @@ defineExpose({
438
446
  };
439
447
  }
440
448
  }
449
+ // 8.组合分析
450
+ if (data.compositeOrder?.length) {
451
+ params.compositeOrder = data.compositeOrder.map(({ name, value }) => ({ name, value }));
452
+ }
441
453
  console.log("%c[st-varietySearch]: 接口传参数据生成完毕", "color: green", params);
442
454
  return params;
443
455
  },
@@ -462,10 +474,12 @@ defineExpose({
462
474
  list: [],
463
475
  sqlEnable: 0,
464
476
  sqlValue: null,
465
- factorSelectExpr: '',
477
+ factorSelectExpr: "",
466
478
  },
467
479
  // 常用指标
468
480
  commonIndicator: [],
481
+ // 组合排序
482
+ compositeOrder: [],
469
483
  };
470
484
  },
471
485
  });
@@ -474,137 +488,131 @@ defineExpose({
474
488
  <template>
475
489
  <div class="variety-search">
476
490
  <!-- 品种市场 -->
477
- <div
478
- v-if="config.varietyMarket?.show"
479
- class="variety-search-row"
480
- >
481
- <div class="title">
482
- <span>品种市场: </span>
483
- <span @click="clearRow('varietyMarket')">不限</span>
491
+ <template v-if="config.varietyMarket?.show">
492
+ <div class="variety-search-row">
493
+ <div class="title">
494
+ <span>品种市场: </span>
495
+ <span @click="clearRow('varietyMarket')">不限</span>
496
+ </div>
497
+ <el-radio-group
498
+ v-model="searchData.varietyMarket"
499
+ size="small"
500
+ >
501
+ <el-radio
502
+ v-for="{ label, value } in varietyMarketDict"
503
+ :label="label"
504
+ :value="value"
505
+ :key="value"
506
+ />
507
+ </el-radio-group>
484
508
  </div>
485
- <el-radio-group
486
- v-model="searchData.varietyMarket"
487
- size="small"
488
- >
489
- <el-radio
490
- v-for="{ label, value } in varietyMarketDict"
491
- :label="label"
492
- :value="value"
493
- :key="value"
494
- />
495
- </el-radio-group>
496
- </div>
509
+ </template>
497
510
  <!-- 常用选项 -->
498
- <div
499
- v-if="config.commonOption?.show && commonOptionDict.length"
500
- class="variety-search-row"
501
- >
502
- <div class="title">
503
- <span>常用选项: </span>
504
- <span @click="clearRow('commonOption')">不限</span>
511
+ <template v-if="config.commonOption?.show && commonOptionDict.length">
512
+ <div class="variety-search-row">
513
+ <div class="title">
514
+ <span>常用选项: </span>
515
+ <span @click="clearRow('commonOption')">不限</span>
516
+ </div>
517
+ <el-checkbox-group
518
+ v-model="searchData.commonOption"
519
+ size="small"
520
+ >
521
+ <el-checkbox
522
+ v-for="{ label, value } in commonOptionDict"
523
+ :label="label"
524
+ :value="value"
525
+ :key="value"
526
+ />
527
+ </el-checkbox-group>
505
528
  </div>
506
- <el-checkbox-group
507
- v-model="searchData.commonOption"
508
- size="small"
509
- >
510
- <el-checkbox
511
- v-for="{ label, value } in commonOptionDict"
512
- :label="label"
513
- :value="value"
514
- :key="value"
515
- />
516
- </el-checkbox-group>
517
- </div>
529
+ </template>
518
530
  <!-- 上市板块 -->
519
- <div
520
- v-if="config.marketIds?.show && marketIdsOptionDict.length"
521
- class="variety-search-row"
522
- >
523
- <div class="title">
524
- <span>上市板块: </span>
525
- <span @click="clearRow('marketIds')">不限</span>
531
+ <template v-if="config.marketIds?.show && marketIdsOptionDict.length">
532
+ <div class="variety-search-row">
533
+ <div class="title">
534
+ <span>上市板块: </span>
535
+ <span @click="clearRow('marketIds')">不限</span>
536
+ </div>
537
+ <el-checkbox-group
538
+ v-model="searchData.marketIds"
539
+ size="small"
540
+ >
541
+ <el-checkbox
542
+ v-for="{ label, value } in marketIdsOptionDict"
543
+ :label="label"
544
+ :value="value"
545
+ :key="value"
546
+ />
547
+ </el-checkbox-group>
526
548
  </div>
527
- <el-checkbox-group
528
- v-model="searchData.marketIds"
529
- size="small"
530
- >
531
- <el-checkbox
532
- v-for="{ label, value } in marketIdsOptionDict"
533
- :label="label"
534
- :value="value"
535
- :key="value"
536
- />
537
- </el-checkbox-group>
538
- </div>
549
+ </template>
539
550
  <!-- 自定标签 -->
540
- <div
541
- v-if="config.customTag?.show && customTagDict.length"
542
- class="variety-search-row"
543
- >
544
- <div class="title">
545
- <span>自定标签: </span>
546
- <span @click="clearRow('customTag')">不限</span>
551
+ <template v-if="config.customTag?.show && customTagDict.length">
552
+ <div class="variety-search-row">
553
+ <div class="title">
554
+ <span>自定标签: </span>
555
+ <span @click="clearRow('customTag')">不限</span>
556
+ </div>
557
+ <el-checkbox-group
558
+ v-model="searchData.customTag"
559
+ size="small"
560
+ >
561
+ <el-checkbox
562
+ v-for="{ label, value } in customTagDict"
563
+ :label="label"
564
+ :value="value"
565
+ :key="value"
566
+ />
567
+ </el-checkbox-group>
547
568
  </div>
548
- <el-checkbox-group
549
- v-model="searchData.customTag"
550
- size="small"
551
- >
552
- <el-checkbox
553
- v-for="{ label, value } in customTagDict"
554
- :label="label"
555
- :value="value"
556
- :key="value"
557
- />
558
- </el-checkbox-group>
559
- </div>
569
+ </template>
560
570
  <!-- 价差转换 -->
561
- <div
562
- v-if="config.jcTranslate?.show"
563
- class="variety-search-row"
564
- >
565
- <div class="title">
566
- <span>价差转换: </span>
567
- <span @click="clearRow('jcTranslate')">不限</span>
571
+ <template v-if="config.jcTranslate?.show">
572
+ <div class="variety-search-row">
573
+ <div class="title">
574
+ <span>价差转换: </span>
575
+ <span @click="clearRow('jcTranslate')">不限</span>
576
+ </div>
577
+ <el-radio-group
578
+ v-model="searchData.jcTranslate.type"
579
+ size="small"
580
+ >
581
+ <el-radio :value="2">价差转品种</el-radio>
582
+ <el-radio :value="1">品种转价差</el-radio>
583
+ </el-radio-group>
584
+ <el-select
585
+ v-show="searchData.jcTranslate.type === 1"
586
+ v-model="searchData.jcTranslate.jcList"
587
+ size="small"
588
+ multiple
589
+ collapse-tags
590
+ collapse-tags-tooltip
591
+ placeholder="请选择价差品种"
592
+ style="width: 140px"
593
+ >
594
+ <el-option
595
+ v-for="item in jcOptions"
596
+ :key="item.value"
597
+ :label="item.label"
598
+ :value="item.value"
599
+ />
600
+ </el-select>
568
601
  </div>
569
- <el-radio-group
570
- v-model="searchData.jcTranslate.type"
571
- size="small"
572
- >
573
- <el-radio :value="2">价差转品种</el-radio>
574
- <el-radio :value="1">品种转价差</el-radio>
575
- </el-radio-group>
576
- <el-select
577
- v-show="searchData.jcTranslate.type === 1"
578
- v-model="searchData.jcTranslate.jcList"
579
- size="small"
580
- multiple
581
- collapse-tags
582
- collapse-tags-tooltip
583
- placeholder="请选择价差品种"
584
- style="width: 140px"
585
- >
586
- <el-option
587
- v-for="item in jcOptions"
588
- :key="item.value"
589
- :label="item.label"
590
- :value="item.value"
591
- />
592
- </el-select>
593
- </div>
602
+ </template>
594
603
  <!-- 因子筛选 -->
595
- <div
596
- v-if="config.factorScreen?.show"
597
- class="variety-search-row"
598
- >
599
- <div class="title">
600
- <span>因子筛选: </span>
601
- <span @click="clearRow('factorScreen')">不限</span>
604
+ <template v-if="config.factorScreen?.show">
605
+ <div class="variety-search-row">
606
+ <div class="title">
607
+ <span>因子筛选: </span>
608
+ <span @click="clearRow('factorScreen')">不限</span>
609
+ </div>
610
+ <FactorScreen
611
+ v-model:data="searchData.factorScreen"
612
+ :config="config.factorScreen"
613
+ />
602
614
  </div>
603
- <FactorScreen
604
- v-model:data="searchData.factorScreen"
605
- :config="config.factorScreen"
606
- />
607
- </div>
615
+ </template>
608
616
  <!-- 常用指标 -->
609
617
  <CommonIndicator
610
618
  v-model:data="searchData.commonIndicator"
@@ -612,6 +620,13 @@ defineExpose({
612
620
  :commonOption="searchData.commonOption"
613
621
  :config="config.commonIndicator"
614
622
  />
623
+ <!-- 组合排序 -->
624
+ <CompositeOrder
625
+ v-model:data="searchData.compositeOrder"
626
+ :varietyMarket="searchData.varietyMarket"
627
+ :commonOption="searchData.commonOption"
628
+ :config="config.compositeOrder"
629
+ />
615
630
  </div>
616
631
  </template>
617
632
 
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
 
3
- const token = "ded0476c5608c82dd3e4afb944abef17";
3
+ const token = "d06d8c9c2ea6c489dc94820c084f7d28";
4
4
  const host = "http://192.168.12.38:5173";
5
5
 
6
6
  // 获取指标线配置
@@ -1,10 +1,12 @@
1
1
  <script setup>
2
2
  import axios from "axios";
3
- import { inject, ref, onMounted, computed } from "vue";
3
+ import { inject, ref, onMounted, computed, watch } from "vue";
4
4
  import { getAlarDict, getAlarFreq, getAlarFactor } from "./api.js";
5
5
 
6
6
  const { request } = inject("stConfig"); // 组件库全局配置
7
7
 
8
+ const searchData = ref({});
9
+
8
10
  const varietySearchRef = ref(null);
9
11
  const varietySearchData = ref({
10
12
  varietyMarket: null,
@@ -21,21 +23,87 @@ const varietySearchData = ref({
21
23
  sqlValue: null,
22
24
  },
23
25
  commonIndicator: [],
26
+ compositeOrder: [],
24
27
  });
25
28
  const varietySearchConfig = ref({});
26
29
 
27
30
  const data = ref();
31
+ const multipleTableRef = ref();
32
+ const orderByInfo = ref({ code: "asc" });
33
+ const sortable = ref("tableHeader");
28
34
 
29
35
  // 前端筛选条件格式化成API接口入参
30
36
  const apiParams = computed(() => {
31
37
  return { ...(varietySearchRef.value?.formatData(varietySearchData.value) ?? {}) };
32
38
  });
33
39
 
34
- // 查询数据
35
- const queryData = async () => {
36
- const { body } = await request.post("/common/qt/getFeatureInfosByPage", { ...apiParams.value, pageNum: 1, pageSize: 20 });
40
+ // 表格: 获取表格数据
41
+ const getTableData = async () => {
42
+ const params = {
43
+ ...apiParams.value,
44
+ pageNum: 1,
45
+ pageSize: 20,
46
+ };
47
+ /**
48
+ * @description: 根据用户最后一次操作交互的时机, 决定排序使用哪个维度
49
+ * 常规排序字段: orderByInfo
50
+ * 表头的orderByInfo和预警组的orderByInfo为顺序互斥, 谁最后操作就用谁
51
+ *
52
+ * 组合排序字段: compositeOrder
53
+ * 表头的orderByInfo与compositeOrder为顺序互斥, 谁最后操作就用谁
54
+ * 预警组的orderByInfo与compositeOrder为强制互斥, compositeOrder有值就一定优先使用compositeOrder
55
+ */
56
+ switch (sortable.value) {
57
+ case "tableHeader": {
58
+ delete params.compositeOrder; // 删除组合排序参数
59
+ params.orderByInfo = orderByInfo.value; // 传入常规排序参数
60
+ break;
61
+ }
62
+ case "alarmGroup": {
63
+ // 1. 如果存在组合排序, 那就直接使用组合排序
64
+ if (params.compositeOrder && params.compositeOrder.length) {
65
+ // 不进行额外处理
66
+ }
67
+ // 2. 如果不存在组合排序, 预警组选项存在
68
+ else if (searchData.value.groupId) {
69
+ orderByInfo.value = { orderByIndex: "asc" };
70
+ params.orderByInfo = orderByInfo.value;
71
+ }
72
+ // 3. 如果不存在组合排序, 预警组选项也不存在, 就传递常规排序初始值
73
+ else {
74
+ orderByInfo.value = { code: "asc" };
75
+ params.orderByInfo = orderByInfo.value;
76
+ multipleTableRef.value.clearSort();
77
+ }
78
+ break;
79
+ }
80
+ case "compositeOrder": {
81
+ multipleTableRef.value.clearSort(); // 清除表头排序样式
82
+ break;
83
+ }
84
+ }
85
+ console.log(params);
86
+ const { body } = await request.post("/common/qt/getFeatureInfosByPage", params);
37
87
  data.value = body.list;
38
88
  };
89
+ // 表格: 排序
90
+ const sortChange = ({ column, prop, order }) => {
91
+ const sortValueMap = new Map([
92
+ ["ascending", "asc"],
93
+ ["descending", "desc"],
94
+ ]);
95
+ if (order !== null) {
96
+ orderByInfo.value = {
97
+ [prop]: sortValueMap.get(order),
98
+ };
99
+ } else {
100
+ orderByInfo.value = {
101
+ code: "asc", //默认值
102
+ };
103
+ }
104
+ sortable.value = "tableHeader";
105
+ getTableData();
106
+ };
39
107
 
40
108
  onMounted(async () => {
41
109
  const dicAlar = await getAlarDict();
@@ -100,8 +168,21 @@ onMounted(async () => {
100
168
  commonIndicator: {
101
169
  show: true,
102
170
  },
171
+ // 组合排序 [选项: 组合默认]
172
+ compositeOrder: {
173
+ show: true,
174
+ },
103
175
  };
104
176
  });
177
+ watch(
178
+ () => varietySearchData.value.compositeOrder,
179
+ (newValue) => {
180
+ sortable.value = "compositeOrder";
181
+ },
182
+ {
183
+ deep: true,
184
+ }
185
+ );
105
186
  </script>
106
187
 
107
188
  <template>
@@ -111,10 +192,15 @@ onMounted(async () => {
111
192
  v-model:searchData="varietySearchData"
112
193
  :config="varietySearchConfig"
113
194
  />
114
- <el-divider content-position="left">格式化转为接口入参格式apiParams:</el-divider>
115
- <div>{{ apiParams }}</div>
116
- <el-divider content-position="left">结果内容, 分页为1, 页码为20:</el-divider>
117
- <el-button @click="queryData">查询测试</el-button>
195
+ <div>品种池组件接口参数: {{ apiParams }}</div>
196
+ <el-button
197
+ size="small"
198
+ type="primary"
199
+ @click="getTableData"
200
+ style="margin: 10px 0"
201
+ >
202
+ 查询测试
203
+ </el-button>
118
204
  <el-table
119
205
  class="alarm"
120
206
  ref="multipleTableRef"
@@ -122,6 +208,7 @@ onMounted(async () => {
122
208
  :stripe="true"
123
209
  :border="true"
124
210
  :data="data"
211
+ @sort-change="sortChange"
125
212
  >
126
213
  <el-table-column
127
214
  type="selection"
@@ -157,3 +244,9 @@ onMounted(async () => {
157
244
  </el-table>
158
245
  </div>
159
246
  </template>
247
+
248
+ <style lang="scss" scoped>
249
+ .alarm {
250
+ height: calc(100vh - 400px);
251
+ }
252
+ </style>
@@ -1 +0,0 @@
1
- "use strict";const u=require("./use-form-common-props-41182853.cjs"),o=require("./index-c30cf7f9.cjs");var c=Object.create,h=function(){function e(){}return function(n){if(!u.isObject(n))return{};if(c)return c(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();const P=h;function w(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function A(e,n,r,t){var g=!r;r||(r={});for(var s=-1,O=n.length;++s<O;){var i=n[s],f=t?t(r[i],e[i],i,r,e):void 0;f===void 0&&(f=e[i]),g?u.baseAssignValue(r,i,f):u.assignValue(r,i,f)}return r}function b(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var x=Object.prototype,C=x.hasOwnProperty;function B(e){if(!u.isObject(e))return b(e);var n=o.isPrototype(e),r=[];for(var t in e)t=="constructor"&&(n||!C.call(e,t))||r.push(t);return r}function I(e){return o.isArrayLike(e)?o.arrayLikeKeys(e,!0):B(e)}var T=o.overArg(Object.getPrototypeOf,Object);const v=T;var y=typeof exports=="object"&&exports&&!exports.nodeType&&exports,a=y&&typeof module=="object"&&module&&!module.nodeType&&module,U=a&&a.exports===y,l=U?u.root.Buffer:void 0,p=l?l.allocUnsafe:void 0;function m(e,n){if(n)return e.slice();var r=e.length,t=p?p(r):new e.constructor(r);return e.copy(t),t}function d(e){var n=new e.constructor(e.byteLength);return new o.Uint8Array(n).set(new o.Uint8Array(e)),n}function K(e,n){var r=n?d(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function L(e){return typeof e.constructor=="function"&&!o.isPrototype(e)?P(v(e)):{}}exports.cloneArrayBuffer=d;exports.cloneBuffer=m;exports.cloneTypedArray=K;exports.copyArray=w;exports.copyObject=A;exports.getPrototype=v;exports.initCloneObject=L;exports.keysIn=I;
@@ -1,5 +0,0 @@
1
- "use strict";const t=require("vue"),h="el",G="is-",v=(e,r,n,a,o)=>{let c=`${e}-${r}`;return n&&(c+=`-${n}`),a&&(c+=`__${a}`),o&&(c+=`--${o}`),c},P=Symbol("namespaceContextKey"),z=e=>{const r=e||(t.getCurrentInstance()?t.inject(P,t.ref(h)):t.ref(h));return t.computed(()=>t.unref(r)||h)},b=(e,r)=>{const n=z(r);return{namespace:n,b:(l="")=>v(n.value,e,l,"",""),e:l=>l?v(n.value,e,"",l,""):"",m:l=>l?v(n.value,e,"","",l):"",be:(l,s)=>l&&s?v(n.value,e,l,s,""):"",em:(l,s)=>l&&s?v(n.value,e,"",l,s):"",bm:(l,s)=>l&&s?v(n.value,e,l,"",s):"",bem:(l,s,d)=>l&&s&&d?v(n.value,e,l,s,d):"",is:(l,...s)=>{const d=s.length>=1?s[0]:!0;return l&&d?`${G}${l}`:""},cssVar:l=>{const s={};for(const d in l)l[d]&&(s[`--${n.value}-${d}`]=l[d]);return s},cssVarName:l=>`--${n.value}-${l}`,cssVarBlock:l=>{const s={};for(const d in l)l[d]&&(s[`--${n.value}-${e}-${d}`]=l[d]);return s},cssVarBlockName:l=>`--${n.value}-${e}-${l}`}};/**
2
- * @vue/shared v3.4.19
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const $=()=>{},J=Object.prototype.hasOwnProperty,C=(e,r)=>J.call(e,r),Q=Array.isArray,g=e=>typeof e=="function",V=e=>typeof e=="string",x=e=>e!==null&&typeof e=="object",X=e=>(x(e)||g(e))&&g(e.then)&&g(e.catch),Y=Object.prototype.toString,ee=e=>Y.call(e),te=e=>ee(e)==="[object Object]",S=e=>{const r=Object.create(null);return n=>r[n]||(r[n]=e(n))},re=/-(\w)/g,ne=S(e=>e.replace(re,(r,n)=>n?n.toUpperCase():"")),ae=/\B([A-Z])/g,oe=S(e=>e.replace(ae,"-$1").toLowerCase());function A(e){for(var r=-1,n=e==null?0:e.length,a={};++r<n;){var o=e[r];a[o[0]]=o[1]}return a}function H(e){return e==null}const D=e=>e===void 0,le=e=>typeof e=="boolean",j=e=>typeof e=="number",ce=e=>typeof Element>"u"?!1:e instanceof Element,se=e=>H(e),_e=e=>V(e)?!Number.isNaN(Number(e)):!1;var ue=Object.defineProperty,ie=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,L=(e,r,n)=>r in e?ue(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,me=(e,r)=>{for(var n in r||(r={}))de.call(r,n)&&L(e,n,r[n]);if(k)for(var n of k(r))fe.call(r,n)&&L(e,n,r[n]);return e},ve=(e,r)=>ie(e,pe(r));function we(e,r){var n;const a=t.shallowRef();return t.watchEffect(()=>{a.value=e()},ve(me({},r),{flush:(n=r==null?void 0:r.flush)!=null?n:"sync"})),t.readonly(a)}var M;const B=typeof window<"u",O=e=>typeof e=="function",he=e=>typeof e=="string",ge=(e,r,n)=>Math.min(n,Math.max(r,e)),E=()=>{},ye=B&&((M=window==null?void 0:window.navigator)==null?void 0:M.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function y(e){return typeof e=="function"?e():t.unref(e)}function xe(e,r){function n(...a){return new Promise((o,c)=>{Promise.resolve(e(()=>r.apply(this,a),{fn:r,thisArg:this,args:a})).then(o).catch(c)})}return n}function Be(e,r={}){let n,a,o=E;const c=i=>{clearTimeout(i),o(),o=E};return i=>{const p=y(e),_=y(r.maxWait);return n&&c(n),p<=0||_!==void 0&&_<=0?(a&&(c(a),a=null),Promise.resolve(i())):new Promise((u,m)=>{o=r.rejectOnCancel?m:u,_&&!a&&(a=setTimeout(()=>{n&&c(n),a=null,u(i())},_)),n=setTimeout(()=>{a&&c(a),a=null,u(i())},p)})}}function Ce(e){return e}function Ee(e,r){let n,a,o;const c=t.ref(!0),f=()=>{c.value=!0,o()};t.watch(e,f,{flush:"sync"});const i=O(r)?r:r.get,p=O(r)?void 0:r.set,_=t.customRef((u,m)=>(a=u,o=m,{get(){return c.value&&(n=i(),c.value=!1),a(),n},set(w){p==null||p(w)}}));return Object.isExtensible(_)&&(_.trigger=f),_}function I(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function Ve(e,r=200,n={}){return xe(Be(r,n),e)}function Ne(e,r=200,n={}){const a=t.ref(e.value),o=Ve(()=>{a.value=e.value},r,n);return t.watch(e,()=>o()),a}function ke(e,r=!0){t.getCurrentInstance()?t.onMounted(e):r?e():t.nextTick(e)}function Le(e,r,n={}){const{immediate:a=!0}=n,o=t.ref(!1);let c=null;function f(){c&&(clearTimeout(c),c=null)}function i(){o.value=!1,f()}function p(..._){f(),o.value=!0,c=setTimeout(()=>{o.value=!1,c=null,e(..._)},y(r))}return a&&(o.value=!0,B&&p()),I(i),{isPending:t.readonly(o),start:p,stop:i}}const F="__epPropKey",T=e=>e,Me=e=>x(e)&&!!e[F],U=(e,r)=>{if(!x(e)||Me(e))return e;const{values:n,required:a,default:o,type:c,validator:f}=e,p={type:c,required:!!a,validator:n||f?_=>{let u=!1,m=[];if(n&&(m=Array.from(n),C(e,"default")&&m.push(o),u||(u=m.includes(_))),f&&(u||(u=f(_))),!u&&m.length>0){const w=[...new Set(m)].map(N=>JSON.stringify(N)).join(", ");t.warn(`Invalid prop: validation failed${r?` for prop "${r}"`:""}. Expected one of [${w}], got value ${JSON.stringify(_)}.`)}return u}:void 0,[F]:!0};return C(e,"default")&&(p.default=o),p},R=e=>A(Object.entries(e).map(([r,n])=>[r,U(n,r)]));var q=(e,r)=>{const n=e.__vccOpts||e;for(const[a,o]of r)n[a]=o;return n};const K=(e="")=>e.split(" ").filter(r=>!!r.trim()),Oe=(e,r)=>{if(!e||!r)return!1;if(r.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(r)},Pe=(e,r)=>{!e||!r.trim()||e.classList.add(...K(r))},ze=(e,r)=>{!e||!r.trim()||e.classList.remove(...K(r))},be=(e,r)=>{var n;if(!B||!e||!r)return"";let a=ne(r);a==="float"&&(a="cssFloat");try{const o=e.style[a];if(o)return o;const c=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return c?c[a]:""}catch{return e.style[a]}};function W(e,r="px"){if(!e)return"";if(j(e)||_e(e))return`${e}${r}`;if(V(e))return e}const Z=(e,r)=>{if(e.install=n=>{for(const a of[e,...Object.values(r??{})])n.component(a.name,a)},r)for(const[n,a]of Object.entries(r))e[n]=a;return e},$e=(e,r)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[r]=e},e),Se=(e,r)=>(e.install=n=>{n.directive(r,e)},e),Ae=e=>(e.install=$,e),He=R({size:{type:T([Number,String])},color:{type:String}}),De=t.defineComponent({name:"ElIcon",inheritAttrs:!1}),je=t.defineComponent({...De,props:He,setup(e){const r=e,n=b("icon"),a=t.computed(()=>{const{size:o,color:c}=r;return!o&&!c?{}:{fontSize:D(o)?void 0:W(o),"--color":c}});return(o,c)=>(t.openBlock(),t.createElementBlock("i",t.mergeProps({class:t.unref(n).b(),style:t.unref(a)},o.$attrs),[t.renderSlot(o.$slots,"default")],16))}});var Ie=q(je,[["__file","icon.vue"]]);const Fe=Z(Ie);/*! Element Plus Icons Vue v2.3.1 */var Te=t.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Ue=Te,Re=t.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),qe=Re,Ke=t.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),We=Ke,Ze=t.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Ge=Ze,Je=t.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),t.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Qe=Je,Xe=t.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ye=Xe,e2=t.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),t.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),t2=e2,r2=t.defineComponent({name:"Close",__name:"close",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),n2=r2,a2=t.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),o2=a2,l2=t.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),c2=l2,s2=t.defineComponent({name:"Delete",__name:"delete",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),_2=s2,u2=t.defineComponent({name:"DocumentCopy",__name:"document-copy",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),i2=u2,p2=t.defineComponent({name:"Document",__name:"document",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),d2=p2,f2=t.defineComponent({name:"Edit",__name:"edit",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),m2=f2,v2=t.defineComponent({name:"Hide",__name:"hide",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),t.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),w2=v2,h2=t.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),g2=h2,y2=t.defineComponent({name:"Loading",__name:"loading",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),x2=y2,B2=t.defineComponent({name:"Minus",__name:"minus",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),C2=B2,E2=t.defineComponent({name:"MoreFilled",__name:"more-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),V2=E2,N2=t.defineComponent({name:"More",__name:"more",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),k2=N2,L2=t.defineComponent({name:"Plus",__name:"plus",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),M2=L2,O2=t.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),P2=O2,z2=t.defineComponent({name:"Right",__name:"right",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),b2=z2,$2=t.defineComponent({name:"SortDown",__name:"sort-down",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),S2=$2,A2=t.defineComponent({name:"SortUp",__name:"sort-up",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),H2=A2,D2=t.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),j2=D2,I2=t.defineComponent({name:"UserFilled",__name:"user-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),F2=I2,T2=t.defineComponent({name:"View",__name:"view",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),U2=T2,R2=t.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(r,n)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),q2=R2;exports.ElIcon=Fe;exports.NOOP=$;exports._export_sfc=q;exports.addClass=Pe;exports.addUnit=W;exports.arrow_down_default=Ue;exports.arrow_left_default=qe;exports.arrow_right_default=We;exports.arrow_up_default=Ge;exports.buildProp=U;exports.buildProps=R;exports.circle_check_default=Qe;exports.circle_close_default=t2;exports.circle_close_filled_default=Ye;exports.clamp=ge;exports.close_default=n2;exports.computedEager=we;exports.computedWithControl=Ee;exports.d_arrow_left_default=o2;exports.d_arrow_right_default=c2;exports.defaultNamespace=h;exports.definePropType=T;exports.delete_default=_2;exports.document_copy_default=i2;exports.document_default=d2;exports.edit_default=m2;exports.fromPairs=A;exports.getStyle=be;exports.hasClass=Oe;exports.hasOwn=C;exports.hide_default=w2;exports.hyphenate=oe;exports.identity=Ce;exports.info_filled_default=g2;exports.isArray=Q;exports.isBoolean=le;exports.isClient=B;exports.isElement=ce;exports.isFunction=g;exports.isIOS=ye;exports.isNil=H;exports.isNumber=j;exports.isObject=x;exports.isPlainObject=te;exports.isPromise=X;exports.isPropAbsent=se;exports.isString=V;exports.isString$1=he;exports.isUndefined=D;exports.loading_default=x2;exports.minus_default=C2;exports.more_default=k2;exports.more_filled_default=V2;exports.namespaceContextKey=P;exports.noop=E;exports.plus_default=M2;exports.question_filled_default=P2;exports.refDebounced=Ne;exports.removeClass=ze;exports.resolveUnref=y;exports.right_default=b2;exports.sort_down_default=S2;exports.sort_up_default=H2;exports.success_filled_default=j2;exports.tryOnMounted=ke;exports.tryOnScopeDispose=I;exports.useGetDerivedNamespace=z;exports.useNamespace=b;exports.useTimeoutFn=Le;exports.user_filled_default=F2;exports.view_default=U2;exports.warning_filled_default=q2;exports.withInstall=Z;exports.withInstallDirective=Se;exports.withInstallFunction=$e;exports.withNoopInstall=Ae;
@@ -1 +0,0 @@
1
- "use strict";const t=require("./use-form-common-props-41182853.cjs");function e(){if(!arguments.length)return[];var r=arguments[0];return t.isArray(r)?r:[r]}exports.castArray=e;
@@ -1 +0,0 @@
1
- "use strict";const l=require("./use-form-common-props-41182853.cjs");var A=/\s/;function L(e){for(var r=e.length;r--&&A.test(e.charAt(r)););return r}var M=/^\s+/;function $(e){return e&&e.slice(0,L(e)+1).replace(M,"")}var k=0/0,j=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,F=/^0o[0-7]+$/i,R=parseInt;function v(e){if(typeof e=="number")return e;if(l.isSymbol(e))return k;if(l.isObject(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=l.isObject(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=$(e);var t=B.test(e);return t||F.test(e)?R(e.slice(2),t?2:8):j.test(e)?k:+e}var P=function(){return l.root.Date.now()};const h=P;var _="Expected a function",q=Math.max,D=Math.min;function H(e,r,t){var u,s,g,c,i,f,o=0,y=!1,d=!1,b=!0;if(typeof e!="function")throw new TypeError(_);r=v(r)||0,l.isObject(t)&&(y=!!t.leading,d="maxWait"in t,g=d?q(v(t.maxWait)||0,r):g,b="trailing"in t?!!t.trailing:b);function x(n){var a=u,m=s;return u=s=void 0,o=n,c=e.apply(m,a),c}function S(n){return o=n,i=setTimeout(T,r),y?x(n):c}function W(n){var a=n-f,m=n-o,O=r-a;return d?D(O,g-m):O}function p(n){var a=n-f,m=n-o;return f===void 0||a>=r||a<0||d&&m>=g}function T(){var n=h();if(p(n))return E(n);i=setTimeout(T,W(n))}function E(n){return i=void 0,b&&u?x(n):(u=s=void 0,c)}function C(){i!==void 0&&clearTimeout(i),o=0,u=f=s=i=void 0}function N(){return i===void 0?c:E(h())}function I(){var n=h(),a=p(n);if(u=arguments,s=this,f=n,a){if(i===void 0)return S(f);if(d)return clearTimeout(i),i=setTimeout(T,r),x(f)}return i===void 0&&(i=setTimeout(T,r)),c}return I.cancel=C,I.flush=N,I}exports.debounce=H;exports.toNumber=v;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),S=require("./use-form-common-props-41182853.cjs"),l=require("./base-7ba08794.cjs"),T=require("./el-input-b04b5bfc.cjs"),ne=require("./index-ae6c9d97.cjs"),u=require("./el-popper-1dd8f5b4.cjs"),se=require("./debounce-4aa22feb.cjs"),ae=l.buildProps({...T.inputProps,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:l.definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:l.definePropType([Function,Array]),default:l.NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:u.useTooltipContentProps.teleported,appendTo:u.useTooltipContentProps.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean}),re={[u.UPDATE_MODEL_EVENT]:s=>l.isString(s)||l.isNumber(s),[u.INPUT_EVENT]:s=>l.isString(s)||l.isNumber(s),[u.CHANGE_EVENT]:s=>l.isString(s)||l.isNumber(s),focus:s=>s instanceof FocusEvent,blur:s=>s instanceof FocusEvent,clear:()=>!0,select:s=>l.isObject(s)},q="ElAutocomplete",ue=e.defineComponent({name:q,inheritAttrs:!1}),ie=e.defineComponent({...ue,props:ae,emits:re,setup(s,{expose:U,emit:p}){const r=s,z=e.computed(()=>u.pick(r,Object.keys(T.inputProps))),L=e.useAttrs(),$=S.useFormDisabled(),i=l.useNamespace("autocomplete"),f=e.ref(),A=e.ref(),b=e.ref(),P=e.ref();let V=!1,C=!1;const d=e.ref([]),a=e.ref(-1),I=e.ref(""),v=e.ref(!1),E=e.ref(!1),m=e.ref(!1),h=S.useId(),R=e.computed(()=>L.style),g=e.computed(()=>(d.value.length>0||m.value)&&v.value),_=e.computed(()=>!r.hideLoading&&m.value),W=e.computed(()=>f.value?Array.from(f.value.$el.querySelectorAll("input")):[]),H=()=>{g.value&&(I.value=`${f.value.$el.offsetWidth}px`)},G=()=>{a.value=-1},B=async t=>{if(E.value)return;const o=n=>{m.value=!1,!E.value&&(l.isArray(n)?(d.value=n,a.value=r.highlightFirstItem?0:-1):u.throwError(q,"autocomplete suggestions must be an array"))};if(m.value=!0,l.isArray(r.fetchSuggestions))o(r.fetchSuggestions);else{const n=await r.fetchSuggestions(t,o);l.isArray(n)&&o(n)}},D=se.debounce(B,r.debounce),j=t=>{const o=!!t;if(p(u.INPUT_EVENT,t),p(u.UPDATE_MODEL_EVENT,t),E.value=!1,v.value||(v.value=o),!r.triggerOnFocus&&!t){E.value=!0,d.value=[];return}D(t)},x=t=>{var o;$.value||(((o=t.target)==null?void 0:o.tagName)!=="INPUT"||W.value.includes(document.activeElement))&&(v.value=!0)},J=t=>{p(u.CHANGE_EVENT,t)},Q=t=>{var o;if(C)C=!1;else{v.value=!0,p("focus",t);const n=(o=r.modelValue)!=null?o:"";r.triggerOnFocus&&!V&&D(String(n))}},X=t=>{setTimeout(()=>{var o;if((o=b.value)!=null&&o.isFocusInsideContent()){C=!0;return}v.value&&y(),p("blur",t)})},Y=()=>{v.value=!1,p(u.UPDATE_MODEL_EVENT,""),p("clear")},F=async()=>{var t;(t=f.value)!=null&&t.isComposing||(g.value&&a.value>=0&&a.value<d.value.length?w(d.value[a.value]):r.selectWhenUnmatched&&(p("select",{value:r.modelValue}),d.value=[],a.value=-1))},Z=t=>{g.value&&(t.preventDefault(),t.stopPropagation(),y())},y=()=>{v.value=!1},ee=()=>{var t;(t=f.value)==null||t.focus()},te=()=>{var t;(t=f.value)==null||t.blur()},w=async t=>{p(u.INPUT_EVENT,t[r.valueKey]),p(u.UPDATE_MODEL_EVENT,t[r.valueKey]),p("select",t),d.value=[],a.value=-1},k=t=>{var o,n;if(!g.value||m.value)return;if(t<0){a.value=-1;return}t>=d.value.length&&(t=d.value.length-1);const c=A.value.querySelector(`.${i.be("suggestion","wrap")}`),le=c.querySelectorAll(`.${i.be("suggestion","list")} li`)[t],K=c.scrollTop,{offsetTop:M,scrollHeight:N}=le;M+N>K+c.clientHeight&&(c.scrollTop+=N),M<K&&(c.scrollTop-=N),a.value=t,(n=(o=f.value)==null?void 0:o.ref)==null||n.setAttribute("aria-activedescendant",`${h.value}-item-${a.value}`)},O=S.onClickOutside(P,()=>{var t;(t=b.value)!=null&&t.isFocusInsideContent()||g.value&&y()});return e.onBeforeUnmount(()=>{O==null||O()}),e.onMounted(()=>{var t;const o=(t=f.value)==null?void 0:t.ref;o&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:"id"},{key:"aria-activedescendant",value:`${h.value}-item-${a.value}`}].forEach(({key:n,value:c})=>o.setAttribute(n,c)),V=o.hasAttribute("readonly"))}),U({highlightedIndex:a,activated:v,loading:m,inputRef:f,popperRef:b,suggestions:d,handleSelect:w,handleKeyEnter:F,focus:ee,blur:te,close:y,highlight:k,getData:B}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(u.ElTooltip),{ref_key:"popperRef",ref:b,visible:e.unref(g),placement:t.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[e.unref(i).e("popper"),t.popperClass],teleported:t.teleported,"append-to":t.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${e.unref(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:H,onHide:G},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"regionRef",ref:A,class:e.normalizeClass([e.unref(i).b("suggestion"),e.unref(i).is("loading",e.unref(_))]),style:e.normalizeStyle({[t.fitInputWidth?"width":"minWidth"]:I.value,outline:"none"}),role:"region"},[t.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(i).be("suggestion","header")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(t.$slots,"header")],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(ne.ElScrollbar),{id:e.unref(h),tag:"ul","wrap-class":e.unref(i).be("suggestion","wrap"),"view-class":e.unref(i).be("suggestion","list"),role:"listbox"},{default:e.withCtx(()=>[e.unref(_)?(e.openBlock(),e.createElementBlock("li",{key:0},[e.renderSlot(t.$slots,"loading",{},()=>[e.createVNode(e.unref(l.ElIcon),{class:e.normalizeClass(e.unref(i).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(l.loading_default))]),_:1},8,["class"])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(d.value,(n,c)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(h)}-item-${c}`,key:c,class:e.normalizeClass({highlighted:a.value===c}),role:"option","aria-selected":a.value===c,onClick:oe=>w(n)},[e.renderSlot(t.$slots,"default",{item:n},()=>[e.createTextVNode(e.toDisplayString(n[t.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(i).be("suggestion","footer")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(t.$slots,"footer")],10,["onClick"])):e.createCommentVNode("v-if",!0)],6)]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"listboxRef",ref:P,class:e.normalizeClass([e.unref(i).b(),t.$attrs.class]),style:e.normalizeStyle(e.unref(R)),role:"combobox","aria-haspopup":"listbox","aria-expanded":e.unref(g),"aria-owns":e.unref(h)},[e.createVNode(e.unref(T.ElInput),e.mergeProps({ref_key:"inputRef",ref:f},e.mergeProps(e.unref(z),t.$attrs),{"model-value":t.modelValue,disabled:e.unref($),onInput:j,onChange:J,onFocus:Q,onBlur:X,onClear:Y,onKeydown:[e.withKeys(e.withModifiers(n=>k(a.value-1),["prevent"]),["up"]),e.withKeys(e.withModifiers(n=>k(a.value+1),["prevent"]),["down"]),e.withKeys(F,["enter"]),e.withKeys(y,["tab"]),e.withKeys(Z,["esc"])],onMousedown:x}),e.createSlots({_:2},[t.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")])}:void 0,t.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"append")])}:void 0,t.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")])}:void 0,t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")])}:void 0]),1040,["model-value","disabled","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var ce=l._export_sfc(ie,[["__file","autocomplete.vue"]]);const pe=l.withInstall(ce);exports.ElAutocomplete=pe;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),u=require("./base-7ba08794.cjs"),w=require("./index-f1c702f6.cjs"),z=require("./use-global-config-dc5527e8.cjs"),b=require("./use-form-common-props-41182853.cjs"),E=require("./index-eea0bcb3.cjs"),x=Symbol("buttonGroupContextKey"),I=(o,d)=>{w.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},e.computed(()=>o.type==="text"));const r=e.inject(x,void 0),l=z.useGlobalConfig("button"),{form:c}=b.useFormItem(),a=b.useFormSize(e.computed(()=>r==null?void 0:r.size)),n=b.useFormDisabled(),p=e.ref(),m=e.useSlots(),v=e.computed(()=>{var t;return o.type||(r==null?void 0:r.type)||((t=l.value)==null?void 0:t.type)||""}),g=e.computed(()=>{var t,s,i;return(i=(s=o.autoInsertSpace)!=null?s:(t=l.value)==null?void 0:t.autoInsertSpace)!=null?i:!1}),y=e.computed(()=>{var t,s,i;return(i=(s=o.plain)!=null?s:(t=l.value)==null?void 0:t.plain)!=null?i:!1}),_=e.computed(()=>{var t,s,i;return(i=(s=o.round)!=null?s:(t=l.value)==null?void 0:t.round)!=null?i:!1}),B=e.computed(()=>{var t,s,i;return(i=(s=o.text)!=null?s:(t=l.value)==null?void 0:t.text)!=null?i:!1}),k=e.computed(()=>o.tag==="button"?{ariaDisabled:n.value||o.loading,disabled:n.value||o.loading,autofocus:o.autofocus,type:o.nativeType}:{}),C=e.computed(()=>{var t;const s=(t=m.default)==null?void 0:t.call(m);if(g.value&&(s==null?void 0:s.length)===1){const i=s[0];if((i==null?void 0:i.type)===e.Text){const $=i.children;return/^\p{Unified_Ideograph}{2}$/u.test($.trim())}}return!1});return{_disabled:n,_size:a,_type:v,_ref:p,_props:k,_plain:y,_round:_,_text:B,shouldAddSpace:C,handleClick:t=>{if(n.value||o.loading){t.stopPropagation();return}o.nativeType==="reset"&&(c==null||c.resetFields()),d("click",t)}}},N=["default","primary","success","warning","info","danger","text",""],P=["button","submit","reset"],S=u.buildProps({size:b.useSizeProp,disabled:Boolean,type:{type:String,values:N,default:""},icon:{type:b.iconPropType},nativeType:{type:String,values:P,default:"button"},loading:Boolean,loadingIcon:{type:b.iconPropType,default:()=>u.loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:u.definePropType([String,Object]),default:"button"}}),T={click:o=>o instanceof MouseEvent};function f(o,d=20){return o.mix("#141414",d).toString()}function D(o){const d=b.useFormDisabled(),r=u.useNamespace("button");return e.computed(()=>{let l={},c=o.color;if(c){const a=c.match(/var\((.*?)\)/);a&&(c=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const n=new E.TinyColor(c),p=o.dark?n.tint(20).toString():f(n,20);if(o.plain)l=r.cssVarBlock({"bg-color":o.dark?f(n,90):n.tint(90).toString(),"text-color":c,"border-color":o.dark?f(n,50):n.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":c,"hover-border-color":c,"active-bg-color":p,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":p}),d.value&&(l[r.cssVarBlockName("disabled-bg-color")]=o.dark?f(n,90):n.tint(90).toString(),l[r.cssVarBlockName("disabled-text-color")]=o.dark?f(n,50):n.tint(50).toString(),l[r.cssVarBlockName("disabled-border-color")]=o.dark?f(n,80):n.tint(80).toString());else{const m=o.dark?f(n,30):n.tint(30).toString(),v=n.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(l=r.cssVarBlock({"bg-color":c,"text-color":v,"border-color":c,"hover-bg-color":m,"hover-text-color":v,"hover-border-color":m,"active-bg-color":p,"active-border-color":p}),d.value){const g=o.dark?f(n,50):n.tint(50).toString();l[r.cssVarBlockName("disabled-bg-color")]=g,l[r.cssVarBlockName("disabled-text-color")]=o.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,l[r.cssVarBlockName("disabled-border-color")]=g}}}return l})}const G=e.defineComponent({name:"ElButton"}),F=e.defineComponent({...G,props:S,emits:T,setup(o,{expose:d,emit:r}){const l=o,c=D(l),a=u.useNamespace("button"),{_ref:n,_size:p,_type:m,_disabled:v,_props:g,_plain:y,_round:_,_text:B,shouldAddSpace:k,handleClick:C}=I(l,r),h=e.computed(()=>[a.b(),a.m(m.value),a.m(p.value),a.is("disabled",v.value),a.is("loading",l.loading),a.is("plain",y.value),a.is("round",_.value),a.is("circle",l.circle),a.is("text",B.value),a.is("link",l.link),a.is("has-bg",l.bg)]);return d({ref:n,size:p,type:m,disabled:v,shouldAddSpace:k}),(t,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),e.mergeProps({ref_key:"_ref",ref:n},e.unref(g),{class:e.unref(h),style:e.unref(c),onClick:e.unref(C)}),{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.loading?e.renderSlot(t.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:1,class:e.normalizeClass(e.unref(a).is("loading"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.loadingIcon)))]),_:1},8,["class"]))],64)):t.icon||t.$slots.icon?(e.openBlock(),e.createBlock(e.unref(u.ElIcon),{key:1},{default:e.withCtx(()=>[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0})):e.renderSlot(t.$slots,"icon",{key:1})]),_:3})):e.createCommentVNode("v-if",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(a).em("text","expand")]:e.unref(k)})},[e.renderSlot(t.$slots,"default")],2)):e.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var q=u._export_sfc(F,[["__file","button.vue"]]);const K={size:S.size,type:S.type},j=e.defineComponent({name:"ElButtonGroup"}),A=e.defineComponent({...j,props:K,setup(o){const d=o;e.provide(x,e.reactive({size:e.toRef(d,"size"),type:e.toRef(d,"type")}));const r=u.useNamespace("button");return(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b("group"))},[e.renderSlot(l.$slots,"default")],2))}});var V=u._export_sfc(A,[["__file","button-group.vue"]]);const R=u.withInstall(q,{ButtonGroup:V});u.withNoopInstall(V);exports.ElButton=R;exports.buttonTypes=N;