dpzvc3-ui 3.1.0 → 3.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.
@@ -14718,9 +14718,9 @@ function toPropertyKey(t) {
14718
14718
  /************************************************************************/
14719
14719
  var __webpack_exports__ = {};
14720
14720
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14721
- /* harmony export */ $p: () => (/* binding */ services),
14722
14721
  /* harmony export */ Ay: () => (src),
14723
14722
  /* harmony export */ C1: () => (/* reexport safe */ _components_Indicator__WEBPACK_IMPORTED_MODULE_19__.A),
14723
+ /* harmony export */ E9: () => (/* reexport safe */ _components_radioBox__WEBPACK_IMPORTED_MODULE_6__.E),
14724
14724
  /* harmony export */ Ee: () => (/* reexport safe */ _components_actionSheet__WEBPACK_IMPORTED_MODULE_13__.A),
14725
14725
  /* harmony export */ Ex: () => (/* reexport safe */ _components_badge__WEBPACK_IMPORTED_MODULE_24__.A),
14726
14726
  /* harmony export */ Hp: () => (/* reexport safe */ _components_swipe__WEBPACK_IMPORTED_MODULE_7__.A),
@@ -14737,7 +14737,6 @@ var __webpack_exports__ = {};
14737
14737
  /* harmony export */ _O: () => (/* reexport safe */ _components_upload__WEBPACK_IMPORTED_MODULE_12__.A),
14738
14738
  /* harmony export */ aF: () => (/* reexport safe */ _components_modal__WEBPACK_IMPORTED_MODULE_4__.A),
14739
14739
  /* harmony export */ ai: () => (/* binding */ install),
14740
- /* harmony export */ dK: () => (/* binding */ components),
14741
14740
  /* harmony export */ dx: () => (/* reexport safe */ _components_slideBar__WEBPACK_IMPORTED_MODULE_10__.A),
14742
14741
  /* harmony export */ fh: () => (/* reexport safe */ _components_cell__WEBPACK_IMPORTED_MODULE_22__.A),
14743
14742
  /* harmony export */ j9: () => (/* reexport safe */ _components_button__WEBPACK_IMPORTED_MODULE_0__.A),
@@ -14808,9 +14807,8 @@ var __webpack_exports__ = {};
14808
14807
 
14809
14808
 
14810
14809
 
14811
- var components = {};
14812
14810
  /* ========= 组件集合 ========= */
14813
- var _components = {
14811
+ var components = {
14814
14812
  DpButton: _components_button__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A,
14815
14813
  CheckBox: _components_checkBox__WEBPACK_IMPORTED_MODULE_1__/* .CheckBox */ .o,
14816
14814
  CheckBoxGroup: _components_checkBox__WEBPACK_IMPORTED_MODULE_1__/* .CheckBoxGroup */ .x,
@@ -14837,35 +14835,6 @@ var _components = {
14837
14835
  Badge: _components_badge__WEBPACK_IMPORTED_MODULE_24__/* ["default"] */ .A,
14838
14836
  Card: _components_card__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .A
14839
14837
  };
14840
- /* typeof _component在ts输出
14841
- // {
14842
- // VButton: typeof VButton
14843
- // CheckBox: typeof CheckBox
14844
- // CheckBoxGroup: typeof CheckBoxGroup
14845
- // }
14846
- 如果直接写[K in keyof _components]报错Type '_components' is not a type. 原因就是 _components 是 值,不是类型。
14847
- • keyof 只能作用在 类型上。
14848
- • 所以必须先用 typeof 变成类型:keyof typeof _components。
14849
- */
14850
- /* ========= 生成 Installable 类型组件集合 ========= */
14851
- // export const components: {
14852
- // [K in keyof typeof _components]: Installable<typeof _components[K]>
14853
- // } = {} as any
14854
- // 遍历给组件加 install
14855
- Object.keys(_components).forEach(function (key) {
14856
- // const component = _components[key as keyof typeof _components] as Installable<
14857
- // typeof _components[keyof typeof _components]
14858
- // >
14859
- var component = _components[key];
14860
- if (component && !component.install) {
14861
- component.install = function (app) {
14862
- // console.log(key, component, '----component----')
14863
- app.component(key, component);
14864
- };
14865
- }
14866
- components[key] = component;
14867
- // console.log(components, '----components----')
14868
- });
14869
14838
  /* ========= 服务组件 ========= */
14870
14839
  var services = {
14871
14840
  Message: _components_message__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
@@ -14873,39 +14842,41 @@ var services = {
14873
14842
  Prompt: _components_prompt__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A,
14874
14843
  Indicator: _components_Indicator__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .A
14875
14844
  };
14876
- Object.keys(services).forEach(function (key) {
14877
- var service = services[key];
14878
- if (service && !service.install) {
14879
- service.install = function (app) {
14880
- app.config.globalProperties["$".concat(key)] = service;
14845
+ /* ========= 遍历注册组件 ========= */
14846
+ Object.values(components).forEach(function (comp) {
14847
+ if (comp && !comp.install) {
14848
+ comp.install = function (app) {
14849
+ app.component(comp.name, comp);
14850
+ };
14851
+ }
14852
+ });
14853
+ /* ========= 遍历注册服务 ========= */
14854
+ Object.values(services).forEach(function (srv, idx) {
14855
+ if (srv && !srv.install) {
14856
+ var key = Object.keys(services)[idx];
14857
+ srv.install = function (app) {
14858
+ app.config.globalProperties["$".concat(key)] = srv;
14881
14859
  };
14882
14860
  }
14883
14861
  });
14884
14862
  /* ========= 全量 install ========= */
14885
14863
  var install = function install(app) {
14886
- if (!app) {
14887
- console.warn('dpzvc3 install: app is undefined, ensure you are using Vue 3 createApp');
14888
- return;
14889
- }
14890
- // 注册组件
14891
14864
  Object.values(components).forEach(function (comp) {
14892
- if (comp.install) {
14893
- comp.install(app);
14894
- }
14865
+ var _a;
14866
+ (_a = comp.install) === null || _a === void 0 ? void 0 : _a.call(comp, app);
14895
14867
  });
14896
- // 注册服务
14897
14868
  Object.values(services).forEach(function (srv) {
14898
- if (srv.install) {
14899
- srv.install(app);
14900
- }
14869
+ var _a;
14870
+ (_a = srv.install) === null || _a === void 0 ? void 0 : _a.call(srv, app);
14901
14871
  });
14902
14872
  };
14903
14873
  /* ========= 按需导出 ========= */
14904
14874
 
14905
14875
  /* ========= 默认导出 ========= */
14906
- /* harmony default export */ const src = ({
14876
+ var Dpzvc3UI = {
14907
14877
  install: install
14908
- });
14878
+ };
14879
+ /* harmony default export */ const src = (Dpzvc3UI);
14909
14880
  const __webpack_exports__ActionSheet = __webpack_exports__.Ee;
14910
14881
  const __webpack_exports__Badge = __webpack_exports__.Ex;
14911
14882
  const __webpack_exports__Card = __webpack_exports__.Zp;
@@ -14924,6 +14895,7 @@ const __webpack_exports__Popup = __webpack_exports__.zD;
14924
14895
  const __webpack_exports__Progress = __webpack_exports__.ke;
14925
14896
  const __webpack_exports__Prompt = __webpack_exports__.XG;
14926
14897
  const __webpack_exports__RadioBox = __webpack_exports__.VC;
14898
+ const __webpack_exports__RadioBoxGroup = __webpack_exports__.E9;
14927
14899
  const __webpack_exports__Rater = __webpack_exports__.Xk;
14928
14900
  const __webpack_exports__SlideBar = __webpack_exports__.dx;
14929
14901
  const __webpack_exports__Spinner = __webpack_exports__.y$;
@@ -14933,10 +14905,8 @@ const __webpack_exports__Tab = __webpack_exports__.oz;
14933
14905
  const __webpack_exports__TextBar = __webpack_exports__.R$;
14934
14906
  const __webpack_exports__ToTop = __webpack_exports__.pz;
14935
14907
  const __webpack_exports__Upload = __webpack_exports__._O;
14936
- const __webpack_exports__components = __webpack_exports__.dK;
14937
14908
  const __webpack_exports__default = __webpack_exports__.Ay;
14938
14909
  const __webpack_exports__install = __webpack_exports__.ai;
14939
- const __webpack_exports__services = __webpack_exports__.$p;
14940
- export { __webpack_exports__ActionSheet as ActionSheet, __webpack_exports__Badge as Badge, __webpack_exports__Card as Card, __webpack_exports__Cell as Cell, __webpack_exports__CellSwipe as CellSwipe, __webpack_exports__CheckBox as CheckBox, __webpack_exports__CheckBoxGroup as CheckBoxGroup, __webpack_exports__DpButton as DpButton, __webpack_exports__DpHeader as DpHeader, __webpack_exports__DpLoadMore as DpLoadMore, __webpack_exports__Indicator as Indicator, __webpack_exports__Message as Message, __webpack_exports__Modal as Modal, __webpack_exports__Picker as Picker, __webpack_exports__Popup as Popup, __webpack_exports__Progress as Progress, __webpack_exports__Prompt as Prompt, __webpack_exports__RadioBox as RadioBox, __webpack_exports__Rater as Rater, __webpack_exports__SlideBar as SlideBar, __webpack_exports__Spinner as Spinner, __webpack_exports__Swipe as Swipe, __webpack_exports__SwitchBar as SwitchBar, __webpack_exports__Tab as Tab, __webpack_exports__TextBar as TextBar, __webpack_exports__ToTop as ToTop, __webpack_exports__Upload as Upload, __webpack_exports__components as components, __webpack_exports__default as default, __webpack_exports__install as install, __webpack_exports__services as services };
14910
+ export { __webpack_exports__ActionSheet as ActionSheet, __webpack_exports__Badge as Badge, __webpack_exports__Card as Card, __webpack_exports__Cell as Cell, __webpack_exports__CellSwipe as CellSwipe, __webpack_exports__CheckBox as CheckBox, __webpack_exports__CheckBoxGroup as CheckBoxGroup, __webpack_exports__DpButton as DpButton, __webpack_exports__DpHeader as DpHeader, __webpack_exports__DpLoadMore as DpLoadMore, __webpack_exports__Indicator as Indicator, __webpack_exports__Message as Message, __webpack_exports__Modal as Modal, __webpack_exports__Picker as Picker, __webpack_exports__Popup as Popup, __webpack_exports__Progress as Progress, __webpack_exports__Prompt as Prompt, __webpack_exports__RadioBox as RadioBox, __webpack_exports__RadioBoxGroup as RadioBoxGroup, __webpack_exports__Rater as Rater, __webpack_exports__SlideBar as SlideBar, __webpack_exports__Spinner as Spinner, __webpack_exports__Swipe as Swipe, __webpack_exports__SwitchBar as SwitchBar, __webpack_exports__Tab as Tab, __webpack_exports__TextBar as TextBar, __webpack_exports__ToTop as ToTop, __webpack_exports__Upload as Upload, __webpack_exports__default as default, __webpack_exports__install as install };
14941
14911
 
14942
14912
  //# sourceMappingURL=dpzvc3.esm.js.map