@peng_kai/kit 0.2.0-beta.26 → 0.2.0-beta.27

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.
@@ -41,21 +41,24 @@ function reset() {
41
41
  </script>
42
42
 
43
43
  <template>
44
- <div class="flex-none flex w-min ml-auto">
45
- <AButton class="filter-btn mr2" type="primary" htmlType="submit" :loading="loading" @click="filter()">
46
- 查询
47
- </AButton>
48
- <AButton :disabled="loading" @click="reset()">
49
- 重置
50
- </AButton>
44
+ <div class="btns flex-none flex w-min ml-auto gap-2">
45
+ <slot :loading="loading" :filter="filter" :reset="reset">
46
+ <AButton class="filter-btn" type="primary" htmlType="submit" :loading="loading" @click="filter()">
47
+ 查询
48
+ </AButton>
49
+ <AButton :disabled="loading" @click="reset()">
50
+ 重置
51
+ </AButton>
52
+ </slot>
51
53
  </div>
52
54
  </template>
53
55
 
54
56
  <style scoped lang="scss">
55
- .filter-btn {
57
+ .filter-btn,
58
+ :slotted(.filter-btn) {
56
59
  position: relative;
57
60
 
58
- :deep(.ant-btn-loading-icon) {
61
+ .ant-btn-loading-icon{
59
62
  position: absolute;
60
63
  left: 50%;
61
64
  transform: translateX(-50%);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.26",
4
+ "version": "0.2.0-beta.27",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",