@zhaoyifannan/tvue 3.1.1 → 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.
- package/README.md +1 -1
- package/lib/tvue.js +4 -4
- package/lib/tvue.min.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
npm publish --tag latest-v3
|
package/lib/tvue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Tvue.js v3.1.
|
|
2
|
+
* Tvue.js v3.1.2
|
|
3
3
|
* (c) 2024-2025 Zhaoyifannan
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*
|
|
@@ -6508,7 +6508,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
|
6508
6508
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6509
6509
|
|
|
6510
6510
|
"use strict";
|
|
6511
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/**\
|
|
6511
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/**\n * bem helper\n * b() // 'button'\n * b('text') // 'button__text'\n * b({ disabled }) // 'button button--disabled'\n * b('text', { disabled }) // 'button__text button__text--disabled'\n * b(['disabled', 'primary']) // 'button button--disabled button--primary'\n */\n\nvar ELEMENT = '__';\nvar MODS = '--';\nvar join = function join(name, el, symbol) {\n return el ? name + symbol + el : name;\n};\nvar _prefix = function prefix(name, mods) {\n if (typeof mods === 'string') {\n return join(name, mods, MODS);\n }\n if (Array.isArray(mods)) {\n return mods.map(function (item) {\n return _prefix(name, item);\n });\n }\n var ret = {};\n Object.keys(mods || {}).forEach(function (key) {\n ret[name + MODS + key] = mods[key];\n });\n return ret;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n methods: {\n b: function b(el, mods) {\n var name = this.$options.name;\n if (el && typeof el !== 'string') {\n mods = el;\n el = '';\n }\n el = join(name, el, ELEMENT);\n return mods ? [el, _prefix(el, mods)] : el;\n }\n }\n});\n\n//# sourceURL=webpack://TVUE/./src/utils/bem.js?");
|
|
6512
6512
|
|
|
6513
6513
|
/***/ }),
|
|
6514
6514
|
|
|
@@ -6544,7 +6544,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
6544
6544
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6545
6545
|
|
|
6546
6546
|
"use strict";
|
|
6547
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatenull\", function() { return validatenull; });\n/**\
|
|
6547
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"validatenull\", function() { return validatenull; });\n/**\n * 判断是否为空\n */\nfunction validatenull(val) {\n if (val instanceof Date || typeof val === 'boolean' || typeof val === 'number') return false;\n if (val instanceof Array) {\n if (val.length === 0) return true;\n } else if (val instanceof Object) {\n for (var o in val) {\n return false;\n }\n return true;\n } else {\n if (val === 'null' || val == null || val === 'undefined' || val === undefined || val === '') {\n return true;\n }\n return false;\n }\n return false;\n}\n\n//# sourceURL=webpack://TVUE/./src/utils/validate.js?");
|
|
6548
6548
|
|
|
6549
6549
|
/***/ }),
|
|
6550
6550
|
|
|
@@ -6556,7 +6556,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
6556
6556
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6557
6557
|
|
|
6558
6558
|
"use strict";
|
|
6559
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.1.
|
|
6559
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.1.2';\n\n//# sourceURL=webpack://TVUE/./src/version.js?");
|
|
6560
6560
|
|
|
6561
6561
|
/***/ }),
|
|
6562
6562
|
|