disguise-ui 0.1.1 → 0.1.2

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
@@ -1,10 +1,10 @@
1
- # disguise-ui
1
+ # Disguise
2
2
 
3
- 从 elecbee-admin 抽出的列表、表单、上传组件。安装后不依赖原后台的接口、字典和权限,这些能力在启动时注入。
3
+ 从原后台抽出的列表、表单、上传组件。安装后不依赖原后台的接口、字典和权限,这些能力在启动时注入。
4
4
 
5
5
  ## 包含
6
6
 
7
- `CrudPage`、`TableEntity`、`SchemaForm`、`SearchForm`、`DrawerFormPage`、`AsyncSelect`、`DictTag`、`ImportDialog`、`ImageUpload`、`PictureUpload`、`RichTextEditor`、`BaseCard`、`ElecbeeIcon`。
7
+ `CrudPage`、`TableEntity`、`SchemaForm`、`SearchForm`、`DrawerFormPage`、`AsyncSelect`、`DictTag`、`ImportDialog`、`ImageUpload`、`PictureUpload`、`RichTextEditor`、`BaseCard`、`DisguiseIcon`。
8
8
 
9
9
  业务实体(商品、部门、用户)没有打进包。远程下拉用 `registerEntity` 自己注册。
10
10
 
@@ -22,12 +22,12 @@ npm install disguise-ui vue element-plus @element-plus/icons-vue @vueuse/core @t
22
22
  import { createApp } from 'vue';
23
23
  import { VueQueryPlugin } from '@tanstack/vue-query';
24
24
  import ElementPlus from 'element-plus';
25
- import { setupElecbeeUi } from 'disguise-ui';
25
+ import { setupDisguise } from 'disguise-ui';
26
26
 
27
27
  import 'element-plus/dist/index.css';
28
28
  import 'disguise-ui/style.css';
29
29
 
