woodao-pc-ui 0.0.56 → 0.0.57
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/package.json
CHANGED
|
@@ -46766,6 +46766,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
46766
46766
|
"default": function() { return /* binding */ entry_lib; }
|
|
46767
46767
|
});
|
|
46768
46768
|
|
|
46769
|
+
// UNUSED EXPORTS: BaseForm, BaseFormItem, BaseGrid, CommentListCustom, GoVxeGrid, ImportWin, PigButton, RadioVxeGrid, SelPeople, SelPerson, SelectByParentCode, SelectBySystemCode, SysConfigUtils, TableBody, TableConfig, TableFooter, TableHeader, UploadFile, configManager, getApiConfig, getApiPrefix, setApiConfig, setNiftyUrl
|
|
46770
|
+
|
|
46769
46771
|
// NAMESPACE OBJECT: ./node_modules/echarts/lib/util/graphic.js
|
|
46770
46772
|
var graphic_namespaceObject = {};
|
|
46771
46773
|
__webpack_require__.r(graphic_namespaceObject);
|
|
@@ -161257,7 +161259,7 @@ function useEcharts(dom, theme) {
|
|
|
161257
161259
|
return instance;
|
|
161258
161260
|
}
|
|
161259
161261
|
;// ./package.json
|
|
161260
|
-
var package_namespaceObject = {"rE":"0.0.
|
|
161262
|
+
var package_namespaceObject = {"rE":"0.0.57"};
|
|
161261
161263
|
;// ./src/setting/index.ts
|
|
161262
161264
|
|
|
161263
161265
|
const primaryColors = (/* unused pure expression or super */ null && (["#409eff", "#13C2C2", "#F5222D", "#722ED1", "#f7acbc", "#ef5b9c", "#bd6758", "#f47920", "#2e3a1f", "#b2d235", "#121a2a", "#6a6da9", "#867892", "#fcaf17", "#76becc", "#1b315e", "#b4532a", "#008792"]));
|
|
@@ -165679,23 +165681,23 @@ const sysConfigUtils_SysConfigUtils = {
|
|
|
165679
165681
|
return `${window.ipAddress}${window.port}/#`; //开发 正式的时候用这个
|
|
165680
165682
|
})(),
|
|
165681
165683
|
// 动态更新配置的方法
|
|
165682
|
-
updateConfig: config
|
|
165683
|
-
Object.assign(
|
|
165684
|
+
updateConfig: function (config) {
|
|
165685
|
+
Object.assign(this, config);
|
|
165684
165686
|
// 同时更新全局配置
|
|
165685
165687
|
if (window.SysConfigUtils) {
|
|
165686
165688
|
Object.assign(window.SysConfigUtils, config);
|
|
165687
165689
|
}
|
|
165688
165690
|
},
|
|
165689
165691
|
// 获取当前配置的方法
|
|
165690
|
-
getConfig: ()
|
|
165692
|
+
getConfig: function () {
|
|
165691
165693
|
return {
|
|
165692
|
-
niftyUrl:
|
|
165693
|
-
niftyRelUrl:
|
|
165694
|
-
staticUrl:
|
|
165695
|
-
loginUrl:
|
|
165696
|
-
mobileBaseUrl:
|
|
165697
|
-
pcRouter_url:
|
|
165698
|
-
isWeiFuWu:
|
|
165694
|
+
niftyUrl: this.niftyUrl,
|
|
165695
|
+
niftyRelUrl: this.niftyRelUrl,
|
|
165696
|
+
staticUrl: this.staticUrl,
|
|
165697
|
+
loginUrl: this.loginUrl,
|
|
165698
|
+
mobileBaseUrl: this.mobileBaseUrl,
|
|
165699
|
+
pcRouter_url: this.pcRouter_url,
|
|
165700
|
+
isWeiFuWu: this.isWeiFuWu
|
|
165699
165701
|
};
|
|
165700
165702
|
}
|
|
165701
165703
|
};
|
|
@@ -242673,6 +242675,98 @@ const CommentListCustomvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
242673
242675
|
const CommentListCustom_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CommentListCustomvue_type_script_setup_true_lang_ts, [['__scopeId',"data-v-249c0f6e"]])
|
|
242674
242676
|
|
|
242675
242677
|
/* harmony default export */ var CommentListCustom = (CommentListCustom_exports_);
|
|
242678
|
+
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
242679
|
+
function typeof_typeof(o) {
|
|
242680
|
+
"@babel/helpers - typeof";
|
|
242681
|
+
|
|
242682
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
242683
|
+
return typeof o;
|
|
242684
|
+
} : function (o) {
|
|
242685
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
242686
|
+
}, typeof_typeof(o);
|
|
242687
|
+
}
|
|
242688
|
+
|
|
242689
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
242690
|
+
|
|
242691
|
+
function toPrimitive(t, r) {
|
|
242692
|
+
if ("object" != typeof_typeof(t) || !t) return t;
|
|
242693
|
+
var e = t[Symbol.toPrimitive];
|
|
242694
|
+
if (void 0 !== e) {
|
|
242695
|
+
var i = e.call(t, r || "default");
|
|
242696
|
+
if ("object" != typeof_typeof(i)) return i;
|
|
242697
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
242698
|
+
}
|
|
242699
|
+
return ("string" === r ? String : Number)(t);
|
|
242700
|
+
}
|
|
242701
|
+
|
|
242702
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
242703
|
+
|
|
242704
|
+
|
|
242705
|
+
function toPropertyKey(t) {
|
|
242706
|
+
var i = toPrimitive(t, "string");
|
|
242707
|
+
return "symbol" == typeof_typeof(i) ? i : i + "";
|
|
242708
|
+
}
|
|
242709
|
+
|
|
242710
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
242711
|
+
|
|
242712
|
+
function defineProperty_defineProperty(e, r, t) {
|
|
242713
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
242714
|
+
value: t,
|
|
242715
|
+
enumerable: !0,
|
|
242716
|
+
configurable: !0,
|
|
242717
|
+
writable: !0
|
|
242718
|
+
}) : e[r] = t, e;
|
|
242719
|
+
}
|
|
242720
|
+
|
|
242721
|
+
;// ./src/utils/configManager.ts
|
|
242722
|
+
|
|
242723
|
+
// 配置管理器 - 专门用于外部项目配置API地址
|
|
242724
|
+
class ConfigManager {
|
|
242725
|
+
constructor() {
|
|
242726
|
+
defineProperty_defineProperty(this, "config", {});
|
|
242727
|
+
}
|
|
242728
|
+
static getInstance() {
|
|
242729
|
+
if (!ConfigManager.instance) {
|
|
242730
|
+
ConfigManager.instance = new ConfigManager();
|
|
242731
|
+
}
|
|
242732
|
+
return ConfigManager.instance;
|
|
242733
|
+
}
|
|
242734
|
+
// 设置配置
|
|
242735
|
+
setConfig(config) {
|
|
242736
|
+
this.config = {
|
|
242737
|
+
...this.config,
|
|
242738
|
+
...config
|
|
242739
|
+
};
|
|
242740
|
+
// 同时更新全局配置
|
|
242741
|
+
if (window.SysConfigUtils) {
|
|
242742
|
+
Object.assign(window.SysConfigUtils, config);
|
|
242743
|
+
}
|
|
242744
|
+
}
|
|
242745
|
+
// 获取配置
|
|
242746
|
+
getConfig() {
|
|
242747
|
+
return this.config;
|
|
242748
|
+
}
|
|
242749
|
+
// 获取API前缀
|
|
242750
|
+
getApiPrefix() {
|
|
242751
|
+
return this.config.niftyUrl || window.SysConfigUtils?.niftyUrl || '/woodao-backend';
|
|
242752
|
+
}
|
|
242753
|
+
// 更新niftyUrl
|
|
242754
|
+
setNiftyUrl(url) {
|
|
242755
|
+
this.setConfig({
|
|
242756
|
+
niftyUrl: url
|
|
242757
|
+
});
|
|
242758
|
+
}
|
|
242759
|
+
}
|
|
242760
|
+
// 创建单例实例
|
|
242761
|
+
defineProperty_defineProperty(ConfigManager, "instance", void 0);
|
|
242762
|
+
const configManager = ConfigManager.getInstance();
|
|
242763
|
+
// 导出配置管理器
|
|
242764
|
+
/* harmony default export */ var utils_configManager = ((/* unused pure expression or super */ null && (configManager)));
|
|
242765
|
+
// 导出便捷方法
|
|
242766
|
+
const setApiConfig = config => configManager.setConfig(config);
|
|
242767
|
+
const getApiConfig = () => configManager.getConfig();
|
|
242768
|
+
const setNiftyUrl = url => configManager.setNiftyUrl(url);
|
|
242769
|
+
const getApiPrefix = () => configManager.getApiPrefix();
|
|
242676
242770
|
;// ./src/package/index.js
|
|
242677
242771
|
// 导入所有组件
|
|
242678
242772
|
// 按钮组件
|
|
@@ -242693,6 +242787,10 @@ const CommentListCustom_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(
|
|
|
242693
242787
|
// 文件上传组件
|
|
242694
242788
|
// 文件上传组件
|
|
242695
242789
|
|
|
242790
|
+
// 导入工具类
|
|
242791
|
+
|
|
242792
|
+
|
|
242793
|
+
|
|
242696
242794
|
// 所有组件集合
|
|
242697
242795
|
const coms = [PigButton, BaseForm, BaseFormItem, SelectBySystemCode, SelectByParentCode, BaseGrid, GoVxeGrid, RadioVxeGrid, ImportWin, SelPeople, SelPerson, TableBody, TableConfig, TableFooter, TableHeader, UploadFile,
|
|
242698
242796
|
// 评论组件
|
|
@@ -242704,6 +242802,9 @@ const package_install = function (Vue) {
|
|
|
242704
242802
|
Vue.component(com.name, com);
|
|
242705
242803
|
});
|
|
242706
242804
|
};
|
|
242805
|
+
|
|
242806
|
+
// 导出所有组件和工具类
|
|
242807
|
+
|
|
242707
242808
|
/* harmony default export */ var src_package = (package_install); // 这个方法以后再使用的时候可以被use调用
|
|
242708
242809
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
242709
242810
|
|
|
@@ -46766,6 +46766,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
46766
46766
|
"default": function() { return /* binding */ entry_lib; }
|
|
46767
46767
|
});
|
|
46768
46768
|
|
|
46769
|
+
// UNUSED EXPORTS: BaseForm, BaseFormItem, BaseGrid, CommentListCustom, GoVxeGrid, ImportWin, PigButton, RadioVxeGrid, SelPeople, SelPerson, SelectByParentCode, SelectBySystemCode, SysConfigUtils, TableBody, TableConfig, TableFooter, TableHeader, UploadFile, configManager, getApiConfig, getApiPrefix, setApiConfig, setNiftyUrl
|
|
46770
|
+
|
|
46769
46771
|
// NAMESPACE OBJECT: ./node_modules/echarts/lib/util/graphic.js
|
|
46770
46772
|
var graphic_namespaceObject = {};
|
|
46771
46773
|
__webpack_require__.r(graphic_namespaceObject);
|
|
@@ -161257,7 +161259,7 @@ function useEcharts(dom, theme) {
|
|
|
161257
161259
|
return instance;
|
|
161258
161260
|
}
|
|
161259
161261
|
;// ./package.json
|
|
161260
|
-
var package_namespaceObject = {"rE":"0.0.
|
|
161262
|
+
var package_namespaceObject = {"rE":"0.0.57"};
|
|
161261
161263
|
;// ./src/setting/index.ts
|
|
161262
161264
|
|
|
161263
161265
|
const primaryColors = (/* unused pure expression or super */ null && (["#409eff", "#13C2C2", "#F5222D", "#722ED1", "#f7acbc", "#ef5b9c", "#bd6758", "#f47920", "#2e3a1f", "#b2d235", "#121a2a", "#6a6da9", "#867892", "#fcaf17", "#76becc", "#1b315e", "#b4532a", "#008792"]));
|
|
@@ -165679,23 +165681,23 @@ const sysConfigUtils_SysConfigUtils = {
|
|
|
165679
165681
|
return `${window.ipAddress}${window.port}/#`; //开发 正式的时候用这个
|
|
165680
165682
|
})(),
|
|
165681
165683
|
// 动态更新配置的方法
|
|
165682
|
-
updateConfig: config
|
|
165683
|
-
Object.assign(
|
|
165684
|
+
updateConfig: function (config) {
|
|
165685
|
+
Object.assign(this, config);
|
|
165684
165686
|
// 同时更新全局配置
|
|
165685
165687
|
if (window.SysConfigUtils) {
|
|
165686
165688
|
Object.assign(window.SysConfigUtils, config);
|
|
165687
165689
|
}
|
|
165688
165690
|
},
|
|
165689
165691
|
// 获取当前配置的方法
|
|
165690
|
-
getConfig: ()
|
|
165692
|
+
getConfig: function () {
|
|
165691
165693
|
return {
|
|
165692
|
-
niftyUrl:
|
|
165693
|
-
niftyRelUrl:
|
|
165694
|
-
staticUrl:
|
|
165695
|
-
loginUrl:
|
|
165696
|
-
mobileBaseUrl:
|
|
165697
|
-
pcRouter_url:
|
|
165698
|
-
isWeiFuWu:
|
|
165694
|
+
niftyUrl: this.niftyUrl,
|
|
165695
|
+
niftyRelUrl: this.niftyRelUrl,
|
|
165696
|
+
staticUrl: this.staticUrl,
|
|
165697
|
+
loginUrl: this.loginUrl,
|
|
165698
|
+
mobileBaseUrl: this.mobileBaseUrl,
|
|
165699
|
+
pcRouter_url: this.pcRouter_url,
|
|
165700
|
+
isWeiFuWu: this.isWeiFuWu
|
|
165699
165701
|
};
|
|
165700
165702
|
}
|
|
165701
165703
|
};
|
|
@@ -242673,6 +242675,98 @@ const CommentListCustomvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
242673
242675
|
const CommentListCustom_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CommentListCustomvue_type_script_setup_true_lang_ts, [['__scopeId',"data-v-249c0f6e"]])
|
|
242674
242676
|
|
|
242675
242677
|
/* harmony default export */ var CommentListCustom = (CommentListCustom_exports_);
|
|
242678
|
+
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
242679
|
+
function typeof_typeof(o) {
|
|
242680
|
+
"@babel/helpers - typeof";
|
|
242681
|
+
|
|
242682
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
242683
|
+
return typeof o;
|
|
242684
|
+
} : function (o) {
|
|
242685
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
242686
|
+
}, typeof_typeof(o);
|
|
242687
|
+
}
|
|
242688
|
+
|
|
242689
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
242690
|
+
|
|
242691
|
+
function toPrimitive(t, r) {
|
|
242692
|
+
if ("object" != typeof_typeof(t) || !t) return t;
|
|
242693
|
+
var e = t[Symbol.toPrimitive];
|
|
242694
|
+
if (void 0 !== e) {
|
|
242695
|
+
var i = e.call(t, r || "default");
|
|
242696
|
+
if ("object" != typeof_typeof(i)) return i;
|
|
242697
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
242698
|
+
}
|
|
242699
|
+
return ("string" === r ? String : Number)(t);
|
|
242700
|
+
}
|
|
242701
|
+
|
|
242702
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
242703
|
+
|
|
242704
|
+
|
|
242705
|
+
function toPropertyKey(t) {
|
|
242706
|
+
var i = toPrimitive(t, "string");
|
|
242707
|
+
return "symbol" == typeof_typeof(i) ? i : i + "";
|
|
242708
|
+
}
|
|
242709
|
+
|
|
242710
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
242711
|
+
|
|
242712
|
+
function defineProperty_defineProperty(e, r, t) {
|
|
242713
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
242714
|
+
value: t,
|
|
242715
|
+
enumerable: !0,
|
|
242716
|
+
configurable: !0,
|
|
242717
|
+
writable: !0
|
|
242718
|
+
}) : e[r] = t, e;
|
|
242719
|
+
}
|
|
242720
|
+
|
|
242721
|
+
;// ./src/utils/configManager.ts
|
|
242722
|
+
|
|
242723
|
+
// 配置管理器 - 专门用于外部项目配置API地址
|
|
242724
|
+
class ConfigManager {
|
|
242725
|
+
constructor() {
|
|
242726
|
+
defineProperty_defineProperty(this, "config", {});
|
|
242727
|
+
}
|
|
242728
|
+
static getInstance() {
|
|
242729
|
+
if (!ConfigManager.instance) {
|
|
242730
|
+
ConfigManager.instance = new ConfigManager();
|
|
242731
|
+
}
|
|
242732
|
+
return ConfigManager.instance;
|
|
242733
|
+
}
|
|
242734
|
+
// 设置配置
|
|
242735
|
+
setConfig(config) {
|
|
242736
|
+
this.config = {
|
|
242737
|
+
...this.config,
|
|
242738
|
+
...config
|
|
242739
|
+
};
|
|
242740
|
+
// 同时更新全局配置
|
|
242741
|
+
if (window.SysConfigUtils) {
|
|
242742
|
+
Object.assign(window.SysConfigUtils, config);
|
|
242743
|
+
}
|
|
242744
|
+
}
|
|
242745
|
+
// 获取配置
|
|
242746
|
+
getConfig() {
|
|
242747
|
+
return this.config;
|
|
242748
|
+
}
|
|
242749
|
+
// 获取API前缀
|
|
242750
|
+
getApiPrefix() {
|
|
242751
|
+
return this.config.niftyUrl || window.SysConfigUtils?.niftyUrl || '/woodao-backend';
|
|
242752
|
+
}
|
|
242753
|
+
// 更新niftyUrl
|
|
242754
|
+
setNiftyUrl(url) {
|
|
242755
|
+
this.setConfig({
|
|
242756
|
+
niftyUrl: url
|
|
242757
|
+
});
|
|
242758
|
+
}
|
|
242759
|
+
}
|
|
242760
|
+
// 创建单例实例
|
|
242761
|
+
defineProperty_defineProperty(ConfigManager, "instance", void 0);
|
|
242762
|
+
const configManager = ConfigManager.getInstance();
|
|
242763
|
+
// 导出配置管理器
|
|
242764
|
+
/* harmony default export */ var utils_configManager = ((/* unused pure expression or super */ null && (configManager)));
|
|
242765
|
+
// 导出便捷方法
|
|
242766
|
+
const setApiConfig = config => configManager.setConfig(config);
|
|
242767
|
+
const getApiConfig = () => configManager.getConfig();
|
|
242768
|
+
const setNiftyUrl = url => configManager.setNiftyUrl(url);
|
|
242769
|
+
const getApiPrefix = () => configManager.getApiPrefix();
|
|
242676
242770
|
;// ./src/package/index.js
|
|
242677
242771
|
// 导入所有组件
|
|
242678
242772
|
// 按钮组件
|
|
@@ -242693,6 +242787,10 @@ const CommentListCustom_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(
|
|
|
242693
242787
|
// 文件上传组件
|
|
242694
242788
|
// 文件上传组件
|
|
242695
242789
|
|
|
242790
|
+
// 导入工具类
|
|
242791
|
+
|
|
242792
|
+
|
|
242793
|
+
|
|
242696
242794
|
// 所有组件集合
|
|
242697
242795
|
const coms = [PigButton, BaseForm, BaseFormItem, SelectBySystemCode, SelectByParentCode, BaseGrid, GoVxeGrid, RadioVxeGrid, ImportWin, SelPeople, SelPerson, TableBody, TableConfig, TableFooter, TableHeader, UploadFile,
|
|
242698
242796
|
// 评论组件
|
|
@@ -242704,6 +242802,9 @@ const package_install = function (Vue) {
|
|
|
242704
242802
|
Vue.component(com.name, com);
|
|
242705
242803
|
});
|
|
242706
242804
|
};
|
|
242805
|
+
|
|
242806
|
+
// 导出所有组件和工具类
|
|
242807
|
+
|
|
242707
242808
|
/* harmony default export */ var src_package = (package_install); // 这个方法以后再使用的时候可以被use调用
|
|
242708
242809
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
242709
242810
|
|
|
@@ -46766,6 +46766,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
46766
46766
|
"default": function() { return /* binding */ entry_lib; }
|
|
46767
46767
|
});
|
|
46768
46768
|
|
|
46769
|
+
// UNUSED EXPORTS: BaseForm, BaseFormItem, BaseGrid, CommentListCustom, GoVxeGrid, ImportWin, PigButton, RadioVxeGrid, SelPeople, SelPerson, SelectByParentCode, SelectBySystemCode, SysConfigUtils, TableBody, TableConfig, TableFooter, TableHeader, UploadFile, configManager, getApiConfig, getApiPrefix, setApiConfig, setNiftyUrl
|
|
46770
|
+
|
|
46769
46771
|
// NAMESPACE OBJECT: ./node_modules/echarts/lib/util/graphic.js
|
|
46770
46772
|
var graphic_namespaceObject = {};
|
|
46771
46773
|
__webpack_require__.r(graphic_namespaceObject);
|
|
@@ -161257,7 +161259,7 @@ function useEcharts(dom, theme) {
|
|
|
161257
161259
|
return instance;
|
|
161258
161260
|
}
|
|
161259
161261
|
;// ./package.json
|
|
161260
|
-
var package_namespaceObject = {"rE":"0.0.
|
|
161262
|
+
var package_namespaceObject = {"rE":"0.0.57"};
|
|
161261
161263
|
;// ./src/setting/index.ts
|
|
161262
161264
|
|
|
161263
161265
|
const primaryColors = (/* unused pure expression or super */ null && (["#409eff", "#13C2C2", "#F5222D", "#722ED1", "#f7acbc", "#ef5b9c", "#bd6758", "#f47920", "#2e3a1f", "#b2d235", "#121a2a", "#6a6da9", "#867892", "#fcaf17", "#76becc", "#1b315e", "#b4532a", "#008792"]));
|
|
@@ -165679,23 +165681,23 @@ const sysConfigUtils_SysConfigUtils = {
|
|
|
165679
165681
|
return `${window.ipAddress}${window.port}/#`; //开发 正式的时候用这个
|
|
165680
165682
|
})(),
|
|
165681
165683
|
// 动态更新配置的方法
|
|
165682
|
-
updateConfig: config
|
|
165683
|
-
Object.assign(
|
|
165684
|
+
updateConfig: function (config) {
|
|
165685
|
+
Object.assign(this, config);
|
|
165684
165686
|
// 同时更新全局配置
|
|
165685
165687
|
if (window.SysConfigUtils) {
|
|
165686
165688
|
Object.assign(window.SysConfigUtils, config);
|
|
165687
165689
|
}
|
|
165688
165690
|
},
|
|
165689
165691
|
// 获取当前配置的方法
|
|
165690
|
-
getConfig: ()
|
|
165692
|
+
getConfig: function () {
|
|
165691
165693
|
return {
|
|
165692
|
-
niftyUrl:
|
|
165693
|
-
niftyRelUrl:
|
|
165694
|
-
staticUrl:
|
|
165695
|
-
loginUrl:
|
|
165696
|
-
mobileBaseUrl:
|
|
165697
|
-
pcRouter_url:
|
|
165698
|
-
isWeiFuWu:
|
|
165694
|
+
niftyUrl: this.niftyUrl,
|
|
165695
|
+
niftyRelUrl: this.niftyRelUrl,
|
|
165696
|
+
staticUrl: this.staticUrl,
|
|
165697
|
+
loginUrl: this.loginUrl,
|
|
165698
|
+
mobileBaseUrl: this.mobileBaseUrl,
|
|
165699
|
+
pcRouter_url: this.pcRouter_url,
|
|
165700
|
+
isWeiFuWu: this.isWeiFuWu
|
|
165699
165701
|
};
|
|
165700
165702
|
}
|
|
165701
165703
|
};
|
|
@@ -242673,6 +242675,98 @@ const CommentListCustomvue_type_script_setup_true_lang_ts_hoisted_1 = {
|
|
|
242673
242675
|
const CommentListCustom_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(CommentListCustomvue_type_script_setup_true_lang_ts, [['__scopeId',"data-v-249c0f6e"]])
|
|
242674
242676
|
|
|
242675
242677
|
/* harmony default export */ var CommentListCustom = (CommentListCustom_exports_);
|
|
242678
|
+
;// ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
242679
|
+
function typeof_typeof(o) {
|
|
242680
|
+
"@babel/helpers - typeof";
|
|
242681
|
+
|
|
242682
|
+
return typeof_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
242683
|
+
return typeof o;
|
|
242684
|
+
} : function (o) {
|
|
242685
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
242686
|
+
}, typeof_typeof(o);
|
|
242687
|
+
}
|
|
242688
|
+
|
|
242689
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
242690
|
+
|
|
242691
|
+
function toPrimitive(t, r) {
|
|
242692
|
+
if ("object" != typeof_typeof(t) || !t) return t;
|
|
242693
|
+
var e = t[Symbol.toPrimitive];
|
|
242694
|
+
if (void 0 !== e) {
|
|
242695
|
+
var i = e.call(t, r || "default");
|
|
242696
|
+
if ("object" != typeof_typeof(i)) return i;
|
|
242697
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
242698
|
+
}
|
|
242699
|
+
return ("string" === r ? String : Number)(t);
|
|
242700
|
+
}
|
|
242701
|
+
|
|
242702
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
242703
|
+
|
|
242704
|
+
|
|
242705
|
+
function toPropertyKey(t) {
|
|
242706
|
+
var i = toPrimitive(t, "string");
|
|
242707
|
+
return "symbol" == typeof_typeof(i) ? i : i + "";
|
|
242708
|
+
}
|
|
242709
|
+
|
|
242710
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
242711
|
+
|
|
242712
|
+
function defineProperty_defineProperty(e, r, t) {
|
|
242713
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
242714
|
+
value: t,
|
|
242715
|
+
enumerable: !0,
|
|
242716
|
+
configurable: !0,
|
|
242717
|
+
writable: !0
|
|
242718
|
+
}) : e[r] = t, e;
|
|
242719
|
+
}
|
|
242720
|
+
|
|
242721
|
+
;// ./src/utils/configManager.ts
|
|
242722
|
+
|
|
242723
|
+
// 配置管理器 - 专门用于外部项目配置API地址
|
|
242724
|
+
class ConfigManager {
|
|
242725
|
+
constructor() {
|
|
242726
|
+
defineProperty_defineProperty(this, "config", {});
|
|
242727
|
+
}
|
|
242728
|
+
static getInstance() {
|
|
242729
|
+
if (!ConfigManager.instance) {
|
|
242730
|
+
ConfigManager.instance = new ConfigManager();
|
|
242731
|
+
}
|
|
242732
|
+
return ConfigManager.instance;
|
|
242733
|
+
}
|
|
242734
|
+
// 设置配置
|
|
242735
|
+
setConfig(config) {
|
|
242736
|
+
this.config = {
|
|
242737
|
+
...this.config,
|
|
242738
|
+
...config
|
|
242739
|
+
};
|
|
242740
|
+
// 同时更新全局配置
|
|
242741
|
+
if (window.SysConfigUtils) {
|
|
242742
|
+
Object.assign(window.SysConfigUtils, config);
|
|
242743
|
+
}
|
|
242744
|
+
}
|
|
242745
|
+
// 获取配置
|
|
242746
|
+
getConfig() {
|
|
242747
|
+
return this.config;
|
|
242748
|
+
}
|
|
242749
|
+
// 获取API前缀
|
|
242750
|
+
getApiPrefix() {
|
|
242751
|
+
return this.config.niftyUrl || window.SysConfigUtils?.niftyUrl || '/woodao-backend';
|
|
242752
|
+
}
|
|
242753
|
+
// 更新niftyUrl
|
|
242754
|
+
setNiftyUrl(url) {
|
|
242755
|
+
this.setConfig({
|
|
242756
|
+
niftyUrl: url
|
|
242757
|
+
});
|
|
242758
|
+
}
|
|
242759
|
+
}
|
|
242760
|
+
// 创建单例实例
|
|
242761
|
+
defineProperty_defineProperty(ConfigManager, "instance", void 0);
|
|
242762
|
+
const configManager = ConfigManager.getInstance();
|
|
242763
|
+
// 导出配置管理器
|
|
242764
|
+
/* harmony default export */ var utils_configManager = ((/* unused pure expression or super */ null && (configManager)));
|
|
242765
|
+
// 导出便捷方法
|
|
242766
|
+
const setApiConfig = config => configManager.setConfig(config);
|
|
242767
|
+
const getApiConfig = () => configManager.getConfig();
|
|
242768
|
+
const setNiftyUrl = url => configManager.setNiftyUrl(url);
|
|
242769
|
+
const getApiPrefix = () => configManager.getApiPrefix();
|
|
242676
242770
|
;// ./src/package/index.js
|
|
242677
242771
|
// 导入所有组件
|
|
242678
242772
|
// 按钮组件
|
|
@@ -242693,6 +242787,10 @@ const CommentListCustom_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(
|
|
|
242693
242787
|
// 文件上传组件
|
|
242694
242788
|
// 文件上传组件
|
|
242695
242789
|
|
|
242790
|
+
// 导入工具类
|
|
242791
|
+
|
|
242792
|
+
|
|
242793
|
+
|
|
242696
242794
|
// 所有组件集合
|
|
242697
242795
|
const coms = [PigButton, BaseForm, BaseFormItem, SelectBySystemCode, SelectByParentCode, BaseGrid, GoVxeGrid, RadioVxeGrid, ImportWin, SelPeople, SelPerson, TableBody, TableConfig, TableFooter, TableHeader, UploadFile,
|
|
242698
242796
|
// 评论组件
|
|
@@ -242704,6 +242802,9 @@ const package_install = function (Vue) {
|
|
|
242704
242802
|
Vue.component(com.name, com);
|
|
242705
242803
|
});
|
|
242706
242804
|
};
|
|
242805
|
+
|
|
242806
|
+
// 导出所有组件和工具类
|
|
242807
|
+
|
|
242707
242808
|
/* harmony default export */ var src_package = (package_install); // 这个方法以后再使用的时候可以被use调用
|
|
242708
242809
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
242709
242810
|
|