backend-management-ui 1.4.1 → 1.4.3

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.
@@ -1880,41 +1880,32 @@ const components = [ui_form, ui_table, ui_btns, business_status, ui_dialog, ui_v
1880
1880
 
1881
1881
  // 单独定义install函数
1882
1882
  const install = function (Vue) {
1883
+ if (install.installed) return;
1884
+ install.installed = true;
1883
1885
  components.forEach(component => {
1884
1886
  Vue.component(component.name, component);
1885
1887
  });
1886
1888
  };
1889
+ if (typeof window !== 'undefined' && window.Vue) {
1890
+ install(window.Vue);
1891
+ }
1887
1892
 
1888
- // 创建导出对象
1889
- const backendManagementUi = {
1890
- install,
1891
- UiForm: ui_form,
1892
- UiTable: ui_table,
1893
- UiBtns: ui_btns,
1894
- Status: business_status,
1895
- UiDialog: ui_dialog,
1896
- UiVirtualSelect: ui_virtual_select
1897
- };
1893
+ // 导出所有组件
1898
1894
 
1899
- // ES模块顶层导出
1900
- // 导出整个对象作为默认导出
1901
- /* harmony default export */ var elementConfig = (install);
1902
1895
 
1903
- // 导出所有组件和install方法
1896
+ // 创建插件对象
1897
+ const elementConfig_plugin = {
1898
+ install
1899
+ };
1904
1900
 
1901
+ // 支持CommonJS和ES模块导入
1902
+ /* harmony default export */ var elementConfig = (elementConfig_plugin);
1905
1903
 
1906
- // CommonJS兼容性处理(仅在构建时有效)
1904
+ // CommonJS环境添加兼容性支持
1907
1905
  if ( true && module.exports) {
1908
- console.log(222);
1909
- // module.exports = backendManagementUi;
1910
- // module.exports.default = backendManagementUi;
1911
- // module.exports.__esModule = true;
1912
- }
1913
-
1914
- // 确保在浏览器环境中可以直接使用
1915
- if (typeof window !== "undefined" && window.Vue) {
1916
- console.log(11111, backendManagementUi);
1917
- // window.Vue.use(backendManagementUi);
1906
+ module.exports = elementConfig_plugin;
1907
+ module.exports.default = elementConfig_plugin;
1908
+ module.exports.__esModule = true;
1918
1909
  }
1919
1910
 
1920
1911
  /***/ }),