kts-component-invoice-operate 1.2.23 → 1.2.26
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/index.esm.js +246 -228
- package/dist/index.js +246 -228
- package/docs-dist/404.html +1 -1
- package/docs-dist/index.html +1 -1
- package/docs-dist/umi.css +20 -20
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +11 -1
- package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -509,6 +509,16 @@ class MyDiv extends React.Component<{ value?: any }> {
|
|
|
509
509
|
function formatSearch(value: string, search: string) {
|
|
510
510
|
if (!value || !search) return value;
|
|
511
511
|
|
|
512
|
-
const __html = value.split(new RegExp(search, 'g')).join(`<span class="kts-invoice-operate-goods-list-table-search-protrude" >${search}</span>`);
|
|
512
|
+
const __html = ucoding(value).split(new RegExp(ucoding(search), 'g')).map(e => dcoding(e)).join(`<span class="kts-invoice-operate-goods-list-table-search-protrude" >${search}</span>`);
|
|
513
513
|
return <span dangerouslySetInnerHTML={{ __html }} />
|
|
514
514
|
}
|
|
515
|
+
|
|
516
|
+
/** 编码 */
|
|
517
|
+
function ucoding(v: string): string {
|
|
518
|
+
return v.split('').map(e => `U${e.charCodeAt(0)}E`).join('');
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/** 解码 */
|
|
522
|
+
function dcoding(v: string): string {
|
|
523
|
+
return v.split('U').map(e => e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '').join('');
|
|
524
|
+
}
|