@cgboiler/biz-mobile 1.18.10 → 1.18.12

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/es/index.d.ts CHANGED
@@ -8,7 +8,7 @@ declare namespace _default {
8
8
  }
9
9
  export default _default;
10
10
  export function install(app: any): void;
11
- export const version: "1.18.9";
11
+ export const version: "1.18.11";
12
12
  import MdPreview from './md-preview';
13
13
  import OrgPicker from './org-picker';
14
14
  import ProjectSelect from './project-select';
package/es/index.js CHANGED
@@ -2,7 +2,7 @@ import MdPreview from "./md-preview";
2
2
  import OrgPicker from "./org-picker";
3
3
  import ProjectSelect from "./project-select";
4
4
  import RichTextEditor from "./rich-text-editor";
5
- const version = "1.18.9";
5
+ const version = "1.18.11";
6
6
  function install(app) {
7
7
  const components = [
8
8
  MdPreview,
@@ -20,7 +20,7 @@ var __async = (__this, __arguments, generator) => {
20
20
  };
21
21
  import { computed, ref } from "vue";
22
22
  import { useFetch, getUserList, getStorage, getUserInfo, removeStorage } from "@cgboiler/core";
23
- import { getDeptList } from "@cgboiler/core/src/utils/deptList";
23
+ import { getDeptList } from "@cgboiler/core";
24
24
  import { debounce } from "lodash-es";
25
25
  const orgListCache = /* @__PURE__ */ new Map();
26
26
  const fetchData = (url, cacheKey) => __async(void 0, null, function* () {
@@ -101,20 +101,7 @@ function useSearch({
101
101
  }) => {
102
102
  return _createVNode("div", {
103
103
  "class": "absolute top-0 left-0 right-0 bottom-0 bg-[#fff] z-1 overflow-auto"
104
- }, [filterRecentSelectedHistory.value.length && props.multiple ? _createVNode(_Fragment, null, [_createVNode("p", {
105
- "class": "text-[14px] text-[#333] font-bold px-[16px] py-[12px] border-b border-[#eee]"
106
- }, [_createTextVNode("\u6700\u8FD1\u9009\u62E9")]), _createVNode("div", {
107
- "class": "recent-list-wrap flex-1 py-[8px]"
108
- }, [filterRecentSelectedHistory.value.map((historyItem) => _createVNode("div", {
109
- "key": historyItem.id,
110
- "onClick": () => handleHistorySelect(historyItem),
111
- "class": "px-16px py-8px border-b border-[#eee]"
112
- }, [_createVNode("span", null, [historyItem.selectedUsers.map((user) => {
113
- var _a;
114
- return highlightText((_a = getUserInfoById(user.id)) == null ? void 0 : _a.name, keyword.value);
115
- }).reduce((prev, curr) => [prev, "\uFF0C", curr])])]))])]) : "", filteredOrgList.value.length ? _createVNode(_Fragment, null, [" ", _createVNode("p", {
116
- "class": "text-[14px] text-[#333] font-bold px-[16px] py-[12px] border-b border-[#eee]"
117
- }, [_createTextVNode("\u901A\u8BAF\u5F55")]), _createVNode("div", {
104
+ }, [filteredOrgList.value.length ? _createVNode(_Fragment, null, [" ", _createVNode("div", {
118
105
  "class": "px-16px"
119
106
  }, [filteredOrgList.value.length === 0 ? _createVNode(Empty, {
120
107
  "description": "\u672A\u627E\u5230\u76F8\u5173\u4EBA\u5458"
package/lib/index.d.ts CHANGED
@@ -8,7 +8,7 @@ declare namespace _default {
8
8
  }
9
9
  export default _default;
10
10
  export function install(app: any): void;
11
- export const version: "1.18.9";
11
+ export const version: "1.18.11";
12
12
  import MdPreview from './md-preview';
13
13
  import OrgPicker from './org-picker';
14
14
  import ProjectSelect from './project-select';
package/lib/index.js CHANGED
@@ -45,7 +45,7 @@ __reExport(stdin_exports, require("./md-preview"), module.exports);
45
45
  __reExport(stdin_exports, require("./org-picker"), module.exports);
46
46
  __reExport(stdin_exports, require("./project-select"), module.exports);
47
47
  __reExport(stdin_exports, require("./rich-text-editor"), module.exports);
48
- const version = "1.18.9";
48
+ const version = "1.18.11";
49
49
  function install(app) {
50
50
  const components = [
51
51
  import_md_preview.default,
@@ -42,7 +42,7 @@ __export(stdin_exports, {
42
42
  module.exports = __toCommonJS(stdin_exports);
43
43
  var import_vue = require("vue");
44
44
  var import_core = require("@cgboiler/core");
45
- var import_deptList = require("@cgboiler/core/src/utils/deptList");
45
+ var import_core2 = require("@cgboiler/core");
46
46
  var import_lodash_es = require("lodash-es");
47
47
  const orgListCache = /* @__PURE__ */ new Map();
48
48
  const fetchData = (url, cacheKey) => __async(void 0, null, function* () {
@@ -82,7 +82,7 @@ function initUserList() {
82
82
  }
83
83
  function initDeptList() {
84
84
  return __async(this, null, function* () {
85
- deptList.value = yield (0, import_deptList.getDeptList)();
85
+ deptList.value = yield (0, import_core2.getDeptList)();
86
86
  });
87
87
  }
88
88
  initUserList();
@@ -123,20 +123,7 @@ function useSearch({
123
123
  }) => {
124
124
  return (0, import_vue.createVNode)("div", {
125
125
  "class": "absolute top-0 left-0 right-0 bottom-0 bg-[#fff] z-1 overflow-auto"
126
- }, [filterRecentSelectedHistory.value.length && props.multiple ? (0, import_vue.createVNode)(import_vue.Fragment, null, [(0, import_vue.createVNode)("p", {
127
- "class": "text-[14px] text-[#333] font-bold px-[16px] py-[12px] border-b border-[#eee]"
128
- }, [(0, import_vue.createTextVNode)("\u6700\u8FD1\u9009\u62E9")]), (0, import_vue.createVNode)("div", {
129
- "class": "recent-list-wrap flex-1 py-[8px]"
130
- }, [filterRecentSelectedHistory.value.map((historyItem) => (0, import_vue.createVNode)("div", {
131
- "key": historyItem.id,
132
- "onClick": () => handleHistorySelect(historyItem),
133
- "class": "px-16px py-8px border-b border-[#eee]"
134
- }, [(0, import_vue.createVNode)("span", null, [historyItem.selectedUsers.map((user) => {
135
- var _a;
136
- return highlightText((_a = getUserInfoById(user.id)) == null ? void 0 : _a.name, keyword.value);
137
- }).reduce((prev, curr) => [prev, "\uFF0C", curr])])]))])]) : "", filteredOrgList.value.length ? (0, import_vue.createVNode)(import_vue.Fragment, null, [" ", (0, import_vue.createVNode)("p", {
138
- "class": "text-[14px] text-[#333] font-bold px-[16px] py-[12px] border-b border-[#eee]"
139
- }, [(0, import_vue.createTextVNode)("\u901A\u8BAF\u5F55")]), (0, import_vue.createVNode)("div", {
126
+ }, [filteredOrgList.value.length ? (0, import_vue.createVNode)(import_vue.Fragment, null, [" ", (0, import_vue.createVNode)("div", {
140
127
  "class": "px-16px"
141
128
  }, [filteredOrgList.value.length === 0 ? (0, import_vue.createVNode)(import_vant.Empty, {
142
129
  "description": "\u672A\u627E\u5230\u76F8\u5173\u4EBA\u5458"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgboiler/biz-mobile",
3
- "version": "1.18.10",
3
+ "version": "1.18.12",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -50,9 +50,9 @@
50
50
  "@tiptap/vue-3": "3.0.0-beta.5",
51
51
  "lodash-es": "^4.17.21",
52
52
  "vant": "^4.9.19",
53
- "@cgboiler/core": "1.2.3",
54
53
  "@cgboiler/shared": "1.1.1",
55
- "@cgboiler/biz-basic": "1.0.9"
54
+ "@cgboiler/core": "1.2.8",
55
+ "@cgboiler/biz-basic": "1.0.12"
56
56
  },
57
57
  "scripts": {
58
58
  "dev": "cg-cli dev",