widget.qw 1.0.58 → 1.0.59
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/build/style.css +3 -3
- package/build/widget.qw.es.js +4 -4
- package/build/widget.qw.umd.js +4 -4
- package/package.json +1 -1
- package/src/components/ObjsEditor.vue +3 -3
- package/src/env.d.ts +8 -8
- package/tsconfig.json +19 -19
- package/tsconfig.node.json +8 -8
package/build/style.css
CHANGED
|
@@ -840,13 +840,13 @@
|
|
|
840
840
|
}
|
|
841
841
|
.widget .readonly-field[data-v-0c8e09c0] {
|
|
842
842
|
margin: 4px 0;
|
|
843
|
-
}.widget[data-v-
|
|
843
|
+
}.widget[data-v-395734e4] {
|
|
844
844
|
background: #fff;
|
|
845
845
|
box-sizing: border-box;
|
|
846
846
|
height: 100%;
|
|
847
847
|
text-align: left;
|
|
848
848
|
}
|
|
849
|
-
.widget .option[data-v-
|
|
849
|
+
.widget .option[data-v-395734e4] {
|
|
850
850
|
margin: 0 8px 8px 0;
|
|
851
851
|
padding: 5px 5px;
|
|
852
852
|
border-radius: 4px;
|
|
@@ -855,6 +855,6 @@
|
|
|
855
855
|
display: inline-block;
|
|
856
856
|
position: relative;
|
|
857
857
|
}
|
|
858
|
-
[data-v-
|
|
858
|
+
[data-v-395734e4] .van-field__label {
|
|
859
859
|
margin: auto;
|
|
860
860
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -20946,7 +20946,7 @@ const _sfc_main$1 = {
|
|
|
20946
20946
|
}
|
|
20947
20947
|
};
|
|
20948
20948
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
20949
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
20949
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-395734e4] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-395734e4] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-395734e4] .van-field__label {\n margin: auto;\n}")();
|
|
20950
20950
|
const _hoisted_1 = {
|
|
20951
20951
|
class: "widget"
|
|
20952
20952
|
};
|
|
@@ -21063,8 +21063,6 @@ const _sfc_main = {
|
|
|
21063
21063
|
else
|
|
21064
21064
|
formatValue = "";
|
|
21065
21065
|
}
|
|
21066
|
-
if (typeof formatValue === "boolean")
|
|
21067
|
-
formatValue = formatValue ? "\u662F" : "\u5426";
|
|
21068
21066
|
return `${label}:${formatValue}`;
|
|
21069
21067
|
});
|
|
21070
21068
|
return kvs.join(",");
|
|
@@ -21074,6 +21072,8 @@ const _sfc_main = {
|
|
|
21074
21072
|
let one = (_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
21075
21073
|
return one ? one[Object.keys(one)[0]] : "";
|
|
21076
21074
|
} else {
|
|
21075
|
+
if (props.schema[key].type === "Boolean")
|
|
21076
|
+
v = v ? "\u662F" : "\u5426";
|
|
21077
21077
|
return v;
|
|
21078
21078
|
}
|
|
21079
21079
|
};
|
|
@@ -21240,7 +21240,7 @@ const _sfc_main = {
|
|
|
21240
21240
|
};
|
|
21241
21241
|
}
|
|
21242
21242
|
};
|
|
21243
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
21243
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-395734e4"]]);
|
|
21244
21244
|
const secret_notify = () => {
|
|
21245
21245
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
21246
21246
|
};
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -20949,7 +20949,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20949
20949
|
}
|
|
20950
20950
|
};
|
|
20951
20951
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
20952
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
20952
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-395734e4] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n}\n.widget .option[data-v-395734e4] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-395734e4] .van-field__label {\n margin: auto;\n}")();
|
|
20953
20953
|
const _hoisted_1 = {
|
|
20954
20954
|
class: "widget"
|
|
20955
20955
|
};
|
|
@@ -21066,8 +21066,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21066
21066
|
else
|
|
21067
21067
|
formatValue = "";
|
|
21068
21068
|
}
|
|
21069
|
-
if (typeof formatValue === "boolean")
|
|
21070
|
-
formatValue = formatValue ? "\u662F" : "\u5426";
|
|
21071
21069
|
return `${label}:${formatValue}`;
|
|
21072
21070
|
});
|
|
21073
21071
|
return kvs.join(",");
|
|
@@ -21077,6 +21075,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21077
21075
|
let one = (_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
21078
21076
|
return one ? one[Object.keys(one)[0]] : "";
|
|
21079
21077
|
} else {
|
|
21078
|
+
if (props.schema[key].type === "Boolean")
|
|
21079
|
+
v = v ? "\u662F" : "\u5426";
|
|
21080
21080
|
return v;
|
|
21081
21081
|
}
|
|
21082
21082
|
};
|
|
@@ -21243,7 +21243,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21243
21243
|
};
|
|
21244
21244
|
}
|
|
21245
21245
|
};
|
|
21246
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
21246
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-395734e4"]]);
|
|
21247
21247
|
const secret_notify = () => {
|
|
21248
21248
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
21249
21249
|
};
|
package/package.json
CHANGED
|
@@ -165,9 +165,6 @@ const key2value = (key, item) => {
|
|
|
165
165
|
formatValue = ''
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
if(typeof formatValue === 'boolean')
|
|
169
|
-
formatValue = formatValue ? '是' : '否'
|
|
170
|
-
|
|
171
168
|
return `${label}:${formatValue}`
|
|
172
169
|
})
|
|
173
170
|
return kvs.join(',')
|
|
@@ -182,6 +179,9 @@ const key2value = (key, item) => {
|
|
|
182
179
|
return one ? one[Object.keys(one)[0]] : ''
|
|
183
180
|
}
|
|
184
181
|
else {
|
|
182
|
+
if(props.schema[key].type === 'Boolean')
|
|
183
|
+
v = v ? '是' : '否'
|
|
184
|
+
|
|
185
185
|
return v
|
|
186
186
|
}
|
|
187
187
|
}
|
package/src/env.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
declare module '*.vue' {
|
|
4
|
-
import type { DefineComponent } from 'vue'
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
|
-
const component: DefineComponent<{}, {}, any>
|
|
7
|
-
export default component
|
|
8
|
-
}
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import type { DefineComponent } from 'vue'
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
|
+
const component: DefineComponent<{}, {}, any>
|
|
7
|
+
export default component
|
|
8
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"jsx": "preserve",
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
|
-
"lib": ["esnext", "dom"],
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
},
|
|
17
|
-
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
18
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "esnext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"jsx": "preserve",
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"lib": ["esnext", "dom"],
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
},
|
|
17
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
18
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
19
|
+
}
|
package/tsconfig.node.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"composite": true,
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "node"
|
|
6
|
-
},
|
|
7
|
-
"include": ["vite.config.ts"]
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"composite": true,
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"moduleResolution": "node"
|
|
6
|
+
},
|
|
7
|
+
"include": ["vite.config.ts"]
|
|
8
|
+
}
|