@abi-software/map-side-bar 2.6.3-acupoints.0 → 2.6.3-acupoints.1
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/dist/map-side-bar.js +19 -17
- package/dist/map-side-bar.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/AcupointsInfoSearch.vue +19 -18
package/package.json
CHANGED
|
@@ -112,24 +112,25 @@ export default {
|
|
|
112
112
|
if (input !== this.previousSearch) {
|
|
113
113
|
if (input === "") {
|
|
114
114
|
this.results = Object.values(this.entry)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
115
|
+
} else {
|
|
116
|
+
const lowerCase = input.toLowerCase()
|
|
117
|
+
for (const value of Object.values(this.entry)) {
|
|
118
|
+
const searchFields = [
|
|
119
|
+
value["Acupoint"],
|
|
120
|
+
value["Synonym"],
|
|
121
|
+
value["Chinese Name"],
|
|
122
|
+
value["English Name"],
|
|
123
|
+
value["Reference"],
|
|
124
|
+
value["Indications"],
|
|
125
|
+
value["Acupuncture Method"],
|
|
126
|
+
value["Vasculature"],
|
|
127
|
+
value["Innervation"]
|
|
128
|
+
];
|
|
129
|
+
const allstrings = searchFields.join();
|
|
130
|
+
const myJSON = allstrings.toLowerCase();
|
|
131
|
+
if (myJSON.includes(lowerCase)) {
|
|
132
|
+
this.results.push(value)
|
|
133
|
+
}
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
}
|