@yetuzi/vue3-query-components 1.0.2 → 1.0.4

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
@@ -30,12 +30,10 @@ pnpm add @yetuzi/vue3-query-components
30
30
 
31
31
  ```typescript
32
32
  import { createApp } from 'vue'
33
- import Vue3QueryComponents from '@yetuzi/vue3-query-components'
34
33
  import '@yetuzi/vue3-query-components/dist/style.css'
35
34
  import 'element-plus/theme-chalk/index.css' // 需要安装 Element Plus
36
35
 
37
36
  const app = createApp(App)
38
- app.use(Vue3QueryComponents)
39
37
  ```
40
38
 
41
39
  ### 2. 按需引入
@@ -45,7 +43,7 @@ import {
45
43
  CommonQueryTable,
46
44
  CommonTable,
47
45
  CommonForm,
48
- CommonConfigProvider
46
+ CommonConfigProvider,
49
47
  } from '@yetuzi/vue3-query-components'
50
48
  import '@yetuzi/vue3-query-components/dist/style.css'
51
49
  import 'element-plus/theme-chalk/index.css' // 需要安装 Element Plus
@@ -286,7 +284,7 @@ interface TableColumn {
286
284
 
287
285
  ### 环境要求
288
286
 
289
- - Node.js >= 16.0.0
287
+ - Node.js >= 18.0.0
290
288
  - Vue 3.5+
291
289
  - Element Plus 2.11+
292
290
  - TypeScript 5.9+
@@ -325,13 +323,13 @@ npm test
325
323
  ```json
326
324
  {
327
325
  "peerDependencies": {
328
- "vue": "^3.5.0", // Vue 3 - 需要宿主项目安装
329
- "element-plus": "^2.11.5" // Element Plus UI 库 - 需要宿主项目安装
326
+ "vue": "^3.5.0", // Vue 3 - 需要宿主项目安装
327
+ "element-plus": "^2.11.5" // Element Plus UI 库 - 需要宿主项目安装
330
328
  },
331
329
  "dependencies": {
332
- "dayjs": "^1.11.18", // 日期处理库
333
- "lodash-es": "^4.17.21", // 工具函数库
334
- "vue-hooks-plus": "^2.4.1" // Vue 组合式 API 工具库
330
+ "dayjs": "^1.11.18", // 日期处理库
331
+ "lodash-es": "^4.17.21", // 工具函数库
332
+ "vue-hooks-plus": "^2.4.1" // Vue 组合式 API 工具库
335
333
  }
336
334
  }
337
335
  ```
@@ -359,14 +357,4 @@ npm test
359
357
 
360
358
  ## 🗺️ 更新日志
361
359
 
362
- ### v1.0.1 (2024-12-10)
363
-
364
- - 📝 更新 README.md 包名引用
365
- - ✨ 完善文档和使用示例
366
- - 🔧 优化组件配置系统
367
-
368
- ### v1.0.0
369
-
370
- - 🎉 初始版本发布
371
- - ✨ 包含完整的查询表格组件体系
372
- - 📦 支持全局配置和主题定制
360
+ 查看详细的更新日志请访问:[CHANGELOG.md](./CHANGELOG.md)
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .common-query-table[data-v-36a95823]{--spacing: 15px;width:100%;height:100%;flex:1;display:flex;flex-direction:column;box-sizing:border-box;padding:var(--spacing) 12px;overflow:hidden}[class^=common-query-table-][data-v-36a95823]{width:100%}[class^=common-query-table-]+[class^=common-query-table-][data-v-36a95823]{margin-top:var(--spacing)}.common-query-table .common-query-table-table[data-v-36a95823]{flex:1;overflow:hidden}.el-form[data-v-6b862115]{margin-bottom:-18px!important}.el-form .el-form-item[data-v-6b862115] .el-form-item__content{width:var(--v58512696)}.common-table[data-v-5da80890]{width:100%;height:100%;display:flex;flex-direction:column}
1
+ .common-query-table[data-v-a632c8bc]{--spacing: 15px;width:100%;height:100%;flex:1;display:flex;flex-direction:column;box-sizing:border-box;padding:var(--spacing) 12px;overflow:hidden}[class^=common-query-table-][data-v-a632c8bc]{width:100%}[class^=common-query-table-]+[class^=common-query-table-][data-v-a632c8bc]{margin-top:var(--spacing)}.common-query-table .common-query-table-table[data-v-a632c8bc]{flex:1;overflow:hidden}.el-form[data-v-a395e100]{margin-bottom:-18px!important}.el-form .el-form-item[data-v-a395e100] .el-form-item__content{width:var(--a4e07eb0)}.common-table[data-v-d7777e76]{width:100%;height:100%;display:flex;flex-direction:column}
package/dist/index.js CHANGED
@@ -36,7 +36,24 @@ var at = (e, t, n) => new Promise((r, o) => {
36
36
  s((n = n.apply(e, t)).next());
37
37
  });
38
38
  import { defineComponent as J, useAttrs as Ar, reactive as Be, provide as Rr, watchEffect as ae, renderSlot as Q, ref as I, unref as h, watch as Se, onScopeDispose as St, computed as re, onUnmounted as jn, inject as An, isRef as Tt, toRefs as Mr, readonly as Dr, isVNode as Nr, cloneVNode as Fr, useTemplateRef as Ct, createElementBlock as he, openBlock as N, Fragment as Qe, renderList as le, normalizeClass as Ir, createBlock as H, withDirectives as Vr, createSlots as Re, withCtx as k, mergeProps as G, mergeModels as te, useCssVars as Br, useModel as oe, withModifiers as Ur, createVNode as Me, resolveDynamicComponent as Lt, h as Ht, createTextVNode as ft, toDisplayString as dt, withKeys as zr, normalizeProps as Lr, guardReactiveProps as Hr, useSlots as Wr } from "vue";
39
+ import "element-plus/es/components/loading/style/css";
39
40
  import { ElLoading as Yr, ElForm as qr, ElFormItem as Wt, ElButton as Yt, ElTable as kr, ElTableColumn as Gr, ElEmpty as Zr, ElPagination as Xr, ElSelect as Jr, ElOption as Qr, ElInput as Kr, ElDatePicker as eo, ElRadioGroup as to, ElCheckboxGroup as no, ElSwitch as ro } from "element-plus";
41
+ import "element-plus/es/components/form/style/css";
42
+ import "element-plus/es/components/form-item/style/css";
43
+ import "element-plus/es/components/button/style/css";
44
+ import "element-plus/es/components/switch/style/css";
45
+ import "element-plus/es/components/checkbox-group/style/css";
46
+ import "element-plus/es/components/checkbox/style/css";
47
+ import "element-plus/es/components/radio-group/style/css";
48
+ import "element-plus/es/components/radio/style/css";
49
+ import "element-plus/es/components/date-picker/style/css";
50
+ import "element-plus/es/components/input/style/css";
51
+ import "element-plus/es/components/select/style/css";
52
+ import "element-plus/es/components/option/style/css";
53
+ import "element-plus/es/components/table/style/css";
54
+ import "element-plus/es/components/empty/style/css";
55
+ import "element-plus/es/components/table-column/style/css";
56
+ import "element-plus/es/components/pagination/style/css";
40
57
  var Rn = typeof global == "object" && global && global.Object === Object && global, oo = typeof self == "object" && self && self.Object === Object && self, K = Rn || oo || Function("return this")(), ce = K.Symbol, Mn = Object.prototype, ao = Mn.hasOwnProperty, io = Mn.toString, je = ce ? ce.toStringTag : void 0;
41
58
  function so(e) {
42
59
  var t = ao.call(e, je), n = e[je];
@@ -1098,7 +1115,7 @@ function Ol(e, t, n) {
1098
1115
  trailing: o
1099
1116
  });
1100
1117
  }
