@opentinyvue/vue-dialog-box 2.21.0 → 2.22.0

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/lib/index.js CHANGED
@@ -7,9 +7,8 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
- import MobileTemplate from "./mobile.js";
13
12
  import MobileFirstTemplate from "./mobile-first.js";
14
13
  var template = function template2(mode) {
15
14
  var _process$env;
@@ -17,9 +16,6 @@ var template = function template2(mode) {
17
16
  if ("pc" === (tinyMode || mode)) {
18
17
  return PcTemplate;
19
18
  }
20
- if ("mobile" === (tinyMode || mode)) {
21
- return MobileTemplate;
22
- }
23
19
  if ("mobile-first" === (tinyMode || mode)) {
24
20
  return MobileFirstTemplate;
25
21
  }
@@ -204,7 +200,7 @@ var DialogBox = defineComponent({
204
200
  });
205
201
  }
206
202
  });
207
- var version = "2.21.0";
203
+ var version = "2.22.0";
208
204
  DialogBox.install = function(Vue) {
209
205
  Vue.component(DialogBox.name, DialogBox);
210
206
  };
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dialog-box",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~2.21.0",
11
- "@opentinyvue/vue-icon": "~2.21.0",
12
- "@opentinyvue/vue-action-sheet": "~2.21.0",
13
- "@opentinyvue/vue-renderless": "~3.21.0",
14
- "@opentinyvue/vue-theme-mobile": "~3.21.0",
15
- "@opentinyvue/vue-theme": "~3.21.0"
10
+ "@opentinyvue/vue-common": "~2.22.0",
11
+ "@opentinyvue/vue-icon": "~2.22.0",
12
+ "@opentinyvue/vue-action-sheet": "~2.22.0",
13
+ "@opentinyvue/vue-renderless": "~3.22.0",
14
+ "@opentinyvue/vue-theme": "~3.22.0"
16
15
  },
17
16
  "license": "MIT",
18
17
  "types": "index.d.ts",
package/lib/mobile.js DELETED
@@ -1,122 +0,0 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/dialog-box/vue';
2
- import { defineComponent, props, setup } from '@opentinyvue/vue-common';
3
- import '@opentinyvue/vue-theme-mobile/dialog-box/index.css';
4
-
5
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
6
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
7
- if (render) {
8
- options.render = render;
9
- options.staticRenderFns = staticRenderFns;
10
- options._compiled = true;
11
- }
12
- var hook;
13
- if (injectStyles) {
14
- hook = injectStyles;
15
- }
16
- if (hook) {
17
- if (options.functional) {
18
- options._injectStyles = hook;
19
- var originalRender = options.render;
20
- options.render = function renderWithStyleInjection(h, context) {
21
- hook.call(context);
22
- return originalRender(h, context);
23
- };
24
- } else {
25
- var existing = options.beforeCreate;
26
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
27
- }
28
- }
29
- return {
30
- exports: scriptExports,
31
- options
32
- };
33
- }
34
-
35
- var __vue2_script = defineComponent({
36
- emits: ["update:visible", "change", "before-close", "open", "close", "opened", "confirm", "cancel", "closed"],
37
- props: [].concat(props, ["visible", "title", "modal", "closeOnClickModal", "modalAppendToBody", "appendToBody", "width", "top", "showHeader", "destroyOnClose"]),
38
- model: {
39
- prop: "visible",
40
- event: "update:visible"
41
- },
42
- setup: function setup$1(props2, context) {
43
- return setup({
44
- props: props2,
45
- context,
46
- renderless,
47
- api
48
- });
49
- }
50
- });
51
- var render = function render2() {
52
- var _vm = this;
53
- var _h = _vm.$createElement;
54
- var _c = _vm._self._c || _h;
55
- return _c("transition", {
56
- attrs: {
57
- "name": "dialog-fade"
58
- }
59
- }, [_c("div", {
60
- directives: [{
61
- name: "show",
62
- rawName: "v-show",
63
- value: _vm.visible,
64
- expression: "visible"
65
- }],
66
- staticClass: "tiny-mobile-dialog-box__wrapper",
67
- on: {
68
- "click": function click($event) {
69
- if ($event.target !== $event.currentTarget) return null;
70
- return _vm.handleWrapperClick.apply(null, arguments);
71
- }
72
- }
73
- }, [_c("div", {
74
- key: _vm.state.key,
75
- ref: "dialog",
76
- staticClass: "tiny-mobile-dialog-box",
77
- class: {
78
- "is-hide-header": !_vm.showHeader
79
- }
80
- }, [_vm.showHeader ? _c("div", {
81
- staticClass: "tiny-mobile-dialog-box__header"
82
- }, [_vm._t("title", function() {
83
- return [_c("span", {
84
- staticClass: "tiny-mobile-dialog-box__title"
85
- }, [_vm._v(_vm._s(_vm.title))])];
86
- })], 2) : _vm._e(), _c("div", {
87
- staticClass: "tiny-mobile-dialog-box__body"
88
- }, [_vm._t("default")], 2), _c("div", {
89
- staticClass: "tiny-mobile-dialog-box__footer"
90
- }, [_vm._t("footer", function() {
91
- return [_c("button", {
92
- staticClass: "tiny-mobile-dialog-box__button cancel-button",
93
- attrs: {
94
- "type": "button"
95
- },
96
- on: {
97
- "click": _vm.handleCancel
98
- }
99
- }, [_vm._v(" " + _vm._s(_vm.t("ui.dialogBox.cancel")) + " ")]), _c("button", {
100
- staticClass: "tiny-mobile-dialog-box__button confirm-button",
101
- attrs: {
102
- "type": "button"
103
- },
104
- on: {
105
- "click": _vm.handleConfirm
106
- }
107
- }, [_vm._v(" " + _vm._s(_vm.t("ui.dialogBox.confirm")) + " ")])];
108
- })], 2)])])]);
109
- };
110
- var staticRenderFns = [];
111
- var __cssModules = {};
112
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
113
- function __vue2_injectStyles(context) {
114
- for (var o in __cssModules) {
115
- this[o] = __cssModules[o];
116
- }
117
- }
118
- var mobile = /* @__PURE__ */ function() {
119
- return __component__.exports;
120
- }();
121
-
122
- export { mobile as default };
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;