30
- setupElecbeeUi({
30
+ setupDisguise({
31
31
  locale: 'zh-CN',
32
32
  imageBaseUrl: 'https://cdn.example.com',
33
33
  getAccessToken: () => localStorage.getItem('token') ?? '',
@@ -93,7 +93,7 @@ registerEntity({
93
93
  content: ['./node_modules/disguise-ui/dist/**/*.js']
94
94
  ```
95
95
 
96
- `ElecbeeIcon` 只负责拼接图标类名,图标字体样式需要使用方自己引入。
96
+ `DisguiseIcon` 只负责拼接图标类名,图标字体样式需要使用方自己引入。
97
97
 
98
98
  ## 文档站
99
99
 
@@ -1,12 +1,12 @@
1
1
  import { r as e, t } from "./picture-cell-CAdT0GLJ.js";
2
- import { t as n } from "./modal-6Z0T3Yf5.js";
2
+ import { t as n } from "./modal-CHOpDVLd.js";
3
3
  import { i as r, l as i, n as a, r as o, t as s, u as c } from "./context-CpMT_OSb.js";
4
4
  import { t as l } from "./i18n-DQW_MS90.js";
5
5
  import { t as u } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
6
  import { t as d } from "./use-image-url-hImb4UEO.js";
7
7
  import { t as f } from "./use-file-type-rNstoxXw.js";
8
- import { r as p } from "./use-multiple-file-upload-BKphlEyQ.js";
9
- import { t as m } from "./picture-upload-BHkpaEJR.js";
8
+ import { r as p } from "./use-multiple-file-upload-BrhklFSk.js";
9
+ import { t as m } from "./picture-upload-KEFFSvsi.js";
10
10
  import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineAsyncComponent as w, defineComponent as T, guardReactiveProps as E, h as D, isRef as O, mergeModels as k, mergeProps as A, nextTick as ee, normalizeClass as j, normalizeProps as M, normalizeStyle as N, onUnmounted as P, openBlock as F, reactive as I, ref as L, renderList as R, renderSlot as z, resolveComponent as B, resolveDirective as te, resolveDynamicComponent as ne, shallowReactive as V, toDisplayString as H, toHandlers as U, toValue as re, unref as W, useModel as G, useSlots as ie, vModelSelect as ae, vModelText as oe, watch as K, withCtx as q, withDirectives as J, withKeys as se, withModifiers as ce } from "vue";
11
11
  import { ElButton as Y, ElCard as le, ElCheckbox as ue, ElCheckboxGroup as de, ElCol as fe, ElDatePicker as pe, ElDrawer as me, ElDropdown as he, ElDropdownItem as ge, ElDropdownMenu as _e, ElForm as ve, ElFormItem as ye, ElIcon as X, ElImageViewer as be, ElInput as xe, ElInputNumber as Se, ElMessage as Z, ElMessageBox as Ce, ElOption as Q, ElPagination as we, ElPopover as Te, ElProgress as Ee, ElRadio as De, ElRadioGroup as Oe, ElRow as ke, ElSelect as $, ElSelectV2 as Ae, ElSwitch as je, ElTabPane as Me, ElTable as Ne, ElTableColumn as Pe, ElTableV2 as Fe, ElTabs as Ie, ElTooltip as Le, ElUpload as Re, TableV2FixedDir as ze } from "element-plus";
12
12
  import Be from "dayjs";
@@ -75,7 +75,7 @@ function mn({ fileName: e = "download", source: t }) {
75
75
  // src/runtime/request.ts
76
76
  function hn() {
77
77
  let e = i();
78
- if (!e) throw Error("请先调用 setupElecbeeUi,并传入 request");
78
+ if (!e) throw Error("请先调用 setupDisguise,并传入 request");
79
79
  return e;
80
80
  }
81
81
  var gn = {
@@ -3746,7 +3746,7 @@ var wo = {
3746
3746
  },
3747
3747
  emits: ["update:modelValue"],
3748
3748
  setup(e, { emit: n }) {
3749
- let r = e, i = n, a = w(() => Promise.resolve().then(() => Gi)), o = w(() => import("./file-upload-Cq-YJ_bx.js")), s = w(() => import("./picture-upload-BHQuqED3.js")), c = w(() => Promise.resolve().then(() => uo)), l = g(() => r.context ?? {
3749
+ let r = e, i = n, a = w(() => Promise.resolve().then(() => Gi)), o = w(() => import("./file-upload-g-PauJpk.js")), s = w(() => import("./picture-upload-vp1RCUJo.js")), c = w(() => Promise.resolve().then(() => uo)), l = g(() => r.context ?? {
3750
3750
  mode: "create",
3751
3751
  values: {}
3752
3752
  }), u = Co(() => r.field, l), d = g(() => ({
@@ -5214,12 +5214,12 @@ var Yo = {
5214
5214
  }), [["__scopeId", "data-v-d344d607"]]), Qo = /* @__PURE__ */ T({
5215
5215
  __name: "index",
5216
5216
  props: {
5217
- className: { default: "elecbeeicon" },
5217
+ className: { default: "disguiseicon" },
5218
5218
  icon: { default: "" }
5219
5219
  },
5220
5220
  setup(e) {
5221
5221
  let t = e;
5222
- return (e, n) => (F(), _(W(X), A(e.$attrs, { class: ["ebee iconfont", t.icon ? `${t.className}-${t.icon}` : void 0] }), null, 16, ["class"]));
5222
+ return (e, n) => (F(), _(W(X), A(e.$attrs, { class: ["disguise iconfont", t.icon ? `${t.className}-${t.icon}` : void 0] }), null, 16, ["class"]));
5223
5223
  }
5224
5224
  }), $o = ["src"], es = { class: "image-upload__mask" }, ts = { class: "image-upload__text" }, ns = /*#__PURE__*/ u(/* @__PURE__ */ T({
5225
5225
  __name: "index",
@@ -5317,4 +5317,4 @@ var Yo = {
5317
5317
  function rs(e = {}) {
5318
5318
  s(e);
5319
5319
  }
5320
- export { Ki as AsyncSelect, Ji as BaseCard, Zo as CrudPage, Ar as DictTag, Ko as DrawerFormPage, Qo as ElecbeeIcon, ns as ImageUpload, $n as ImportDialog, m as PictureUpload, fo as RichTextEditor, Io as SchemaForm, Xo as SearchForm, Ei as TableEntity, Zi as getEntity, Qi as paginateLocally, Xi as registerEntity, aa as registerSchemaFormComponents, rs as setupElecbeeUi, qo as useDrawerFormPage };
5320
+ export { Ki as AsyncSelect, Ji as BaseCard, Zo as CrudPage, Ar as DictTag, Qo as DisguiseIcon, Ko as DrawerFormPage, ns as ImageUpload, $n as ImportDialog, m as PictureUpload, fo as RichTextEditor, Io as SchemaForm, Xo as SearchForm, Ei as TableEntity, Zi as getEntity, Qi as paginateLocally, Xi as registerEntity, aa as registerSchemaFormComponents, rs as setupDisguise, qo as useDrawerFormPage };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./modal-6Z0T3Yf5.js";
1
+ import { t as e } from "./modal-CHOpDVLd.js";
2
2
  import { n as t } from "./i18n-DQW_MS90.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
4
  import { t as r } from "./use-image-url-hImb4UEO.js";
5
- import { n as i, t as ee } from "./use-multiple-file-upload-BKphlEyQ.js";
5
+ import { n as i, t as ee } from "./use-multiple-file-upload-BrhklFSk.js";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as te, createVNode as d, defineComponent as f, h as p, normalizeClass as m, normalizeStyle as h, openBlock as g, ref as _, renderList as v, resolveComponent as ne, resolveDynamicComponent as y, toDisplayString as b, toRefs as re, unref as x, withCtx as S } from "vue";
7
7
  import { ElIcon as C, ElTooltip as w, ElUpload as ie } from "element-plus";
8
8
  import { Delete as T, Download as E, Upload as ae, View as D } from "@element-plus/icons-vue";
@@ -32,7 +32,7 @@ function s(s = {}) {
32
32
  typeof e.fullscreen == "boolean" && (c.fullscreen = e.fullscreen), typeof e.title == "string" && (c.title = e.title), typeof e.footer == "boolean" && (c.footer = e.footer);
33
33
  }
34
34
  return [e({
35
- name: "ElecbeeModal",
35
+ name: "DisguiseModal",
36
36
  inheritAttrs: !1,
37
37
  setup(e, { attrs: n, slots: d }) {
38
38
  return () => {
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./i18n-DQW_MS90.js";
2
2
  import { t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
3
  import { t as n } from "./use-image-url-hImb4UEO.js";
4
- import { n as r, t as ee } from "./use-multiple-file-upload-BKphlEyQ.js";
4
+ import { n as r, t as ee } from "./use-multiple-file-upload-BrhklFSk.js";
5
5
  import { Fragment as te, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as ne, openBlock as p, ref as m, renderList as re, toRefs as h, unref as g, watch as ie, withCtx as _, withModifiers as v } from "vue";
6
6
  import { ElIcon as y, ElImageViewer as ae, ElMessage as b, ElProgress as x, ElUpload as S } from "element-plus";
7
7
  import { Close as C, Download as w, Plus as T, ZoomIn as oe } from "@element-plus/icons-vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./picture-upload-BHkpaEJR.js";
1
+ import { t as e } from "./picture-upload-KEFFSvsi.js";
2
2
  // src/components/picture-upload/index.ts
3
3
  var t = e;
4
4
  export { e as PictureUpload, t as default };
@@ -7,7 +7,7 @@ import { ElMessage as s } from "element-plus";
7
7
  // src/runtime/upload.ts
8
8
  async function c(t, n) {
9
9
  let r = e();
10
- if (!r) throw Error("请先调用 setupElecbeeUi,并传入 uploadFile");
10
+ if (!r) throw Error("请先调用 setupDisguise,并传入 uploadFile");
11
11
  return r(t, n);
12
12
  }
13
13
  // src/services/file-upload.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "disguise-ui",
3
- "version": "0.1.1",
4
- "description": "disguise-ui:可独立使用的后台列表、表单和上传组件",
3
+ "version": "0.1.2",
4
+ "description": "Disguise:可独立使用的后台列表、表单和上传组件",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",