1101
- const kc = /* @__PURE__ */ J({
1118
+ const ff = /* @__PURE__ */ J({
1102
1119
  name: "CommonConfigProvider",
1103
1120
  inheritAttrs: !1,
1104
1121
  __name: "index",
@@ -2239,7 +2256,7 @@ const _c = { class: "common-query-table" }, xc = /* @__PURE__ */ J({
2239
2256
  for (const [r, o] of t)
2240
2257
  n[r] = o;
2241
2258
  return n;
2242
- }, Gc = /* @__PURE__ */ Ft(xc, [["__scopeId", "data-v-36a95823"]]), $c = /* @__PURE__ */ J({
2259
+ }, df = /* @__PURE__ */ Ft(xc, [["__scopeId", "data-v-a632c8bc"]]), $c = /* @__PURE__ */ J({
2243
2260
  name: "CommonForm",
2244
2261
  __name: "index",
2245
2262
  props: /* @__PURE__ */ te({
@@ -2271,7 +2288,7 @@ const _c = { class: "common-query-table" }, xc = /* @__PURE__ */ J({
2271
2288
  emits: /* @__PURE__ */ te(["submit", "reset"], ["update:loading"]),
2272
2289
  setup(e, { expose: t, emit: n }) {
2273
2290
  Br((v) => ({
2274
- v58512696: h(s).component.form.formItem.components.width
2291
+ a4e07eb0: h(s).component.form.formItem.components.width
2275
2292
  }));
2276
2293
  const r = e, o = n, i = Ct("elFormRef"), a = Be(
2277
2294
  Object.fromEntries(r.form.map((v) => [v.prop, v.initialValue]))
@@ -2351,7 +2368,7 @@ const _c = { class: "common-query-table" }, xc = /* @__PURE__ */ J({
2351
2368
  _: 1
2352
2369
  }, 16, ["model"]));
2353
2370
  }
2354
- }), Sc = /* @__PURE__ */ Ft($c, [["__scopeId", "data-v-6b862115"]]);
2371
+ }), Sc = /* @__PURE__ */ Ft($c, [["__scopeId", "data-v-a395e100"]]);
2355
2372
  var Xe = { exports: {} }, Tc = Xe.exports, En;
2356
2373
  function Cc() {
2357
2374
  return En || (En = 1, (function(e, t) {
@@ -2757,7 +2774,7 @@ const Pn = /* @__PURE__ */ vc(Oc), Ec = {
2757
2774
  }, 16, ["headerCellStyle"])
2758
2775
  ]));
2759
2776
  }
2760
- }), Ac = /* @__PURE__ */ Ft(jc, [["__scopeId", "data-v-5da80890"]]), Rc = /* @__PURE__ */ J({
2777
+ }), Ac = /* @__PURE__ */ Ft(jc, [["__scopeId", "data-v-d7777e76"]]), Rc = /* @__PURE__ */ J({
2761
2778
  name: "CommonPagination",
2762
2779
  __name: "index",
2763
2780
  props: /* @__PURE__ */ te({
@@ -3117,7 +3134,7 @@ const Or = Symbol();
3117
3134
  function ot() {
3118
3135
  return An(Or, Hc);
3119
3136
  }
3120
- function Zc(e, t = ve) {
3137
+ function pf(e, t = ve) {
3121
3138
  const n = t(e), r = I(e);
3122
3139
  return [r, () => {
3123
3140
  r.value = t(n);
@@ -3178,12 +3195,12 @@ const Hc = Be({
3178
3195
  });
3179
3196
  export {
3180
3197
  Ic as CommonCheckbox,
3181
- kc as CommonConfigProvider,
3198
+ ff as CommonConfigProvider,
3182
3199
  Nc as CommonDatePicker,
3183
3200
  Sc as CommonForm,
3184
3201
  Dc as CommonInput,
3185
3202
  Rc as CommonPagination,
3186
- Gc as CommonQueryTable,
3203
+ df as CommonQueryTable,
3187
3204
  Fc as CommonRadio,
3188
3205
  Mc as CommonSelect,
3189
3206
  Vc as CommonSwitch,
@@ -3195,6 +3212,6 @@ export {
3195
3212
  Bc as getFirstValidValue,
3196
3213
  Lc as useGetComponentsChildrenSlots,
3197
3214
  zc as useResettableReactive,
3198
- Zc as useResettableRef
3215
+ pf as useResettableRef
3199
3216
  };
3200
3217
  //# sourceMappingURL=index.js.map